/* ============================================================
   NH Psychiatry — nhpsychiatry.org
   Implemented from Claude Design "NHP Homepage.dc.html"
   Ink #1B2740 · slate #5C7396 · paper #F7F5F1 · sand #EFEBE2
   Type: Newsreader (display) + Public Sans (body)
   ============================================================ */

:root {
  /* Color — from the approved design file */
  --ink: #1B2740;
  --ink-hover: #2A3B63;
  --slate: #5C7396;        /* accent: eyebrows, numerals, underlines */
  --slate-text: #51678C;   /* darkened variant where small text must hit AA */
  --body: #3E4350;
  --muted: #5F6675;        /* design's #6B7080, nudged to clear 4.5:1 on sand */
  --paper: #F7F5F1;
  --sand: #EFEBE2;
  --line: #DAD4C8;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 0.8125rem;   /* 13px — legal, captions */
  --text-sm: 0.875rem;    /* 14px — nav, footer, links */
  --text-md: 0.9375rem;   /* 15px — row descriptions */

  /* Spacing rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --radius: 2px;
  --container: 80rem; /* 1280px */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

::selection { background: var(--ink); color: var(--paper); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.625rem, 5.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 2.625rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { max-width: 62ch; }

a {
  color: var(--ink);
  text-decoration-color: var(--slate);
  text-underline-offset: 3px;
  transition: color 160ms ease;
}
a:hover { color: var(--ink-hover); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-text);
}

/* ---------- Focus / skip ---------- */
:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; color: var(--paper); }

/* screen-reader-only text */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 120ms ease;
}
.btn:active { transform: scale(0.985); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-hover); color: var(--paper); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: rgba(27, 39, 64, 0.06); color: var(--ink); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); color: var(--ink); }

.btn-ghost-light {
  border-color: rgba(247, 245, 241, 0.45);
  color: var(--paper);
  background: transparent;
}
.btn-ghost-light:hover { border-color: var(--paper); color: var(--paper); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 1px 10px rgba(27, 39, 64, 0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 72px;
}

.brand img { width: 96px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2.2vw, 1.4rem);
  list-style: none;
}
.site-nav ul a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--body);
  padding: 0.4rem 0;
}
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a[aria-current="page"] {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--slate);
  text-underline-offset: 5px;
}

.nav-cta { min-height: 42px; padding: 0.65rem 1.25rem; font-size: 0.84375rem; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav-toggle-box { position: relative; width: 22px; height: 14px; }
.nav-toggle-bar,
.nav-toggle-box::before,
.nav-toggle-box::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease;
}
.nav-toggle-box::before { top: 0; }
.nav-toggle-bar { top: 6px; }
.nav-toggle-box::after { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--space-3) clamp(1.25rem, 4vw, 2.5rem) var(--space-4);
    box-shadow: 0 16px 24px rgba(27, 39, 64, 0.08);
  }
  .site-nav.is-open { display: flex; }

  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: block;
    padding: 0.8rem 0.25rem;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav ul li:last-child a { border-bottom: 0; }
  .nav-cta { width: 100%; min-height: 48px; }
}

/* ============================================================
   Hero — wash at right, paper scrim from the left
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  will-change: transform; /* JS parallax */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #F7F5F1 0%,
    rgba(247, 245, 241, 0.94) 42%,
    rgba(247, 245, 241, 0.5) 68%,
    rgba(247, 245, 241, 0.12) 100%
  );
}

@media (max-width: 899px) {
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(247, 245, 241, 0.96) 0%,
      rgba(247, 245, 241, 0.9) 60%,
      rgba(247, 245, 241, 0.68) 100%
    );
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.6vw, 1.875rem);
}

.hero-copy { display: contents; } /* children participate directly in the hero stack */

.hero h1 { max-width: 880px; }

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 58ch;
}

.hero-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--slate-text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.375rem;
}

/* ============================================================
   Positioning — sand band, label | lede | framed figure
   ============================================================ */
.intro {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 3fr 2fr; /* 60 / 40 */
  gap: var(--space-5) 4rem;
  align-items: start;
}
@media (max-width: 899px) {
  .intro-grid { grid-template-columns: 1fr; }
}

.intro-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.intro-lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 30em;
}

.intro-support {
  font-size: 1.03125rem;
  line-height: 1.65;
  max-width: 62ch;
}

.intro-figure {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.intro-figure img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: left bottom;
  border: 1px solid var(--line);
}
/* ============================================================
   Services — full-width title | description rows
   ============================================================ */
.services { border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.service-rows { display: flex; flex-direction: column; }

.service-row {
  display: grid;
  /* description column = 40%, flush to the container's right edge like the
     other two-column sections */
  grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
  gap: 0.375rem 4rem;
  border-top: 1px solid var(--line);
  padding: 1.375rem 0;
  align-items: start;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-row h3 {
  font-size: 1.375rem;
  line-height: 1.3;
}
@media (max-width: 899px) {
  .service-row { grid-template-columns: 1fr; }
}

.service-row h3 a {
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
  padding-block: 0.6rem;  /* invisible 44px+ hit area */
  margin-block: -0.6rem;
}
.service-row h3 a:hover,
.service-row h3 a:focus-visible {
  color: var(--ink-hover);
  text-decoration: underline;
  text-decoration-color: var(--slate);
  text-underline-offset: 4px;
}

.service-row p {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--muted);
}

.services-note {
  margin-top: var(--space-4);
  font-size: 0.84375rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: none;
}
.services-note strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Fit — copy | sand card with checks
   ============================================================ */
.fit { border-bottom: 1px solid var(--line); }

.fit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) 4.5rem;
  align-items: flex-start;
}

.fit-copy {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}
.fit-copy p { font-size: 1rem; max-width: 58ch; }

.fit-figure {
  flex: 1 1 100%; /* own full-width row under the two text columns */
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.fit-figure img {
  width: 100%;
  height: clamp(240px, 26vw, 340px);
  object-fit: cover;
  object-position: center; /* photo band: desk items stay in frame at all widths */
  border: 1px solid var(--line);
}

.fit-card {
  flex: 1 1 380px;
  min-width: 0;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fit-card-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--ink);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.check-list li {
  display: flex;
  gap: 0.875rem;
  align-items: baseline;
  font-size: var(--text-md);
  line-height: 1.6;
}
.check-list .icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  position: relative;
  top: 2px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

/* ============================================================
   Insurance — sand band, copy | payer grid
   ============================================================ */
.insurance {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) 4.5rem;
  align-items: flex-start;
}

.insurance-body {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}
.insurance-body p { font-size: 1rem; max-width: 58ch; }
.insurance-body strong { color: var(--ink); font-weight: 600; }
.insurance-body--wide p { max-width: none; }

.insurance-link {
  align-self: flex-start;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--slate);
  text-underline-offset: 4px;
  display: inline-block;
  padding-block: 0.7rem;  /* 44px hit area */
  margin-block: -0.7rem;
}
.insurance-link:hover { color: var(--ink-hover); }

.payers {
  flex: 1.6 1 740px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.payer-grid {
  list-style: none;
  display: grid;
  /* wide enough that every plan name holds a single line at default text
     spacing; min() keeps 320px viewports from overflowing (WCAG 1.4.10) and
     names may wrap rather than truncate when users override text spacing
     (WCAG 1.4.12) */
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 0 2.5rem;
}
.payer-grid li {
  border-top: 1px solid var(--line);
  padding: 0.625rem 0;
  font-size: 0.90625rem;
  color: var(--body);
}

/* ---- Payer logo carousel: continuous marquee, decorative ---- */
.payer-carousel {
  margin-top: var(--space-5);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.payer-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
}
.payer-track img { width: auto; height: 48px; }

@media (prefers-reduced-motion: no-preference) {
  .payer-track { animation: payer-scroll 55s linear infinite; }
  .payer-carousel:hover .payer-track { animation-play-state: paused; }

  @keyframes payer-scroll {
    to { transform: translateX(calc(-50% - 2rem)); } /* one set + half the seam gap */
  }
}
@media (prefers-reduced-motion: reduce) {
  /* static strip, not a scroll region — an aria-hidden scroller becomes an
     unlabeled tab stop; the full payer list is in the adjacent text grid */
  .payer-carousel { overflow: hidden; }
}

.insurance-disclaimer {
  margin-top: var(--space-5);
  font-size: 0.78125rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: none;
}

/* ============================================================
   Steps — numeral cards on ruled columns
   ============================================================ */
.step-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem 2rem;
}

.step-list li {
  border-top: 1px solid var(--ink);
  padding-top: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.875rem;
  color: var(--slate-text);
}

.step-list h3 {
  font-size: 1.3125rem;
  line-height: 1.3;
}

.step-list p {
  font-size: 0.90625rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ============================================================
   Final CTA — ink band, centered
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ink scrim keeps paper text ≥8.7:1 over the lightest wash pixel */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(27, 39, 64, 0.9) 0%,
    rgba(27, 39, 64, 0.78) 55%,
    rgba(27, 39, 64, 0.9) 100%
  );
}

.cta-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.625rem;
  text-align: center;
}

.cta h2 {
  color: var(--paper);
  font-size: clamp(2.125rem, 4.2vw, 2.875rem);
  line-height: 1.12;
}

.cta p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(247, 245, 241, 0.82);
  max-width: 58ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-top: 0.375rem;
}

/* white focus ring on the ink band (slate is invisible there) */
.cta :focus-visible { outline-color: var(--paper); }

/* ============================================================
   Footer — light, label-column contact rows
   ============================================================ */
.site-footer { background: var(--paper); }

.footer-grid {
  padding-block: 5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) 5rem;
  align-items: flex-start;
}

.footer-brand {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-brand img { width: 130px; }
.footer-division { font-size: 0.84375rem; line-height: 1.6; color: var(--muted); }

.footer-col {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.footer-col:last-child { flex: 0 1 220px; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-text);
}

.footer-rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
  font-size: var(--text-sm);
  line-height: 1.55;
}
.footer-rows li { display: flex; gap: 0.75rem; }
.footer-rows .label { flex: 0 0 56px; color: var(--muted); }
.footer-rows a, .footer-rows .val { color: var(--ink); }
.footer-rows a {
  text-decoration: none;
  display: inline-block;
  padding-block: 0.55rem;
  margin-block: -0.55rem;
}
.footer-rows a:hover { text-decoration: underline; text-decoration-color: var(--slate); }

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
  font-size: var(--text-sm);
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.55rem;
  margin-block: -0.55rem;
}
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--slate); }

@media (max-width: 899px) {
  .footer-rows li, .footer-links li { padding: 0.28rem 0; } /* ~44px touch rhythm */
}

.footer-bottom { padding-top: var(--space-5); }

.crisis-line {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
  max-width: none;
}
.crisis-line strong { color: var(--ink); font-weight: 600; }
.crisis-line a {
  color: var(--ink);
  font-weight: 600;
  display: inline-block;
  padding: 0.6rem 0.4rem;
  margin: -0.6rem -0.4rem;
}

.footer-legal-row {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer-legal { font-size: 0.78125rem; color: var(--muted); }

.footer-legal-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.footer-legal-links a {
  font-size: 0.78125rem;
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  padding: 0.65rem 0.5rem;
  margin: -0.65rem -0.5rem;
}
.footer-legal-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--slate); }

/* ============================================================
   Interior pages — shared components
   ============================================================ */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero .container {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.page-hero h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  max-width: 24ch;
}

.band-sand {
  background: var(--sand);
  border-block: 1px solid var(--line);
}

.section-head p { font-size: 1rem; max-width: none; }
.section-head p strong { color: var(--ink); font-weight: 600; }

.section-action { margin-top: 2rem; }

.prose-block {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  max-width: 72ch;
  margin-bottom: 2.5rem;
}
.prose-block p { font-size: 1rem; }

/* Two-column content split, same 60/40 rhythm as the homepage */
.duo-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-5) 4rem;
  align-items: start;
}
@media (max-width: 899px) {
  .duo-grid { grid-template-columns: 1fr; }
}
.duo-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}
.duo-copy p { font-size: 1rem; max-width: 62ch; }

/* tighter internal rhythm when the column must level with a neighbour */
.duo-copy--tight { gap: 0.875rem; }
.duo-copy--tight .section-action { margin-top: 0; }

/* a card shorter than its neighbouring copy sits optically centered */
.duo-grid > .sand-card,
.duo-grid > .notice { align-self: center; }

/* narrower copy column so both sides run equal height */
.duo-grid--half { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 899px) {
  .duo-grid--half { grid-template-columns: 1fr; }
}

/* figures beside copy stretch to exactly the copy column's height —
   the image is absolutely positioned so its intrinsic ratio never
   inflates the grid row */
.duo-grid > .intro-figure,
.duo-grid > .portrait-figure {
  align-self: stretch;
  min-width: 0;
  position: relative;
}
.duo-grid > .intro-figure img,
.duo-grid > .portrait-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.duo-grid > .portrait-figure img { object-position: center top; }
@media (max-width: 899px) {
  .duo-grid > .intro-figure,
  .duo-grid > .portrait-figure { position: static; }
  .duo-grid > .intro-figure img,
  .duo-grid > .portrait-figure img { position: static; height: 300px; }
  .duo-grid > .portrait-figure img { height: 420px; }
}

/* stacked cards in a duo column */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* Bordered cards — fixed 3-up on desktop so rows always resolve evenly:
   7 cards close with a full-width feature, 5 cards close 2|1 on one row */
.card-trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .card-trio { grid-template-columns: repeat(3, 1fr); }
  .card-trio > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .card-trio > :nth-child(4):nth-last-child(2) { grid-column: span 2; }
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.info-card h3 { font-size: 1.25rem; line-height: 1.3; }
.card-icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--slate-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.25rem;
}
.info-card p { font-size: var(--text-md); line-height: 1.6; color: var(--muted); }
.info-card h3 a {
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
  padding-block: 0.6rem;
  margin-block: -0.6rem;
}
.info-card h3 a:hover,
.info-card h3 a:focus-visible {
  color: var(--ink-hover);
  text-decoration: underline;
  text-decoration-color: var(--slate);
  text-underline-offset: 4px;
}

/* Sand utility card (checklists, credentials) */
.sand-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}
.sand-card-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--ink);
}
.sand-card p:not(.sand-card-lead) { font-size: var(--text-md); line-height: 1.65; }

/* tighter checklist so the card levels with a shorter copy column */
.sand-card--compact { padding: 1.875rem 2.25rem; gap: 1rem; }
.sand-card--compact .check-list { gap: 0.5rem; }

/* full-measure card text */
.sand-card--wide p { max-width: none; }
.band-sand .sand-card { background: var(--white); }

.label-rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--text-sm);
  line-height: 1.55;
}
.label-rows li { display: flex; gap: 0.875rem; }
.label-rows .label { flex: 0 0 92px; color: var(--muted); }
.label-rows .val { color: var(--ink); }

/* Soft callout / notice */
.notice {
  background: var(--sand);
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.notice p { font-size: var(--text-md); line-height: 1.65; max-width: none; }
.notice p + p { margin-top: 0.75rem; }
.notice strong { color: var(--ink); font-weight: 600; }
.notice h2, .notice h3 { font-size: 1.1875rem; margin-bottom: 0.625rem; }
.band-sand .notice, .sand-card .notice { background: var(--white); }

/* Compact scope list — 2×2 on desktop so four items always balance */
.scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem 3rem;
}
@media (min-width: 900px) {
  .scope-list { grid-template-columns: repeat(2, 1fr); }
}
.scope-list h3 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 600; }
.scope-list p { font-size: var(--text-md); line-height: 1.6; color: var(--muted); margin-top: 0.375rem; }

/* Fee cards — full-width pair, slate accent bar, display-size price */
.fee-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.fee-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--slate);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.fee-amount {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3rem;
  color: var(--ink);
  line-height: 1;
}
.fee-card h3 { font-size: 1.3125rem; }
.fee-divider {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  margin: 0.375rem 0;
}
.fee-card p { font-size: var(--text-md); line-height: 1.6; color: var(--muted); }
.fee-card .btn {
  margin-top: auto; /* bottoms align across the pair */
  align-self: flex-start;
}
.fee-card p:last-of-type { margin-bottom: 0.625rem; } /* min gap above the button */

/* breathing room when the Medicare notice closes the payers section */
.insurance-disclaimer + .notice { margin-top: var(--space-5); }

/* FAQ accordion */
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 2rem;
}
.jump-links a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0.55rem 0.95rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.jump-links a:hover { border-color: var(--slate); color: var(--ink-hover); }

/* Docs-style FAQ layout: sticky category rail | questions */
.faq-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-5) 4rem;
  align-items: start;
  margin-top: var(--space-5);
}
.faq-rail {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
}
.faq-rail a {
  display: block;
  padding: 0.55rem 1rem;
  border-left: 2px solid var(--line);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.faq-rail a:hover { color: var(--ink); }
.faq-rail a.active {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--slate);
  background: linear-gradient(90deg, rgba(92, 115, 150, 0.09), transparent 85%);
}
@media (max-width: 1023px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.625rem;
  }
  .faq-rail a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 0.55rem 0.95rem;
  }
  .faq-rail a.active { border-color: var(--slate); background: var(--white); }
}

/* Live filter — sticks just under the 73px site header while the list scrolls */
.faq-search {
  position: sticky;
  top: 72px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
  padding: 0.875rem 0;
  background: var(--paper);
}
.faq-search input {
  width: 100%;
  max-width: 34rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: var(--text-md);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--slate); /* ≥3:1 boundary vs white + paper (WCAG 1.4.11) */
  border-radius: var(--radius);
}
.faq-search input::placeholder { color: var(--muted); }
.faq-search input:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; }
.faq-search-count { font-size: var(--text-xs); color: var(--muted); min-height: 1.2em; }

.faq-group { scroll-margin-top: 13.5rem; } /* header + stuck search bar */
/* keyboard focus must also clear the sticky stack, not just anchor jumps */
details.faq summary, .faq-rail a { scroll-margin-top: 14rem; }
/* at high zoom / short viewports the sticky stack would eat the reading
   window — let the filter scroll away instead */
@media (max-height: 500px) {
  .faq-search { position: static; }
  .faq-group { scroll-margin-top: 6rem; }
  details.faq summary, .faq-rail a { scroll-margin-top: 6rem; }
}
.faq-group + .faq-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.faq-group h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
}
.group-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--slate-text);
  letter-spacing: 0.02em;
}
/* group intro line (policy summary under the heading, unboxed) */
.group-intro {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  max-width: none;
  margin: 0.25rem 0 1.25rem;
}

details.faq { border-top: 1px solid var(--line); }
details.faq:last-child { border-bottom: 1px solid var(--line); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.125rem 0.25rem;
  font-weight: 600;
  font-size: 1.0313rem;
  line-height: 1.45;
  color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; /* fallback for browsers without alt-text syntax */
  content: "+" / ""; /* keep the glyph out of the accessible name */
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--slate-text);
  line-height: 1;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
details.faq[open] summary::after { transform: rotate(45deg); } /* + becomes × */
details.faq summary:hover { color: var(--ink-hover); }
details.faq summary:hover,
details.faq[open] summary {
  background: linear-gradient(90deg, rgba(92, 115, 150, 0.06), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  details.faq[open] .faq-a { animation: faq-open 240ms cubic-bezier(0.2, 0.7, 0.3, 1); }
  @keyframes faq-open {
    from { opacity: 0; transform: translateY(-4px); }
  }
}
.faq-a { padding: 0 0.25rem 1.375rem; }
.faq-a p { font-size: var(--text-md); line-height: 1.65; color: var(--body); max-width: 75ch; }
.faq-a p + p { margin-top: 0.625rem; }
.faq-a .btn { margin-top: 0.875rem; }

/* Contact cards + map */
.contact-cards {
  display: grid;
  /* five short cards resolve to a single even row on desktop */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-card .eyebrow { font-size: 0.6875rem; }
.contact-card .big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--ink);
  line-height: 1.3;
}
.contact-card .big a { text-decoration: none; color: inherit; }
.contact-card .big a:hover { color: var(--ink-hover); }
.contact-card p { font-size: var(--text-xs); line-height: 1.6; color: var(--muted); }

.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.map-card iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}
/* beside a copy column the map runs the full column height */
.duo-grid > .map-card { align-self: stretch; }
.duo-grid > .map-card iframe { height: 100%; min-height: 380px; }

/* crisis notice closing a guidance section */
.scope-list + .notice { margin-top: var(--space-5); }

/* Service detail rows (services page) */
.detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 52%);
  gap: 0.5rem 4rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  align-items: start;
  scroll-margin-top: 6.5rem;
}
.detail-row:first-of-type { border-top: 0; }
.detail-row:last-child { border-bottom: 1px solid var(--line); }
.detail-row h2 { font-size: 1.625rem; line-height: 1.25; }
.detail-row p { font-size: 1rem; line-height: 1.65; color: var(--body); }
.detail-row p + p { margin-top: 0.75rem; }
@media (max-width: 899px) {
  .detail-row { grid-template-columns: 1fr; }
}

/* Full-width figure sitting under the services ledger */
.services-note + .fit-figure { margin-top: var(--space-4); }

/* Generic interior content (page.php fallback) */
.page-title { margin-bottom: 1rem; }
.page-content p + p { margin-top: 1rem; }

@media print {
  .jump-links, .map-card { display: none; }
}

/* ============================================================
   Motion — hero entrance, ambient parallax, gentle reveals
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance: copy rises in sequence. .hero-enter added by JS —
     without JS nothing is ever hidden. */
  .hero-enter .hero-grid > * {
    opacity: 0;
    animation: hero-rise 620ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  }
  .hero-enter .hero-grid > :nth-child(1) { animation-delay: 60ms; }
  .hero-enter .hero-grid > :nth-child(2) { animation-delay: 140ms; }
  .hero-enter .hero-grid > :nth-child(3) { animation-delay: 220ms; }
  .hero-enter .hero-grid > :nth-child(4) { animation-delay: 300ms; }
  .hero-enter .hero-grid > :nth-child(5) { animation-delay: 380ms; }

  .hero-enter .hero-bg { animation: hero-settle 1300ms ease-out; }

  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes hero-settle {
    from { transform: translate3d(0, 0, 0) scale(1.16); }
    to   { transform: translate3d(0, 0, 0) scale(1.1); }
  }

  /* Scroll reveals: section openers and grid items rise once.
     Gated on html.reveal-ready (added by JS) so no-JS visitors never
     see hidden content. */
  .reveal-ready .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 560ms cubic-bezier(0.2, 0.7, 0.3, 1),
                transform 560ms cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .reveal-ready .reveal.in { opacity: 1; transform: none; }

  /* Desktop nav underline grows in */
  @media (min-width: 900px) {
    .site-nav ul a { position: relative; }
    .site-nav ul a:not([aria-current="page"])::after {
      content: "";
      position: absolute;
      left: 0;
      right: 100%;
      bottom: 0;
      height: 1.5px;
      background: var(--slate);
      transition: right 200ms ease;
    }
    .site-nav ul a:not([aria-current="page"]):hover::after,
    .site-nav ul a:not([aria-current="page"]):focus-visible::after { right: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal-updated {
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-text);
}

.legal-body { max-width: none; }
.legal-body p { max-width: none; }

.legal-body h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: var(--space-5) 0 0.875rem;
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body p + p { margin-top: 0.875rem; }

.legal-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.875rem;
}
.legal-body li { padding-left: 0.25rem; }
.legal-body li + li { margin-top: 0.625rem; }
.legal-body li::marker { color: var(--slate); }
.legal-body strong { color: var(--ink); font-weight: 600; }

.legal-body .notice { margin-top: var(--space-4); }

/* ============================================================
   Print
   ============================================================ */
@media print {
  .site-header { position: static; box-shadow: none; }

  .nav-toggle, .nav-cta, .site-nav, .skip-link, .hero-bg, .cta-bg, .payer-carousel { display: none; }

  .hero::before, .cta::before { display: none; }
  .hero, .intro, .insurance, .cta, .fit-card { background: none; }
  .hero-grid { padding-block: 1.5rem; }

  .reveal { opacity: 1 !important; transform: none !important; }

  /* ink band text must not vanish when backgrounds are skipped */
  .cta h2 { color: var(--ink); }
  .cta p { color: var(--body); }

  .btn, .btn-primary, .btn-light, .btn-ghost-light {
    background: none;
    border: 1.5px solid var(--ink);
    color: var(--ink);
  }

  /* expose the booking destination on paper */
  .footer-links a[href^="http"]:not([href*="nhpsychiatry.org"])::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    font-weight: 400;
  }
}
