/* ==========================================================================
   Atlanta Behavioral Medicine — homepage design
   --------------------------------------------------------------------------
   1. Tokens          5. Hero               9.  Spotlight / Telemedicine
   2. Base            6. About              10. First visit / Team
   3. Shared parts    7. Services           11. Insurance / Reviews
   4. Header + menu   8. Deck (3D cards)    12. Questions / Contact / Footer
   13. Scroll reveals 14. Responsive        15. Reduced motion
   ========================================================================== */

@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Colour: taken from the logo (spring + leaf) and the clinic's own imagery */
  --mist: #EEF6F6;          /* page background */
  --paper: #FFFFFF;         /* raised surfaces, logo strips */
  --spring: #3BC2CC;        /* logo turquoise: shapes, the sphere */
  --spring-ink: #0B6E79;    /* turquoise dark enough for text and links */
  --spring-tint: #D9F1F3;
  --leaf: #ABD252;          /* logo lime: the one action colour */
  --leaf-press: #9BC542;
  --leaf-tint: #E9F4CD;
  --water: #0B3A44;         /* headings, dark bands, footer */
  --water-soft: #2C5760;    /* body text */
  --water-mute: #4A6C74;    /* quiet text */
  --harbor: #B8CAD8;        /* telemedicine band = illustration background */
  --rule: rgba(11, 58, 68, .14);

  /* Type: Lexend only. It was designed for reading ease, and its weight axis
     is what the headline "breathes" with. */
  --font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.35rem, 9.6vw, 4.25rem);   /* wider screens: see the 56.25rem query at the end of section 5 */
  --fs-h2: clamp(1.75rem, 1.1rem + 2.5vw, 3.1rem);
  --fs-h3: clamp(1.2rem, 1.08rem + .5vw, 1.45rem);
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;

  /* Space and shape */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --r-s: .625rem;
  --r-m: 1.125rem;
  --r-l: 1.75rem;
  --leaf-a: 1.75rem 7.5rem 1.75rem 7.5rem;   /* the logo's leaf: two soft, two round corners */
  --leaf-b: 7.5rem 1.75rem 7.5rem 1.75rem;
  /* The same leaf, smaller, for cards that hold text, lists or buttons. Its big corner
     is 3.5rem, so card padding must be at least 1.05rem (30%) to keep content clear of
     the curve. The big leaf above is for photos and wide bands with generous padding. */
  --leaf-a-sm: 1.25rem 3.5rem 1.25rem 3.5rem;
  --leaf-b-sm: 3.5rem 1.25rem 3.5rem 1.25rem;

  /* Depth: shadows are tinted with the deep-water hue, never grey */
  --lift-1: 0 1px 2px rgba(11, 58, 68, .06), 0 10px 28px -14px rgba(11, 58, 68, .22);
  --lift-2: 0 2px 6px rgba(11, 58, 68, .06), 0 28px 60px -24px rgba(11, 58, 68, .34);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.45, .05, .25, 1);

  --header-h: 5rem;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 350;
  line-height: 1.65;
  color: var(--water-soft);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--water);
  letter-spacing: -.02em;
  line-height: 1.12;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); font-weight: 350; }
h3 { font-size: var(--fs-h3); font-weight: 450; letter-spacing: -.01em; line-height: 1.25; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
a { color: inherit; }
strong { font-weight: 500; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--spring-ink);
  outline-offset: 3px;
  border-radius: .4rem;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1.1rem; border-radius: 999px;
  background: var(--water); color: #fff; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 1rem; }
#main:focus { outline: none; }  /* The skip link moves focus here; the content needs no ring. */

/* 3. Shared parts ---------------------------------------------------------- */
.wrap { width: min(77.5rem, 100% - 2 * var(--gutter)); margin-inline: auto; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.lead { font-size: var(--fs-lead); color: var(--water); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .75rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
  text-decoration: none;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--leaf); color: var(--water); box-shadow: 0 12px 24px -14px rgba(96, 132, 20, .9); }
.btn--primary:hover { background: var(--leaf-press); }
.btn--dark { background: var(--water); color: #fff; }
.btn--dark:hover { background: #10505D; }
.btn--line { color: var(--water); box-shadow: inset 0 0 0 1.5px var(--water); }
.btn--line:hover { background: var(--water); color: #fff; }

.link {
  color: var(--spring-ink); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .28em;
  text-decoration-color: rgba(11, 110, 121, .35);
  transition: color .2s, text-decoration-color .2s;
}
.link:hover { color: var(--water); text-decoration-color: currentColor; }

.round {
  width: 3rem; height: 3rem; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.round:hover { background: var(--water); color: #fff; }
.round:active { transform: scale(.94); }

.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { font-size: var(--fs-lead); max-width: 38rem; }
.section-head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }

/* Leaf bullets: the same shape as the leaves in the logo */
.ticks { columns: 2; column-gap: 2rem; font-size: var(--fs-small); color: var(--water); }
.ticks--one { columns: 1; font-size: var(--fs-body); }
.ticks li { position: relative; break-inside: avoid; padding: .4rem 0 .4rem 1.6rem; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .82em;
  width: .7rem; height: .7rem;
  background: var(--leaf); border-radius: 0 100% 0 100%;
}

/* 4. Header + menu --------------------------------------------------------- */
.utility { font-size: .875rem; }
.utility__in {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding-block: .6rem; border-bottom: 1px solid var(--rule);
}
.utility__links { display: flex; gap: 1.75rem; }
.utility a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.utility a:hover { color: var(--water); text-decoration: underline; }

.header {
  position: sticky; top: 0; z-index: 80;
  transition: background-color .3s, box-shadow .3s;
}
.header.is-stuck {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { flex: none; display: block; }
.brand img { width: auto; height: 2.9rem; }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; }
.nav__list > li { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .85rem; border-radius: 999px;
  font-size: .98rem; font-weight: 400; color: var(--water); text-decoration: none; white-space: nowrap;
  transition: background-color .2s;
}
.nav__link:hover, .nav__has-menu.is-open > .nav__link { background: rgba(11, 58, 68, .07); }
.nav__caret { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.nav__has-menu.is-open .nav__caret { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + .75rem); left: 50%;
  width: min(44rem, 92vw);
  display: grid; grid-template-columns: 1fr 2fr; gap: 2rem;
  padding: 1.75rem 2rem 2rem;
  background: var(--paper); border-radius: var(--r-l); box-shadow: var(--lift-2);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) perspective(900px) rotateX(-12deg) translateY(-6px);
  transform-origin: 50% 0;
  transition: opacity .22s, transform .4s var(--ease), visibility 0s .4s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -.9rem; height: .9rem; } /* hover bridge */
.nav__has-menu.is-open .mega {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) perspective(900px) rotateX(0deg) translateY(0);
  transition-delay: 0s;
}
.mega__label { font-size: var(--fs-small); color: var(--water-mute); margin-bottom: .6rem; }
.mega a { display: block; padding: .34rem 0; color: var(--water); text-decoration: none; font-size: .98rem; }
.mega a:hover { color: var(--spring-ink); text-decoration: underline; text-underline-offset: .25em; }
.mega__two { columns: 2; column-gap: 1.75rem; }
.mega__two li { break-inside: avoid; }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; color: var(--water); text-decoration: none; white-space: nowrap;
}
.header__phone:hover { color: var(--spring-ink); }
.header__book { min-height: 2.9rem; padding-inline: 1.25rem; }

.burger {
  display: none; width: 3rem; height: 3rem; border-radius: 50%;
  place-items: center; position: relative;
  box-shadow: inset 0 0 0 1.5px var(--rule);
}
.burger span {
  position: absolute; left: 50%; top: 50%; width: 1.15rem; height: 1.5px;
  background: var(--water); transition: transform .4s var(--ease);
}
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 70;
  display: grid; align-content: space-between; gap: 2rem;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--mist); overflow-y: auto;
  transform: translateY(-103%); visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s .55s;
}
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer__list > li { border-bottom: 1px solid var(--rule); }
.drawer__list > li > a {
  display: block; padding: .85rem 0;
  font-size: 1.5rem; font-weight: 300; letter-spacing: -.02em; color: var(--water); text-decoration: none;
}
.drawer__sub { padding: 0 0 .9rem 1rem; }
.drawer__sub a { display: block; padding: .3rem 0; color: var(--water-soft); text-decoration: none; }
.drawer__foot { display: grid; gap: .75rem; }
.drawer__pay { display: inline-flex; align-items: center; gap: .5rem; justify-self: center; padding: .5rem; color: var(--water); }
.nav-open { overflow: hidden; }
.nav-open .header { background: var(--mist); box-shadow: none; }

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: clip;
  padding-block: clamp(1.5rem, 3vw, 3rem) clamp(4.5rem, 7vw, 6rem);
  background: radial-gradient(52rem 38rem at 76% 44%, #fff 0%, rgba(255, 255, 255, 0) 68%);
}
/* On wide screens the hero stays put while the next section slides over it,
   and it recedes a little as it is covered. JS adds .is-pinned and --pin-top. */
.opening { position: relative; }
.hero.is-pinned { position: sticky; top: var(--pin-top, 0px); z-index: 0; }
.hero.is-pinned .hero__in {
  transform: scale(calc(1 - var(--scroll, 0) * .05));
  transform-origin: 50% 35%;
  opacity: calc(1 - var(--scroll, 0) * .8);
}
.hero__in {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  min-height: min(calc(100svh - 16rem), 43rem);
}
.hero__text {
  position: relative; z-index: 2;
  display: grid; gap: clamp(1.25rem, 2.2vw, 1.9rem); justify-items: start;
  transform: translate3d(0, calc(var(--scroll, 0) * -20px), 0);
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 300;
  font-variation-settings: "wght" var(--wght, 300);   /* set by the sphere: 300 → 390 → 300 */
  line-height: 1; letter-spacing: -.04em;
}
.hero__title .line { display: block; width: max-content; padding-block: .03em .14em; margin-bottom: -.1em; }
.hero__lead { font-size: var(--fs-lead); max-width: 31rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__trust {
  display: flex; align-items: center; gap: .9rem;
  max-width: 23rem; font-size: var(--fs-small); line-height: 1.4;
}
.hero__trust img { width: 3.25rem; flex: none; }

/* The stage: rings, sphere, floor shadow, doctor card */
.stage {
  position: relative; justify-self: end;
  width: min(100%, 40rem); aspect-ratio: 1;
  transform: translate3d(0, calc(var(--scroll, 0) * 30px), 0);
}
.stage__rings {
  position: absolute; inset: -20%; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 3.4rem, rgba(11, 58, 68, .06) 3.4rem calc(3.4rem + 1px));
  -webkit-mask-image: radial-gradient(closest-side, transparent 54%, #000 62%, transparent 100%);
          mask-image: radial-gradient(closest-side, transparent 54%, #000 62%, transparent 100%);
  transform: scale(calc(.95 + var(--breath, 0) * .07));
}
.stage__sphere { position: absolute; left: -9%; top: -9%; width: 118%; height: 118%; display: block; }
.stage__shadow {
  position: absolute; left: 22%; right: 22%; bottom: 3%; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 58, 68, .22), rgba(11, 58, 68, 0));
  transform: scale(calc(.82 + var(--breath, 0) * .22));
  opacity: calc(.95 - var(--breath, 0) * .35);
}

/* Without JavaScript the canvas cannot draw, so a still orb stands in for it. */
html:not(.js) .stage__sphere { display: none; }
html:not(.js) .stage::before {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 66% 74%, var(--leaf-tint), rgba(233, 244, 205, 0) 58%),
    radial-gradient(circle at 50% 50%, var(--spring-tint), #BDE6EA);
  box-shadow: inset -1.5rem -2rem 4rem rgba(11, 110, 121, .14);
}

.stage__doc { position: absolute; left: 6%; bottom: 1%; width: 52%; z-index: 3; perspective: 1100px; }
@media (min-width: 80rem) { .stage__doc { left: -13%; width: 57%; } }
.doc {
  display: block; padding: .6rem .6rem 1.1rem;
  background: var(--paper); border-radius: var(--r-l); box-shadow: var(--lift-2);
  text-decoration: none;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}
.doc img { width: 100%; border-radius: 1.3rem; }
.doc__meta { display: grid; gap: .2rem; padding: .85rem .65rem 0; }
.doc__meta strong { font-size: 1.02rem; color: var(--water); }
.doc__meta span { font-size: .85rem; line-height: 1.4; color: var(--water-soft); }

@media (min-width: 56.25rem) { :root { --fs-hero: clamp(3.4rem, 6.6vw, 5.4rem); } }

/* One orchestrated page-load moment */
.js .hero__title .line { overflow: hidden; }
.js .hero__title .line > span { display: block; transform: translateY(112%); }
.js .is-ready .hero__title .line > span { transform: none; transition: transform 1.15s var(--ease); }
.js .is-ready .hero__title .line:nth-child(2) > span { transition-delay: .11s; }
.js .is-settled .hero__title .line { overflow: visible; }

.js .hero [data-intro] { opacity: 0; transform: translateY(1.1rem); }
.js .hero.is-ready [data-intro] {
  opacity: 1; transform: none;
  transition: opacity .9s ease calc(var(--i, 0) * .1s + .45s), transform 1s var(--ease) calc(var(--i, 0) * .1s + .45s);
}
.js .hero .stage__doc { opacity: 0; transform: translateY(2.5rem) rotate(3deg); }
.js .hero.is-ready .stage__doc { opacity: 1; transform: none; transition: opacity .9s ease 1.05s, transform 1.2s var(--ease) 1.05s; }

/* 6. About ----------------------------------------------------------------- */
.about {
  position: relative; z-index: 4;
  margin-top: calc(clamp(1.75rem, 4vw, 3rem) * -1);
  padding-block: var(--section);
  background: var(--paper);
  border-radius: clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3rem) 0 0;
}
.about__in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 2.5vw, 2.5rem); row-gap: clamp(2rem, 4vw, 3.5rem);
}
.about__title { grid-column: 1 / span 9; }
.about__photo { grid-column: 1 / span 7; }
.about__photo .unveil { border-radius: var(--leaf-a); overflow: hidden; }
.about__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about__body { grid-column: 8 / -1; align-self: center; display: grid; gap: 1.1rem; }

.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.facts > div { padding: 1.5rem 1.5rem 0 0; }
.facts > div + div { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.facts dt { font-size: var(--fs-h3); font-weight: 450; color: var(--water); letter-spacing: -.01em; }
.facts dd { margin: .3rem 0 0; font-size: var(--fs-small); }

/* 7. Services -------------------------------------------------------------- */
.services { background: var(--paper); padding-bottom: var(--section); }
.services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
.service { display: grid; gap: 1.1rem; align-content: start; }
.service__photo { display: block; border-radius: var(--leaf-a); overflow: hidden; margin-bottom: .5rem; }
.service--flip .service__photo { border-radius: var(--leaf-b); }
.service__photo img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.service h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 400; }
.service h3 a { text-decoration: none; }
.service h3 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }

/* 8. Deck (3D cards): treatments + reviews ---------------------------------- */
.treat { background: var(--mist); padding-block: var(--section); overflow-x: clip; }

.deck { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.deck__tabs { position: relative; display: grid; gap: 1.75rem; }
html:not(.js) .deck__tabs, html:not(.js) .deck__controls .round, html:not(.js) .deck__count { display: none; }
.deck__group { display: grid; justify-items: start; }
.deck__group-label { font-size: var(--fs-small); color: var(--water-mute); margin-bottom: .35rem; }
.deck__tab {
  display: flex; align-items: center; gap: .7rem;
  padding: .34rem 0; text-align: left;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 300; letter-spacing: -.015em; line-height: 1.25;
  color: var(--water-mute);
  transition: color .25s, font-weight .35s, transform .45s var(--ease);
}
.deck__tab::before {
  content: ""; flex: none; width: .7rem; height: .7rem; margin-left: -1.4rem;
  background: var(--leaf); border-radius: 0 100% 0 100%;
  opacity: 0; transform: scale(.3) rotate(-60deg);
  transition: opacity .3s, transform .45s var(--ease);
}
.deck__tab:hover { color: var(--water); }
.deck__tab[aria-selected="true"] { color: var(--water); font-weight: 450; transform: translateX(1.4rem); }
.deck__tab[aria-selected="true"]::before { opacity: 1; transform: none; }

.deck__view { perspective: 1400px; perspective-origin: 40% 50%; padding: 3.25rem 4.75rem 0 0; }
.deck__stage {
  display: grid; gap: 1rem;
  transform-style: preserve-3d;
}
.js .deck__stage { gap: 0; }
.js .deck__card:not([data-depth]) { opacity: 0; }
.js .deck__card {
  grid-area: 1 / 1;
  transform-origin: 50% 100%;
  transition: transform .85s var(--ease), opacity .45s ease;
  will-change: transform, opacity;
}
.js .deck__card[data-depth="0"] { transform: none; opacity: 1; }
/* The front card stays flat so its text is crisp. The cards behind it drift
   with the pointer (--tx / --ty, from -1 to 1), which is what gives the depth. */
.js .deck__card[data-depth="1"] { transform: translate3d(calc(1.6rem + var(--tx, 0) * .7rem), calc(-1.15rem + var(--ty, 0) * .5rem), -90px) rotate(calc(1.6deg + var(--tx, 0) * 1deg)); opacity: 1; }
.js .deck__card[data-depth="2"] { transform: translate3d(calc(3.2rem + var(--tx, 0) * 1.4rem), calc(-2.3rem + var(--ty, 0) * 1rem), -180px) rotate(calc(3.2deg + var(--tx, 0) * 2deg)); opacity: 1; }
.js .deck__card[data-depth="3"],
.js .deck__card[data-depth="4"] { transform: translate3d(4.8rem, -3.45rem, -270px) rotate(4.8deg); opacity: 0; }
.js .deck__card[data-depth="4"] { visibility: hidden; transition: transform .85s var(--ease), opacity .45s ease, visibility 0s .45s; }

.card {
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 21rem; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--card-bg, var(--paper)); color: var(--card-ink, var(--water-soft));
  border-radius: var(--r-l); box-shadow: var(--lift-2);
}
.card h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 350; color: var(--card-head, var(--water)); }
.card p { font-size: var(--fs-lead); max-width: 30rem; }
.card .link { align-self: flex-start; margin-top: auto; color: var(--card-link, var(--spring-ink)); text-decoration-color: currentColor; }
.card .link:hover { color: var(--card-head, var(--water)); }
.treat .deck__card:nth-child(4n + 2) { --card-bg: var(--spring-tint); }
.treat .deck__card:nth-child(4n + 3) { --card-bg: var(--leaf-tint); }
.treat .deck__card:nth-child(4n + 4) { --card-bg: var(--water); --card-ink: #CFE3E6; --card-head: #fff; --card-link: var(--leaf); }

.deck__controls { display: flex; align-items: center; gap: .75rem; margin-top: 1.75rem; color: var(--water); }
.deck__count { font-size: var(--fs-small); color: var(--water-mute); font-variant-numeric: tabular-nums; min-width: 4.5rem; }
.deck__all { margin-left: auto; margin-right: 4.75rem; }

/* Without JavaScript every card is shown, laid out as a plain grid. */
html:not(.js) .deck { grid-template-columns: minmax(0, 1fr); align-items: start; }
html:not(.js) .deck__view { perspective: none; padding: 0; }
html:not(.js) .deck__stage { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; transform-style: flat; }
html:not(.js) .deck__card { min-height: 0; box-shadow: var(--lift-1, 0 1px 2px rgba(11, 58, 68, .08)); }
html:not(.js) .deck__controls { margin-top: 1.25rem; }
html:not(.js) .deck__all { margin-left: 0; margin-right: 0; }

/* Reviews use the same deck on the deep-water band */
.voices { background: var(--water); color: #CFE3E6; padding-block: var(--section); overflow-x: clip; }
.voices h2 { color: #fff; }
.deck--voices { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.voices__head { display: grid; gap: 1rem; align-content: center; }
.voices .deck__controls { color: #fff; }
.voices .deck__count { color: #9DBDC2; }
.voices .round:hover { background: #fff; color: var(--water); }
.voices .deck__card:nth-child(3n + 2) { --card-bg: var(--spring-tint); }
.voices .deck__card:nth-child(3n) { --card-bg: var(--leaf-tint); }
.quote { min-height: 17rem; }
.quote figure { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; flex: 1; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); font-weight: 300; line-height: 1.42; letter-spacing: -.01em; color: var(--water); max-width: none; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { font-weight: 500; color: var(--water); }

/* 9. Spotlight + telemedicine ------------------------------------------------ */
.spot { background: var(--paper); padding-block: var(--section); }
.spot__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.spot__photo { position: relative; }
.spot__photo .unveil { border-radius: var(--leaf-b); overflow: hidden; }
.spot__photo img { width: 100%; aspect-ratio: 1000 / 929; object-fit: cover; }
.spot__chip {
  position: absolute; right: -1.25rem; bottom: 2.75rem;
  display: flex; align-items: center; gap: .65rem;
  padding: .75rem 1.2rem; border-radius: 999px;
  background: var(--paper); box-shadow: var(--lift-2);
  font-size: var(--fs-small); font-weight: 500; color: var(--water);
}
.spot__chip::before { content: ""; width: .7rem; height: .7rem; background: var(--leaf); border-radius: 0 100% 0 100%; }
.spot__text { display: grid; gap: 1.25rem; }
.spot__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }

.tele { background: var(--paper); padding-bottom: var(--section); }
.tele__band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: center; gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 7vw, 6.5rem);
  background: var(--harbor); border-radius: var(--leaf-a);
}
.tele__text { display: grid; gap: 1.1rem; justify-items: start; }
.tele__text .lead { max-width: 30rem; }
.tele__actions { margin-top: .6rem; }
.tele__art { perspective: 1000px; justify-self: end; width: min(100%, 21rem); }
.tele__float { animation: float 7s ease-in-out infinite; }
.tele__art img { width: 100%; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
@keyframes float { 0%, 100% { transform: translateY(-.45rem); } 50% { transform: translateY(.45rem); } }

/* 10. First visit + team ------------------------------------------------------ */
.visit { background: var(--paper); padding-bottom: var(--section); }
.steps {
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --line: calc(75% + .75 * var(--gap));   /* from the first number to the last */
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step;
}
.steps::before, .steps::after { content: ""; position: absolute; left: 1.5rem; top: calc(1.5rem - 1px); height: 2px; }
.steps::before { width: var(--line); background: var(--rule); }
.steps::after { width: calc(var(--line) * var(--p, 0)); background: var(--spring-ink); }
.steps li { position: relative; display: grid; gap: .55rem; align-content: start; padding-top: 4.5rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--rule);
  font-weight: 500; color: var(--water-mute);
  transition: background-color .45s, color .45s, box-shadow .45s, transform .55s var(--ease);
}
.steps li.is-done::before { background: var(--leaf); color: var(--water); box-shadow: inset 0 0 0 2px var(--leaf); transform: scale(1.08); }
.steps p { font-size: var(--fs-small); max-width: 17rem; }
.visit__forms {
  display: flex; align-items: flex-start; gap: .8rem;
  margin-top: clamp(2rem, 4vw, 3.5rem); padding: 1.2rem 1.5rem;
  background: var(--mist); border-radius: var(--r-m); color: var(--water);
}
.visit__forms .icon { margin-top: .2rem; color: var(--spring-ink); }

.team { background: var(--mist); padding-block: var(--section); }
.team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.person { display: grid; gap: .3rem; align-content: start; }
.person__photo { margin-bottom: .9rem; border-radius: 1.25rem 5rem 1.25rem 5rem; overflow: hidden; background: var(--spring-tint); }
.person:nth-child(even) .person__photo { border-radius: 5rem 1.25rem 5rem 1.25rem; }
.person__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); }
.person h3 { font-size: 1.15rem; }
.person__role { font-size: var(--fs-small); font-weight: 450; color: var(--spring-ink); }
.person p:last-child { font-size: var(--fs-small); margin-top: .25rem; }

/* 11. Insurance --------------------------------------------------------------- */
.ins { background: var(--paper); padding-block: var(--section); }
.ins__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ins__head > div { display: grid; gap: .9rem; }
.marquee__track { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.75rem 3.75rem; padding-inline: var(--gutter); }
.marquee__track li { flex: none; }
.marquee__track img { width: auto; height: 2.6rem; }
.marquee.is-live {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.marquee.is-live .marquee__track { flex: none; flex-wrap: nowrap; justify-content: flex-start; padding-inline: 0 3.75rem; animation: marquee 46s linear infinite; }
.marquee.is-live:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* 12. Questions, contact, footer ------------------------------------------------ */
.help { background: var(--paper); padding-block: var(--section); }
.help__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.faq { display: grid; gap: 1.75rem; }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__q { font-size: inherit; font-weight: inherit; letter-spacing: 0; }
.faq__btn {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  width: 100%; padding: 1.2rem 0; text-align: left;
  font-size: var(--fs-lead); font-weight: 450; color: var(--water);
}
.faq__icon {
  position: relative; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--rule);
  transition: background-color .3s, box-shadow .3s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .8rem; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%);
  transition: transform .45s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--leaf); box-shadow: none; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__panel p { padding: 0 3.5rem 1.4rem 0; max-width: 38rem; }
.js .faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.js .faq__panel > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s .45s; }
.js .faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.js .faq__item.is-open .faq__panel > div { visibility: visible; transition-delay: 0s; }

.reads { display: grid; gap: 1.5rem; padding-top: .6rem; }
.reads h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); font-weight: 400; }
.reads ul { border-top: 1px solid var(--rule); }
.reads li a { display: grid; gap: .3rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.reads li span { font-weight: 450; line-height: 1.4; color: var(--water); transition: color .2s; }
.reads li a:hover span { color: var(--spring-ink); text-decoration: underline; text-underline-offset: .22em; }
.reads time { font-size: var(--fs-small); color: var(--water-mute); }

.contact { background: var(--mist); padding-block: var(--section); }
.contact__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.contact__main { display: grid; justify-items: start; }
.contact__main h2 { max-width: 34rem; }
.contact__phone {
  display: inline-block; margin-block: 1.1rem 2rem;
  font-size: clamp(2.4rem, 1rem + 6.5vw, 6rem); font-weight: 300; letter-spacing: -.045em; line-height: 1;
  color: var(--water); text-decoration: none; font-variant-numeric: tabular-nums;
  transition: color .25s, font-weight .5s;
}
.contact__phone:hover { color: var(--spring-ink); font-weight: 400; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact__card {
  display: grid; gap: 1.25rem;
  padding: 2.25rem 2.25rem 2.5rem;
  background: var(--paper); border-radius: var(--leaf-a-sm); box-shadow: var(--lift-1);
  color: var(--water-soft);
}
.contact__card strong { color: var(--water); }
.contact__card ul { display: grid; gap: .7rem; }
.contact__card a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--spring-ink); text-decoration: none; }
.contact__card a:hover { color: var(--water); text-decoration: underline; text-underline-offset: .22em; }

.footer { background: var(--water); color: #BFD6DA; font-size: var(--fs-small); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .22em; }
.footer__top { display: grid; grid-template-columns: 1.35fr 1fr 1.5fr .8fr; gap: 2.5rem; }
.footer h2 { margin-bottom: 1rem; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: #fff; }
.footer li + li { margin-top: .55rem; }
.footer__brand { display: grid; gap: 1rem; align-content: start; }
.footer__brand img { width: auto; height: 3.2rem; }
.footer__mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem 2.5rem; align-items: center; margin-top: 3rem; }
.footer__badge { display: flex; align-items: center; gap: 1rem; max-width: 22rem; line-height: 1.45; }
.footer__badge img { width: 4.25rem; flex: none; padding: .2rem; background: #fff; border-radius: 50%; }
.crisis { padding: 1.15rem 1.5rem; border-radius: var(--r-m); background: rgba(255, 255, 255, .08); color: #E6F1F2; }
.crisis a { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); }

.dock {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1.6fr; gap: .6rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--rule);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.dock.is-on { transform: none; }
.dock .btn { min-height: 3rem; padding-inline: 1rem; }


/* 13. Scroll reveals: headings rise from a mask, photos open like a window ----- */
[data-reveal="rise"] { padding-bottom: .14em; }
.js [data-reveal="rise"] { overflow: hidden; }
.js [data-reveal="rise"] > span { display: block; transform: translateY(108%); transition: transform 1s var(--ease); }
.js [data-reveal="rise"].is-in > span { transform: none; }
.js [data-reveal="unveil"] { clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--ease-soft); }
.js [data-reveal="unveil"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="unveil"] img { transform: scale(1.12); transition: transform 1.7s var(--ease); }
.js [data-reveal="unveil"].is-in img { transform: none; }

/* 14. Responsive ---------------------------------------------------------------- */
@media (max-width: 79.99rem) {
  .header__phone span { display: none; }
  .header__phone { width: 3rem; height: 3rem; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rule); }
}

@media (max-width: 69.99rem) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__actions { gap: .6rem; }
}

@media (max-width: 56.24rem) {
  .utility { display: none; }

  .hero__in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 2.5rem; }
  .stage { justify-self: center; width: min(100%, 30rem); margin-bottom: 4.5rem; }
  .stage__doc { left: 50%; bottom: -5.5rem; width: min(78%, 21rem); margin-left: calc(min(78%, 21rem) / -2); }
  .hero__text, .stage { transform: none; }

  .about__title, .about__photo, .about__body { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { padding: 1.25rem 1rem 1.25rem 0; }
  .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }

  .services__grid { grid-template-columns: minmax(0, 1fr); }

  .deck, .deck--voices { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .deck__tabs {
    display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: .25rem var(--gutter) .5rem;
  }
  .deck__tabs::-webkit-scrollbar { display: none; }
  .deck__group { display: contents; }
  .deck__group-label { display: none; }
  .deck__tab {
    flex: none; min-height: 2.75rem; padding: .6rem 1.05rem; border-radius: 999px; white-space: nowrap;
    font-size: 1rem; font-weight: 400; color: var(--water);
    box-shadow: inset 0 0 0 1.5px var(--rule);
  }
  .deck__tab::before { display: none; }
  .deck__tab[aria-selected="true"] { background: var(--water); color: #fff; font-weight: 400; box-shadow: none; transform: none; }
  .deck__view { padding: 2.25rem 2.5rem 0 0; }
  .js .deck__card[data-depth="1"] { transform: translate3d(1.1rem, -.9rem, -70px) rotate(1.4deg); }
  .js .deck__card[data-depth="2"] { transform: translate3d(2.2rem, -1.8rem, -140px) rotate(2.8deg); }
  .js .deck__card[data-depth="3"], .js .deck__card[data-depth="4"] { transform: translate3d(3.3rem, -2.7rem, -210px) rotate(4.2deg); }
  .deck__controls { flex-wrap: wrap; }
  .deck__all { margin-right: 0; }

  .spot__in { grid-template-columns: minmax(0, 1fr); }
  .spot__chip { right: .75rem; bottom: 1.5rem; }

  .tele__band { grid-template-columns: minmax(0, 1fr); padding-bottom: 1.5rem; border-radius: 1.75rem 4.5rem 1.75rem 4.5rem; }
  .tele__art { justify-self: center; }
  .tele__art { width: min(100%, 17rem); }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps::before, .steps::after { display: none; }

  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }

  .ins__head, .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .help__in, .contact__in { grid-template-columns: minmax(0, 1fr); }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__mid { grid-template-columns: minmax(0, 1fr); }

  :root { --leaf-a: 1.5rem 4.5rem 1.5rem 4.5rem; --leaf-b: 4.5rem 1.5rem 4.5rem 1.5rem; }
}

@media (max-width: 47.99rem) {
  .dock { display: grid; }
  .footer { padding-bottom: 6.25rem; }   /* room for the action bar */
}

@media (max-width: 37.49rem) {
  :root { --header-h: 4.25rem; }
  .brand img { height: 2.35rem; }
  .header__book { display: none; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .ticks { columns: 1; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .steps li { padding: 0 0 2rem 4.25rem; min-height: 4.5rem; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.5rem - 1px); top: 3rem; bottom: 0; width: 2px; background: var(--rule); }
  .steps p { max-width: none; }
  .faq__panel p { padding-right: 0; }
  .person__photo { border-radius: 1rem 3.25rem 1rem 3.25rem; }
  .person:nth-child(even) .person__photo { border-radius: 3.25rem 1rem 3.25rem 1rem; }
  .contact__card { padding: 1.75rem 1.5rem 2rem; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .card { min-height: 19rem; }
}

/* 15. Reduced motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero__text, .stage { transform: none; }
}
