/* ─────────────────────────────────────────────────────────────
   TMD-Redesign V2  |  styles.css
   Dark cinematic hero → light, editorial content
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #000000;
  --white:       #ffffff;

  /* Light theme (everything after the landing) */
  --paper:       #faf9f6;   /* warm off-white page background */
  --paper-alt:   #f3f1ec;   /* slightly deeper band for alternating sections */
  --card:        #ffffff;
  --ink:         #1c2420;   /* near-black green — headings */
  --ink-soft:    rgba(28, 36, 32, 0.78);   /* body copy */
  --ink-faint:   rgba(28, 36, 32, 0.55);   /* captions, fine print */
  --line:        rgba(28, 36, 32, 0.12);
  --green:       #2e5f3a;   /* deep green accent on light */
  --green-soft:  rgba(46, 95, 58, 0.08);

  /* Dark hero accents */
  --accent:      #7eb87a;

  --font-body:   'Inter', system-ui, sans-serif;
  --font-serif:  'Fraunces', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* We control scrolling via JS while the hero is active */
}

/* Sub-pages (no hero) sit on the light background */
body.light-page {
  background: var(--paper);
}

/* ─────────────────────────────────────────────────────────────
   HEADER  (fixed, always on top)
   ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  /* subtle gradient so text reads over any bg */
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0) 100%);
  pointer-events: none; /* pass clicks through the gradient part */
  transition: background 0.35s ease;
}
.site-header > * { pointer-events: all; }

/* Logo */
.logo { display: flex; align-items: center; padding-top: 6px; }
.site-logo {
  display: block;
  height: 114px;
  width: auto;
  object-fit: contain;
  background: transparent;
  transition: filter 0.35s ease;
}

/* Nav — centered in the header on every page */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav-link {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }

/* Header over light content: dark text, frosted white backdrop */
.site-header.on-light {
  background: rgba(250,249,246,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.on-light .site-logo {
  /* tint the logo to --green (#2e5f3a) */
  filter: brightness(0) saturate(100%) invert(30%) sepia(31%) saturate(693%) hue-rotate(84deg) brightness(94%) contrast(89%);
}
.site-header.on-light .nav-link {
  color: var(--green);
}
.site-header.on-light .nav-link:hover {
  color: var(--green);
  background: var(--green-soft);
}
.site-header.on-light button.nav-link {
  border-color: var(--line);
}
.site-header.on-light .nav-toggle span {
  background: var(--green);
}
.site-header.on-light .gooey-login-btn,
.site-header.on-light .gooey-arrow-btn {
  background: var(--green);
  color: var(--paper);
}
.site-header.on-light .gooey-login-btn:hover {
  background: var(--ink);
}

/* Gooey login */
.gooey-btn-wrap { position: relative; height: 2rem; }
.gooey-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 2rem;
}
.gooey-login-btn,
.gooey-arrow-btn {
  height: 2rem;
  border: none;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.3s;
}
.gooey-login-btn { padding: 0 1.5rem; position: relative; z-index: 10; }
.gooey-login-btn:hover { background: rgba(255,255,255,0.88); }
.gooey-arrow-btn {
  position: absolute; right: 0;
  width: 2rem; padding: 0; z-index: 0;
  transform: translateX(-2.5rem);
}
.gooey-inner:hover .gooey-arrow-btn { transform: translateX(-4.75rem); }

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────── */
/* Tall scroll track: the sticky stage inside stays pinned while the user
   scrolls ~1.2 extra viewports, which drives the card expansion. */
.hero-section {
  position: relative;
  width: 100%;
  height: 220vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: opacity;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(1.15);
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
}

/* Split title */
.split-title {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  pointer-events: none;
  will-change: transform;
}

.title-left,
.title-right {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 400;
  color: rgba(235, 245, 235, 0.94);
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  will-change: transform;
}

.title-left em {
  font-style: italic;
  font-weight: 400;
}

/* Media card (scroll-expandable) */
.media-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.media-card {
  position: relative;
  width: 300px;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.45);
  will-change: width, height, border-radius;
  transition: border-radius 0.1s;
}

.media-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.media-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.42);
  border-radius: inherit;
  will-change: opacity;
}

/* Hero CTA — always visible while the hero is on screen */
.hero-cta {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 0.9rem 2.4rem;
  font-size: 0.9rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

/* Scroll hint */
.scroll-hint {
  margin-top: 1.25rem;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(220,240,220,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  will-change: opacity;
  animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%       { transform: translateY(5px); opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────
   CONTENT SECTION (below hero, revealed after expand) — LIGHT
   ───────────────────────────────────────────────────────────── */
.content-section {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  padding: 6rem 2rem 5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Shared section header pattern */
.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

/* Heading + copy */
.content-hero-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 6rem;
}
@media (max-width: 768px) {
  .content-hero-text { grid-template-columns: 1fr; }
}

.content-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.content-heading em {
  font-style: normal;
  font-weight: 400;
  color: var(--green);
}

.content-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-soft);
  padding-top: 0.5rem;
}

.content-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ─────────────────────────────────────────────────────────────
   TREATMENTS
   ───────────────────────────────────────────────────────────── */
.treatments-section {
  margin-bottom: 6.5rem;
  text-align: center;
}
.treatments-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.treatments-subheading {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
}
@media (max-width: 900px) {
  .treatments-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .treatments-grid { grid-template-columns: 1fr; }
}

.treatment-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.9rem 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.treatment-card:hover {
  border-color: rgba(46,95,58,0.35);
  box-shadow: 0 12px 32px rgba(28,36,32,0.07);
  transform: translateY(-3px);
}
.treatment-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.treatment-card p {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
}

.treatments-note {
  margin: 2.25rem auto 0;
  max-width: 46rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-faint);
}

/* Superscript disclaimer references */
.disc-ref {
  font-size: 0.62em;
  vertical-align: super;
  color: var(--green);
  text-decoration: none;
  margin-left: 0.15em;
}
.disc-ref:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────
   HOW IT WORKS / OUR PROCESS
   ───────────────────────────────────────────────────────────── */
.process-section {
  margin-bottom: 6.5rem;
}
.process-header {
  text-align: center;
  margin-bottom: 3.25rem;
}
.process-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.process-subheading {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.75;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  counter-reset: step;
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
}

.process-step {
  position: relative;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.process-step-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--green);
  display: block;
  margin-bottom: 0.75rem;
}
.process-step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.process-step p {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ─────────────────────────────────────────────────────────────
   PRICING — LIGHT
   ───────────────────────────────────────────────────────────── */
.pricing-section {
  margin-bottom: 6.5rem;
  text-align: center;
}

.pricing-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.pricing-subheading {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(28,36,32,0.08);
}
.pricing-card--featured {
  background: var(--green-soft);
  border-color: rgba(46,95,58,0.35);
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.pricing-card h3 {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  padding-right: 4rem;
}
.pricing-card-tag {
  color: var(--green);
  font-weight: 400;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.pricing-card .price {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--ink);
}
.price-period {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-faint);
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 2rem;
}
.pricing-features li {
  position: relative;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   PATIENT PORTAL
   ───────────────────────────────────────────────────────────── */
.portal-section {
  margin-bottom: 6.5rem;
}
.portal-card {
  background: var(--green-soft);
  border: 1px solid rgba(46,95,58,0.16);
  border-radius: 20px;
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .portal-card {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.75rem;
    gap: 2rem;
  }
}
.portal-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.portal-body {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-soft);
}
.portal-features {
  margin-bottom: 0;
}
.portal-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-faint);
}
.portal-note a {
  color: var(--green);
}

.pricing-cta {
  justify-content: center;
  width: 100%;
}

.pricing-note {
  margin: 2rem auto 0;
  max-width: 46rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-faint);
}

/* ─────────────────────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────────────────────── */
.contact-section {
  margin-bottom: 6.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-section { grid-template-columns: 1fr; padding: 2.5rem 1.75rem; }
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
}
.contact-body {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}
.contact-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  border-left: 1px solid var(--line);
  padding-left: 2.5rem;
}
@media (max-width: 800px) {
  .contact-details { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; }
}
.contact-detail dt {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.35rem;
}
.contact-detail dd {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
}
.contact-detail dd a {
  color: var(--ink);
  text-decoration: none;
}
.contact-detail dd a:hover { color: var(--green); }

/* ─────────────────────────────────────────────────────────────
   DISCLAIMERS (fine print)
   ───────────────────────────────────────────────────────────── */
.disclaimers-section {
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}
.disclaimers-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.disclaimers-list {
  list-style: none;
  counter-reset: disclaimer;
  max-width: 62rem;
}
.disclaimers-list li {
  counter-increment: disclaimer;
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
  scroll-margin-top: 8rem;
}
.disclaimers-list li::before {
  content: counter(disclaimer) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-serif);
  color: var(--green);
}
.disclaimers-list a {
  color: var(--green);
  text-decoration: none;
}
.disclaimers-list a:hover { text-decoration: underline; }
.disclaimers-list li:target {
  color: var(--ink-soft);
}

/* ─────────────────────────────────────────────────────────────
   SUB-PAGES (treatments.html / how-it-works.html)
   ───────────────────────────────────────────────────────────── */
.page-section {
  background: var(--paper);
  min-height: 70vh;
  padding: 12rem 2rem 6rem;
}
.page-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.page-header {
  max-width: 44rem;
  margin-bottom: 4rem;
}
.page-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.page-heading em {
  font-style: normal;
  color: var(--green);
}
.page-intro {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-soft);
}
.page-intro p + p { margin-top: 1rem; }

/* Professional care / team credentials callout */
.team-callout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--green-soft);
  border: 1px solid rgba(46,95,58,0.25);
  border-radius: 1.1rem;
  padding: 1.6rem 1.75rem;
  margin: 3.5rem 0;
}
.team-callout svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--green);
  margin-top: 0.15rem;
}
.team-callout h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.team-callout p {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* Call-to-action band at the bottom of sub-pages */
.page-cta {
  margin-top: 4.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  text-align: center;
}
.page-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.page-cta p {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}
.page-cta .content-buttons {
  justify-content: center;
  margin-top: 0;
}

/* ─────────────────────────────────────────────────────────────
   SHARED BUTTONS
   ───────────────────────────────────────────────────────────── */
.btn-outline,
.btn-solid {
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(28,36,32,0.3);
  color: var(--ink);
}
.btn-outline:hover {
  background: rgba(28,36,32,0.05);
  border-color: rgba(28,36,32,0.5);
}
.btn-solid {
  background: var(--green);
  border: 1px solid transparent;
  color: var(--white);
}
.btn-solid:hover { background: #24492d; }

/* ─────────────────────────────────────────────────────────────
   FAQs — LIGHT
   ───────────────────────────────────────────────────────────── */
.faq-section {
  background: var(--paper);
  padding: 12rem 2rem 6rem;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-intro { margin-bottom: 4.5rem; }
.faq-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.faq-heading em {
  font-style: normal;
  font-weight: 400;
  color: var(--green);
}
.faq-subheading {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 34rem;
}

.faq-category {
  margin-bottom: 3.5rem;
}
.faq-category-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 400;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }
.faq-question:hover { color: var(--green); }

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--green);
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.75rem;
  font-size: 0.925rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 60ch;
}
.faq-answer p + p { margin-top: 1rem; }
.faq-answer a { color: var(--green); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }
.faq-answer em { font-style: normal; color: var(--ink-faint); }

.faq-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: none;
  margin-top: 0.5rem;
}
@media (max-width: 700px) {
  .faq-pricing-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   LEGAL PAGES (e.g. Privacy Policy) — LIGHT
   ───────────────────────────────────────────────────────────── */
.legal-section {
  background: var(--paper);
  min-height: 60vh;
  padding: 12rem 2rem 6rem;
}
.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}
.legal-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 2rem;
}
.legal-body {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-soft);
}
.legal-body p { margin-bottom: 1.25rem; }
.legal-body h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--green);
  margin: 2.5rem 0 1rem;
}
.legal-body ul {
  list-style: none;
  margin-bottom: 1.25rem;
}
.legal-body li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
}
.legal-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
}
.legal-body a {
  color: var(--green);
  text-decoration: none;
}
.legal-body a:hover { text-decoration: underline; }
.legal-updated {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ─────────────────────────────────────────────────────────────
   BOOKING FLOW (book.html) — LIGHT
   ───────────────────────────────────────────────────────────── */
.book-section {
  background: var(--paper);
  min-height: 90vh;
  padding: 12rem 2rem 6rem;
}
.book-inner {
  max-width: 700px;
  margin: 0 auto;
}
.book-intro { margin-bottom: 3rem; text-align: center; }
.book-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.book-heading em {
  font-style: normal;
  font-weight: 400;
  color: var(--green);
}
.book-subheading {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
}

.book-step { display: none; }
.book-step.is-active { display: block; animation: book-reveal 0.5s ease; }
@keyframes book-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.book-back {
  background: transparent;
  border: none;
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  margin-bottom: 1.75rem;
  padding: 0;
  transition: color 0.2s ease;
}
.book-back:hover { color: var(--green); }

.book-step-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--green);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Existing / new patient choice */
.patient-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .patient-choice { grid-template-columns: 1fr; }
}
.choice-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
}
.choice-card:hover {
  border-color: rgba(46,95,58,0.4);
  box-shadow: 0 12px 32px rgba(28,36,32,0.07);
  transform: translateY(-3px);
}
.choice-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.choice-card p {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
}
.choice-card.is-selected {
  border-color: rgba(46,95,58,0.7);
  box-shadow: 0 12px 32px rgba(28,36,32,0.07);
}

/* Plan selector on booking page */
.book-plan-choice {
  margin-bottom: 1.5rem;
}

/* Calendly embed */
.calendly-wrap {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.calendly-wrap iframe {
  width: 100%;
  height: 780px;
  border: none;
  display: block;
}

/* Non-blocking notes under the booking calendar */
.book-aside {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.6rem 1.75rem;
}
.book-aside-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.book-aside-body {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.book-aside .modal-info-list { margin-bottom: 0; }
.book-aside-links a {
  font-size: 0.875rem;
  color: var(--green);
  text-decoration: none;
}
.book-aside-links a:hover { text-decoration: underline; }

/* New-patient onboarding */
.onboarding-welcome { text-align: center; padding: 1rem 0 0.5rem; }
.onboarding-tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.onboarding-body {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  text-align: center;
}
.onboarding-list {
  max-width: 46ch;
  margin: 0 auto 2rem;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink-soft);
}
.onboarding-list li { margin-bottom: 0.5rem; }
.onboarding-download {
  display: flex;
  margin: 0 auto 2.5rem;
  width: fit-content;
}
.onboarding-actions { display: flex; justify-content: center; }

@media (max-width: 640px) {
  .calendly-wrap iframe { height: 680px; }
}

/* ─────────────────────────────────────────────────────────────
   FOOTER — LIGHT
   ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  padding: 4rem 2rem 2.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-tmd {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 14vw, 9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.35em;
  margin-bottom: 3rem;
  user-select: none;
  color: var(--green);
  -webkit-text-stroke: 1.25px var(--green);
  text-stroke: 1.25px var(--green);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease, transform 1.1s ease, letter-spacing 1.1s ease;
}
@supports ((-webkit-text-stroke: 1px black) or (text-stroke: 1px black)) {
  .footer-tmd {
    color: transparent;
  }
}
.footer-tmd.in-view {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: 0.04em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-faint);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--green);
}

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Footer map */
.footer-map {
  max-width: 640px;
  margin: 0 auto 2.75rem;
}
.footer-map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.footer-map-caption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-faint);
}
.footer-map-caption a {
  color: var(--green);
  text-decoration: none;
}
.footer-map-caption a:hover {
  text-decoration: underline;
}

/* Footer contact block */
.footer-contact {
  margin-bottom: 2.75rem;
  text-align: center;
}
.footer-contact-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 0.9rem;
}
.footer-contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.footer-contact-item {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
a.footer-contact-item:hover {
  color: var(--green);
}
.footer-hours {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-social-link:hover {
  color: var(--green);
  border-color: rgba(46,95,58,0.4);
  background: var(--green-soft);
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
}

/* Nav "Work with us" button (rendered as a .nav-link button) */
button.nav-link {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  font-family: var(--font-body);
  cursor: pointer;
}
button.nav-link:hover {
  background: rgba(255,255,255,0.08);
}
.site-header.on-light button.nav-link:hover {
  background: var(--green-soft);
}

/* ─────────────────────────────────────────────────────────────
   MODALS (Work with us / Contact / Important Information) — LIGHT
   ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,26,22,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 64px rgba(20,26,22,0.18);
}
.modal-overlay.is-open .modal {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--ink-faint);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--green); }

.modal-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 0.75rem;
  padding-right: 1.5rem;
}
.modal-subheading {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.modal-step { display: none; }
.modal-step.is-active { display: block; animation: book-reveal 0.4s ease; }

.modal-info-list {
  list-style: none;
  margin-bottom: 2rem;
}
.modal-info-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}
.modal-info-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
}

.modal .patient-choice { gap: 1rem; }
.modal .choice-card { padding: 1.5rem; }

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.modal-form input,
.modal-form textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  resize: vertical;
}
.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.modal-form button { margin-top: 0.5rem; }

.modal-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.modal-contact-info .footer-contact-item {
  font-size: 0.85rem;
}

body.modal-open { overflow: hidden; }

/* Mobile: modals become a full-width bottom sheet */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 1.25rem 1.25rem 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 1.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .modal-overlay.is-open .modal { transform: translateY(0); }
  .modal-close {
    top: 0.65rem;
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
  }
  .modal-heading { font-size: 1.35rem; }
  /* 16px inputs stop iOS Safari zooming in on focus */
  .modal-form input,
  .modal-form textarea {
    font-size: 1rem;
    padding: 0.8rem 0.9rem;
  }
  .modal-form button,
  .modal .btn-solid {
    width: 100%;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
  .modal .choice-card { padding: 1.25rem; }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mid-width: tighter nav + smaller logo so the centered nav clears the logo */
@media (max-width: 1200px) {
  .nav-link { font-size: 0.78rem; padding: 0.5rem 0.6rem; }
  .site-logo { height: 90px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0; right: 0; left: auto;
    height: 100vh;
    width: min(75vw, 300px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    background: rgba(10, 14, 11, 0.97);
    backdrop-filter: blur(6px);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 150;
  }
  .site-nav.is-open { transform: translateX(0); }
  /* Slide-out panel stays dark on every page — force light text inside it */
  .site-nav .nav-link,
  .site-header.on-light .site-nav .nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    width: 100%;
  }
  .site-nav .nav-link:hover,
  .site-header.on-light .site-nav .nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
  }
  /* Open-menu burger must stay visible over the dark panel */
  .site-header.on-light .nav-toggle[aria-expanded="true"] span {
    background: var(--white);
  }
  body.nav-open { overflow: hidden; }
  .site-logo { height: 72px; }
  .split-title { gap: 0.75rem; flex-direction: column; text-align: center; }
  .title-left, .title-right { white-space: normal; text-align: center; font-size: 2.4rem; }
}