/* =========================================================================
   Clarity Through Therapy — Ashley Smith, LPC · CPCS
   Design system: calming light blue, warm serif display, airy editorial layout.
   ========================================================================= */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  --paper:   #FCFCFA;   /* warm off-white base                 */
  --cloud:   #F4F9FC;   /* lightest blue-white                 */
  --mist:    #E7F0F7;   /* pale blue section tint              */
  --mist-2:  #DCEAF4;   /* slightly deeper tint                */
  --sky:     #6E9FC4;   /* brand light blue                    */
  --deep:    #3A6B97;   /* primary action / links              */
  --deepest: #204070;   /* hover / footer                      */
  --ink:     #283742;   /* primary text                        */
  --muted:   #586772;   /* secondary text                      */
  --glow:    #DDB082;   /* warm sand accent — used sparingly   */
  --line:    rgba(40, 55, 66, 0.10);
  --line-2:  rgba(58, 107, 151, 0.18);

  --shadow-sm: 0 1px 2px rgba(40,55,66,.04), 0 4px 14px rgba(44,83,119,.06);
  --shadow-md: 0 6px 18px rgba(44,83,119,.08), 0 18px 50px rgba(44,83,119,.10);

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 16px;

  /* one scale for every puzzle piece sitewide — pieces are composed at
     native size, so this is the only thing that sets their on-screen size */
  --piece-k: .896;
}

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* sticky header is 76px — keep anchored sections clear of it */
  scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--deepest); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink);
  line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .4em; font-optical-sizing: auto; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Eyebrow label --------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--deep); margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--sky); display: inline-block;
}
.eyebrow.center { justify-content: center; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: .85em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--deep); color: #fff; box-shadow: 0 6px 16px rgba(44,83,119,.22); }
.btn-primary:hover { background: var(--deepest); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(44,83,119,.28); }
.btn-ghost { background: transparent; color: var(--deep); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--mist); color: var(--deepest); transform: translateY(-2px); }
.btn-lg { padding: 1em 1.9em; font-size: 1.02rem; }

/* ---- Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 250, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { height: 42px; width: auto; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand-sub { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: .3em; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: .5em .85em; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: .96rem; letter-spacing: .005em;
}
.nav-links a:hover { color: var(--deep); background: var(--mist); }
.nav-links a.active { color: var(--deep); }
.nav-actions { display: flex; align-items: center; gap: .9rem; }

/* desktop: links + Contact Me button sit inline on the right */
.nav-menu { display: flex; align-items: center; gap: 1.3rem; }

.nav-toggle { display: none; }

/* ---- Hero ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--cloud); }
.hero::before {  /* soft tonal light wash — the "clarity" glow */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 18%, rgba(110,159,196,.30), transparent 60%),
    radial-gradient(50% 60% at 18% 85%, rgba(221,176,130,.12), transparent 60%),
    linear-gradient(180deg, var(--cloud), var(--paper));
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  /* copy and creds are separate cells stacked in the left column so the creds
     can be re-placed under the portrait on mobile. row-gap:0 because .hero-cred
     carries its own margin + rule as the divider. */
  grid-template-areas: "copy figure" "cred figure";
  column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 0;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.hero-copy { grid-area: copy; max-width: 33ch; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.05rem); font-weight: 400; line-height: 1.04;
  letter-spacing: -0.022em; margin-bottom: .35em;
}
.hero h1 .accent { font-style: italic; color: var(--deep); }
.hero-lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-cred {
  grid-area: cred; max-width: 33ch;   /* was inherited from .hero-copy before it became its own cell */
  margin-top: 2.1rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem;
}
.hero-cred b { color: var(--ink); font-weight: 700; font-family: var(--font-body); }

/* arched portrait */
/* NOTE: width intentionally left off the figure here. The figure shrink-to-fits
   its own width while the img inside asks for min(420px,78vw) capped by the
   reset's max-width:100% — the two define each other, and WebKit settles ~11%
   under the stated intent (374px rather than 420px). Desktop has always shipped
   that way, so it stays; the loop is broken only at <=900px, where the columns
   stack and the shortfall was visible against the phone's width. */
.hero-figure { position: relative; justify-self: center; }
.hero-figure .halo {
  position: absolute; inset: -8% -8% -4% -8%; z-index: 0;
  background: radial-gradient(closest-side, rgba(110,159,196,.35), transparent 72%);
  filter: blur(6px);
}
.portrait-arch {
  position: relative; z-index: 1;
  width: min(420px, 78vw); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  border-radius: 220px 220px 24px 24px;
  border: 8px solid #fff; box-shadow: var(--shadow-md);
}
.hero-badge {
  position: absolute; z-index: 2; right: -6px; bottom: 26px;
  background: #fff; border-radius: 14px; padding: .7rem 1rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .65rem; font-size: .82rem; line-height: 1.3;
  max-width: min(15rem, 62vw);
}
.hero-badge .badge-piece { width: 24px; height: auto; flex: 0 0 auto; transform: rotate(-8deg); opacity: .82; }
.hero-badge b { display: block; color: var(--ink); font-weight: 800; white-space: nowrap; }
.hero-badge span { color: var(--muted); }

/* ---- Sections -------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section.tint { background: var(--mist); }
.section.cloud { background: var(--cloud); }
.section-head { max-width: 56ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 400; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: .2em; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* two-column prose + media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.narrow-media { grid-template-columns: 1.15fr .85fr; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split-media.soft img { aspect-ratio: 5/4; }

/* pull quote */
.pullquote { border-left: 3px solid var(--sky); padding-left: 1.4rem; margin: 0;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem,2.4vw,1.7rem);
  line-height: 1.4; color: var(--ink); font-weight: 400; }

/* ---- Cards (focus / services / forms) -------------------------------- */
.card-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--mist);
  display: grid; place-items: center; margin-bottom: 1rem; color: var(--deep); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.22rem; font-weight: 500; margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card.tint { background: var(--cloud); }

/* services — detailed list rows */
.service { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start;
  padding: 1.8rem 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; }
/* --sky measured 2.76:1 on --paper; --deep is 5.48 and already in the palette. */
.service .num { font-family: var(--font-display); font-size: 1.05rem; color: var(--deep); font-weight: 600;
  padding-top: .2rem; font-feature-settings: "tnum"; }
/* flex + gap rather than the tag carrying margin-left: when a long title like
   "OCD & Anxiety Disorders" wraps, the pill drops to its own line and an inline
   margin left it indented off the text above it. */
/* h2, not h3: on Services these follow the page h1 directly, so h3 skipped a level. */
.service h2 { font-size: 1.45rem; font-weight: 500; margin-bottom: .25em;
  display: flex; flex-wrap: wrap; align-items: center; gap: .3em .6rem; }
.service .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--deep); background: var(--mist); padding: .25em .7em;
  border-radius: 999px; }
.service p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---- CTA band -------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--deep); color: #fff; }
.cta-band::before { content:""; position:absolute; inset:0;
  background: radial-gradient(70% 120% at 85% 10%, rgba(255,255,255,.16), transparent 55%); }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 400; max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 46ch; margin-top: .4em; }
.cta-band .btn-primary { background: #fff; color: var(--deep); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cta-band .btn-primary:hover { background: var(--cloud); color: var(--deepest); }

/* ---- Page header (interior pages) ------------------------------------ */
.page-hero { background: var(--cloud); position: relative; overflow: hidden;
  /* one shared height for every page hero, content vertically centred —
     otherwise each hero sizes to its own copy and the box jumps between tabs */
  display: flex; align-items: center; min-height: 380px; }
.page-hero::before { content:""; position:absolute; inset:0;
  background: radial-gradient(55% 80% at 85% 10%, rgba(110,159,196,.22), transparent 60%); }
.page-hero .wrap { position: relative; padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; max-width: 18ch; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 56ch; margin-top: .4em; }

/* ---- Booking band (Getting Started) --------------------------------- */
.booking-band { background: var(--cloud); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 4vw, 2.4rem); position: relative; overflow: hidden; }
.booking-band::before { content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(60% 90% at 88% 8%, rgba(110,159,196,.20), transparent 62%); }
.booking-band > * { position: relative; }
.booking-band h2 { margin-bottom: .35em; }
.booking-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 1.2rem; }
.booking-actions .btn { flex: 1 1 220px; justify-content: center; text-align: center; }
.booking-note { border-top: 1px solid var(--line); padding-top: 1.1rem; margin: 0;
  color: var(--muted); font-size: .97rem; }
@media (max-width: 520px) { .booking-actions .btn { flex-basis: 100%; } }

/* page hero with the brand lockup washed in behind the text */
.page-hero.has-watermark .wrap { position: relative; z-index: 1; }

/* the detached piece — the brain watermark opposite it is missing this exact
   piece. Absolutely positioned so it can be large without growing the section. */
/* lives INSIDE .wrap so it tracks the content column at any width, rather
   than being pinned to the section and drifting when the headline rewraps */
.page-hero.has-watermark .wrap > *:not(.hero-piece) { position: relative; z-index: 1; }
.hero-piece {
  position: absolute; z-index: 0; pointer-events: none;
  left: calc(var(--gutter) + 6.5rem); top: .5rem;
  transform: rotate(-8deg);
  /* 63% = 170% brain height x (251/677), the piece:brain ratio in the source
     artwork — so it renders at exactly the size that fits the brain's gap */
  height: calc(251px * var(--piece-k)); width: auto; aspect-ratio: 216 / 251;
  opacity: .24;
}
.page-hero.has-watermark::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: var(--wm-right, 2%); top: 50%; transform: translateY(-50%);
  /* per-page art supplied by a .wm-* class below; oversized and clipped by
     .page-hero's overflow:hidden so the crop reads as intent */
  height: var(--wm-h, 170%); width: auto; aspect-ratio: var(--wm-ar, 609 / 677);
  background: var(--wm-img) no-repeat center / contain;
  opacity: var(--wm-op, .24);
}

/* per-page watermark art — all cut from her own logo, all at native scale.
   Heights are natural-pixel-height x --piece-k, so a puzzle piece is exactly
   the same size on every page regardless of how many are in the composition. */
.wm-brain    { --wm-img: url("../img/logo/brain-only.png");  --wm-ar: 609 / 677;  --wm-h: calc(677px * var(--piece-k)); }
.wm-faq      { --wm-img: url("../img/logo/wm-faq.png");      --wm-ar: 595 / 462;  --wm-h: calc(462px * var(--piece-k)); --wm-right: 1%; }
.wm-services { --wm-img: url("../img/logo/wm-services.png"); --wm-ar: 1452 / 377; --wm-h: calc(377px * var(--piece-k)); --wm-right: 0%; --wm-op: .22; }
.wm-started  { --wm-img: url("../img/logo/wm-started.png");  --wm-ar: 397 / 317;  --wm-h: calc(317px * var(--piece-k)); }
.wm-contact  { --wm-img: url("../img/logo/wm-contact.png");  --wm-ar: 214 / 213;  --wm-h: calc(213px * var(--piece-k)); --wm-right: 3%; }

/* ---- About ----------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.about-photo { position: sticky; top: 100px; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%;
  aspect-ratio: 4/5; object-fit: cover; }

/* Ashley's intro video, standing in for the portrait. Capped narrower than the
   column on purpose: at full column width it is 585px tall and pushes the
   sticky column past the viewport, which silently kills position:sticky. */
.about-intro { margin: 0; }
.video-frame { position: relative; width: 100%; max-width: 330px; }
.about-intro video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 432 / 640; background: #10171d;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
/* Controls are added by JS only once playback starts, so at rest this reads as
   a still portrait with a play affordance rather than Safari's dimmed player. */
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: .55rem; padding-bottom: 1.4rem; cursor: pointer; border: 0; border-radius: var(--radius);
  /* sits low on purpose — the poster IS her face, so don't cover it */
  background: linear-gradient(180deg, rgba(32,64,112,0) 34%, rgba(32,64,112,.78) 100%);
  color: #fff; font-family: var(--font-body); font-size: .92rem; font-weight: 700;
  letter-spacing: .01em; transition: background .25s ease, opacity .25s ease;
}
.video-play svg {
  width: 52px; height: 52px; padding: 14px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--deep);
  box-shadow: 0 6px 20px rgba(20,40,70,.35);
  transition: transform .2s ease, background .2s ease;
}
.video-play span { text-shadow: 0 1px 6px rgba(20,40,70,.6); }
.video-play span b { font-weight: 400; opacity: .85; }
.video-play:hover svg, .video-play:focus-visible svg { transform: scale(1.07); background: #fff; }
.video-play:hover { background: linear-gradient(180deg, rgba(32,64,112,.10) 40%, rgba(32,64,112,.62) 100%); }
.video-frame.playing .video-play { opacity: 0; pointer-events: none; }
/* WebKit paints the first caption cue over the POSTER at currentTime 0, before any
   playback — so the caption line and "Play intro 0:19" stacked on each other, both
   white, over a light poster frame. Unreadable, and it read as a broken render.
   The track keeps `default`, so captions still appear during playback; they are
   only suppressed at rest. Do not "fix" this by dropping `default` — that would
   turn captions off for the people who need them. */
.video-frame:not(.playing) video::-webkit-media-text-track-container { display: none; }
.about-intro figcaption {
  margin-top: .7rem; max-width: 330px;
  font-size: .86rem; color: var(--muted); line-height: 1.45;
}
.transcript { max-width: 330px; margin-top: .55rem; }
.transcript summary {
  cursor: pointer; font-size: .84rem; font-weight: 700; color: var(--deep);
  list-style: none; display: inline-flex; align-items: center; gap: .4em;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before {
  content: "＋"; font-weight: 400; font-size: .95em; line-height: 1;
}
.transcript[open] summary::before { content: "－"; }
.transcript summary:hover { color: var(--deepest); }
.transcript p {
  margin: .6rem 0 0; font-size: .87rem; line-height: 1.6; color: var(--muted);
  padding-left: .9rem; border-left: 2px solid var(--line-2);
}
/* her Psychology Today listing — sits with the video's caption and transcript,
   matched to their 330px column so the three read as one stacked unit */
.video-aside { max-width: 330px; margin-top: .8rem; font-size: .84rem; color: var(--muted); }
.cred-list { list-style: none; margin: 1.3rem 0 0; padding: 1.3rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .9rem; }
.cred-list li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; font-size: .96rem; }
.cred-list b { color: var(--ink); }
.cred-list .badge { width: 34px; height: 34px; border-radius: 9px; background: var(--mist); color: var(--deep);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: .82rem; }
.cred-list small { color: var(--muted); display: block; }
.prose > p { margin-bottom: 1.15em; }
.prose h2 { font-size: clamp(1.5rem,2.6vw,1.95rem); font-weight: 500; margin-top: 1.6em; }
.prose .first { font-size: 1.16rem; color: var(--ink); }

/* ---- Forms page ------------------------------------------------------ */
.note { display: flex; gap: .9rem; align-items: flex-start; background: var(--mist); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; color: var(--ink); }
.note .ic { color: var(--deep); flex: 0 0 auto; }
.form-doc { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem;
  padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  box-shadow: var(--shadow-sm); }
.form-doc .ic { width: 46px; height: 46px; border-radius: 11px; background: var(--mist); color: var(--deep); display: grid; place-items: center; }
.form-doc h3 { font-size: 1.12rem; margin: 0 0 .15em; font-family: var(--font-body); font-weight: 800; letter-spacing: -.005em; }
.form-doc p { margin: 0; color: var(--muted); font-size: .92rem; }
.form-doc .soon { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--cloud); border: 1px solid var(--line); padding: .4em .8em; border-radius: 999px; }

/* ---- Contact --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .45em; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .8em .9em; border: 1.5px solid var(--line-2); border-radius: 11px; background: var(--cloud);
  transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(110,159,196,.18); background: #fff; }
.form-fine { font-size: .82rem; color: var(--muted); margin-top: .9rem; }

.contact-detail { display: grid; gap: 1.1rem; }
.contact-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm);
  min-width: 0;   /* let the grid item shrink below its content */
}
.contact-row .v, .contact-row .k { min-width: 0; overflow-wrap: anywhere; }
.contact-row .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--mist); color: var(--deep); display: grid; place-items: center; }
.contact-row .k { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-row .v { font-size: 1.1rem; color: var(--ink); font-weight: 700; }
.contact-row a.v:hover { color: var(--deep); }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--deepest); color: rgba(255,255,255,.82); padding-block: 3.2rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255,255,255,.6); }
.footer-tag { margin-top: 1rem; max-width: 34ch; color: rgba(255,255,255,.7); font-size: .96rem; }
/* h2, not h4: these follow the page's h2s, and h4 skipped a level on every page.
   Visual weight is set here, not by the tag. */
.footer-col h2 { font-family: var(--font-body); font-weight: 800; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-col a { color: rgba(255,255,255,.85); font-size: .98rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; padding-top: 1.6rem; font-size: .84rem; color: rgba(255,255,255,.6); }
.footer-mark { height: 38px; width: auto; }

/* ---- Reveal animation ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 900px) {
  /* portrait first, then her credentials as a caption to it, then the copy —
     the creds read as proof next to her face and stop eating ~150px of stacked
     vertical space above the headline and CTA. */
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "figure" "cred" "copy"; column-gap: 0; row-gap: 0; }
  .hero-copy { max-width: 46ch; margin-top: 2.2rem; }
  /* break the figure/img circular width here (see .hero-figure above): a definite
     width on the figure lets the photo hit its intended 78vw instead of ~69%,
     and re-anchors the badge to the real photo edge rather than a short box. */
  .hero-figure { width: min(420px, 78vw); }
  .portrait-arch { width: 100%; }
  .hero-cred {
    max-width: none; margin-top: 1.1rem; padding-top: 0; border-top: 0;
    justify-content: center; text-align: center; gap: .5rem; font-size: .95rem;
  }
  /* the long form stays in the DOM for screen readers and mobile-first
     indexing; about.html carries it visibly with plain-language explanations */
  .hero-cred .cred-full {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  /* var(--line) is a hairline-rule tone — near-invisible as a text glyph */
  .hero-cred > span + span::before { content: "·"; color: var(--muted); opacity: .55; margin-right: .5rem; }
  .split, .split.narrow-media, .about-grid, .contact-grid, .cta-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 420px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-grid { gap: 1.6rem; }
  .form-doc { grid-template-columns: auto 1fr; }
  .form-doc .soon { grid-column: 2; justify-self: start; }
}
@media (max-width: 860px) {
  /* Fit the whole composition inside the hero rather than scaling it off the
     side of the screen. The old `height: 140%` overrode every page's tuned
     --wm-h with one hero-relative height, and because width came from
     aspect-ratio, wide art exploded — wm-services (1452/377) rendered 1833px
     wide on a 390px screen. A fixed box + background-size:contain lets every
     mark, from the near-square brain to the 3.85:1 services strip, land whole. */
  .page-hero.has-watermark::after {
    right: var(--wm-right-m, -2%); aspect-ratio: auto;
    width: min(var(--wm-w-m, 92vw), 96vw); height: var(--wm-h-m, 250px);
    background-size: contain; opacity: .17;
  }
  /* brain art is height-limited in that box, so it always renders 250px tall;
     251/677 of that keeps the detached piece at the brain's own piece scale */
  :root { --piece-k: .369; }
  .hero-piece { left: calc(var(--gutter) + 4rem); top: .5rem; opacity: .17; }
}

@media (max-width: 720px) {
  .page-hero { min-height: 340px; }
  /* the badge is sized by its nowrap headline, so it stayed 218.6px wide while
     the portrait shrank — 81% of the photo at 390px and 91% at 360px, against
     58% on desktop. Smaller type + a % cap holds it near the desktop ratio. */
  .hero-badge {
    /* 78% is a safety net, not the target: the badge sizes to its own content
       (~189px) at every real phone width, landing 56-67% of the photo against
       58% on desktop. It only clamps below ~300px, where clipping beats overflow. */
    max-width: 78%; font-size: .74rem; gap: .45rem; padding: .55rem .75rem; bottom: 18px;
  }
  .hero-badge .badge-piece { width: 20px; }
  /* size the badge to its longest line: once the type shrank, the badge was
     still sized by the nowrap headline and "Telehealth across Georgia" split
     into "Telehealth" / "across Georgia" about 5px short of fitting */
  .hero-badge span { white-space: nowrap; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px;
    background: var(--mist); border: 1px solid var(--line); color: var(--deep); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-menu {
    position: fixed; inset: 76px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: .2rem; padding: 1rem var(--gutter) 1.4rem;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-links a { padding: .8em 1em; font-size: 1.05rem; }
  .nav-menu .btn { margin-top: .6rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
}

/* ---- A11y ------------------------------------------------------------ */
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
.skip { position: absolute; left: -9999px; top: 0; background: var(--deep); color: #fff; padding: .7em 1.2em; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; color: #fff; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---- Footer additions: crisis line + policy links -------------------- */
.footer-crisis {
  margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  font-size: .9rem; color: rgba(255,255,255,.85); line-height: 1.55;
}
.footer-crisis strong { color: #fff; }
.footer-crisis a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer-crisis a:hover { color: var(--mist); }
.footer-policy a { color: rgba(255,255,255,.72); }
.footer-policy a:hover { color: #fff; }

/* ---- Alert note (crisis callout) ------------------------------------- */
.note.note-alert { background: #FBF1EC; border-color: #E7C3AE; color: var(--ink); }
.note.note-alert .ic { color: #B5703C; }
/* #A85E2C measured 4.39:1 on #FBF1EC — under AA for 16px. These are the 911/988
   links; the most safety-critical text on the site should not be the least legible. */
.note.note-alert a { color: #9E5426; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Legal / policy pages -------------------------------------------- */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 500; margin-top: 1.9em; }
.legal h2:first-of-type { margin-top: .3em; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: .5em; color: var(--muted); }
.legal .updated { font-size: .9rem; color: var(--muted); margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* ---- FAQ accordion --------------------------------------------------- */
.faq { max-width: 800px; display: grid; gap: .9rem; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.4rem; box-shadow: var(--shadow-sm); transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0; font-family: var(--font-body);
  font-weight: 700; font-size: 1.08rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 11px; height: 11px; margin-right: 3px;
  border-right: 2px solid var(--deep); border-bottom: 2px solid var(--deep);
  transform: rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq .answer { padding: 0 0 1.3rem; color: var(--muted); }
.faq .answer p { margin-bottom: .8em; }
.faq .pending {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--deep); background: var(--mist); border: 1px solid var(--line-2);
  padding: .2em .6em; border-radius: 999px; margin-left: .5rem; vertical-align: middle;
}
