/* ==========================================================================
   Pellionisz Psychiatry — design system
   Single stylesheet. No build step, no framework.

   To re-skin the whole site, edit the tokens in :root below.
   Everything else derives from them.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand — deep navy + warm brass, on warm off-white */
  --navy-900: #05121f;
  --navy-800: #011627;
  --navy-700: #0b2447;
  --navy-600: #16355c;
  --navy-500: #27496d;

  /* --brass-600 is a *text* tone: .eyebrow, .link-arrow, .notice__title, .btn.
     It must clear WCAG 2.2 AA 4.5:1 on every background it lands on, so it is
     darker than it looks like it needs to be. Measured: 5.81:1 on --cream,
     5.37:1 on --cream-alt, 6.06:1 on --paper, 5.16:1 on --brass-100 (.tag).
     Do not lighten it back toward --brass-500 without re-measuring all four. */
  --brass-600: #7d5d26;
  --brass-500: #b8924f;
  --brass-400: #c8a46a;
  --brass-300: #ddc79c;
  --brass-100: #f4ecdd;

  --cream: #fbfaf7;
  --cream-alt: #f4f1ea;
  --paper: #ffffff;

  --ink: #16202b;
  --ink-soft: #4a5665;
  /* --ink-faint carries real content at body size — .field label, thead th,
     caption, .crumbs, .card__meta, .field__hint, .form__note, .article__meta,
     .post-date, .muted, .small, figcaption — so it is held to 4.5:1, not to the
     3:1 large-text exception. Measured: 5.20:1 on --cream, 4.81:1 on
     --cream-alt, 5.43:1 on --paper. Never use it on the navy surfaces. */
  --ink-faint: #5f6b7a;
  --line: #e3ded4;
  --line-strong: #cec7b9;

  --alert-bg: #fdf4f2;
  --alert-line: #d9755f;
  --alert-ink: #8c2f19;

  /* The keyboard focus ring, and the only thing it is for. WCAG 2.2 SC 1.4.11
     wants 3:1 against the *adjacent* colour, and focus lands on both the light
     surfaces and the navy ones (header, footer, .cta-band, .section--navy), so
     the ring has to clear 3:1 in both directions at once. This value does:
     4.09:1 on --cream, 3.78:1 on --cream-alt, 4.27:1 on --paper, 3.64:1 on
     --brass-100, 3.55:1 on the hero gradient, 4.30:1 on --navy-800, 4.42:1 on
     --navy-900. --brass-500 was used here previously and only manages 2.77:1 on
     --cream, so it failed on every light page. Anything lighter fails on cream;
     anything much darker fails on navy. Re-measure both ends before changing. */
  --focus-ring: #9a7433;

  /* Typography */
  --font-display: 'Playfair Display', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.38rem);
  --step-2: clamp(1.45rem, 1.28rem + 0.85vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 4rem);

  /* Space */
  --gap: 1.5rem;
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --radius: 3px;
  --radius-lg: 6px;

  --container: 1180px;
  --container-narrow: 760px;
  --container-mid: 960px;

  --shadow-sm: 0 1px 2px rgba(1, 22, 39, .06), 0 4px 12px rgba(1, 22, 39, .05);
  --shadow-md: 0 2px 6px rgba(1, 22, 39, .08), 0 18px 40px rgba(1, 22, 39, .09);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.68;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* `clip`, not `hidden`: `hidden` would make <body> its own scroll container,
     which breaks scroll anchoring and sticky positioning. */
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-700);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.28;
  color: var(--navy-800);
}
h4 {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--navy-800);
}

p { text-wrap: pretty; }
p + p { margin-top: 1.1em; }

a {
  color: var(--navy-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--brass-400);
  transition: color .18s var(--ease), text-decoration-color .18s var(--ease);
}
a:hover { color: var(--brass-600); text-decoration-color: var(--brass-600); }

strong, b { font-weight: 600; color: var(--navy-800); }

/* Eyebrow / kicker — the letterspaced caps line above headings */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-600);
  margin-bottom: 1.1rem;
  display: block;
}
.eyebrow--light { color: var(--brass-300); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 44ch;
}
.lede--wide { max-width: 62ch; }

.prose { max-width: 68ch; color: var(--ink-soft); }
.prose h3 { margin-top: 2.2rem; margin-bottom: .6rem; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 1.1rem 0 1.1rem 1.2rem; }
.prose li + li { margin-top: .5rem; }
.prose li::marker { color: var(--brass-500); }

.muted { color: var(--ink-faint); }
.small { font-size: var(--step--1); }
.center { text-align: center; }
.center .lede, .center .prose { margin-left: auto; margin-right: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--navy-800); color: #fff; padding: .8rem 1.2rem;
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.6rem, 5vw, 4.2rem); }
.section--alt { background: var(--cream-alt); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-800); color: #d8dee7; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy .lede, .section--navy .prose { color: #b9c4d2; }
.section--navy a { color: var(--brass-300); text-decoration-color: var(--brass-500); }
.section--navy a:hover { color: var(--brass-400); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; }

.rule { height: 1px; background: var(--line); border: 0; margin-block: clamp(2.5rem, 5vw, 4rem); }
.rule--short { width: 64px; height: 2px; background: var(--brass-400); margin-inline: 0; }
.center > .rule--short, .rule--short.center { margin-inline: auto; }

.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* Top-margin utilities. Use these to push a single block down — never an inline
   style="margin-top:..." attribute. The Content-Security-Policy in /_headers has
   no 'unsafe-inline' in style-src, so inline style attributes are stripped in
   production while still working in local preview: the spacing silently collapses
   only on the live site. Keep to this three-step scale rather than adding one-offs. */
.mt-sm { margin-top: 1.5rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 2.5rem; }

.grid { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

/* Two-column split: media beside text, alternating */
.split {
  display: grid;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right .split__media { order: 2; }
  .split--narrow-media { grid-template-columns: 5fr 7fr; }
}
.split__media img, .split__media svg {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split__media figcaption { font-size: var(--step--1); color: var(--ink-faint); margin-top: .7rem; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-sans);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid var(--brass-500);
  background: transparent;
  color: var(--brass-600);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover {
  background: var(--brass-500); color: #fff; border-color: var(--brass-500);
  transform: translateY(-1px);
}
.btn--solid { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn--solid:hover { background: var(--brass-600); border-color: var(--brass-600); color: #fff; }
.btn--light { border-color: var(--brass-300); color: var(--brass-300); }
.btn--light:hover { background: var(--brass-300); border-color: var(--brass-300); color: var(--navy-800); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink-soft); }
.btn--ghost:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn--sm { padding: .72rem 1.3rem; font-size: .7rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

/* Text link with arrow */
.link-arrow {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-600); text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
}
.link-arrow::after { content: "\2192"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.9rem;
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-serif); font-size: .95rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: #fff;
}
.brand__role {
  font-family: var(--font-sans); font-size: .58rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass-400);
  margin-top: .18rem;
}

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a, .nav__toggle {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .04em; color: #dfe5ee; text-decoration: none;
  padding: .6rem .85rem; border-radius: var(--radius);
  background: none; border: 0;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: color .18s var(--ease), background-color .18s var(--ease);
  white-space: nowrap;
}
.nav a:hover, .nav__toggle:hover { color: var(--brass-300); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--brass-300); }
.nav .btn { margin-left: .7rem; padding: .68rem 1.25rem; font-size: .68rem; }
.nav .btn:hover { color: #fff; }

/* Dropdown */
.nav__item { position: relative; }
.nav__toggle::after {
  content: ""; width: .42em; height: .42em; margin-top: -.22em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.nav__item[data-open="true"] .nav__toggle::after { transform: rotate(-135deg) translate(-.1em, -.1em); }
.nav__menu {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 13rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: .5rem; display: none; flex-direction: column;
}
.nav__item[data-open="true"] .nav__menu { display: flex; }
.nav__menu a { color: var(--ink); padding: .6rem .8rem; font-size: .84rem; }
.nav__menu a:hover { color: var(--navy-700); background: var(--cream-alt); }

.nav__burger {
  display: none; background: none; border: 0; padding: .55rem;
  width: 2.75rem; height: 2.75rem;
}
.nav__burger span {
  display: block; height: 1.5px; width: 22px; background: #fff; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 63rem) {
  .nav__burger { display: block; }
  .nav {
    position: fixed; inset: 4.9rem 0 auto 0;
    background: var(--navy-800); flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem clamp(1.15rem, 4vw, 2.5rem) 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    max-height: calc(100dvh - 4.9rem); overflow-y: auto;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a, .nav__toggle { padding: .85rem .2rem; font-size: .95rem; width: 100%; justify-content: flex-start; }
  .nav__toggle::after { margin-left: auto; }
  .nav__menu {
    position: static; display: none; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 .5rem 1rem;
  }
  .nav__item[data-open="true"] .nav__menu { display: flex; }
  .nav__menu a { color: #b9c4d2; padding: .6rem .2rem; }
  .nav__menu a:hover { background: transparent; color: var(--brass-300); }
  .nav .btn { margin: 1rem 0 0; width: 100%; padding: .95rem 1rem; font-size: .74rem; }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid; align-items: center;
  min-height: min(78vh, 640px);
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
  background: linear-gradient(180deg, #eef2f6 0%, #e4ebf1 45%, var(--cream) 100%);
  overflow: hidden;
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__inner { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero .lede { margin: 1.6rem auto 0; max-width: 52ch; color: var(--navy-600); font-weight: 300; }
.hero__tagline {
  margin-top: 1.5rem; font-size: .74rem; font-weight: 600;
  letter-spacing: .19em; text-transform: uppercase; color: var(--brass-600);
}

/* Interior page hero — shorter, navy */
.hero--page {
  min-height: 0; text-align: left;
  background: var(--navy-800);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.hero--page h1 { color: #fff; max-width: 20ch; margin-inline: 0; font-size: var(--step-3); }
.hero--page .lede { color: #b9c4d2; margin-inline: 0; margin-top: 1.3rem; }
.hero--page .eyebrow { color: var(--brass-400); }
.hero--page .hero__bg { opacity: .18; }

/* Breadcrumb */
.crumbs { font-size: var(--step--1); color: var(--ink-faint); padding-top: 1.4rem; }
.crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--brass-600); }
.crumbs span[aria-hidden] { padding-inline: .45rem; }

/* --------------------------------------------------------------------------
   8. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { border-color: var(--brass-300); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin: 0; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card__meta { margin-top: auto; padding-top: .6rem; font-size: var(--step--1); color: var(--ink-faint); }
.card--flat:hover { transform: none; box-shadow: none; }

/* Numbered service card. The number is real text at .95rem, so it is held to
   4.5:1 like any other body-size text — --brass-500 would be 2.89:1 on the
   card's --paper background. */
.card__num {
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  color: var(--brass-600); letter-spacing: .06em;
}
.card__icon { width: 34px; height: 34px; color: var(--brass-500); }

/* Tag / pill */
.tag {
  align-self: flex-start;
  font-size: .63rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brass-600); background: var(--brass-100);
  padding: .3rem .65rem; border-radius: 100px;
}
.tag--navy { color: var(--navy-700); background: #e7ecf3; }

/* Feature list with brass rule (used for services on home) */
.feature {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.4rem, 2.5vw, 2rem);
  display: grid; gap: .5rem 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) { .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature h3 { color: var(--navy-700); }
.feature p { color: var(--ink-soft); }

/* Credential / fact list */
.factlist { list-style: none; margin: 0; padding: 0; }
.factlist li {
  padding: .95rem 0; border-bottom: 1px solid var(--line);
  display: grid; gap: .15rem .5rem;
}
.factlist li:first-child { border-top: 1px solid var(--line); }
.factlist dt, .factlist .label {
  font-size: .68rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-faint);
}
.factlist dd, .factlist .value { margin: 0; color: var(--ink); }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--paper); padding: 1.4rem 1.5rem; }
.stat__num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--brass-600); line-height: 1; }
.stat__label { font-size: var(--step--1); color: var(--ink-faint); margin-top: .45rem; }

/* Numbered process steps */
.steps { counter-reset: step; display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }
.step { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; align-items: start; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  /* Generated content, but still text a screen reader and a sighted reader both
     use, so 4.5:1 applies. --brass-500 measured 2.89:1 here. */
  color: var(--brass-600); border-top: 2px solid var(--brass-400);
  padding-top: .55rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   9. QUOTE / TESTIMONIAL
   -------------------------------------------------------------------------- */
.pullquote {
  font-family: var(--font-display); font-size: var(--step-2);
  font-style: italic; font-weight: 400; line-height: 1.35;
  color: var(--navy-700); max-width: 24ch;
}
.pullquote--wide { max-width: 34ch; }
.pullquote cite {
  display: block; margin-top: 1.4rem;
  font-family: var(--font-sans); font-size: .78rem; font-style: normal;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-600);
}
.section--navy .pullquote { color: #fff; }
.section--navy .pullquote cite { color: var(--brass-300); }

.testimonial {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.testimonial blockquote { font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.testimonial figcaption { font-size: var(--step--1); color: var(--ink-faint); margin-top: auto; }

/* --------------------------------------------------------------------------
   10. TABLES (fees)
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 2rem; }
table { width: 100%; border-collapse: collapse; min-width: 34rem; background: var(--paper); }
caption { text-align: left; font-size: var(--step--1); color: var(--ink-faint); padding-bottom: .8rem; }
th, td { text-align: left; padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint);
  background: var(--cream-alt); border-bottom: 1px solid var(--line-strong);
}
tbody tr:last-child td { border-bottom: 1px solid var(--line-strong); }
td.price { font-family: var(--font-display); font-weight: 700; color: var(--navy-700); white-space: nowrap; }
td .duration { display: block; font-size: var(--step--1); color: var(--ink-faint); margin-top: .2rem; }

/* --------------------------------------------------------------------------
   11. ACCORDION (native details)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); margin-top: 2rem; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer;
  padding: 1.35rem 2.5rem 1.35rem 0; position: relative;
  font-family: var(--font-serif); font-size: 1.03rem; font-weight: 700;
  color: var(--navy-800); line-height: 1.4;
  transition: color .18s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--brass-600); }
.accordion summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.75rem;
  width: .5em; height: .5em;
  border-right: 1.5px solid var(--brass-500); border-bottom: 1.5px solid var(--brass-500);
  transform: rotate(45deg); transition: transform .22s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translate(-.12em, -.12em); }
.accordion .accordion__body { padding: 0 2.5rem 1.6rem 0; color: var(--ink-soft); max-width: 68ch; }
.accordion .accordion__body > * + * { margin-top: .9rem; }

/* --------------------------------------------------------------------------
   12. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .42rem; }
.field label {
  font-size: .69rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.field .req { color: var(--alert-line); }
.field input, .field textarea, .field select {
  padding: .85rem .95rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font-size: .97rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  width: 100%;
}
/* Focus on form controls. The border tint and glow are a *secondary* affordance
   only — at 2.9:1 against the white field they are nowhere near the 3:1 that
   WCAG 2.2 SC 1.4.11 requires of a focus indicator, so they must never be the
   whole indicator. Do not reintroduce `outline: none` here: this selector is
   more specific than the global :focus-visible rule and would silently delete
   the site's only conforming focus indicator on exactly the controls where
   keyboard users need it most. */
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brass-500);
  box-shadow: 0 0 0 3px rgba(184, 146, 79, .18);
}
/* Same ring as everywhere else, just pulled in to 2px so it does not collide
   with the 3px glow above. */
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field__hint { font-size: var(--step--1); color: var(--ink-faint); text-transform: none; letter-spacing: 0; font-weight: 400; }
.form__note { font-size: var(--step--1); color: var(--ink-faint); }
.form__status { font-size: .93rem; padding: .9rem 1.1rem; border-radius: var(--radius); display: none; }
.form__status[data-state="ok"] { display: block; background: #eef6f0; border: 1px solid #a8cbb4; color: #1f5c39; }
.form__status[data-state="error"] { display: block; background: var(--alert-bg); border: 1px solid var(--alert-line); color: var(--alert-ink); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   13. NOTICES
   -------------------------------------------------------------------------- */
.notice {
  border-left: 3px solid var(--brass-500);
  background: var(--brass-100);
  padding: 1.15rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem; color: var(--ink);
}
.notice > * + * { margin-top: .7rem; }
.notice__title {
  font-family: var(--font-sans); font-size: .69rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--brass-600);
  display: block; margin-bottom: .4rem;
}
.notice--alert { border-left-color: var(--alert-line); background: var(--alert-bg); }
.notice--alert .notice__title { color: var(--alert-ink); }
.notice--alert a { color: var(--alert-ink); }

/* Emergency banner — used on contact/resources */
.crisis {
  background: var(--alert-bg); border: 1px solid var(--alert-line);
  border-radius: var(--radius-lg); padding: clamp(1.2rem, 2.5vw, 1.7rem);
}
.crisis h3 { color: var(--alert-ink); font-size: 1.05rem; margin-bottom: .5rem; }
.crisis p { color: var(--ink); font-size: .95rem; }
.crisis a { color: var(--alert-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   14. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--navy-800); color: #fff;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: #b9c4d2; max-width: 52ch; margin: 1.2rem auto 0; }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #98a5b6; font-size: .9rem; padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
/* Footer column headings are h3, not h4: the last content heading on most pages is
   an h2, and h2 -> h4 is a skipped level (WCAG 1.3.1 / axe heading-order). The
   line-height is pinned to the base heading value so the h3 element rule (1.28)
   does not change the footer's rendering. */
.site-footer h3 {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brass-400);
  line-height: 1.1; margin-bottom: 1rem;
}
.site-footer a { color: #c3cede; text-decoration: none; }
.site-footer a:hover { color: var(--brass-300); text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: .6rem; }
.footer-brand .brand__name { font-size: 1rem; }
.footer-brand p { margin-top: 1rem; max-width: 30ch; line-height: 1.6; }
.footer-legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.6rem 2.2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  justify-content: space-between; align-items: center;
  font-size: .8rem; color: #6f7d90;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.5rem 2.5rem; font-size: .78rem; line-height: 1.6; color: #6f7d90; max-width: 90ch;
}

/* --------------------------------------------------------------------------
   16. RESOURCES / ARTICLE
   -------------------------------------------------------------------------- */
.article { max-width: 68ch; }
.article h2 { font-size: var(--step-2); margin-top: 2.6rem; margin-bottom: .8rem; }
.article h3 { margin-top: 2rem; margin-bottom: .5rem; }
.article p, .article li { color: var(--ink-soft); }
.article ul, .article ol { margin: 1.1rem 0 1.1rem 1.2rem; }
.article li + li { margin-top: .5rem; }
.article__meta { font-size: var(--step--1); color: var(--ink-faint); margin-bottom: 2rem; }
.article blockquote {
  border-left: 3px solid var(--brass-400); padding-left: 1.3rem;
  margin: 1.6rem 0; font-family: var(--font-serif); color: var(--navy-700);
}

.post-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 1.5rem 0; text-decoration: none; }
.post-list a:hover h3 { color: var(--brass-600); }
.post-list .post-date { font-size: var(--step--1); color: var(--ink-faint); display: block; margin-bottom: .35rem; }
.post-list p { color: var(--ink-soft); font-size: .95rem; margin-top: .4rem; max-width: 68ch; }

/* --------------------------------------------------------------------------
   17. PLACEHOLDERS
   Anything you still need to supply is wrapped in <span class="ph">[...]</span>
   and shows up highlighted. Add ?clean to any URL to preview without them.
   -------------------------------------------------------------------------- */
.ph {
  background: #fff3cd; color: #7a4b00;
  border-bottom: 2px dotted #d69e2e;
  padding: .1em .3em; border-radius: 2px;
  font-size: .93em; font-style: italic;
}
.ph::before { content: "\270E\00a0"; font-style: normal; opacity: .7; }
html[data-clean="true"] .ph { background: none; border: 0; color: inherit; font-style: normal; }
html[data-clean="true"] .ph::before { content: none; }
html[data-clean="true"] .ph-block { display: none; }
@media print { .ph { background: none; border: 0; } }

/* --------------------------------------------------------------------------
   18. MOTION
   -------------------------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   19. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav, .btn, .btn-row, .hero__bg { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
  a[href^="#"]::after, a[href^="mailto"]::after { content: ""; }
}
