/* ==========================================================================
   Rays Room Therapy — homepage
   Built to the client's 2026 brand identity document.

   WCAG AA verified (normal text >= 4.5:1, large >= 3.0:1):
     brown  #774625 on cream #FEFEF2 .......  7.69  AA
     dark   #330B01 on cream ............... 17.39  AA
     cream  #FEFEF2 on brown ...............  7.69  AA
     cream  on dark ........................ 17.39  AA
     white  on green #436850 ...............  6.30  AA
     white  on blue  #3F698C ...............  5.82  AA
     green  #436850 on cream ...............  6.20  AA
     blue   #3F698C on cream ...............  5.73  AA
     dark   #330B01 on tan #D9BDA5 .........  9.90  AA
     brown  #774625 on tan .................  4.38  -- LARGE TEXT ONLY
   The comp sets small card copy in #774625 on tan, which is 4.38:1 and fails
   AA for body sizes. --brown-ink #6F411F (4.80:1) is used for small text on
   tan instead: visually near-identical, accessible. #774625 is retained for
   card titles, which are large enough to pass.
   ========================================================================== */

:root {
  /* Palette — hexes printed in the identity document */
  --cream:     #FEFEF2;   /* main 1 — page ground */
  --tan:       #D9BDA5;   /* main 2 — cards */
  --brown:     #774625;   /* main 3 — headings */
  --dark:      #330B01;   /* main 4 — deep ground + text on tan */
  --green:     #436850;   /* accent 1 */
  --blue:      #3F698C;   /* accent 2 */
  --white:     #FFFFFF;
  --brown-ink: #6F411F;   /* derived: small text on tan, AA 4.80 */

  --font-display: 'Amiri', 'Times New Roman', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 0.28s;
  --t-slow: 0.6s;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --r-sheet: 40px;   /* the cream sheet's top corners */
  --r-card: 22px;
  --r-media: 20px;
  --pill: 999px;
  --header-h: 96px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

.container { width: min(var(--container), 100% - (var(--gutter) * 2)); margin-inline: 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;
}

/* ---------------------------- Accessibility ---------------------------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 400;
  background: var(--dark); color: var(--cream);
  padding: 0.7rem 1.3rem; border-radius: var(--pill); text-decoration: none;
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 1rem; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
/* keep focus visible on dark/photographic grounds */
.hero a:focus-visible, .banner a:focus-visible, .footer a:focus-visible,
.reviews a:focus-visible, .header:not(.is-stuck) .nav a:focus-visible {
  outline-color: var(--cream);
}

/* ------------------------------ Typography ----------------------------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--brown);
  margin-bottom: 1.1rem;
}

.lede {
  max-width: 46ch;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

/* Section eyebrow pills — solid fill, colour-coded per section */
.pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.62rem 1.15rem;
  border-radius: var(--pill);
  margin-bottom: 1.5rem;
}
.pill--green { background: var(--green); color: var(--white); }
.pill--blue  { background: var(--blue);  color: var(--white); }
.pill--cream { background: var(--cream); color: var(--brown); }

/* "Learn more ↗" — underline is the default state, arrow sits outside it */
.learn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brown-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--t) var(--ease);
}
/* inline-block arrow sits outside the parent's underline, as in the comp */
.learn > span { display: inline-block; text-decoration: none; margin-left: 0.2rem; }
.learn:hover { color: var(--dark); }

.rule {
  display: block;
  width: 34px; height: 2px;
  background: currentColor;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.muted { opacity: 0.72; }

/* -------------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border-radius: var(--pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--cream   { background: var(--cream); color: var(--dark); }
.btn--cream:hover { background: var(--tan); color: var(--dark); }

.btn--brown   { background: var(--brown); color: var(--cream); }
.btn--brown:hover { background: var(--dark); }

.btn--outline { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn--outline:hover { background: var(--brown); color: var(--cream); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.header__inner {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header.is-stuck {
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(119, 70, 37, 0.16);
}
.header.is-stuck { --header-h: 76px; }

.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand__mark { width: clamp(112px, 12vw, 148px); height: auto; transition: opacity var(--t) var(--ease); }
.brand__mark--dark { display: none; }
.header.is-stuck .brand__mark--light { display: none; }
.header.is-stuck .brand__mark--dark { display: block; }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.1rem); }
.nav a:not(.nav__cta) {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--cream);
  text-decoration: none;
  transition: opacity var(--t) var(--ease), color var(--t) var(--ease);
}
.nav a:not(.nav__cta):hover { opacity: 0.72; }
.header.is-stuck .nav a:not(.nav__cta) { color: var(--brown); }
.nav__cta { padding: 0.72rem 1.5rem; font-size: 0.92rem; }
.header.is-stuck .nav__cta { background: var(--brown); color: var(--cream); }
.header.is-stuck .nav__cta:hover { background: var(--dark); }

.burger {
  display: none;
  width: 46px; height: 46px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
}
.burger span {
  display: block; width: 25px; height: 2px; border-radius: 2px;
  background: var(--cream);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease), background var(--t) var(--ease);
}
.header.is-stuck .burger span, .header.is-open .burger span { background: var(--brown); }
.header.is-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    padding: 0.5rem var(--gutter) 1.5rem;
    box-shadow: 0 18px 30px -20px rgba(51, 11, 1, 0.5);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .header.is-open .nav { max-height: 26rem; visibility: visible; transition-delay: 0s; }
  .nav a:not(.nav__cta) { color: var(--brown); padding: 0.95rem 0.2rem; border-bottom: 1px solid rgba(119,70,37,0.14); font-size: 1.02rem; }
  .nav__cta { margin-top: 1rem; background: var(--brown); color: var(--cream); border-bottom: 0; text-align: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(5rem, 12vh, 8rem);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(51,11,1,0.62) 0%, rgba(51,11,1,0.26) 45%, rgba(51,11,1,0.55) 100%),
    rgba(51,11,1,0.16);
}
.hero__inner { position: relative; max-width: 62rem; }

.hero__eyebrow {
  display: inline-block;
  font-size: clamp(0.63rem, 1.15vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cream);
  border: 1.5px solid rgba(254, 254, 242, 0.55);
  border-radius: var(--pill);
  padding: 0.72rem 1.5rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 8.2vw, 6rem);
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  color: rgba(254, 254, 242, 0.94);
  max-width: 42rem;
  margin-inline: auto;
}
.hero__reviews {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--cream);
}
.hero__reviews strong { font-weight: 600; }
.stars { color: var(--tan); letter-spacing: 0.12em; }
.stars--lg { font-size: 1.3rem; }

/* ==========================================================================
   Cream sheets
   ========================================================================== */
.sheet { position: relative; background: var(--cream); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sheet--tight { padding-top: 0; }

/* the signature move: the first sheet rides up over the hero photograph */
.sheet--first {
  margin-top: clamp(-72px, -6vw, -40px);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
}

/* ------------------------- Our Practise + video ------------------------- */
.practice__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.practice__split .h2 { margin-bottom: 0; }
.practice__body { font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 44ch; }
@media (max-width: 820px) {
  .practice__split { grid-template-columns: 1fr; gap: 1.5rem; }
}

.video {
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--dark);
  line-height: 0;
  box-shadow: 0 30px 60px -34px rgba(51, 11, 1, 0.6);
}
.video iframe { width: 100%; height: clamp(320px, 52vw, 560px); border: 0; display: block; }

/* ------------------------------- Services ------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.scard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;   /* title top, foot bottom — as in the comp */
  gap: 2.5rem;
  min-height: 340px;
  background: var(--tan);
  border-radius: var(--r-card);
  padding: 1.75rem 1.6rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.scard:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(51, 11, 1, 0.55); }
.scard__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.22rem;   /* large enough that --brown passes AA-large on tan */
  line-height: 1.28;
  color: var(--brown);
}
.scard__foot { color: var(--brown-ink); }
.scard__foot p { font-size: 0.9rem; line-height: 1.55; margin-bottom: 1.1rem; max-width: 34ch; }

/* -------------------------------- Banner -------------------------------- */
.banner {
  position: relative;
  border-radius: var(--r-media);
  overflow: hidden;
  min-height: clamp(320px, 46vw, 520px);
  display: flex;
  align-items: center;
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(51,11,1,0.62) 0%, rgba(51,11,1,0.28) 55%, rgba(51,11,1,0.12) 100%);
}
.banner__content { position: relative; padding: clamp(1.75rem, 5vw, 3.5rem); }
.banner__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.6rem;
}

/* --------------------------------- Team --------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.6rem);
}
@media (max-width: 940px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* photo + tan panel, overlapping; the order alternates card to card */
.member { display: flex; flex-direction: column; }
.member--flip { flex-direction: column-reverse; }

.member__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--tan);
}
.member__panel {
  position: relative;
  background: var(--tan);
  border-radius: var(--r-card);
  padding: 1.5rem 1.5rem 1.6rem;
  margin-top: -22px;            /* panel rides up over the photo */
  flex: 1;
  display: flex;
  flex-direction: column;
  color: var(--brown-ink);
}
.member--flip .member__panel { margin-top: 0; margin-bottom: -22px; z-index: 1; }

.member__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--brown);
  margin-bottom: 0.7rem;
}
.roles { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.role {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brown-ink);
  border: 1.5px solid rgba(111, 65, 31, 0.55);
  border-radius: var(--pill);
  padding: 0.35rem 0.72rem;
}
.member__bio { font-size: 0.88rem; line-height: 1.55; margin-bottom: 1rem; }
.member__panel .learn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews { background: var(--dark); color: var(--cream); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.reviews__inner { text-align: center; max-width: 54rem; }
.reviews__score {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.reviews__num { font-family: var(--font-display); font-size: 2rem; color: var(--white); line-height: 1; }
.reviews__label { font-size: 0.98rem; color: var(--cream); }
.reviews__label strong { font-weight: 600; }
.reviews__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2.2rem);
  line-height: 1.34;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.reviews__attr { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--tan); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.4rem;
}
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

.ccard {
  background: var(--tan);
  border-radius: var(--r-card);
  padding: 1.75rem 1.6rem;
  color: var(--brown-ink);
}
.ccard__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--brown);
  margin-bottom: 0.7rem;
}
.ccard a { color: var(--brown-ink); text-decoration: underline; text-underline-offset: 3px; }
.ccard a:hover { color: var(--dark); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--dark); color: var(--cream);
  /* extra bottom padding keeps the floating assistant clear of footer copy */
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(5rem, 8vw, 6rem);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(254, 254, 242, 0.18);
}
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }

.footer__brand img { width: 168px; height: auto; margin-bottom: 1.1rem; }
.footer__tag { font-family: var(--font-display); font-size: 1.15rem; color: var(--tan); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (max-width: 620px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer__cols { grid-template-columns: 1fr; } }

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.62rem; }
.footer__col li { font-size: 0.92rem; color: rgba(254, 254, 242, 0.86); line-height: 1.5; }
.footer__col a { color: rgba(254, 254, 242, 0.86); text-decoration: none; transition: color var(--t) var(--ease); }
.footer__col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding-top: 1.6rem;
  font-size: 0.8rem; color: rgba(254, 254, 242, 0.68);
}
/* leave room for the fixed assistant button in the bottom-right corner */
@media (min-width: 861px) { .footer__medicare { margin-right: 11rem; } }

/* ==========================================================================
   Floating assistant
   ========================================================================== */
.chat { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 250; }
.chat__fab {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
  background: var(--green); color: var(--white);
  border: 0; border-radius: var(--pill); padding: 0.9rem 1.35rem; cursor: pointer;
  box-shadow: 0 16px 30px -12px rgba(51, 11, 1, 0.65);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.chat__fab:hover { background: var(--dark); transform: translateY(-2px); }
.chat.is-open .chat__fab { display: none; }

.chat__panel {
  width: min(370px, calc(100vw - 2rem));
  max-height: min(560px, calc(100vh - 3rem));
  display: flex; flex-direction: column;
  background: var(--cream);
  border: 1px solid rgba(119, 70, 37, 0.18);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 28px 60px -20px rgba(51, 11, 1, 0.5);
}
.chat__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--green); color: var(--white); padding: 1rem 1.2rem;
}
.chat__title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.chat__status { font-size: 0.76rem; color: rgba(255,255,255,0.9); }
.chat__close { background: none; border: 0; color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; }

.chat__log { padding: 1.1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.65rem; }
.msg { font-size: 0.9rem; line-height: 1.5; padding: 0.7rem 0.95rem; border-radius: 14px; max-width: 86%; }
.msg--bot { background: var(--white); border: 1px solid rgba(119,70,37,0.16); color: var(--brown); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--user { background: var(--brown); color: var(--cream); align-self: flex-end; border-bottom-right-radius: 4px; }

.chat__chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 1.1rem 0.7rem; }
.chip {
  font-family: var(--font-body); font-size: 0.78rem;
  background: var(--tan); color: var(--dark);
  border: 0; border-radius: var(--pill);
  padding: 0.48rem 0.85rem; cursor: pointer; text-align: left;
  transition: background var(--t) var(--ease);
}
.chip:hover { background: var(--brown); color: var(--cream); }

.chat__form { display: flex; gap: 0.5rem; padding: 0.85rem 1.1rem 1.1rem; border-top: 1px solid rgba(119,70,37,0.14); }
.chat__input {
  flex: 1; font-family: var(--font-body); font-size: 0.9rem; color: var(--brown);
  background: var(--white); border: 1px solid rgba(119,70,37,0.22);
  border-radius: var(--pill); padding: 0.62rem 1rem;
}
.chat__input::placeholder { color: rgba(119,70,37,0.6); }
.chat__send {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brown); color: var(--cream); font-size: 1.05rem;
  transition: background var(--t) var(--ease);
}
.chat__send:hover { background: var(--dark); }
@media (max-width: 480px) { .chat__fab span { display: none; } .chat__fab { padding: 0.9rem; } }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Gated on .js-reveal (set by script.js): with JS off nothing is ever hidden */
.js-reveal .reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   INTERIOR PAGES — team, therapist profiles, signup, blog, articles
   ========================================================================== */

/* Interior header is solid from the top (no photographic hero behind it) */
.header--solid { background: var(--cream); box-shadow: 0 1px 0 rgba(119, 70, 37, 0.16); --header-h: 76px; }
.header--solid .brand__mark--light { display: none; }
.header--solid .brand__mark--dark { display: block; }
.header--solid .nav a:not(.nav__cta) { color: var(--brown); }
.header--solid .nav__cta { background: var(--brown); color: var(--cream); }
.header--solid .nav__cta:hover { background: var(--dark); }
.header--solid .burger span { background: var(--brown); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(254,254,242,0.55); }
.btn--ghost-light:hover { background: var(--cream); color: var(--dark); border-color: var(--cream); }

/* Interior page hero */
.phero { background: var(--cream); padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(1.5rem, 3vw, 2.5rem); }
.phero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 6.5vw, 4.6rem); line-height: 1.06;
  color: var(--brown); margin-bottom: 1.1rem;
}
.phero__lede { max-width: 52ch; font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--brown); }
.sheet--top { padding-top: clamp(2rem, 4vw, 3rem); }

/* Shared call-to-action band */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem 2rem;
  background: var(--dark); color: var(--cream);
  border-radius: var(--r-card); padding: clamp(1.75rem, 4vw, 2.75rem);
}
.cta-band__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 0.5rem; }
.cta-band__body { font-size: 0.98rem; color: var(--cream); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* -------------------------- Therapist profile -------------------------- */
.profile { background: var(--cream); padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(1.5rem, 4vw, 2.5rem); }
.profile__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(1.75rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 820px) { .profile__inner { grid-template-columns: 1fr; } }
.profile__media img { width: 100%; border-radius: var(--r-card); background: var(--tan); }
.profile__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.3rem, 5.5vw, 3.6rem); line-height: 1.06; color: var(--brown); margin-bottom: 0.9rem; }
.profile .roles { margin-bottom: 1.1rem; }
.profile__card { font-size: 1.06rem; margin-bottom: 1.6rem; max-width: 46ch; }
.profile__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill a { color: inherit; text-decoration: none; }

.profile__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.75rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .profile__body { grid-template-columns: 1fr; } }
.profile__aside { display: flex; flex-direction: column; gap: 1.1rem; }

.factcard { background: var(--tan); border-radius: var(--r-card); padding: 1.6rem 1.5rem; color: var(--brown-ink); }
.factcard__title { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--brown); margin-bottom: 0.9rem; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.ticks li { position: relative; padding-left: 1.15rem; font-size: 0.9rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--brown); }

/* Long-form prose (profiles + articles) */
.prose { max-width: 68ch; color: var(--brown); font-size: 1.04rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: var(--font-display); font-weight: 400; color: var(--brown);
  line-height: 1.2; margin-top: 2.2rem;
}
.prose h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.prose h3 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); }
.prose h4, .prose h5, .prose h6 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }
.prose a { color: var(--brown-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--dark); }
.prose strong, .prose b { font-weight: 600; color: var(--dark); }
.prose ul, .prose ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose li { line-height: 1.65; }
.prose img { border-radius: var(--r-media); margin-block: 1.6rem; height: auto; }
.prose hr { border: 0; border-top: 1px solid rgba(119,70,37,0.22); margin-block: 2rem; }
.prose blockquote {
  border-left: 3px solid var(--tan); padding-left: 1.2rem; font-family: var(--font-display);
  font-size: 1.25rem; line-height: 1.5;
}
.embed { position: relative; padding-top: 56.25%; border-radius: var(--r-media); overflow: hidden; background: var(--dark); margin-block: 1.6rem; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Prev / next pager */
.pager { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(119,70,37,0.2); padding-top: 1.5rem; }
.pager__link { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; color: var(--brown); font-weight: 500; }
.pager__link--next { text-align: right; }
.pager__link span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown-ink); opacity: 0.75; }
.pager__link:hover { color: var(--dark); text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------- Signup -------------------------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 2.5rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--tan); border-radius: var(--r-card); padding: 1.75rem 1.6rem; color: var(--brown-ink); }
.step__num { font-family: var(--font-display); font-size: 2rem; color: var(--brown); line-height: 1; display: block; margin-bottom: 0.9rem; }
.step__title { font-family: var(--font-body); font-weight: 600; font-size: 1.12rem; color: var(--brown); margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; line-height: 1.6; }
.signup__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.25rem; }
.signup__note { max-width: 62ch; font-size: 0.95rem; color: var(--brown-ink); }

/* The Anxiety Coach — deliberately loud */
.coach { background: var(--green); color: var(--cream); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.coach__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .coach__inner { grid-template-columns: 1fr; } }
.coach__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; color: var(--white); margin-bottom: 1rem; }
.coach__lede { font-size: 1.05rem; color: var(--cream); max-width: 46ch; margin-bottom: 1.4rem; }
.coach__points { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.8rem; }
.coach__points li { position: relative; padding-left: 1.5rem; font-size: 0.98rem; color: var(--cream); }
.coach__points li::before { content: "✓"; position: absolute; left: 0; color: var(--tan); font-weight: 700; }
.coach__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.coach__card { background: var(--cream); border-radius: var(--r-card); padding: 1.5rem; box-shadow: 0 30px 60px -30px rgba(51,11,1,0.6); }
.coach__chat-head { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown-ink); margin-bottom: 1rem; }
.coach__chat .msg { max-width: 100%; margin-bottom: 1rem; }
.coach__prompts { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.coach__prompts .chip { width: 100%; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.7rem; max-width: 70ch; }
.faq__item { background: var(--tan); border-radius: var(--r-card); padding: 1.1rem 1.4rem; color: var(--brown-ink); }
.faq__item summary { cursor: pointer; font-weight: 600; color: var(--brown); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brown); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin-top: 0.8rem; font-size: 0.95rem; line-height: 1.6; }
.faq__item a { color: var(--brown-ink); text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------- Blog --------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filter {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  background: transparent; color: var(--brown); border: 1.5px solid rgba(119,70,37,0.35);
  border-radius: var(--pill); padding: 0.5rem 1.05rem; cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.filter:hover { border-color: var(--brown); }
.filter.is-active { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.filters__count { font-size: 0.85rem; color: var(--brown-ink); margin-bottom: 2rem; }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 940px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.pcard[hidden] { display: none; }
.pcard__link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--tan); border-radius: var(--r-card); overflow: hidden;
  text-decoration: none; color: var(--brown-ink);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.pcard__link:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(51,11,1,0.55); }
.pcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brown); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.pcard__link:hover .pcard__media img { transform: scale(1.04); }
/* Posts with no featured image become text-led cards on the deep ground,
   which gives the grid rhythm instead of 29 identical placeholder blocks. */
.pcard--text .pcard__link { background: var(--dark); color: var(--tan); }
.pcard--text .pcard__body { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.pcard--text .pcard__title { color: var(--cream); font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.22; }
.pcard--text .pcard__meta { color: var(--tan); }
.pcard--text .pcard__cat { background: var(--tan); color: var(--dark); }
.pcard--text .pcard__excerpt { color: rgba(254,254,242,0.82); }
.pcard--text .learn { color: var(--tan); }
.pcard--text .learn:hover { color: var(--white); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.4rem 1.5rem; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; font-size: 0.72rem; color: var(--brown-ink); margin-bottom: 0.7rem; }
.pcard__cat { background: var(--brown); color: var(--cream); border-radius: var(--pill); padding: 0.22rem 0.6rem; font-weight: 600; letter-spacing: 0.04em; }
.pcard__title { font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; line-height: 1.35; color: var(--brown); margin-bottom: 0.55rem; }
.pcard__excerpt { font-size: 0.88rem; line-height: 1.55; margin-bottom: 1.1rem; }
.pcard__body .learn { margin-top: auto; }
.posts__empty { padding: 2rem 0; color: var(--brown-ink); }

/* ------------------------------ Article -------------------------------- */
.article { background: var(--cream); }
.article__head { padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem)) 0 clamp(1.25rem, 3vw, 2rem); }
.article__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1;
  color: var(--brown); max-width: 22ch; margin-bottom: 1rem;
}
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; font-size: 0.8rem; color: var(--brown-ink); }
.article__media { border-radius: var(--r-media); overflow: hidden; margin-bottom: clamp(2rem, 5vw, 3rem); }
.article__media img { width: 100%; height: auto; object-fit: cover; }
.article__body { padding-bottom: clamp(2.5rem, 6vw, 4rem); }

.rel { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.rel__head { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--brown); margin-bottom: 1.5rem; }
.rel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 820px) { .rel__grid { grid-template-columns: 1fr; } }
.rel__item {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--tan); border-radius: var(--r-card); padding: 1.35rem 1.4rem;
  text-decoration: none; transition: transform var(--t) var(--ease);
}
.rel__item:hover { transform: translateY(-3px); }
.rel__date { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--brown-ink); }
.rel__title { font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--brown); }
.team__more { margin-top: 2.25rem; }
