/* ==========================================================================
   TMA Microsite Platform — design system
   Rebuilt to match the Claude Design homepage direction.

   Key moves from the Design render:
   - Full-bleed arch hero: the photo sits behind a tall arch, headline overlaps.
   - Warm sand hero band and lavender-tinted evidence band; navy stat band.
   - "Is this you?" symptom grid with small dot markers, not numerals.
   - Generous whitespace, restrained type sizes, pill buttons, soft shadows.
   - Palette and fonts unchanged from the practice brand.

   Non-negotiables preserved: footer disclaimer visible on every page, both
   credential badges distinct (BHRT TA certifies, TMA is membership), reference
   tier chips retained, AA contrast throughout.
   ========================================================================== */

:root {
  --navy:       #2f4a68;
  --navy-deep:  #1e3149;
  --sky:        #93c9d5;
  --sky-deep:   #5da5b8;
  --sky-pale:   #eaf4f7;
  --lav:        #ece5dd;         /* warm greige from the evidence band */
  --lav-pale:   #f6f1ec;
  --sand:       #e6e0d8;
  --sand-pale:  #f3ede6;
  --blush:      #fbf6f2;
  --ink:        #1e3149;
  --ink-soft:   #4f5a64;
  --ink-mute:   #808b95;
  --paper:      #fbfaf8;
  --paper-pure: #ffffff;
  --rule:       #e6e0d8;

  --brand-primary: var(--navy);
  --brand-accent:  var(--sky);
  --brand-warm:    var(--sand);
  --brand-blush:   var(--blush);

  --warn-bg:   #fdf6e9;
  --warn-rule: #c9a227;

  --shadow-sm: 0 1px 2px rgba(30,49,73,.04), 0 6px 16px rgba(30,49,73,.06);
  --shadow-md: 0 2px 8px rgba(30,49,73,.05), 0 18px 40px rgba(30,49,73,.09);
  --shadow-lg: 0 6px 14px rgba(30,49,73,.07), 0 34px 70px rgba(30,49,73,.12);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 100px;
  /* tall arch used on hero + feature imagery */
  --arch: 999px 999px 20px 20px / 340px 340px 20px 20px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--2: 0.78rem;
  --step--1: 0.875rem;
  --step-0:  1rem;
  --step-1:  1.1rem;
  --step-2:  1.35rem;
  --step-3:  clamp(1.5rem, 2.6vw, 1.9rem);
  --step-4:  clamp(1.8rem, 3.4vw, 2.4rem);
  --step-5:  clamp(2.2rem, 5vw, 3.5rem);

  --wrap: 74rem;
  --wrap-mid: 54rem;
  --wrap-narrow: 40rem;
  --section: clamp(3rem, 6.5vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; background: var(--paper); color: var(--ink-soft);
  font-family: var(--font-ui); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--navy-deep);
}
h1 { font-size: var(--step-5); letter-spacing: -0.03em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1.15rem; max-width: 65ch; }

a { color: var(--sky-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .18s ease; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: .7rem 1.1rem; z-index: 300; border-radius: var(--r-sm); }
.skip-link:focus { left: .6rem; top: .6rem; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; position: relative; }
.wrap--mid { width: min(100% - 2.5rem, var(--wrap-mid)); margin-inline: auto; position: relative; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; position: relative; }
.section { padding: var(--section) 0; }

.band-sand  { background: var(--sand-pale); }
.band-lav   { background: var(--lav); }
.band-sky   { background: var(--sky-pale); }
.band-blush { background: var(--blush); }
.band-navy  { background: var(--navy-deep); color: #c9d6e2; }
.band-navy h1, .band-navy h2, .band-navy h3, .band-navy h4 { color: #fff; }
.band-navy a { color: #fff; }
.band-navy .lede { color: #b7c6d4; }

.eyebrow {
  font-family: var(--font-ui); font-size: var(--step--2); font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: var(--sky-deep);
  margin: 0 0 1rem;
}
.band-navy .eyebrow { color: var(--sky); }

.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); max-width: 48ch; }
.section-head { max-width: 42rem; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- buttons ---------- */
.cta {
  display: inline-block; font-family: var(--font-ui); font-size: var(--step--1);
  font-weight: 600; letter-spacing: .01em; padding: .95rem 1.9rem;
  border-radius: var(--r-pill); text-decoration: none;
  background: var(--navy); color: #fff; border: 1.5px solid var(--navy);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cta:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cta--ghost { background: transparent; color: var(--navy); box-shadow: none; border-color: rgba(47,74,104,.32); }
.cta--ghost:hover { background: rgba(47,74,104,.05); color: var(--navy); }
.band-navy .cta { background: var(--sky); color: var(--navy-deep); border-color: var(--sky); }
.band-navy .cta:hover { background: #fff; }
.band-navy .cta--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.band-navy .cta--ghost:hover { background: rgba(255,255,255,.12); }
.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; margin: 1.8rem 0 0; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 100; }
.site-header__inner { display: flex; align-items: center; gap: 1.2rem; padding: .85rem 0; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--ink); display: block; margin-right: auto; }
.brand__logo { display: block; width: 155px; height: auto; }
.brand__provider { display: block; font-size: var(--step--2); color: var(--ink-mute); letter-spacing: .05em; margin-top: .15rem; }
.nav { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { font-size: var(--step--1); font-weight: 500; text-decoration: none; color: var(--ink-soft); padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--sky); }

/* ---------- hero (full-bleed arch) ---------- */
.hero { background: var(--sand-pale); padding: clamp(2.5rem,5vw,4rem) 0 0; overflow: hidden; }
.hero__inner { display: grid; gap: clamp(1.5rem,4vw,3rem); align-items: end; grid-template-columns: 1fr; }
@media (min-width: 60rem) { .hero__inner { grid-template-columns: 1fr 1fr; align-items: center; } }
.hero__copy { padding-bottom: clamp(2rem,4vw,3.5rem); }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--sky-deep); }
.hero__eyebrow {
  display: inline-block; font-size: var(--step--2); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sky-deep);
  background: var(--paper-pure); border: 1px solid var(--sky);
  padding: .4rem 1rem; border-radius: var(--r-pill); margin-bottom: 1.4rem;
}
.hero__figure { position: relative; align-self: end; }
.hero__figure img, .hero__figure .placeholder {
  display: block; width: 100%; max-width: 440px; margin: 0 auto;
  aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--arch); box-shadow: var(--shadow-lg);
}
.hero__credential {
  font-size: var(--step--1); color: var(--ink-soft);
  background: var(--paper-pure); border-left: 3px solid var(--sky);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .85rem 1.1rem; margin-top: 1.8rem; max-width: 44ch;
}
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(160deg, var(--sand), var(--lav));
  color: var(--ink-mute); font-size: var(--step--2); padding: 1.5rem;
}

/* ---------- symptom grid ("Is this you?") ---------- */
.symptom-list { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; gap: 1.3rem; }
@media (min-width: 46rem) { .symptom-list { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 68rem) { .symptom-list { grid-template-columns: repeat(3,1fr); } }
.symptom {
  background: var(--paper-pure); border-radius: var(--r-md);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.symptom:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.symptom h3 { margin: 0 0 .5rem; font-size: var(--step-1); display: flex; align-items: baseline; gap: .6rem; }
.symptom h3::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); transform: translateY(-1px); }
.symptom p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }

.chips { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { font-size: var(--step--1); background: var(--paper-pure); border: 1px solid var(--rule); border-radius: var(--r-pill); padding: .45rem 1.1rem; color: var(--ink-soft); }

/* ---------- evidence cards ---------- */
.card-list { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit,minmax(15.5rem,1fr)); }
.card { background: var(--paper-pure); border-radius: var(--r-md); padding: 1.7rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 .55rem; font-size: var(--step-1); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: var(--step--1); color: var(--ink-soft); flex: 1; }
.card__tier { display: inline-block; align-self: flex-start; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--sky-deep); background: var(--sky-pale); border-radius: var(--r-pill); padding: .18rem .7rem; margin-bottom: .9rem; }
.card__more { font-size: var(--step--2); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; margin-top: 1rem; }
.card__more:hover { text-decoration: underline; }

/* ---------- stat band ---------- */
.stats { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit,minmax(11rem,1fr)); margin-top: 2.4rem; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3rem); font-weight: 600; color: #fff; line-height: 1; }
.stat__label { font-size: var(--step--1); color: #b7c6d4; margin-top: .5rem; }

/* ---------- pull quote ---------- */
.pullquote { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.4; color: var(--navy-deep); background: var(--paper-pure); border-radius: var(--r-md); border-left: 4px solid var(--sky); padding: 1.6rem 1.8rem; margin: 2.4rem 0; max-width: 48ch; box-shadow: var(--shadow-sm); }
.pullquote cite { display: block; font-family: var(--font-ui); font-size: var(--step--1); font-style: normal; color: var(--ink-mute); margin-top: .9rem; }

/* ---------- split feature ---------- */
.split { display: grid; gap: clamp(2rem,5vw,4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 58rem) { .split { grid-template-columns: 1fr 1fr; } }
.split--provider { grid-template-columns: 1fr; }
@media (min-width: 58rem) { .split--provider { grid-template-columns: 1.6fr 1fr; } }
.split img, .split .placeholder { width: 100%; display: block; border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.split--provider img, .split--provider .placeholder { max-width: 325px; margin-inline: auto; border-radius: var(--r-md); aspect-ratio: 1/1; object-fit: cover; }

/* ---------- process pillars ---------- */
.pillars { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit,minmax(13rem,1fr)); margin-top: 2.6rem; list-style: none; padding: 0; counter-reset: step; }
.pillar { position: relative; padding-top: 3rem; }
.pillar::before { counter-increment: step; content: counter(step,decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--sky-deep); }
.pillar h3 { margin: 0 0 .45rem; font-size: var(--step-1); }
.pillar p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }

/* ---------- evidence page ---------- */
.evidence { padding: clamp(2.4rem,5vw,3.6rem) 0 var(--section); }
.evidence .wrap--narrow > h1 { max-width: 20ch; }
.disclaimer--page { background: var(--sky-pale); border-left: 3px solid var(--sky-deep); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 1.1rem 1.4rem; margin: 0 0 2.4rem; font-size: var(--step--1); color: var(--ink-soft); }
.disclaimer--page p { margin: 0; max-width: none; }

.tier3 { background: var(--warn-bg); border: 1px solid var(--warn-rule); border-left-width: 4px; border-radius: 0 var(--r-md) var(--r-md) 0; padding: 1.6rem 1.7rem; margin: 2.4rem 0; }
.tier3__heading { font-size: var(--step-0); font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .9rem; color: #7a5e10; }
.tier3__intro, .tier3__outro { font-size: var(--step--1); color: var(--ink-soft); }
.tier3__outro { margin-bottom: 0; padding-top: 1rem; border-top: 1px solid var(--warn-rule); }

.context { background: var(--sand-pale); border-radius: var(--r-md); padding: 1.6rem 1.8rem; margin: 2.6rem 0; }
.context h2 { font-size: var(--step-1); margin: 0 0 .5rem; }
.context p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }

.references { margin-top: 3.4rem; border-top: 1px solid var(--rule); padding-top: 1.6rem; }
.references h2 { font-size: var(--step-1); margin-top: 0; }
.reference-list { padding-left: 1.3rem; margin: 0; }
.reference { font-size: var(--step--1); line-height: 1.55; margin-bottom: 1.1rem; color: var(--ink-soft); }
.reference__tier { display: inline-block; margin-left: .45rem; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; background: var(--sky-pale); color: var(--navy); border: 1px solid var(--sky); border-radius: var(--r-pill); padding: .12rem .6rem; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.2rem; }
.faq-item { background: var(--paper-pure); border-radius: var(--r-md); margin-bottom: .8rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { font-family: var(--font-display); font-size: var(--step-1); color: var(--navy-deep); padding: 1.2rem 3rem 1.2rem 1.5rem; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-family: var(--font-ui); font-size: 1.5rem; color: var(--sky-deep); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item__body { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); font-size: var(--step--1); }
.faq-item__body p { margin-bottom: .8rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 58rem) { .contact-grid { grid-template-columns: .85fr 1.15fr; } }
.map-frame { border-radius: var(--r-md); overflow: hidden; line-height: 0; box-shadow: var(--shadow-md); }
.map-frame iframe { width: 100%; height: 440px; border: 0; display: block; }
.hours { list-style: none; padding: 0; margin: .8rem 0 0; font-size: var(--step--1); }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); max-width: 25rem; }
.hours li span:last-child { color: var(--ink-soft); }
.hours li.is-closed span:last-child { color: var(--ink-mute); }

/* ---------- trust row ---------- */
.trust-row { display: flex; align-items: flex-start; gap: 1.6rem; flex-wrap: wrap; }
.cert-badge { width: 104px; height: auto; display: block; }
.tma-badge img { display: block; width: 100%; max-width: 280px; height: auto; }
.tma-badge__caption { font-size: var(--step--2); color: #aab8c4; margin-top: .7rem; max-width: 26rem; line-height: 1.6; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #c2d0dc; padding: var(--section) 0 2rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sky); }
.site-footer h4 { color: #fff; font-size: var(--step--1); margin: 0 0 .9rem; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.footer-logo { display: block; width: 200px; height: auto; margin-bottom: 1.2rem; }
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit,minmax(14rem,1fr)); }
address { font-style: normal; font-size: var(--step--1); line-height: 1.8; color: #a7b6c3; }
.social { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 1.1rem 0 0; font-size: var(--step--1); flex-wrap: wrap; }

.disclaimer--site { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.8rem; padding-top: 1.7rem; font-size: .76rem; line-height: 1.65; color: #8896a3; }
.disclaimer--site p { max-width: none; }
.disclaimer__heading { font-family: var(--font-ui); font-size: var(--step--2); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .8rem; color: #c2d0dc; }
.copyright { font-size: .76rem; color: #798692; margin: 1.6rem 0 0; }

/* ---------- decorative ---------- */
.petal-divider { display: block; margin: 0 auto; width: 48px; max-width: 48px; height: auto; color: var(--sky); opacity: .8; }
.decor-lotus { display: block; width: 64px; max-width: 64px; height: auto; color: var(--sky-deep); opacity: .5; margin: 0 auto 1.2rem; }
svg[aria-hidden="true"] { max-width: 100%; }
.hero svg[aria-hidden="true"], .band-navy svg[aria-hidden="true"] { max-width: 120px; }

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .site-header { position: static; }
  .brand__logo { width: 140px; }
  .nav { width: 100%; gap: 1rem; }
}
@media (max-width: 46rem) { html { font-size: 15.5px; } .cert-badge { width: 88px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .cta:hover, .card:hover, .symptom:hover { transform: none; }
}
@media print { .site-header, .cta, .skip-link, .map-frame { display: none; } body { background: #fff; font-size: 11pt; } }

/* ---------- in-page figures (About and long-form pages) ---------- */
.page-figure { margin: 0 0 1.6rem; }
.page-figure img { display: block; width: 100%; height: auto; }
.page-figure figcaption { font-size: var(--step--2); color: var(--ink-mute); margin-top: .7rem; line-height: 1.5; }
.page-figure--portrait img { border-radius: var(--r-md); box-shadow: var(--shadow-md); aspect-ratio: 1/1; object-fit: cover; }
@media (min-width: 46rem) {
  .page-figure--portrait { float: right; width: 325px; max-width: 325px; margin: .3rem 0 1.6rem 2.2rem; }
}
@media (max-width: 46rem) {
  .page-figure--portrait { max-width: 325px; margin-inline: auto; }
}
.page-figure--wide { margin: 2.4rem 0; clear: both; }
.page-figure--wide img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 3/2; object-fit: cover; }
.pullquote { clear: right; }

/* ---------- nav dropdown: Evidence Library group ---------- */
.nav__group { position: relative; }
.nav__parent { display: inline-flex; align-items: center; gap: .35rem; }
.nav__parent.is-active { color: var(--navy); border-bottom-color: var(--sky); }
.nav__caret { flex: 0 0 auto; opacity: .6; transition: transform .18s ease; }
.nav__group:hover .nav__caret, .nav__group:focus-within .nav__caret { transform: rotate(180deg); }
.nav__sub {
  list-style: none; margin: 0; padding: .5rem 0;
  position: absolute; top: 100%; left: -.9rem; z-index: 120; min-width: 15rem;
  background: var(--paper-pure); border: 1px solid var(--rule); border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub li { display: block; }
.nav__sub a { display: block; padding: .5rem .95rem; border-bottom: 0; font-size: var(--step--1); color: var(--ink-soft); white-space: nowrap; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--sky-pale); color: var(--navy); border-bottom: 0; }
@media (max-width: 60rem) {
  .nav__group { width: 100%; }
  .nav__caret { display: none; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; min-width: 0; padding: .3rem 0 .2rem;
    border-left: 2px solid var(--rule); margin: .3rem 0 .3rem .2rem;
  }
  .nav__sub a { padding: .35rem .8rem; }
}
