/* ESQs Law PLLC — esqs-law.com
   Generated site stylesheet. Edit here, then run `python build.py`. */

:root {
  --navy: #02397b;
  --navy-dk: #01285a;
  --navy-lt: #1f5cb0;
  --gold: #b7902e;
  --gold-lt: #d4ad45;
  --ink: #16202c;
  --body: #33414f;
  --muted: #64748b;
  --line: #dfe5ec;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-deep: #0d1f3c;
  --shadow: 0 1px 2px rgba(13, 31, 60, .05), 0 8px 28px rgba(13, 31, 60, .06);
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Legal copy is full of statute and rule numbers. Palatino-class faces default
     to old-style figures, which drop 4, 5, 7 and 9 below the baseline and make
     "Section 504" read as a typo. Force lining figures everywhere. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.22; font-weight: 700; }
h1 { font-size: 2.35rem; letter-spacing: -.015em; }
h2 { font-size: 1.72rem; letter-spacing: -.01em; }
h3 { font-size: 1.22rem; }
p + p { margin-top: 1.05em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 100; font-family: var(--sans);
}
.skip:focus { left: 0; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--bg-deep); color: #c3d2e6; font-family: var(--sans); font-size: .8rem;
}
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.utility a { color: #e2eaf5; }
.utility .u-right { display: flex; gap: 20px; align-items: center; }
.utility strong { color: #fff; font-weight: 600; }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand-text .name { display: block; font-size: 1.22rem; font-weight: 700; color: var(--navy); letter-spacing: .01em; line-height: 1.15; }
.brand-text .sub { display: block; font-family: var(--sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 3px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 9px 12px; font-family: var(--sans); font-size: .85rem; color: var(--ink); cursor: pointer;
}

.nav { display: flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: .92rem; }
.nav > a, .nav .dd > button {
  display: inline-block; padding: 9px 12px; border-radius: 6px; color: var(--ink);
  background: none; border: 0; font: inherit; cursor: pointer;
}
.nav > a:hover, .nav .dd > button:hover { background: var(--bg-alt); text-decoration: none; }
.nav a.current { color: var(--navy); font-weight: 600; }

.dd { position: relative; }
.dd > button::after { content: " ▾"; font-size: .75em; color: var(--muted); }
.dd-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; z-index: 60;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); font-size: .9rem; }
.dd-menu a:hover { background: var(--bg-alt); text-decoration: none; color: var(--navy); }
.dd-menu .all { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 10px; color: var(--navy); font-weight: 600; }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .93rem;
  padding: 11px 20px; border-radius: 7px; border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dk); }
.btn-gold { background: var(--gold); color: #16202c; }
.btn-gold:hover { background: var(--gold-lt); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: rgba(2, 57, 123, .06); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #02397b 0%, #01294f 62%, #0d1f3c 100%);
  color: #fff; padding: 74px 0 66px;
}
.hero h1 { color: #fff; font-size: 2.7rem; max-width: 17ch; }
.hero .lede { color: #ccdaeb; font-size: 1.14rem; max-width: 60ch; margin-top: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .cred {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16);
  font-family: var(--sans); font-size: .84rem; color: #9db3cf; max-width: 62ch;
}

/* ---------- Page header (interior) ---------- */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.page-head .eyebrow { font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.page-head h1 { margin-top: 10px; }
.page-head .lede { margin-top: 14px; color: var(--muted); font-size: 1.08rem; max-width: 68ch; }

.crumbs { font-family: var(--sans); font-size: .78rem; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 7px; opacity: .55; }

/* ---------- Sections ---------- */
section { padding: 58px 0; }
section.tight { padding: 40px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 68ch; margin-bottom: 34px; }
.section-head h2 + p { margin-top: 12px; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
a.card { display: block; color: inherit; transition: border-color .15s, transform .12s, box-shadow .15s; }
a.card:hover { text-decoration: none; border-color: var(--navy-lt); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(13,31,60,.07), 0 14px 36px rgba(13,31,60,.09); }
.card h3 { color: var(--navy); margin-bottom: 9px; }
.card p { font-size: .97rem; color: var(--body); }
.card .more { display: inline-block; margin-top: 14px; font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--navy); }
a.card:hover .more { text-decoration: underline; }

.numbered { counter-reset: step; list-style: none; }
.numbered li { position: relative; padding-left: 46px; margin-bottom: 18px; }
.numbered li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--sans); font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.checklist { list-style: none; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%;
}
.checklist.spaced li { margin-bottom: 14px; }
.checklist.two-col { columns: 2; column-gap: 40px; }
.checklist.two-col li { break-inside: avoid; }

.notice {
  border-left: 4px solid var(--gold); background: #fdf9ef; padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0; font-size: .98rem;
}
.notice.urgent { border-left-color: #b02a2a; background: #fdf3f3; }
.notice strong { color: var(--ink); }

/* ---------- CTA band ---------- */
.band { background: var(--bg-deep); color: #fff; }
.band h2 { color: #fff; }
.band p { color: #b9c9de; max-width: 62ch; margin-top: 12px; }
.band .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.band-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: center; }
.band-split .facts { font-family: var(--sans); font-size: .92rem; }
.band-split .facts div { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #cddaea; }
.band-split .facts div:last-child { border-bottom: 0; }
.band-split .facts a { color: #fff; font-weight: 600; }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 42px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; }
.prose ul, .prose ol { margin: 14px 0 14px 0; }
.prose > ul li, .prose > ol li { margin-bottom: 8px; }

/* ---------- Two-column layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: 96px; font-family: var(--sans); }
.sidebar .box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.sidebar h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 12px; color: var(--ink); }
.sidebar ul { list-style: none; font-size: .9rem; }
.sidebar ul li { margin-bottom: 2px; }
.sidebar ul a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--body); }
.sidebar ul a:hover { background: #fff; color: var(--navy); text-decoration: none; }
.sidebar ul a.current { background: #fff; color: var(--navy); font-weight: 600; box-shadow: var(--shadow); }
.sidebar .call { font-size: .92rem; color: var(--muted); }
.sidebar .call .tel { display: block; font-family: var(--serif); font-size: 1.32rem; font-weight: 700; color: var(--navy); margin: 6px 0 14px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.06rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 8px; top: 15px; font-size: 1.5rem;
  color: var(--navy); font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 40px 20px 0; color: var(--body); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: #b02a2a; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy-lt); outline-offset: 1px; border-color: var(--navy-lt);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-family: var(--sans); font-size: .93rem; padding: 14px 16px; border-radius: 7px; margin-top: 18px; }
.form-msg.ok { background: #edf7ee; border: 1px solid #bfe0c3; color: #205c2a; }
.form-msg.err { background: #fdf3f3; border: 1px solid #e6c2c2; color: #8c2020; }
.form-consent { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-top: 16px; line-height: 1.55; }

/* ---------- Contact detail ---------- */
.contact-list { font-family: var(--sans); }
.contact-list .row { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.contact-list .row:last-child { border-bottom: 0; }
.contact-list .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; margin-bottom: 5px; }
.contact-list .v { font-size: 1rem; color: var(--ink); }
.contact-list .v a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #a8bad2; font-family: var(--sans); font-size: .88rem; padding: 52px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4.cont { visibility: hidden; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { color: #cddaea; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 7px; }
.site-footer .f-brand img { width: 120px; margin-bottom: 16px; background: #fff; border-radius: 6px; padding: 8px; }
.site-footer .f-brand p { color: #93a7c1; font-family: var(--sans); font-size: .86rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; }
.footer-bottom .disclaimer { font-size: .76rem; color: #7d90ab; line-height: 1.6; max-width: 92ch; }
.footer-bottom .copy { margin-top: 16px; font-size: .8rem; color: #93a7c1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 34px; }
  .sidebar { position: static; }
  .band-split { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer h4.cont { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 1.85rem; }
  .hero { padding: 52px 0 46px; }
  .hero h1 { font-size: 2rem; }
  .hero .lede { font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 10px 16px 18px; box-shadow: var(--shadow); gap: 2px;
  }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { width: 100%; text-align: left; }
  .dd-menu { position: static; display: block; border: 0; box-shadow: none; padding: 2px 0 8px 14px; min-width: 0; }
  .dd > button { display: none; }
  .nav .btn { margin-top: 10px; }
  .site-header { position: relative; }
  .checklist.two-col { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .utility .wrap { justify-content: center; text-align: center; }
  section { padding: 44px 0; }
}

@media print {
  .utility, .nav, .nav-toggle, .band, .site-footer .footer-grid { display: none; }
  body { font-size: 12pt; }
}
