/* ============================================================
   INTEGRATED MEDICAL CENTRE — Design System
   Theme: Editorial Wellness · Deep Forest Green & Warm Parchment
   This file is organised as a reusable token + component system.
   New pages should only ever need the tokens + shared components
   below (nav, footer, buttons, section-header, cards) plus a
   page-specific block appended at the bottom of the file.
   ============================================================ */

/* Fonts (Sora, Manrope) are loaded via <link> tags in index.html's <head>
   rather than @import here — link tags are discovered by the browser's
   preloader immediately on page parse and load in parallel with this
   stylesheet, whereas an @import is only discovered after this file has
   already downloaded, adding a serial round-trip that can cause a visible
   flash of fallback-font text before the real fonts swap in. */

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  /* Greens — primary brand family
     Note: --green-800 and --green-200 hold the site's two theme
     background colors (dark forest / warm cream) — names kept for
     minimal disruption to existing references, though they're no
     longer literal greens. */
  --green-950: #232e20;
  --green-900: #2c3927;
  --green-800: #1a2e1f;   /* primary dark section background */
  --green-700: #465a3c;   /* secondary dark surface (cards on dark) */
  --green-600: #5c7650;
  --green-500: #6f9468;   /* sage accent — buttons, arrows, eyebrows */
  --green-400: #8bab7f;
  --green-300: #a8c29c;
  --green-200: #f8f4ec;

  /* Parchment / beige family */


  --sand-900: #3d3528;    /* dark ink-on-light heading color source */
  --sand-800: #5c4f3a;
  --sand-700: #7a6a50;
  --sand-600: #9a8768;
  --sand-500: #b8a480;
  --sand-400: #cfc0a0;
  --sand-300: #e0d4bc;
  --sand-200: #ede5d4;    /* primary light section background */
  --sand-150: #f3ece0;    /* alternate light surface / inactive card */
  --sand-100: #f8f4ec;    /* card body background on light sections */
  --sand-50:  #fdfaf5;

  --cream:    #f2ecda;    /* text/logo colour on dark green backgrounds */

  --ink:       #2b3327;   /* headings on light backgrounds */
  --ink-soft:  #46503f;
  --ink-muted: #6d7460;
  --ink-faint: #97998a;

  --white: #ffffff;

  /* Typography */
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', 'Helvetica Neue', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;

  /* Geometry */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 10px rgba(35,46,32,0.08);
  --shadow-md: 0 10px 34px rgba(35,46,32,0.14);
  --shadow-lg: 0 20px 60px rgba(35,46,32,0.22);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-w: 1280px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Nav links now jump to in-page anchors — offset the landing point so
   the fixed nav doesn't cover the top of the target section. 220px
   covers the nav's tallest state (unscrolled, full logo); the 800px
   query matches the breakpoint where the logo itself shrinks. */
html { scroll-behavior: smooth; scroll-padding-top: 0px; }
@media (max-width: 800px) {
  html { scroll-padding-top: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--sand-200);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
svg { display: block; }
:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.01em;
  
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
h1.on-dark, h2.on-dark { color: var(--cream); }

h1 { font-size: clamp(3rem, 5.4vw, 5rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(2.5rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

@media (max-width: 800px) {
  .brand-mark-img {
    width: 100px;
    height: 100px;
  }
  .brand-subtitle { font-size: 0.8rem; letter-spacing: 0.09em; }
  .brand-mark-logo {
    width: 150px;
    height: 150px;
  }
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 1rem;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}
section { padding: 6.5rem 0; }
.bg-dark { background: var(--green-800); }
.bg-light { background: var(--sand-200); }
.bg-light2 { background: var(--green-300); }
.bg-alt-light { background: var(--green-200); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.section-header .heading-block h2 { margin-top: 0.25rem; }
.section-header .header-action { flex-shrink: 0; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1.05rem 2.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-fill {
  background: var(--green-700);
  color: var(--white);
}
.btn-fill:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }

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

.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--sand-100); }

.btn-outline-sage {
  border-color: var(--green-500);
  color: var(--green-500);
}
.btn-outline-sage:hover { background: var(--green-500); color: var(--white); }

.btn-text {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.btn-text:hover { color: var(--green-500); }

/* Square arrow buttons — carousel controls */
.arrow-controls { display: flex; gap: 0.6rem; }
.arrow-btn {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-500);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.arrow-btn:hover { background: var(--green-700); }
.arrow-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.arrow-btn svg { width: 20px; height: 20px; }

/* ── Logo mark (shared: nav + footer) ──────────────────────── */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--cream);
}

.brand-mark svg text { font-family: var(--sans); }
.brand-mark-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.brand-mark-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.brand-subtitle {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  transition: color var(--transition);
}
#nav.scrolled .brand-subtitle { color: var(--cream); }

@media (max-width: 800px) {
  .brand-mark-img {
    width: 100px;
    height: 100px;
  }
  .brand-subtitle { font-size: 0.8rem; letter-spacing: 0.09em; }
  .brand-mark-logo {
    width: 150px;
    height: 150px;
  }
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#nav.scrolled {
  background: var(--green-800);
  box-shadow: var(--shadow-md);
}
/* interior pages whose hero sits directly behind the unscrolled nav */
#nav.nav--on-dark:not(.scrolled) .brand-subtitle,
#nav.nav--on-dark:not(.scrolled) .nav-link,
#nav.nav--on-dark:not(.scrolled) .nav-cart {
  color: var(--cream);
}
#nav.nav--on-dark:not(.scrolled) .nav-toggle span {
  background: var(--cream);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 2.5rem;
  max-width: var(--container-w);
  margin: 0 auto;
  transition: padding var(--transition);
}
#nav.scrolled .nav-inner { padding: 1rem 2.5rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links > li { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.4rem 0;
  opacity: 0.92;
  transition: opacity var(--transition), color var(--transition);
}
#nav.scrolled .nav-link { color: var(--cream); }
.nav-link:hover { opacity: 1; }
.nav-links > li > a.nav-link { position: relative; }
.nav-links > li > a.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition);
}
.nav-links > li > a.nav-link:hover::after { width: 100%; }
.nav-link svg { width: 13px; height: 13px; transition: transform var(--transition); }
.has-dropdown.open .nav-link svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 10;
}
.has-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown a:hover { background: var(--sand-100); color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-cart {
  color: var(--ink);
  position: relative;
  transition: color var(--transition);
}
#nav.scrolled .nav-cart { color: var(--cream); }
.nav-cart svg { width: 22px; height: 22px; }
.nav-cart .cart-count {
  position: absolute;
  top: -7px; right: -9px;
  background: var(--green-500);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); transition: var(--transition); transform-origin: center; }
#nav.scrolled .nav-toggle span { background: var(--cream); }
.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); }
.nav-toggle[aria-expanded="true"] span { background: var(--cream); }

/* The full desktop nav (logo + 5 links + cart + CTA button) needs ~1150px
   to lay out on one line without wrapping or clipping — 980px left a
   cramped, overflowing middle ground on tablet-width screens. */
@media (max-width: 1180px) {
  .nav-links, .nav-cart { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    inset: 0;
    top: 0;
    padding: 7rem 2.5rem 3rem;
    background: var(--green-800);
    gap: 1.75rem;
    overflow-y: auto;
  }
  .nav-links.mobile-open .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: var(--green-700);
    display: none;
    width: 100%;
    margin-top: 0.75rem;
  }
  .nav-links.mobile-open li.open .nav-dropdown { display: block; }
  .nav-links.mobile-open .nav-dropdown a { color: var(--cream); }
  .nav-links.mobile-open .nav-link { color: var(--cream); }
}

/* Below ~430px the logo + tagline no longer leave room for the hamburger
   on the same row (it was getting pushed off-screen) — shrink the mark,
   let the tagline wrap within a fixed width instead of running on one
   line, and tighten the nav's side padding/gap to win back the space. */
@media (max-width: 430px) {
  .nav-inner { padding: 1rem 1.1rem; gap: 0.85rem; }
  #nav.scrolled .nav-inner { padding: 0.75rem 1.1rem; }
  .brand-mark-img { width: 60px; height: 60px; }
  .brand-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    white-space: normal;
    max-width: 150px;
    line-height: 1.3;
  }
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  background: var(--green-200);
  padding: 11rem 0 6rem;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-copy p {
  color: var(--sand-800);
  font-size: 1.2rem;
  line-height: 1.85;
  max-width: 460px;
  margin: 2rem 0 2.75rem;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  color: var(--green-700); 
}
.hero-visual::before {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(111,148,104,0.35), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.hero-molecule-canvas {
  position: relative;
  width: 80%;
  max-width: 580px;
  aspect-ratio: 400 / 420;
}
.hero-molecule-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 900px) {
  .hero { padding: 9rem 0 4rem; }
  .hero .container { grid-template-columns: 1fr; gap: 1rem;}
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto 1rem; }
}

/* ── QUICK INFO STRIP ─────────────────────────────────────── */
/* Full-bleed dark band — background lives on the section (full
   viewport width) while the grid stays inside .container so the
   three columns line up with the rest of the page's content width. */
.quick-info { background: var(--green-900); padding: 0; }
.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.quick-info-card {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(242,236,218,0.14);
  transition: background var(--transition);
}
.quick-info-card:last-child { border-right: none; }
.quick-info-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-300);
  margin-bottom: 0.75rem;
}
.quick-info-detail {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
}
/* Mon-Fri / Saturday sit as two columns side by side rather than four
   stacked lines, split down the middle by a faint divider. */
.quick-info-hours {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
}
.quick-info-hours-col {
  flex: 1;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(242,236,218,0.14);
}
.quick-info-hours-col:first-child {
  padding-left: 0;
  border-left: none;
}
.quick-info-subdetail { font-size: 0.9rem; color: var(--sand-300); margin-top: 0.35rem; }
.quick-info-link { cursor: pointer; }
.quick-info-link:hover { background: var(--green-700); }
.quick-info-link:hover .quick-info-title,
.quick-info-link:hover .quick-info-detail { color: var(--white); }

@media (max-width: 700px) {
  .quick-info-grid { grid-template-columns: 1fr; }
  .quick-info-card { border-right: none; border-bottom: 1px solid rgba(242,236,218,0.14); }
  .quick-info-card:last-child { border-bottom: none; }
}

/* ── HEALTHIER STRIP ──────────────────────────────────────── */
.healthier-strip { background: var(--green-200); padding: 3.5rem 0; }
.healthier-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.healthier-strip-copy p {
  font-family: var(--display);
  font-size: clamp(2rem, 2.6vw, 3.2rem);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.4;
}
.healthier-strip-copy em { font-style: italic; color: var(--green-600); font-weight: 700;}
.healthier-strip-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--green-700);
  color: var(--green-700);
  white-space: nowrap;
  transition: var(--transition);
}
.healthier-strip-btn:hover { background: var(--green-700); color: var(--white); }

@media (max-width: 700px) {
  .healthier-strip-inner { flex-direction: column; align-items: flex-start; }
}

/* ── ABOUT / WELCOME TO IMC ──────────────────────────────────
   Three stacked rows, each an image + writeup. Left/right placement
   for each row is set purely by element order in the HTML (copy-then-
   photo = image right; photo-then-copy = image left) — no CSS
   variant class needed. On mobile every row collapses to one column
   and .welcome-photo gets order:-1, so the photo always lands before
   its writeup regardless of which side it was on at desktop width:
   image, text, image, text, image, text. */
.welcome-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.welcome-row + .welcome-row { margin-top: 6rem; }
.welcome-copy h2, .welcome-copy h3 { margin-bottom: 1.5rem; text-wrap: balance; }
.welcome-copy p { color: var(--ink-soft); font-size: 1.4rem; line-height: 1.85; max-width: 480px; }
.welcome-copy p + p { margin-top: 1.5rem; }
.welcome-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.4;
  box-shadow: var(--shadow-md);
}
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Row 1 variant: two vertically stacked photos beside the copy, instead
   of the usual single image. Desktop keeps the copy in one column and
   stacks both photos in the other; on mobile the two photos no longer
   land together as one block — the second paragraph is threaded
   between them (intro, photo 1, paragraph 2, photo 2). */
.welcome-row-split {
  align-items: start;
  column-gap: 5rem;
  row-gap: 1.75rem;
}
.welcome-row-split .welcome-intro { grid-column: 1; grid-row: 1; }
.welcome-row-split .welcome-para-2 { grid-column: 1; grid-row: 2; }
.welcome-row-split .welcome-photo-1 { grid-column: 2; grid-row: 1; }
.welcome-row-split .welcome-photo-2 { grid-column: 2; grid-row: 2; }

@media (max-width: 900px) {
  .welcome-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .welcome-row + .welcome-row { margin-top: 3.25rem; }
  .welcome-photo { order: -1; }
  .welcome-copy p { max-width: none; }

  .welcome-row-split .welcome-intro { grid-column: 1; grid-row: auto; order: 1; }
  .welcome-row-split .welcome-photo-1 { grid-column: 1; grid-row: auto; order: 2; }
  .welcome-row-split .welcome-para-2 { grid-column: 1; grid-row: auto; order: 3; }
  .welcome-row-split .welcome-photo-2 { grid-column: 1; grid-row: auto; order: 4; }
}

/* ── HISTORY / STATS ────────────────────────────────────────── */
.history .container { max-width: var(--container-w); }
.history-heading { margin-bottom: 6.5rem; }
.history-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
}
.history-copy p + p { margin-top: 1.5rem; }
.history-copy p { color: var(--sand-700); }
.on-dark .history-copy p { color: var(--sand-300); }
.history-copy .blank { display: inline-block; min-width: 90px; border-bottom: 1px solid var(--sand-300); }
.history h2 { margin-bottom: 1rem; }

.history-photo {
  max-width: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.history-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.history-photo-caption {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  color: var(--cream);
  text-align: center;
}

.stats-row {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(242,236,218,0.14);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: center
}
.stat .stat-num {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}
.on-dark .stat .stat-num { color: var(--cream); }
.stat .stat-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand-700);
  max-width: 220px;
  margin: 0 auto
}
.on-dark .stat .stat-label { color: var(--sand-300); }

@media (max-width: 900px) {
  .history-heading { margin-bottom: 3rem; text-align: center;}
  .history-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .history-photo { max-width: 320px; margin: 0 auto 0.5rem; }
  .history-photo-caption { text-align: center; }
  .stats-row { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
}

/* ── DOCTORS (single practitioner profile) ─────────────────── */
.doctor-panels { position: relative; }
.doctor-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.doctor-quote-mark {
  font-family: var(--sans);
  font-size: 5rem;
  color: var(--green-500);
  line-height: 1;
  margin-bottom: 1rem;
}
.doctor-quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 1.4rem);
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 2rem;
}
.on-dark .doctor-quote { color: var(--sand-200); }
.doctor-bio { color: var(--ink-soft); margin-bottom: 2.25rem; font-size: 1.4rem;}
.on-dark .doctor-bio { color: var(--sand-300); }
.doctor-photo {
  
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--green-600);
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .doctor-panel { grid-template-columns: 1fr; gap: 2rem; }
  .doctor-panel .doctor-photo { order: -1; max-width: 320px; }
}

/* ── CLINICS CAROUSEL ("What We Offer") ───────────────────────
   Paged carousel (buttons only, 4 cards/page) is desktop-only, above
   1100px. At and below 1100px (tablet & mobile) there is no carousel
   at all — every card is shown in a plain vertical stack, matched by
   js/main.js only running the paging logic when window.innerWidth is
   above that same 1100px line. */
.clinics-track-wrap { overflow: hidden; border: 1px solid var(--sand-300); }
.clinics-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.clinic-card {
  flex: 0 0 25%;
  background: var(--sand-150);
  padding: 2.75rem 2.25rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--sand-300);
}
.clinic-card:last-child { border-right: none; }
.clinic-card.active { background: var(--green-800); border-color: var(--green-800); }
.clinic-num {
  font-family: var(--display);
  font-size: 3.4rem;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--green-500);
  margin-bottom: 1.5rem;
}
.clinic-card.active .clinic-num {
  -webkit-text-stroke: 0;
  color: var(--sand-100);
}
.clinic-card h3 { color: var(--ink); margin-bottom: 1rem; font-size: 2rem;}
.clinic-card.active h3 { color: var(--cream); }
.clinic-card p { color: var(--ink-muted); font-size: 1.3rem; line-height: 1.75; }
.clinic-card.active p { color: var(--sand-300); }
.clinic-card p + p { margin-top: 1.1rem; }

@media (max-width: 1100px) {
  .clinics .arrow-controls { display: none; }
  .clinics-track-wrap { overflow: visible; border: none; }
  .clinics-track {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: none !important;
  }
  .clinic-card {
    flex: 1 1 auto;
    min-height: 0;
    border: 1px solid var(--sand-300);
    border-radius: var(--radius-md);
  }
  /* The active/highlighted-card treatment only makes sense for "the
     current page" in the desktop carousel — with every card shown at
     once here, force all of them back to the plain, non-active look. */
  .clinic-card.active { background: var(--sand-150); border-color: var(--sand-300); }
  .clinic-card.active .clinic-num { -webkit-text-stroke: 1.2px var(--green-500); color: transparent; }
  .clinic-card.active h3 { color: var(--ink); }
  .clinic-card.active p { color: var(--ink-muted); }
}

/* ── CONDITIONS ─────────────────────────────────────────────── */
/* Intro column + a two-up grid of plain condition rows, sitting between
   Clinics and Testimonials on the site's light parchment background so
   it reads as its own beat rather than an extension of either neighbor. */
.conditions-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.conditions-intro p {
  color: var(--ink-muted);
  font-size: 1.4rem;
  line-height: 1.8;
  margin: 1.25rem 0 2rem;
}
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--sand-300);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.condition-item {
  background: var(--sand-100);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink-soft);
  transition: background var(--transition);
}
.condition-item:hover { background: var(--white); }
.condition-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .conditions-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .conditions-grid { grid-template-columns: 1fr; }
}

/* ── TESTIMONIALS ───────────────────────────────────────────── */
/* No photos, no carousel — all three testimonials shown together as
   plain cards in a row. */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.testimonial-card {
  background: var(--sand-100);
  border-radius: var(--radius-md);
  padding: 2.5rem 2.25rem;
}
.testimonial-name { font-family: var(--sans); font-weight: 800; font-size: 1.1rem; color: var(--ink); margin-top: 1.75rem; }
.testimonial-role { font-family: var(--sans); font-weight: 700; font-size: 0.82rem; color: var(--green-500); margin-top: 0.35rem; }
.testimonial-quote-mark { font-family: var(--display); font-size: 4rem; color: var(--green-500); line-height: 1; }
.testimonial-quote { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.6; margin-top: 0.5rem; }

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ── PRODUCTS ───────────────────────────────────────────────── */
/* The collection photo is the foreground visual here, shown at its
   natural size/crop with no darkening overlay. The heading/copy live
   as a plain caption above it rather than stacked on top of the image,
   so nothing competes with or obscures the product shot. */
.products-hero-caption {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}
.products-hero-caption h2 { margin-bottom: 0.75rem; }
.products-hero-caption p { color: var(--sand-300); font-size: 1.02rem; }

.products-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 4rem;
}
.products-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.products-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border-radius: var(--radius-sm);
  background: var(--green-500);
  color: var(--white);
  transition: var(--transition);
}
.products-hero-btn:hover { background: var(--green-400); transform: translateY(-1px); box-shadow: var(--shadow-md); }

@media (max-width: 700px) {
  .products-hero-caption { margin-bottom: 1.75rem; }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.product-card {
  background: var(--sand-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-media {
  position: relative;
  aspect-ratio: 4/3.4;
  background: var(--sand-300);
  overflow: hidden;
}
.product-media img,
.product-media .img-placeholder { transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.product-card:hover .product-media img,
.product-card:hover .product-media .img-placeholder { transform: scale(1.06); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--green-800);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
}
.product-body { padding: 1.75rem; }
.product-body h3 { color: var(--ink); font-size: 1.25rem; margin-bottom: 0.5rem; }
.product-desc { font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 1.25rem; }
.product-price { margin-bottom: 1.5rem; font-family: var(--sans); font-weight: 700; }
.product-price .was { color: var(--ink-faint); text-decoration: line-through; margin-right: 0.6rem; font-weight: 500; }
.product-price .now { color: var(--ink); }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product-footer .btn { padding: 0.85rem 1.5rem; }

@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ── ARTICLES ───────────────────────────────────────────────── */
.articles-list { border-top: 1px solid rgba(43,51,39,0.12); }
.on-dark .articles-list { border-top-color: rgba(242,236,218,0.14); }
.article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(43,51,39,0.12);
  transition: opacity var(--transition);
}
.on-dark .article-row { border-bottom-color: rgba(242,236,218,0.14); }
.article-row:hover { opacity: 0.75; }
.article-row h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--ink); font-weight: 400; }
.on-dark .article-row h3 { color: var(--cream); }
.article-meta { font-size: 0.85rem; color: var(--ink-muted); margin-top: 0.6rem; }
.on-dark .article-meta { color: var(--sand-300); }
.article-arrow {
  width: 20px; height: 20px;
  color: var(--green-400);
  flex-shrink: 0;
}

/* ── CTA / GET IN TOUCH ─────────────────────────────────────── */
.visit { padding: 7rem 0; }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.visit-info h2 { margin-bottom: 1.25rem; }
.visit-info > p { color: var(--ink-muted); font-size: 1.08rem; max-width: 460px; }
.on-dark .visit-info > p { color: var(--sand-300); }

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 2rem 0 2.25rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--sand-300);
}
.on-dark .visit-details { border-top-color: rgba(242,236,218,0.16); }
.visit-detail { display: flex; align-items: center; gap: 0.9rem; }
.visit-detail-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--green-700);
  color: var(--cream);
}
.on-dark .visit-detail-icon { background: rgba(242,236,218,0.1); }
.visit-detail-icon svg { width: 15px; height: 15px; }
.visit-detail-text strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 0.2rem;
}
.visit-detail-text span,
.visit-detail-text a {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.visit-detail-text span { display: block; }
.visit-detail-text span + span { margin-top: 0.6rem; }
.on-dark .visit-detail-text span,
.on-dark .visit-detail-text a { color: var(--cream); }
.visit-detail-text a { transition: color var(--transition); }
.visit-detail-text a:hover { color: var(--green-500); }

/* Photo column: the image sets the column height, and the maps button sits
   flush beneath it at the same width, so the two columns finish level
   instead of leaving a hollow gap above the footer. Two clinics means two
   of these side by side on desktop; .visit-clinic-col carries the same
   flex/gap layout each one previously had alone. */
.visit-clinics { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.visit-clinic-col { display: flex; flex-direction: column; gap: 1.25rem; }
.visit-clinic-col .eyebrow { display: block; margin-bottom: 0; font-size: 1.014rem; text-align: center; }

/* Center the (usually shorter) clinics column against the details column
   beside it, rather than pinning both to the top. */
@media (min-width: 901px) {
  .visit-grid { align-items: center; }
}
.visit-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-md);
}
.visit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.visit-map-btn { width: 100%; }

@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .visit-info > p { max-width: none; }
  .visit-details { margin: 2.25rem 0; }
  .visit-clinics { grid-template-columns: 1fr; gap: 2.75rem; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer.site-footer { background: var(--green-800); padding: 5rem 0 2.5rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}
.footer-brand-col { max-width: 300px; }
.footer-brand-col .brand-mark { margin-bottom: 1.75rem; }
.footer-social { display: flex; gap: 1.5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.footer-social a { display: flex; align-items: center; gap: 0.5rem; color: var(--cream); font-size: 0.88rem; font-weight: 500; }
.footer-social svg { width: 18px; height: 18px; }
.footer-brand-col p { color: var(--sand-300); font-size: 0.92rem; line-height: 1.75; }
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 1.4rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col a { font-size: 0.92rem; color: var(--sand-300); transition: color var(--transition); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(242,236,218,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--sand-300);
}

@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; max-width: 100%; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-brand-col { display: flex; flex-direction: column; align-items: center; }
  .footer-social { justify-content: center; }
  .footer-col { display: flex; flex-direction: column; align-items: center; }
  .footer-col ul { align-items: center; }
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
}

/* ── INNER PAGE HERO (reusable for non-home pages) ─────────── */
.page-hero {
  background: var(--green-800);
  padding: 14rem 0 5rem;
  text-align: center;
}
.page-hero .eyebrow { display: block; }
.page-hero .breadcrumb {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--sand-300);
}
.page-hero .breadcrumb a { color: var(--cream); }

@media (max-width: 800px) {
  .page-hero {
    
    padding: 12rem 0 4rem;
    
  }
}
/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── IMAGE PLACEHOLDERS (swap for real photography) ─────────── */
.img-placeholder {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: linear-gradient(155deg, var(--green-500) 0%, var(--green-900) 78%);
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 20%, rgba(255,255,255,0.16), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(0,0,0,0.18), transparent 60%);
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(242,236,218,0.14);
}
.img-placeholder svg { position: relative; width: 26%; height: 26%; color: rgba(242,236,218,0.55); }
.placeholder-label {
  position: relative;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242,236,218,0.55);
}
.product-media .img-placeholder { background: linear-gradient(155deg, var(--sand-300) 0%, var(--sand-700) 100%); }
.product-media .img-placeholder::before {
  background:
    radial-gradient(circle at 26% 20%, rgba(255,255,255,0.35), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(43,51,39,0.14), transparent 60%);
}
.product-media .img-placeholder::after { border-color: rgba(43,51,39,0.1); }
.product-media .img-placeholder svg { color: rgba(43,51,39,0.4); }
.product-media .placeholder-label { color: rgba(43,51,39,0.5); }
.doctor-tab-avatar .img-placeholder svg { width: 42%; height: 42%; }
.doctor-tab-avatar .img-placeholder::after { border: none; }

/* ── LEGAL PAGES (privacy / terms / disclaimer) ──────────────── */
.legal-content { padding: 6.5rem 0; }
.legal-content .container { max-width: 760px; }
.legal-updated {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink-faint);
  margin-bottom: 2.5rem;
  display: block;
}
.legal-highlight {
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2.5rem;
}
.legal-highlight p { margin: 0; color: var(--ink); }
.legal-content h2 {
  font-size: 1.5rem;
  margin: 2.75rem 0 1rem;
  color: var(--green-700);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--ink-muted); line-height: 1.85; margin-bottom: 1.1rem; }
.legal-content ul { margin: 0 0 1.1rem 1.25rem; }
.legal-content li { color: var(--ink-muted); line-height: 1.85; margin-bottom: 0.4rem; list-style: disc; }
.legal-content strong { color: var(--ink-soft); }
.legal-content a { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--green-500); }

@media (max-width: 700px) {
  .legal-content { padding: 4.5rem 0; }
}

/* ── UTILITIES ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 700px) {
  section { padding: 4.5rem 0; }
  .container { padding: 0 1.5rem; }
  .section-header { align-items: flex-start; }
}
