/* Layout: highway-sign vernacular. Navy sign bands, light-blue CTAs, white surfaces, Overpass (Highway Gothic lineage) for display. */
:root {
  --sign: #0b2545;        /* navy */
  --sign-ink: #ffffff;
  --amber: #5ab4f0;       /* light blue CTA */
  --amber-ink: #0b2545;
  --accent-text: #1d4f8f; /* navy-blue text accents readable on white */
  --bg: #f4f8fc;
  --surface: #ffffff;
  --fg: #0e1b2c;
  --muted: #4f6178;
  --line: #d4e0ec;
  --tint: #e6f1fb;
  --danger: #b3261e;
  --display: "Overpass", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sign: #12305a; --sign-ink: #ffffff; --amber: #7cc4f5; --amber-ink: #0b2545; --accent-text: #8ccbf7;
    --bg: #0a1320; --surface: #111d2e; --fg: #e8eff7; --muted: #9fb2c8; --line: #23344a; --tint: #152a42; --danger: #f2867e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sign: #12305a; --sign-ink: #ffffff; --amber: #7cc4f5; --amber-ink: #0b2545; --accent-text: #8ccbf7;
  --bg: #0a1320; --surface: #111d2e; --fg: #e8eff7; --muted: #9fb2c8; --line: #23344a; --tint: #152a42; --danger: #f2867e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 700 0.78rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.section { padding-block: 64px; }
.section-head { display: grid; gap: 10px; max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--sign); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--sign); color: var(--sign-ink); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.25rem/1 var(--display); letter-spacing: 0.01em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--sign-ink); border-radius: 5px; font-size: 0.85rem; }
.nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.9; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.header-phone { font: 800 1.05rem/1 var(--display); background: var(--amber); color: var(--amber-ink); padding: 10px 14px; border-radius: var(--radius); text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { .nav { order: 3; width: 100%; margin-left: 0; gap: 14px; font-size: 0.9rem; } .header-phone { margin-left: auto; } }

/* Hero */
.hero { background: var(--sign); color: var(--sign-ink); padding-block: 48px 64px; border-bottom: 6px solid var(--amber); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.hero-copy { display: grid; gap: 20px; min-width: 0; padding-top: 12px; }
.hero-copy .eyebrow { color: var(--sign-ink); opacity: 0.8; }
.hero-copy .lede { font-size: 1.15rem; max-width: 52ch; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.big-phone { display: grid; gap: 2px; background: var(--amber); color: var(--amber-ink); padding: 14px 20px; border-radius: var(--radius); text-decoration: none; }
.big-phone small { font: 700 0.72rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; }
.big-phone strong { font: 800 1.6rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.btn-ghost { color: var(--sign-ink); border: 2px solid currentColor; padding: 14px 18px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; font-size: 0.95rem; }
.hero-points li::before { content: "✓ "; color: var(--amber); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* Form */
.intake { background: var(--surface); color: var(--fg); border-radius: 8px; padding: 24px; box-shadow: 0 14px 40px rgba(0,0,0,0.22); display: grid; gap: 14px; min-width: 0; }
.intake h2 { font-size: 1.5rem; }
.intake .sub { color: var(--muted); font-size: 0.92rem; margin-top: -6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; min-width: 0; }
.field label, .field legend { font-size: 0.85rem; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; width: 100%; }
.field textarea { min-height: 76px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.yesno { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.yesno .opts { display: flex; gap: 8px; }
.yesno .opts label { flex: 1; display: flex; gap: 6px; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 8px; font-weight: 600; cursor: pointer; }
.yesno .opts input { accent-color: var(--sign); }
.yesno .opts label:has(input:checked) { border-color: var(--accent-text); background: var(--tint); }
.consent { display: flex; gap: 10px; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--sign); flex: none; }
.submit { font: 800 1.1rem/1 var(--display); background: var(--amber); color: var(--amber-ink); border: 0; border-radius: var(--radius); padding: 16px; cursor: pointer; }
.submit:hover { filter: brightness(1.05); }
.form-error { color: var(--danger); font-size: 0.88rem; font-weight: 600; }
.form-done { display: grid; gap: 10px; text-align: left; }
.form-done h2 { color: var(--accent-text); }

/* Photo hero: photo tinted with the navy sign color so text stays readable */
.hero.photo { background:
  linear-gradient(100deg, color-mix(in srgb, var(--sign) 94%, transparent) 30%, color-mix(in srgb, var(--sign) 78%, transparent)),
  var(--hero-img) center / cover no-repeat, var(--sign); }
.hero-points.badges { gap: 8px; }
.hero-points.badges li { background: color-mix(in srgb, var(--sign-ink) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sign-ink) 25%, transparent); padding: 6px 12px; border-radius: 999px; font-size: 0.88rem; }

/* Accident tiles with dark photo backgrounds */
.type.photo { min-height: 190px; align-content: end; border: 0; color: #fff;
  background: linear-gradient(to top, rgba(6, 18, 34, .92) 15%, rgba(6, 18, 34, .25)), var(--img) center / cover no-repeat, var(--sign); }
.type.photo p { color: rgba(255, 255, 255, .85); }
.type.photo h3 span { color: var(--amber); }
.type.photo:hover { outline: 3px solid var(--amber); outline-offset: -3px; }
.split-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }

/* Quiz form */
.quiz { gap: 18px; }
.quiz-top { display: grid; gap: 8px; }
.progress { height: 6px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--amber); border-radius: inherit; transition: width .25s ease; }
.step-count { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.q { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.q legend { padding: 0; margin-bottom: 4px; }
.q h2 { font-size: 1.55rem; outline: none; }
.choices { display: grid; gap: 10px; }
.choices.many { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .choices.many { grid-template-columns: 1fr; } }
.choice { font: 700 1.05rem/1.2 var(--body); text-align: left; color: var(--fg); background: var(--bg); border: 2px solid var(--line); border-radius: 8px; padding: 16px 18px; cursor: pointer; min-height: 56px; }
.choice:hover { border-color: var(--amber); }
.choice[aria-pressed="true"] { border-color: var(--accent-text); background: var(--tint); }
.q.contact { gap: 12px; }
.back { justify-self: start; background: none; border: 0; color: var(--muted); font: 600 0.9rem var(--body); cursor: pointer; padding: 4px 0; }
.back:hover { color: var(--fg); }

/* Sticky mobile call-to-action */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--sign);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -6px 20px rgba(0,0,0,.18); transition: transform .2s ease; }
  .sticky-cta a { display: block; text-align: center; background: var(--amber); color: var(--amber-ink); font: 800 1.1rem/1 var(--display); padding: 16px; border-radius: var(--radius); text-decoration: none; }
  .sticky-cta.away, .lead-done .sticky-cta { transform: translateY(110%); }
  body { padding-bottom: 84px; }
}
.header-phone.push { margin-left: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { display: grid; gap: 8px; padding-top: 18px; border-top: 4px solid var(--accent-text); }
.step::before { counter-increment: step; content: "Step " counter(step); font: 700 0.78rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Case types: road-sign tiles */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.types:has(> :nth-child(5)) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } /* 6 or 9 cards fill rows of 3 */
.type { display: grid; gap: 6px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; }
.type:hover { border-color: var(--accent-text); }
.type h3 { display: flex; justify-content: space-between; gap: 8px; }
.type h3 span { color: var(--accent-text); }
.type p { color: var(--muted); font-size: 0.93rem; }
.trust .type h3 { justify-content: flex-start; align-items: baseline; }
.trust .tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--accent-text); font-size: 0.85rem; flex: none; }

/* Split doctor/lawyer */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split > div { background: var(--tint); border-radius: 8px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.split p { color: var(--muted); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Checklist (subject detail) */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; list-style: none; padding: 0; margin: 0; counter-reset: c; }
.checklist li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist li::before { counter-increment: c; content: counter(c); display: grid; place-items: center; width: 34px; height: 34px; background: var(--sign); color: var(--sign-ink); font: 800 1rem/1 var(--display); border-radius: 4px; }
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--surface); border: 1.5px dashed var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.review .tag { justify-self: start; font: 700 0.7rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; background: var(--tint); color: var(--muted); padding: 5px 8px; border-radius: 4px; }
.review cite { font-style: normal; font-weight: 700; font-size: 0.9rem; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq summary { cursor: pointer; font: 700 1.05rem/1.3 var(--display); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--amber); color: var(--amber-ink); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-block: 36px; }
.cta-band strong { font: 800 clamp(1.4rem, 3vw, 2rem)/1.1 var(--display); }
.cta-band a { background: var(--sign); color: var(--sign-ink); font: 800 1.15rem/1 var(--display); padding: 16px 22px; border-radius: var(--radius); text-decoration: none; }

/* Footer */
.site-footer { background: var(--fg); color: var(--bg); padding-block: 48px 32px; font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 28px; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.foot-cols ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.foot-cols a { text-decoration: none; opacity: 0.85; }
.disclaimer { border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); padding-top: 20px; opacity: 0.8; font-size: 0.8rem; display: grid; gap: 8px; max-width: 900px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr; } }

.placeholder-note { background: var(--tint); border-left: 4px solid var(--amber); padding: 10px 14px; font-size: 0.85rem; color: var(--muted); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
