/*
 * WholeMind — polish.css
 * Targeted refinements loaded after main.css.
 * Organised: token additions → global → component → section → responsive.
 */

/* ===== EXTRA TOKENS ===== */
:root {
  --color-bg-peach:   #FDF5F0;
  --color-bg-cream:   #FAF6F3;
  --color-accent-mid: #8A4040;
  --shadow-xl:        0 16px 60px rgba(0,0,0,0.13);
  --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);

  /* Header (now white) */
  --header-text:        #2A2A2A;
  --header-text-muted:  rgba(42,42,42,0.65);
  --utility-bg:         #2D2D2D;
}

/* =============================================================
   HEADER — WHITE VERSION (matches Figma)
   Overrides the dark-navy values in main.css
   ============================================================= */

/* Utility bar: stays dark, text right-aligned */
.site-utility-bar {
  background: #2D2E2E;
  height: 45px;
  display: flex;
  align-items: center;
  border-bottom: none;
  padding-block: 0;
}
.site-utility-bar__inner {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: var(--space-4);
  align-items: center;
}
/* wp_nav_menu list — render items inline with a divider between them */
.site-utility-bar__menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-utility-bar__menu li {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0;
}
/* Thin divider before every item except the first */
.site-utility-bar__menu li + li::before {
  content: '';
  position: absolute;
  left: calc(var(--space-5) / -2);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 13px;
  background: rgba(255,255,255,0.28);
}
.site-utility-bar a {
  font-size: 0.875rem;  /* 14px — Figma */
  font-weight: 500;
  letter-spacing: 0.01em;
}
/* Contact Us link: light teal */
.site-utility-bar a:first-of-type { color: #D8F4EF; }
/* Patient Portal link: pure white */
.site-utility-bar a:last-of-type  { color: #FFFFFF; }
.site-utility-bar a:hover { opacity: 0.85; }
.site-utility-bar__divider {
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
}

/* Main header: white background */
.site-header {
  background: #FFFFFF;
  border-bottom: none;
  box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition-base);
}
.site-header.is-sticky {
  box-shadow: 0px 6px 12px rgba(0,0,0,0.15);
}
.site-header__inner {
  height: 80px;
  padding-block: 0;
  gap: var(--space-8);
  display: flex;
  align-items: center;
}
.site-header.is-sticky .site-header__inner {
  height: 72px;
}

/* Logo image — Figma: 60px height */
.site-logo__img {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}
.site-logo:hover .site-logo__img { opacity: 0.85; }

/* Remove old SVG-based logo text (no longer needed) */
.site-logo__mark,
.site-logo__text,
.site-logo__name,
.site-logo__tagline { display: none; }

/* wp_nav_menu wrapper list — make it a flex row to match the fallback <nav> */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nav links: Figma spec — 13.5px, #4D4D4D, letter-spacing 0.135px */
.site-nav__link {
  color: #4D4D4D;
  font-size: 0.84375rem; /* 13.5px */
  font-weight: 500;
  letter-spacing: 0.135px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.site-nav__link:hover,
.site-nav__link--active,
.site-nav__link[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Hamburger lines: dark for white header */
.site-header__hamburger span {
  background: var(--header-text);
}

/* CTA button in header — Figma: 277×43px, #6DA8A3, border-radius 5px */
.site-header__cta {
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 5px !important;
  background: #6DA8A3 !important;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile menu: dark overlay stays dark, but show logo in white */
.site-logo--mobile { margin-bottom: var(--space-6); }
.site-logo--mobile img { filter: brightness(0) invert(1); }

/* ===== GLOBAL TYPOGRAPHY ===== */

/* Tighter h3 when inside a card so it doesn't overpower at large viewports */
.card h3,
.specialty-card h3,
.condition-tile h3 {
  font-size: clamp(1rem, 2vw, var(--text-xl));
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

/* Eyebrow: small leading dash anchors it visually */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Eyebrow on dark backgrounds */
.mobile-menu .eyebrow::before { background: rgba(255,255,255,0.5); }

/* Refined animation curve */
.fade-in-up {
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}

/* ===== BUTTONS ===== */

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109,168,163,0.40);
  background: #5a9490;
  color: #fff;
  border-color: #5a9490;
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--outline:hover {
  transform: translateY(-2px);
}

/* Slightly tighter, crisper letter-spacing on all buttons */
.btn { letter-spacing: 0.01em; }

/* ===== CARDS ===== */

.card {
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.11);
  border-color: rgba(109,168,163,0.25);
}

/* (Header styles are in the HEADER section above) */

/* ===== MOBILE MENU — FIX ANIMATION ===== */
/*
 * display:none→flex cannot CSS-transition. Use visibility+opacity+pointer-events
 * so the opacity fade actually fires. Element is position:fixed so no layout impact.
 */
.mobile-menu {
  display: flex !important;  /* always in flex flow */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* ===== HERO — Full-bleed photo + organic cream overlay (exact Figma) ===== */

.hero {
  position: relative;
  min-height: clamp(580px, 58vw, 1115px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #F8F6F4;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Organic cream SVG shape — absolutely fills the hero, clips left ~45% */
.hero__organic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* Two-column grid */
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  padding-block: clamp(80px, 10vw, 130px);
  width: 100%;
}

.hero__content {
  max-width: 560px;
}

/* Right col is visually empty — photo shows through organic shape cutout */
.hero__image-col { min-height: 1px; }

/* Mobile hero photo — hidden on desktop */
.hero__mobile-img { display: none; }

/* ---- Text elements — exact Figma values ---- */
.hero__eyebrow {
  font-size: 0.875rem;       /* 14px — Figma */
  font-weight: 400;           /* Figma: 400 */
  letter-spacing: 2px;        /* Figma: 2px */
  text-transform: uppercase;
  color: rgba(76, 76, 76, 0.85); /* Figma exact */
  margin-bottom: var(--space-5);
  line-height: 26px;
}
.hero__eyebrow::before {
  background: rgba(60, 134, 124, 0.7); /* Figma teal divider */
  width: 28px;
  height: 1px;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.75vw, 4.5rem); /* 72px at 1920px */
  line-height: 1.097;         /* 79/72 — Figma */
  letter-spacing: -0.025em;   /* -1.8px at 72px ≈ -0.025em */
  color: #2E3030;             /* Figma exact */
  font-weight: 700;
  margin-bottom: var(--space-6);
  max-width: 616px;
}

.hero__body {
  font-size: clamp(1rem, 1.2vw, 1.25rem); /* 20px at 1920px */
  font-weight: 500;           /* Figma: 500 */
  line-height: 1.6;           /* 32/20 — Figma */
  color: #60403E;             /* Figma exact — warm dusty rose */
  max-width: 576px;
  margin-bottom: var(--space-8);
}

/* Hero insurance logos row (Figma: Aetna, Cigna, United, BCBS) */
.hero__logos {
  margin-top: var(--space-9);
  max-width: 490px;
}
.hero__logos img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  opacity: 0.92;
}

/* Hero CTA — Figma: 300×55px, #6DA8A3, border-radius 5px */
.hero__cta {
  font-size: 1rem;
  font-weight: 600;
  padding: 18px 32px;
  min-width: 300px;
  border-radius: 5px !important;
  background: #6DA8A3 !important;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
}

/* Bottom wave — absolutely at the bottom of the section */
.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}
.hero__wave svg {
  display: block;
  width: 100%;
  height: clamp(60px, 7vw, 110px);
}

/* ===== TRUST STRIP — Figma: 232px, #6DA8A3, Domine 700 18px labels ===== */

.trust-strip {
  background: #6DA8A3;
  border-bottom: 5px solid #62AEA4;
  min-height: 232px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 0;
}

.trust-strip .container {
  width: 100%;
  max-width: 1504px;
  margin-inline: auto;
}

/* 4-column grid */
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: center;
  min-height: 168px;
}

.trust-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;                  /* Figma gap between icon and label */
  padding-block: 9px;
  padding-inline: var(--space-6);
  position: relative;
  min-height: 140px;
}

/* Divider between items */
.trust-strip__item + .trust-strip__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.22);
}

/* Circular icon container — Figma: 90×90px, rgba(255,255,255,0.2), border-radius 50px */
.trust-strip__icon {
  width: 90px;
  height: 90px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.trust-strip__icon svg {
  height: 43px;
  width: auto;
  display: block;
}

/* Label — Figma: Domine, 700, 18px */
.trust-strip__label {
  font-family: var(--font-display);
  font-size: 1.125rem;        /* 18px */
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.11;
  text-align: center;
}

@media (max-width: 768px) {
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
  .trust-strip__item + .trust-strip__item::before { display: none; }
}

/* ===== WHY WHOLEMIND ===== */

.why-wholemind {
  background: var(--color-bg-warm, #FBF7F5);
  padding-block: var(--space-20);
}

.why-wholemind__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}

.why-wholemind__heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-8);
}

.ww-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.ww-feature {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.ww-feature__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(109,168,163,0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ww-feature__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.ww-feature__body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Trust card */
.ww-trust-card {
  background: #FFFFFF;
  border: 1px solid rgba(109,168,163,0.20);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-8);
  box-shadow: 0 8px 32px rgba(109,168,163,0.10);
  position: relative;
  overflow: hidden;
}

.ww-trust-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #7BBDB8);
}

.ww-trust-card__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.ww-trust-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.3;
}

.ww-trust-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ww-trust-stat {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.ww-trust-stat__icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .why-wholemind__inner { grid-template-columns: 1fr; }
}

/* ===== HOW IT WORKS — Figma exact ===== */

.how-it-works {
  /* exact colour baked into the curve + phone images so they blend seamlessly */
  background: #e7edec;
  position: relative;
  overflow: hidden;
  padding-top: clamp(90px, 11vw, 170px);
}
/* Layered-curves decorative top + bottom edges (Figma 1:856 / 1:860) */
.how-it-works__curves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.how-it-works__curves--bottom {
  top: auto;
  bottom: -1px;
}
.how-it-works {
  padding-bottom: clamp(90px, 11vw, 170px);
}
.how-it-works__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Heading: Domine Bold 48px, #2e3030 */
.how-it-works__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.33vw, 3rem);
  font-weight: 700;
  line-height: 1.083;
  color: #2e3030;
  margin: 0 0 20px;
}

/* 110px accent rule (brown) */
.how-it-works__rule {
  border: none;
  border-top: 3px solid #60403e;
  width: 110px;
  margin: 0 0 30px;
}

/* Intro: Inter Medium 24px, #60403e (Figma) */
.how-it-works__subhead {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.354;
  color: #60403e;
  margin-bottom: 40px;
}

/* Steps card: white, rounded 30px, shadow (Figma: 2px 5px 6px rgba(0,0,0,0.5)) */
.how-it-works__steps-card {
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 2px 5px 6px rgba(0,0,0,0.50);
  padding: 62px 41px;
}

/* Steps in a row with vertical separator */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.step-sep {
  width: 1px;
  background: rgba(0,0,0,0.12);
  align-self: stretch;
  margin: 0 15px;
  min-height: 250px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

/* Circle with inline icon (teal glyph on pastel tint) */
.step-item__circle-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  color: #6da8a3;
  flex-shrink: 0;
}
.step-item__circle-wrap svg {
  width: 46px;
  height: 46px;
  display: block;
}

/* Step title: Domine Regular 18px, black */
.step-item__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: #000000;
  line-height: 1.389;
  margin: 0;
}

/* Step body: Inter Regular 18px, #60403e */
.step-item__body {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.611;
  color: #60403e;
  max-width: 220px;
  margin: 0;
}

/* Footer: note left + button right */
.how-it-works__footer {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.how-it-works__note {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.375;
  color: #60403e;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

/* CTA button: teal #6da8a3, 310×70px, radius 10px, Inter SemiBold 20px */
.btn--hiw-cta {
  background: #6da8a3 !important;
  border-color: #6da8a3 !important;
  color: #fff !important;
  border-radius: 10px !important;
  min-width: 310px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
}
.btn--hiw-cta:hover {
  background: #5c9490 !important;
  border-color: #5c9490 !important;
}

/* Phone mockup: single composed image (frame + floating cards from Figma) */
.how-it-works__phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.how-it-works__phone-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

@media (max-width: 1100px) {
  .how-it-works__inner { grid-template-columns: 1fr; }
  .how-it-works__phone-wrap { order: -1; }
  .phone-mock { width: 300px; }
}
@media (max-width: 1100px) {
  /* Hide the phone mockup on tablet/mobile (Figma mobile has no phone) */
  .how-it-works__phone-wrap { display: none; }
}
@media (max-width: 700px) {
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .step-sep { display: none; }
  .how-it-works__steps-card { padding: 32px 22px; }
  /* Steps become left-aligned rows: icon left, text right (Figma mobile) */
  .step-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }
  .step-item__circle-wrap { width: 64px; height: 64px; }
  .step-item__circle-wrap svg { width: 32px; height: 32px; }
  .step-item__body { max-width: none; }
  .how-it-works__footer { flex-direction: column; align-items: stretch; gap: 20px; }
  .how-it-works__note { text-align: left; }
  .btn--hiw-cta { min-width: 0; width: 100%; }
}

/* Provider credentials line — smaller, lighter than the name */
.provider__creds {
  display: inline-block;
  margin-top: var(--space-1);
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

/* ===== WHO WE HELP — Figma exact: white bg, teal pill heading, leaf portrait ===== */

.who-we-help {
  background: #FFFFFF;
  padding-block: 0;
}

.who-we-help__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-block: clamp(64px, 7.5vw, 120px);
}

/* Eyebrow: dark line (Figma #3c867c line, #4c4c4c text) */
.who-we-help .eyebrow {
  color: #4c4c4c;
  margin-bottom: 24px;
}
.who-we-help .eyebrow::before {
  background: #3c867c;
  width: 24px;
  height: 2px;
}

/* Heading — Domine 700, 46px, #2e3030; "We Serve" in teal pill */
.who-we-help__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.85vw, 2.875rem);
  line-height: 1.304;
  letter-spacing: -0.01em;
  color: #2e3030;
  font-weight: 700;
  margin: 0 0 20px;
}

/* "We Serve" — teal text with #c1eee6 pill badge behind it */
.wwh-teal {
  display: inline-block;
  color: #3c867c;
  background: #c1eee6;
  border-radius: 10px 30px 10px 30px;
  padding: 6px 18px;
  font-size: 0.913em;  /* 42/46 ≈ 0.913 */
  line-height: 1.35;
  vertical-align: baseline;
  margin-left: 4px;
}

/* Body — Inter 500, 18px, #60403e, leading 29px */
.who-we-help__body {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.611;
  color: #60403e;
  margin: 0 0 28px;
  max-width: 548px;
}

/* Numbered list */
.wwh-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  max-width: 540px;
}
.wwh-list__item {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 90px;
  border-top: 1px solid rgba(0,0,0,0.10);
  position: relative;
  padding-left: 0;
}
.wwh-list__item:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.10);
}
/* Small teal dot (Figma: Ellipse2 ~25px circle) */
.wwh-list__bullet {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(60,134,124,0.45);
  flex-shrink: 0;
}
/* Number — Domine Regular 25px, teal 73% opacity */
.wwh-list__num {
  font-family: var(--font-display);
  font-size: 1.5625rem;
  font-weight: 400;
  color: rgba(60,134,124,0.73);
  line-height: 1;
  flex-shrink: 0;
  padding-left: 22px;
  min-width: 58px;
}
/* Item text — Inter Regular 16px, #4c4c4c, leading 25px */
.wwh-list__text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5625;
  color: #4c4c4c;
}

/* Italic note — left 3px teal border, mixed typography */
.wwh-note {
  border-left: 3px solid #3c867c;
  padding: 4px 0 4px 20px;
  margin: 0 0 40px;
  max-width: 480px;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.389;
  color: rgba(76,76,76,0.83);
}
.wwh-note__italic {
  font-style: italic;
  font-weight: 500;
  color: #3c867c;
}

/* CTA button — Figma: #6da8a3, 330×55px, radius 5px */
.wwh-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 330px;
  height: 55px;
  padding: 0 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px !important;
  background: #6da8a3 !important;
  color: #ffffff !important;
  border-color: #6da8a3 !important;
  box-shadow: 0px 1px 2px rgba(0,0,0,0.25);
}
.wwh-cta:hover {
  background: #5a9490 !important;
  border-color: #5a9490 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109,168,163,0.35);
}

/* Portrait — right column, Figma: 540×880px with teal offset border */
.who-we-help__image-wrap {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}
/* Teal offset border frame (Figma: 1px #82d2c4, offset +20px right, +24px down) */
.who-we-help__image-wrap::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 1px solid #82d2c4;
  border-radius: 100px 20px 100px 20px;
  pointer-events: none;
  z-index: 0;
}
/* Image: tl 100px, tr 20px, br 100px, bl 20px (Figma exact) */
.who-we-help__image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(440px, 100%);
  aspect-ratio: 540 / 880;
  object-fit: cover;
  object-position: center top;
  border-radius: 100px 20px 100px 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .who-we-help__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    padding-block: 64px;
  }
  .who-we-help__image-wrap { order: -1; }
  .who-we-help__image { width: min(360px, 90%); margin-inline: auto; }
}
@media (max-width: 600px) {
  .who-we-help__heading { font-size: clamp(1.6rem, 7vw, 2rem); }
  .who-we-help__image { width: 280px; }
  .wwh-cta { min-width: unset; width: 100%; }
}

/* ===== WHAT WE TREAT — Figma exact ===== */

.what-we-treat {
  background: #faf8f7;
  overflow: hidden;
  position: relative;
}
.what-we-treat > .container {
  position: relative;
  z-index: 1;
}

/* Botanical left decoration */
.what-we-treat__botanical {
  position: absolute;
  left: 0;
  top: 30px;
  width: 227px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

/* Header: centered, max 765px */
.what-we-treat__header {
  max-width: 765px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Eyebrow: warm maroon (#61403e) */
.what-we-treat .eyebrow {
  color: #61403e;
  font-size: 0.65625rem; /* ~10.5px */
  letter-spacing: 0.21em;
}
.what-we-treat .eyebrow::before {
  background: #61403e;
}

/* Heading — Domine 700, ~51px, #2e3030 */
.what-we-treat .section-header h2,
.what-we-treat__header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.133;
  letter-spacing: -0.018em;
  color: #2e3030;
  margin: 0;
}
.what-we-treat__header h2 em {
  font-style: italic;
}

/* Lotus underline (Figma: 242×42px) */
.what-we-treat__underline {
  display: block;
  width: 200px;
  max-width: 55%;
  height: auto;
  margin-top: 2px;
}

/* Subtext — Inter Medium 18px, #60403d */
.what-we-treat__header p {
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.611;
  color: #60403d;
  max-width: 480px;
  margin: 6px auto 0;
  text-align: center;
}

/* ---- Condition cards grid: 3 columns, 24px gap ---- */
.what-we-treat .conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1116px;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}

/* Card: Figma — #fefefe bg, teal bottom border, soft shadow */
.what-we-treat .condition-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 108px;
  padding: 11px 16px;
  background: #fefefe;
  border: none;
  border-bottom: 2.157px solid #83cabf;
  border-radius: 22px;
  box-shadow: 0px 8.627px 4.314px rgba(0,0,0,0.05);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s ease;
}
.what-we-treat .condition-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0px 12px 24px rgba(0,0,0,0.09);
}

/* Icon circle: 65px, unique bg color per card */
.what-we-treat .condition-tile__icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #e0f1f1;
}
.what-we-treat .condition-tile__icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

/* Per-card icon circle + glyph colors (Figma pastel circles) */
.what-we-treat .conditions-grid > .condition-tile-wrap:nth-child(1) .condition-tile__icon { background: #e0f1f1; color: #5a9b93; }
.what-we-treat .conditions-grid > .condition-tile-wrap:nth-child(2) .condition-tile__icon { background: #e3eee9; color: #5d9d83; }
.what-we-treat .conditions-grid > .condition-tile-wrap:nth-child(3) .condition-tile__icon { background: #e7f0f7; color: #6b95c4; }
.what-we-treat .conditions-grid > .condition-tile-wrap:nth-child(4) .condition-tile__icon { background: #fbebea; color: #cf7d77; }
.what-we-treat .conditions-grid > .condition-tile-wrap:nth-child(5) .condition-tile__icon { background: #e0f1f0; color: #5a9b93; }
.what-we-treat .conditions-grid > .condition-tile-wrap:nth-child(6) .condition-tile__icon { background: #fbe9e8; color: #cf7d77; }
.what-we-treat .conditions-grid > .condition-tile-wrap:nth-child(7) .condition-tile__icon { background: #fbf0e1; color: #c79a55; }
.what-we-treat .conditions-grid > .condition-tile-wrap:nth-child(8) .condition-tile__icon { background: #e6eff7; color: #6b95c4; }
.what-we-treat .conditions-grid > .condition-tile-wrap:nth-child(9) .condition-tile__icon { background: #fbf0e1; color: #c79a55; }

/* Card name: Domine Regular 24px, #2e3030 */
.what-we-treat .condition-tile__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: #2e3030;
  flex: 1;
  line-height: 1.2;
}

/* Arrow: right side */
.what-we-treat .condition-tile__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: rgba(131, 202, 191, 0.12);
  color: #6da8a3;
  transition: background 0.25s ease, transform 0.25s ease;
}
.what-we-treat .condition-tile__arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}
.what-we-treat .condition-tile:hover .condition-tile__arrow,
.what-we-treat .condition-tile[aria-expanded="true"] .condition-tile__arrow {
  background: #6da8a3;
  color: #ffffff;
}
.what-we-treat .condition-tile[aria-expanded="true"] .condition-tile__arrow {
  transform: rotate(90deg);
}

/* ---- Bottom CTA card (Figma: #f8f5f2 bg, peach border, 1300px wide) ---- */
.what-we-treat .contact-mini-cta {
  display: flex;
  align-items: center;
  gap: 52px;
  background: #f8f5f2;
  border: 1px solid #ffdfcf;
  border-radius: 20px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.15);
  padding: 28px 64px 28px 64px;
  max-width: 1300px;
  margin-inline: auto;
  margin-top: 24px;
}
.contact-mini-cta__img {
  flex-shrink: 0;
  width: 100px;
  height: auto;
  display: block;
}
.contact-mini-cta__divider {
  width: 1px;
  height: 81px;
  background: #e5c5a5;
  flex-shrink: 0;
}
.what-we-treat .contact-mini-cta__text {
  font-size: 1.125rem;
  line-height: 1.556;
  color: #60403e;
  flex: 1;
}
.what-we-treat .contact-mini-cta__text strong {
  font-weight: 500;
}
.what-we-treat .contact-mini-cta__btn {
  background: #949497 !important;
  border-color: #949497 !important;
  color: #fff !important;
  border-radius: 5px !important;
  min-width: 200px;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}
.what-we-treat .contact-mini-cta__btn:hover {
  background: #7e7e81 !important;
  border-color: #7e7e81 !important;
}

/* Remove old left-border hover from condition-tile when inside what-we-treat */
.what-we-treat .condition-tile {
  border-left: none;
}

/* ===== SPECIALTY FOCUS — Figma exact ===== */

.specialty-focus {
  background: #f5f5f5;
}
.specialty-focus .eyebrow {
  color: #4c4c4c;
  font-size: 0.65625rem;
  letter-spacing: 0.28em;
}
.specialty-focus .eyebrow::before {
  background: #4c4c4c;
}
.specialty-focus .section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.375vw, 3.375rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.1;
  color: #2e3030;
}
.specialty-focus .section-header p {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.611;
  color: #60403e;
  max-width: 650px;
  margin-inline: auto;
}

/* Cards grid: 3 columns, 40px gap (Figma: 490px apart at 1920) */
.specialty-focus .specialty-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1430px;
  margin-inline: auto;
  align-items: stretch;
}

/* Base card: white bg, brown border; all 4 corners rounded 30px.
   The concave top-right cut is painted by .specialty-card__corner overlay. */
.specialty-focus .specialty-card {
  position: relative;
  border-radius: 30px;
  min-height: 275px;
  padding: 40px 40px 36px;
  border: 1px solid #60403e;
  background: #ffffff;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Featured middle card: dark warm brown */
.specialty-focus .specialty-card--featured {
  background: #60403e;
  border-color: #60403e;
}

/* Corner quarter-circle decoration (top-right, Figma "card shade 1": 111×111px) */
.specialty-focus .specialty-card__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 111px;
  height: 111px;
  pointer-events: none;
  z-index: 2;
  border-radius: 0;
  /* Scoop = section bg (#f5f5f5) fills within 109px of the top-right corner;
     1px brown ring at 109–111px traces the concave arc. */
  background:
    radial-gradient(circle 111px at top right, transparent 109px, #60403e 109px, #60403e 111px, transparent 111px),
    radial-gradient(circle 111px at top right, #f5f5f5 0 109px, transparent 109px);
}
/* Filled dot: 64×64px sits at the top-right of the scoop (Figma Ellipse5) */
.specialty-focus .specialty-card__corner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #60403e;
}
/* Dark featured card: cream dot + light arc (brown arc would be invisible on dark bg) */
.specialty-focus .specialty-card--featured .specialty-card__corner {
  background:
    radial-gradient(circle 111px at top right, transparent 109px, rgba(241,233,225,0.55) 109px, rgba(241,233,225,0.55) 111px, transparent 111px),
    radial-gradient(circle 111px at top right, #f5f5f5 0 109px, transparent 109px);
}
.specialty-focus .specialty-card--featured .specialty-card__corner::before { background: #f1e9e1; }

/* Body row: text left + illustration right */
.specialty-focus .specialty-card__body-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.specialty-focus .specialty-card__text {
  flex: 1;
  min-width: 0;
}

/* Title: Domine Regular 28px (Figma: font-normal, not bold) */
.specialty-focus .specialty-card__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.21;
  letter-spacing: -0.003em;
  color: #2d2e2e;
  margin: 0 0 16px;
}
.specialty-focus .specialty-card--featured .specialty-card__title {
  color: #ffffff;
}

/* Divider (Figma: 290px wide horizontal rule, brown or white) */
.specialty-focus .specialty-card__divider {
  border: none;
  border-top: 1px solid rgba(96,64,62,0.25);
  margin: 0 0 16px;
  max-width: 290px;
}
.specialty-focus .specialty-card--featured .specialty-card__divider {
  border-top-color: rgba(255,255,255,0.3);
}

/* Body: Inter Medium 14px (Figma exact), warm taupe */
.specialty-focus .specialty-card__body {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.786;
  color: rgba(97,63,61,0.85);
  max-width: 225px;
  margin: 0;
}
.specialty-focus .specialty-card--featured .specialty-card__body {
  color: rgba(255,255,255,0.85);
}

/* Illustration: 100×100px, bottom-right of card */
.specialty-focus .specialty-card__art {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  opacity: 0.9;
}
.specialty-focus .specialty-card__art img {
  width: 100px;
  height: 100px;
  display: block;
  object-fit: contain;
}

/* CTA button: gray #949497, 330×55px, radius 5px (Figma) */
.specialty-focus .specialty-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.specialty-cta__btn {
  background: #949497 !important;
  border-color: #949497 !important;
  color: #fff !important;
  border-radius: 5px !important;
  min-width: 330px;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
}
.specialty-cta__btn:hover {
  background: #7e7e81 !important;
  border-color: #7e7e81 !important;
}

/* ===== HOW IT WORKS ===== */

/* Exact colour baked into the curve + phone mockup images so they blend. */
.how-it-works { background: #e7edec; }

.how-it-works__steps-card {
  border: 1px solid rgba(109,168,163,0.12);
}

/* ===== PROVIDER — Figma node 1:1260 ===== */

.provider {
  background: #f5f5f5;
}

.provider__inner {
  display: grid;
  grid-template-columns: minmax(0, 755fr) minmax(0, 717fr);
  gap: 80px;
  align-items: center;
}

/* Left: arch-framed composite portrait (botanical + badge baked in) */
.provider__photo-col {
  display: flex;
  justify-content: center;
}
.provider__photo {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* Right: content column */
.provider__content {
  max-width: 620px;
}

/* Eyebrow: line + uppercase label */
.provider__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4c4c4c;
  margin: 0 0 22px;
}
.provider__eyebrow-line {
  width: 24px;
  height: 2px;
  background: #4c4c4c;
  flex-shrink: 0;
}

/* Heading: Domine Bold 46px, #2e3030 with teal-highlighted first name */
.provider__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.875rem);
  font-weight: 700;
  line-height: 1.3;
  color: #2e3030;
  margin: 0 0 28px;
}
.provider__name-highlight {
  position: relative;
  color: #3c867c;
  z-index: 0;
}
.provider__name-highlight::before {
  content: '';
  position: absolute;
  inset: 0.05em -0.18em 0.12em;
  background: #c1eee6;
  border-radius: 10px 30px 10px 30px;
  z-index: -1;
}

/* Bio: Inter Medium 18px, #60403e, leading 29px */
.provider__bio {
  margin: 0 0 30px;
}
.provider__bio p {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.611;
  color: #60403e;
  margin: 0 0 18px;
}
.provider__bio p:last-child { margin-bottom: 0; }

/* Specialty chips */
.provider__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
}
.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.provider-chip__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(129, 210, 195, 0.14);
  color: #6da8a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.provider-chip__icon svg { width: 18px; height: 18px; display: block; }
.provider-chip__label {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #60403e;
}

/* CTA button: teal #6da8a3, rounded 10px, Inter Semibold 20px */
.provider__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #6da8a3;
  color: #ffffff;
  border-radius: 10px;
  min-width: 350px;
  height: 70px;
  padding: 0 32px;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.provider__cta:hover {
  background: #5e948f;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Who-we-help illustration placeholder — fills the circular frame */
.who-we-help__image--placeholder {
  overflow: hidden;
  display: block;
  background: linear-gradient(180deg, #EAF4F2 0%, #F6E9E3 100%);
}
.who-we-help__image--placeholder svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===== MARQUEE — Figma node 554:23308 (solid teal) ===== */

.marquee-strip {
  background: #80cac1;
}

/* ===== INSURANCE — Figma node 1:1304 ===== */

.insurance {
  background: #f5f5f5;
}
.insurance__inner {
  display: grid;
  grid-template-columns: minmax(0, 858fr) minmax(0, 554fr);
  gap: 80px;
  align-items: end;
}

/* Left column */
.insurance__header {
  text-align: left;
  margin-bottom: 36px;
  /* Figma: heading is 553px wide inside an 858px column, leaving the right
     third clear so the Self-Pay card can float up beside it (not over it). */
  max-width: 560px;
}
.insurance__title,
.insurance__plans-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #2e3030;
  margin: 14px 0 0;
  text-transform: capitalize;
}
.insurance__title-accent { color: #098083; }

/* Photo + self-pay overlay */
.insurance__photo-wrap {
  position: relative;
  border-radius: 24px;
}
.insurance__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 858 / 466;
  object-fit: cover;
  border-radius: 24px;
}
.ins-selfpay {
  position: absolute;
  top: -140px;
  right: 0;
  width: 280px;
  background: #098083;
  border-radius: 40px;
  padding: 25px 25px 22px;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(9,128,131,0.28);
}
.ins-selfpay__title {
  font-family: var(--font-display);
  font-size: 1.5625rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 18px;
}
.ins-selfpay__rates { margin: 0; }
.ins-selfpay__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.ins-selfpay__row dt { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.ins-selfpay__dur {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
}
.ins-selfpay__label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}
.ins-selfpay__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.ins-selfpay__note {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: #ffffff;
  margin: 14px 0 0;
}

/* Right column: chips cloud */
.ins-chips-cloud {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}
.ins-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 45px;
  padding: 0 22px;
  border-radius: 50px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: #1a1a1a;
  text-transform: capitalize;
}
.ins-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ins-chip--teal  { background: linear-gradient(256deg, #e5f1ee, #dceeeb); border-color: #cfe6e1; }
.ins-chip--teal  .ins-chip__dot { background: #6db5ab; }
.ins-chip--pink  { background: linear-gradient(243deg, #f8ebe8, #f5e4df); border-color: #f3ded8; }
.ins-chip--pink  .ins-chip__dot { background: #dba79c; }
.ins-chip--blue  { background: linear-gradient(248deg, #dee6f0, #d7e1ee); border-color: #cfdaeb; }
.ins-chip--blue  .ins-chip__dot { background: #9ab2d4; }
.ins-chip--amber { background: linear-gradient(84deg, #faf0d9, #fff8e8); border-color: #f0eada; }
.ins-chip--amber .ins-chip__dot { background: #e3c483; }

/* Right column: plans heading + note + cta */
.insurance__plans { text-align: right; margin-bottom: 44px; }
.insurance__plans-title { margin: 0; }
.insurance__plans-note {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.611;
  color: #60403e;
  margin: 22px 0 0;
  margin-left: auto;
  max-width: 435px;
}
.insurance__right { display: flex; flex-direction: column; align-items: flex-end; }
.insurance__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #6da8a3;
  color: #ffffff;
  border-radius: 10px;
  min-width: 350px;
  height: 70px;
  padding: 0 32px;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.insurance__cta:hover { background: #5e948f; color: #fff; transform: translateY(-1px); }

/* ===== WHY CHOOSE — FIX INVALID CSS ===== */

/*
 * `left: -var(--space-8)` is not valid CSS (can't negate a var directly).
 * Override with calc(). The fallback -28px in the original still applied but
 * this makes the intent explicit and correct.
 */
.reason-item__number {
  left: calc(-1 * var(--space-8));
}

.why-choose {
  background: var(--color-bg-sage);
  background-image: url('../images/why-choose-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ===== TESTIMONIALS — Figma node 1:1414 ===== */

.testimonials {
  background: #f5f5f5;
}

.testimonials .section-header { max-width: 1037px; margin-inline: auto; }
.testimonials__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.375rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: #2e3030;
  margin: 0 0 18px;
}
.testimonials__sub {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.611;
  color: #60403e;
  margin: 0 0 56px;
  max-width: 620px;
  margin-inline: auto;
}

/* Carousel viewport + track — fan layout on desktop */
.carousel__viewport { overflow: visible; padding: 20px 0 60px; }
.testimonials-carousel .carousel__track {
  position: relative;
  height: 420px;
  display: block;
  transition: none;
}

/* Each card: absolute-positioned in the fan */
.testimonials-carousel .testimonial-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: 295px;
  background: #ffffff;
  border-radius: 20px;
  border-top: 6px solid var(--accent, #c3c3c3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.45s;
}

/* Fan positions — assigned via data-pos attribute by JS */
.testimonial-card[data-pos="0"]  { transform: translateX(-50%);                                                      opacity: 1;    z-index: 3; }
.testimonial-card[data-pos="-1"] { transform: translateX(calc(-50% - 200px)) translateY(14px) rotate(-5deg);         opacity: 0.8;  z-index: 2; }
.testimonial-card[data-pos="1"]  { transform: translateX(calc(-50% + 200px)) translateY(14px) rotate(5deg);          opacity: 0.8;  z-index: 2; }
.testimonial-card[data-pos="-2"] { transform: translateX(calc(-50% - 370px)) translateY(28px) rotate(-9deg);         opacity: 0.55; z-index: 1; }
.testimonial-card[data-pos="2"]  { transform: translateX(calc(-50% + 370px)) translateY(28px) rotate(9deg);          opacity: 0.55; z-index: 1; }
.testimonial-card[data-pos="hidden"] { opacity: 0; pointer-events: none; z-index: 0; transform: translateX(-50%); }
.testimonial-card--gray  { --accent: #c3c3c3; }
.testimonial-card--blue  { --accent: #a1bbda; }
.testimonial-card--teal  { --accent: #7ac8be; }
.testimonial-card--pink  { --accent: #f1bfb8; }
.testimonial-card--amber { --accent: #f8d593; }

.testimonial-card__mark { color: #cfd2d2; }
.testimonial-card__mark svg { width: 40px; height: auto; display: block; }

.testimonial-card__quote { margin: 0; padding: 0; border: none; flex: 1; }
.testimonial-card__quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: #2e3131;
  text-transform: capitalize;
}

.testimonial-card__foot { display: flex; flex-direction: column; gap: 16px; }
.testimonial-card__rule { height: 1px; width: 100%; background: rgba(46,49,49,0.18); }
.testimonial-card__author {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: #2e3131;
  margin: 0;
  text-transform: capitalize;
}

/* Controls below */
.testimonials-carousel .carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 16px;
}
.testimonials-carousel .carousel__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(129,210,195,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6da8a3;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.testimonials-carousel .carousel__btn:hover { background: #6da8a3; color: #fff; }
.testimonials-carousel .carousel__dots { display: flex; gap: 12px; align-items: center; }
.testimonials-carousel .carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}
.testimonials-carousel .carousel__dot.is-active {
  background: linear-gradient(90deg, #81d2c3 0%, #99b8dd 100%);
  width: 28px;
  border-radius: 999px;
}

/* ===== PRIVACY / CONSENT BAND — Figma node 1:1445 ===== */

.privacy-band {
  position: relative;
  background: #60403e;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 8vw, 140px) clamp(96px, 11vw, 150px);
  overflow: hidden;
  text-align: center;
}
.privacy-band__text {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
  color: #ffffff;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.privacy-band__star {
  position: absolute;
  top: clamp(24px, 4vw, 56px);
  right: clamp(24px, 5vw, 90px);
  width: clamp(64px, 9vw, 150px);
  height: clamp(64px, 9vw, 150px);
  color: rgba(255,255,255,0.85);
  z-index: 1;
}
.privacy-band__star svg { width: 100%; height: 100%; display: block; }
.privacy-band__torn {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 2;
}

/* ===== FAQ — Figma node 1:1454 ===== */

.faq-section {
  background: #f5f5f5;
}
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 728fr) minmax(0, 800fr);
  gap: 72px;
  align-items: center;
}

/* Left column */
.faq__header { margin-bottom: 44px; }
.faq__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.375rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.1;
  color: #2e3030;
  margin: 14px 0 0;
}

/* FAQ rows */
.faq__list { margin: 0; }
.faq__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.faq__item:first-child { padding-top: 0; }
.faq__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq__icon svg { width: 30px; height: 30px; display: block; }
.faq__icon--teal  { background: rgba(129,210,195,0.18); color: #5a9b93; }
.faq__icon--green { background: #e3eee9; color: #5d9d83; }
.faq__icon--pink  { background: #fbe9e8; color: #cf7d77; }
.faq__icon--amber { background: #fbf0e1; color: #c79a55; }
.faq__item-text { padding-top: 4px; }
.faq__question {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #60403e;
  margin: 0 0 10px;
}
.faq__answer {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.571;
  color: #4c4c4c;
  margin: 0;
}

/* CTA */
.faq__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  background: #6da8a3;
  color: #ffffff;
  border-radius: 10px;
  height: 70px;
  padding: 0 40px;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.faq__cta:hover { background: #5e948f; color: #fff; transform: translateY(-1px); }

/* Right: arch-framed photo */
.faq__media { display: flex; justify-content: center; }
.faq__photo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 800 / 850;
  object-fit: cover;
  border-radius: 260px 260px 28px 28px;
}

/* ===== CONTACT CTA ===== */

.contact-cta {
  background: linear-gradient(160.52deg, #81d2c3 0%, #99b8dd 100%);
  position: relative;
  overflow: hidden;
}

/* Soft light orbs (Figma blur circles) */
.contact-cta__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  filter: blur(67px);
  pointer-events: none;
}
.contact-cta__orb--1 { width: 302px; height: 302px; top: 1px; right: 9%; }
.contact-cta__orb--2 { width: 304px; height: 304px; bottom: 30px; left: 3%; }

.contact-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 128px 80px;
}

/* Eyebrow pill */
.contact-cta__eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 8px 20px;
  color: #ffffff;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  margin-bottom: 32px;
}
.contact-cta__eyebrow-icon { flex-shrink: 0; opacity: 0.9; }

/* Heading */
.contact-cta__heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.17vw, 3.75rem);
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 24px;
  line-height: 1.25;
}

/* Subtext */
.contact-cta__subtext {
  font-size: clamp(1rem, 1.67vw, 1.5rem);
  color: rgba(255,255,255,0.95);
  max-width: 640px;
  line-height: 1.625;
  margin: 0 0 40px;
}

/* Buttons */
.contact-cta__buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.contact-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 40px;
  text-decoration: none;
  height: 60px;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}
.contact-cta__btn--primary {
  background: #ffffff;
  color: #81d2c3;
}
.contact-cta__btn--primary:hover { opacity: 0.95; color: #81d2c3; }
.contact-cta__btn--outline {
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  color: #ffffff;
}
.contact-cta__btn--outline:hover { background: rgba(255,255,255,0.3); color: #ffffff; }

/* Bullet points */
.contact-cta__bullets {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
}
.contact-cta__bullets span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-cta__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  flex-shrink: 0;
}

/* ===== FOOTER REFINEMENTS ===== */
/* (border removed — the wave divider sits above the footer) */

/* Footer logo: full-colour on the light footer (no invert) */
.footer-brand__logo-img {
  display: block;
  height: 56px;
  width: auto;
  transition: opacity var(--transition-fast);
}
.footer-brand__logo:hover .footer-brand__logo-img { opacity: 0.85; }

/* Remove old footer brand text */
.footer-brand__name,
.footer-brand__sub { display: none; }

/* Footer bottom bar separator */
.site-footer__bottom {
  border-top: 1px solid rgba(0,0,0,0.10);
}

/* ===== INNER PAGE HERO ===== */

.inner-page-hero {
  background: linear-gradient(135deg, var(--color-bg-peach) 0%, #FFFFFF 50%, var(--color-bg-sage) 100%);
  position: relative;
  overflow: hidden;
}
.inner-page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,168,163,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.inner-page-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* When no image, let text span full width */
.inner-page-hero__inner:only-child,
.inner-page-hero__inner > *:only-child {
  max-width: 760px;
}

.inner-page-hero__heading {
  margin-bottom: var(--space-5);
}

.inner-page-hero__body {
  font-size: var(--text-lg);
  max-width: 560px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .inner-page-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .inner-page-hero__body { font-size: var(--text-base); }
}

/* ===== FORM FIELD CSS CLASSES ===== */
/* Used by page-contact.php native form. These supplement the inline styles */

.contact-form { width: 100%; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: var(--space-4); }

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(109,168,163,0.18);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.form-radio-group {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.form-radio-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  cursor: pointer;
}

/* ===== SECTION BREATHING ROOM ===== */

/*
 * When two same-coloured sections stack, the boundary disappears.
 * A subtle hairline helps define the visual rhythm.
 */
.what-we-treat + .specialty-focus,
.insurance + .why-choose {
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* ===== CREDENTIAL BADGE REFINEMENT ===== */

.credential-badge {
  border: 1px solid rgba(109,168,163,0.2);
  font-size: var(--text-xs);
}

/* ===== PILL REFINEMENT ===== */

.pill {
  transition: background var(--transition-fast), color var(--transition-fast);
}
.pill:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===== SKIP LINK ===== */

.skip-link {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE POLISH ===== */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 64px 80px;
  }
  .hero__image-col { display: none; }
  .hero__content { max-width: 580px; }
  /* Trust strip: 2x2 grid on tablet */
  .trust-strip { min-height: 0; padding-block: 40px; }
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
    min-height: 0;
  }
  /* Only draw a divider before the 2nd item of each row */
  .trust-strip__item + .trust-strip__item::before { display: none; }
  .trust-strip__item:nth-child(even)::before {
    display: block;
    content: '';
    position: absolute;
    left: 0; top: 10%;
    height: 80%; width: 1px;
    background: rgba(255,255,255,0.22);
  }
}

/* Global guard: never allow horizontal overflow on small screens */
@media (max-width: 1024px) {
  html, body { overflow-x: hidden; }
}

@media (max-width: 900px) {
  /* Cap every fixed-width CTA so it can't push the page wider than the viewport */
  .specialty-cta__btn,
  .provider__cta,
  .ins-cta__btn,
  .btn--hiw-cta,
  .faq-still__btn,
  .contact-cta__btn {
    min-width: 0;
    max-width: 100%;
  }

  /* Specialty cards: stack */
  .specialty-focus .specialty-cards { grid-template-columns: 1fr; gap: 24px; }

  /* Provider: stack with photo first */
  .provider__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .provider__photo { max-width: 420px; }
  .provider__content { max-width: 100%; }

  /* Insurance: stack columns on tablet */
  .insurance__inner { grid-template-columns: 1fr; gap: 56px; }
  .insurance__right { align-items: center; }
  .insurance__plans { text-align: center; }
  .insurance__plans-note { margin-inline: auto; }
  .ins-chips-cloud { justify-content: center; }

  /* Testimonials: tablet — tighter fan, only 3 visible */
  .testimonial-card[data-pos="-2"],
  .testimonial-card[data-pos="2"] { opacity: 0; pointer-events: none; }
  .testimonial-card[data-pos="-1"] { transform: translateX(calc(-50% - 165px)) translateY(14px) rotate(-5deg); }
  .testimonial-card[data-pos="1"]  { transform: translateX(calc(-50% + 165px)) translateY(14px) rotate(5deg); }
}

@media (max-width: 900px) {
  /* Mobile hero: photo on top as a real image, text below on solid bg */
  .hero {
    min-height: unset;
    background-image: none !important;
    background: #ffffff;
  }
  .hero__organic { display: none; }
  .hero__mobile-img {
    display: block;
    width: 100%;
    height: clamp(240px, 62vw, 340px);
    object-fit: cover;
    object-position: center 28%;
  }
  .hero__image-col { display: none; }
  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 32px 64px;
  }
  .hero__content { max-width: 100%; }
}

@media (max-width: 768px) {
  /* Marquee strips are a desktop-only flourish — the mobile design omits them */
  .marquee-strip { display: none; }

  .hero__inner {
    padding-block: 28px 56px;
  }
  .hero__heading { font-size: clamp(1.875rem, 8vw, 2.4rem); }

  /* Trust strip: 2-col on mobile */
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* Condition tiles: compact 2-column grid on mobile (Figma mobile) */
  .what-we-treat .conditions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .what-we-treat .condition-tile-wrap { min-width: 0; }
  .what-we-treat .condition-tile {
    flex-direction: row;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    padding: 12px 10px;
    border-radius: 16px;
  }
  .what-we-treat .condition-tile__name {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .what-we-treat .condition-tile__icon {
    width: 40px;
    height: 40px;
  }
  .what-we-treat .condition-tile__icon svg { width: 22px; height: 22px; }
  .what-we-treat .condition-tile__name {
    font-size: 1rem;
    line-height: 1.15;
  }
  .what-we-treat .condition-tile__arrow {
    width: 26px;
    height: 26px;
  }
  .what-we-treat .condition-tile__arrow svg { width: 14px; height: 14px; }

  /* Mobile menu links: tighter on small screens */
  .mobile-menu__link { font-size: var(--text-2xl); }

  /* Inner page grid: stack */
  .inner-page-hero .grid-2 { grid-template-columns: 1fr !important; }

  /* Form row: single col */
  .form-row { grid-template-columns: 1fr; }

  /* Contact CTA: stack buttons */
  .contact-cta__buttons { flex-direction: column; align-items: stretch; }
  .contact-cta__btn { text-align: center; justify-content: center; }
  .contact-cta__inner { padding-block: 72px 56px; }
  .contact-cta__heading { font-size: clamp(1.875rem, 7vw, 2.25rem); }

  /* Testimonials: revert to single-card scroll carousel on mobile */
  .carousel__viewport { overflow: hidden; padding: 14px 4px 24px; }
  .testimonials-carousel .carousel__track {
    position: static;
    display: flex;
    gap: 0;
    height: auto;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .testimonials-carousel .testimonial-card {
    position: static;
    left: auto;
    top: auto;
    flex: 0 0 100%;
    width: auto;
    padding: 36px 28px;
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
    transition: none;
  }
  .testimonial-card__quote p { font-size: 1.125rem; }
  .testimonials__sub { margin-bottom: 40px; }

  /* FAQ: stack, image below, full-width CTA */
  .faq__inner { grid-template-columns: 1fr; gap: 40px; }
  .faq__media { order: 2; }
  .faq__photo { max-width: 380px; }
  .faq__heading { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .faq__cta { width: 100%; }

  /* Provider: full-width CTA, tighter heading */
  .provider__cta { width: 100%; }
  .provider__heading { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .provider__chips { gap: 12px 18px; }

  /* Insurance: single column, centered (Figma mobile) */
  .insurance__inner { grid-template-columns: 1fr; gap: 48px; }
  .insurance__header { text-align: center; margin-bottom: 24px; }
  .insurance__title,
  .insurance__plans-title { font-size: clamp(1.75rem, 7.5vw, 2.5rem); }
  .ins-selfpay { top: auto; bottom: -20px; right: 16px; left: 16px; width: auto; padding: 20px; border-radius: 28px; }
  .insurance__right { align-items: stretch; }
  .ins-chips-cloud { justify-content: center; gap: 12px; margin-bottom: 36px; }
  .ins-chip { height: 40px; padding: 0 16px; font-size: 1rem; }
  .insurance__plans { text-align: center; margin-bottom: 32px; }
  .insurance__plans-note { margin-inline: auto; }
  .insurance__cta { min-width: 0; width: 100%; }

  /* CTA buttons that should go full-width when stacked */
  .specialty-cta__btn,
  .ins-cta__btn,
  .btn--hiw-cta { width: 100%; }
}

@media (max-width: 375px) {
  .trust-strip__grid { grid-template-columns: 1fr; }
  .hero__body { font-size: var(--text-base); }
  .contact-cta__bullets { gap: 12px; flex-direction: column; }
}

/* ===== PRINT ===== */

@media print {
  .site-header, .site-utility-bar, .mobile-menu,
  .contact-cta, .marquee-strip { display: none; }
  .hero { padding-block: 2rem; }
}
