/* Matthew Broussard, LADC-I — practice site
   Layout idea: a quiet reading column with sage bands and gold hairlines.
   Navy carries the voice; gold is decoration only, never body text. */
:root {
  --paper: #F5F7F2;        /* sage-tinted off-white */
  --surface: #FFFFFF;
  --sage-soft: #E4EBE1;
  --navy: #1F3256;
  --navy-deep: #16243F;
  --ink: #1B2638;          /* 14:1 on paper */
  --muted: #46505F;        /* 7.5:1 on paper */
  --sage-text: #44614A;    /* 6.4:1, sage for text and icons */
  --accent-text: #765419;  /* 6.4:1, bronze for small labels */
  --line: #D6DDD3;
  --gold: #C9A15A;         /* decoration and button fill only */
  --gold-soft: #E9D9B6;
  --hardship: #F6EBD2;

  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --prose: 66ch;
  --radius: 14px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--gold-soft); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--navy); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; }
h1 em, h2 em { font-style: italic; color: var(--sage-text); }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.prose { max-width: var(--prose); display: grid; gap: 1em; }
.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: 28px; }
.muted { color: var(--muted); }
.strong { color: var(--ink); font-weight: 500; }
.after { margin-top: 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; transition: background .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn.gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-deep); }
.btn.light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn.light:hover { background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(245,247,242,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand-mark { width: 54px; flex: none; display: block; }
.brand-name, .brand-sub { display: block; white-space: nowrap; }
.brand-name { font-family: var(--display); font-size: 1.12rem; line-height: 1.1; }
.brand-sub { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav { display: flex; align-items: center; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 9px 8px; font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 8px; white-space: nowrap; }
.nav-link:hover, .nav-item:focus-within > .nav-link { background: var(--sage-soft); color: var(--navy); }
.nav-link[aria-current] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.has-sub > .nav-link::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(22,36,63,.12); display: none; }
.sub::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .94rem; }
.sub a:hover, .sub a[aria-current] { background: var(--sage-soft); color: var(--navy); }
.sub .soon { font-size: .72rem; color: var(--accent-text); letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }

.header-cta { padding: 9px 16px; font-size: .88rem; }
.mobile-cta { display: none; }
.sub-toggle { display: none; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
@media (max-width: 1290px) { .header-cta { display: none; } }
@media (max-width: 1200px) {
  .menu-toggle { display: inline-block; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); background: var(--paper); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 20px 48px; display: none; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { padding: 14px 4px; font-size: 1.05rem; }
  .nav-link[aria-current] { box-shadow: none; color: var(--accent-text); }
  .has-sub > .nav-link::after { display: none; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > .nav-link { flex: 1; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--navy); }
  .sub-toggle::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
  .has-sub.sub-open > .sub-toggle::before { transform: translateY(2px) rotate(-135deg); }
  .sub, .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.sub-open > .sub { display: block; }
  .sub { position: static; flex-basis: 100%; border: 0; box-shadow: none; background: transparent; padding: 0 0 12px 12px; min-width: 0; }
  .sub a { padding: 11px 8px; color: var(--muted); }
  body.menu-open { overflow: hidden; }
  .nav .mobile-cta { display: flex; margin-top: 20px; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 60px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-text { display: grid; gap: 22px; justify-items: start; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: none; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-mark { position: absolute; right: -40px; top: 40px; width: 420px; opacity: .22; pointer-events: none; }
.home-hero { padding: 96px 0 84px; }
.home-hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); max-width: 15ch; }
.home-hero .hero-mark { width: 560px; top: 60px; }
.facts { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-text); }
@media (max-width: 720px) {
  .hero { padding: 52px 0 44px; }
  .home-hero { padding: 64px 0 56px; }
  .hero-mark, .home-hero .hero-mark { width: 240px; right: -60px; top: 30px; }
}

/* Photo slots: pass img= to hero() in build.py, or use .portrait / .wide-photo in a section. */
.hero.has-img .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero-figure { margin: 0; display: grid; gap: 8px; }
.hero-figure figcaption { font-size: .78rem; color: var(--muted); text-align: right; }
.hero-figure figcaption a { color: inherit; }
.hero-media { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--sage-soft); box-shadow: 0 24px 50px -28px rgba(22,36,63,.45); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media img.focus-left { object-position: 22% 50%; }
.hero-media img.focus-right { object-position: 76% 50%; }
.hero-media img.focus-bottom { object-position: 50% 84%; }
.home-hero.has-img h1 { max-width: 12ch; }
.portrait { width: 180px; height: 220px; object-fit: cover; border-radius: 90px 90px 16px 16px; }
.wide-photo { width: 100%; border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) {
  .hero.has-img .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { aspect-ratio: 16 / 11; border-radius: 18px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.band { background: var(--sage-soft); }
.band-white { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 34px; max-width: 62ch; }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.split .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Key facts strip */
.keyfacts-band { background: var(--surface); border-block: 1px solid var(--line); }
.keyfacts-band + .section.band-white { border-top: 0; }
.keyfacts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.keyfacts div { padding: 22px 24px 22px 0; }
.keyfacts dt { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.keyfacts dd { margin: 0; font-weight: 500; color: var(--navy); }

/* Three-part model */
.trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.trio li { display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 2px solid var(--sage-text); }
.trio strong { font-family: var(--display); font-weight: 500; font-size: 1.2rem; color: var(--navy); }
.trio span { color: var(--muted); font-size: .96rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--navy); transform: translateY(-2px); color: var(--ink); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.card .more::after { content: " →"; color: var(--accent-text); }

/* Row lists (evaluations, professionals) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 24px; align-items: baseline; padding: 24px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row:hover h3 { color: var(--navy-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.row p { color: var(--muted); }
.row .price { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); white-space: nowrap; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 6px; } }

/* Checklists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 14px; height: 7px; border-left: 2px solid var(--sage-text); border-bottom: 2px solid var(--sage-text); transform: translateY(-50%) rotate(-45deg); }
.checks.cols { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 28px; }

/* Insurance pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pills li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; color: var(--navy); }
.pills.pending li { background: transparent; border-style: dashed; color: var(--muted); }

/* Fee lists */
.fees { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fees li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.fees li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); white-space: nowrap; }
.fees small { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--navy); }
.steps li::before { content: "Step " counter(step); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: .98rem; }

/* Notes and panels */
.note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 18px 20px; max-width: var(--prose); }
.note strong { color: var(--navy); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.panel h2, .panel h3 { font-size: 1.25rem; }
.panel p { color: var(--muted); }
.panel p.strong { color: var(--ink); }
.pull { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; color: var(--navy); max-width: 30ch; font-style: italic; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 80ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 2px; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.4rem; color: var(--accent-text); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 2px 18px; color: var(--muted); max-width: 70ch; }

/* Related links */
.h-small { font-family: var(--body); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 500; }
.links a:hover { border-color: var(--navy); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.big-link { font-family: var(--display); font-size: 1.45rem; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.big-link.small { font-family: var(--body); font-weight: 600; font-size: clamp(.82rem, 3.6vw, 1.1rem); overflow-wrap: normal; word-break: normal; }
.big-link:hover { text-decoration: underline; }
.socials { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; padding: 0; margin: 0; }

/* Sliding scale chart */
.scale-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.scale { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.scale th { background: var(--navy); color: #fff; text-align: left; font-weight: 600; font-size: .95rem; padding: 16px 20px; }
.scale td { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 1.02rem; }
.scale td:first-child { font-family: var(--display); font-size: 1.6rem; font-weight: 500; color: var(--navy); width: 22%; }
.scale tr.hardship { background: var(--hardship); }
.scale tr.group { background: var(--sage-soft); }
.scale .label { display: none; }
.scale-note { margin-top: 18px; color: var(--muted); max-width: 80ch; }
@media (max-width: 640px) {
  .scale thead { display: none; }
  .scale, .scale tbody, .scale tr, .scale td { display: block; width: 100%; }
  .scale tr { border-top: 1px solid var(--line); padding: 14px 18px; }
  .scale tbody tr:first-child { border-top: 0; }
  .scale td, .scale td:first-child { border: 0; padding: 3px 0; width: auto; }
  .scale td:first-child { font-size: 1.7rem; }
  .scale .label { display: inline; color: var(--muted); font-size: .9rem; margin-right: 6px; }
}

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--navy); color: #EEF2EC; padding: 64px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band h2 em { color: var(--gold-soft); }
.cta-band p { color: #C9D3DF; margin-top: 10px; max-width: 52ch; }
.cta-band .hero-actions { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #B9C4D3; font-size: .93rem; padding: 56px 0 28px; }
.site-footer a, .foot-strong { color: #E6ECF3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-h { margin-bottom: 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand .brand-name { color: #fff; font-size: 1.25rem; }
.foot-mark { width: 64px; display: block; }
.crisis { margin-top: 40px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: #E6ECF3; }
.crisis strong { color: var(--gold-soft); }
.foot-bottom { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: #A3AEC0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

.pt-seal { background: #fff; border-radius: 10px; padding: 8px 10px; justify-self: start; min-height: 40px; }
.pt-seal a { display: block; }
