/* =====================================================================
   DR SPORTS CLINIC  —  Design System
   Luxury hospitality aesthetic · Mandarin Oriental reference
   Palette, typography, layout primitives & components
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --ivory:        #F7F5F0; /* Primary background */
  --jet:          #0D0D0D; /* Header & footer */
  --olive:        #5C6344; /* Primary accent */
  --olive-dark:   #474d34;
  --olive-deep:   #3a3f2b;
  --olive-mid:    #8b9668; /* Lighter olive-green — brand accent on dark backgrounds */
  --sage:         #A6A090; /* Secondary accent */
  --stone:        #E7E3D9; /* Subtle background */

  /* Functional text colours */
  --ink:          #1a1a17; /* Body text on light */
  --ink-soft:     #4a4a44; /* Muted body text */
  --ink-faint:    #7c7a70; /* Captions / meta */
  --on-dark:      #f3f1ea; /* Text on dark */
  --on-dark-soft: rgba(243, 241, 234, 0.72);
  --line:         rgba(26, 26, 23, 0.14); /* Hairline rules */
  --line-dark:    rgba(243, 241, 234, 0.16);

  /* Type */
  --serif: "Cormorant Garamond", "Canela", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --section-y: clamp(2.75rem, 5vw, 5.5rem);
  --gutter:    clamp(1.25rem, 5vw, 5rem);
  --maxw:      1320px;
  --maxw-text: 760px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1); /* expo-out — buttery reveals */
  --dur:  0.6s;

  /* Elevation */
  --nav-h: 100px;
  --shadow-lux: 0 40px 80px -50px rgba(20, 22, 14, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em; /* tighter tracking reads as high-end editorial */
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 6.6vw, 6rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.15rem, 4.8vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -0.01em; }
h4 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -0.005em; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 1.4rem;
  display: inline-block;
}
.eyebrow--light { color: var(--olive-mid); }
/* Hero kicker sits over bright imagery — brighter green + soft shadow so it
   stays legible against any part of the photo/video. */
.hero .eyebrow {
  color: #cdd4ac;
  text-shadow: 0 1px 16px rgba(13, 13, 13, 0.8), 0 0 3px rgba(13, 13, 13, 0.6);
}

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
}
.serif-quote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}
.tm { font-size: 0.6em; vertical-align: super; letter-spacing: 0; }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 920px; }
.section { padding-block: var(--section-y); }
.section--stone { background: var(--stone); }
.section--olive { background: var(--olive); color: var(--on-dark); }
.section--jet   { background: var(--jet);   color: var(--on-dark); }
.section--olive h1, .section--olive h2, .section--olive h3, .section--olive h4,
.section--jet h1, .section--jet h2, .section--jet h3, .section--jet h4 { color: var(--on-dark); }
/* On the olive band, kickers/meta go light (never green-on-green) */
.section--olive .eyebrow, .section--olive .eyebrow--light,
.section--olive .quote__cite { color: var(--stone); }
.section--olive .eyebrow::before, .section--olive .eyebrow::after { opacity: 0.5; }
.section--olive .lead, .section--olive p { color: rgba(243, 241, 234, 0.85); }

.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: var(--maxw-text); }
.measure.center { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.4rem, 2.6vw, 2.8rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.items-center { align-items: center; }

.section-head { max-width: 720px; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--olive);
  --btn-fg: var(--on-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.05em 2.3em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--olive-deep);
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }
.btn:hover::after { transform: translateY(0); }
.btn:hover { border-color: var(--olive-deep); }

/* Secondary CTAs now carry the brand green (solid olive), so every call-to-action
   reads on-brand. The hero keeps an outline secondary (.btn--outline) to preserve
   primary/secondary hierarchy where a green primary button sits alongside it. */
.btn--ghost {
  --btn-bg: var(--olive);
  --btn-fg: var(--on-dark);
  border-color: var(--olive);
}
.btn--ghost::after { background: var(--olive-deep); }
.btn--ghost:hover { color: var(--on-dark); border-color: var(--olive-deep); }

.btn--light {
  --btn-bg: var(--olive);
  --btn-fg: var(--on-dark);
  border-color: var(--olive);
}
.btn--light::after { background: var(--olive-deep); }
.btn--light:hover { color: var(--on-dark); border-color: var(--olive-deep); }

/* Outline-on-dark secondary — used where a green primary already sits alongside (e.g. hero) */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  border-color: rgba(243,241,234,0.5);
}
.btn--outline::after { background: var(--on-dark); }
.btn--outline:hover { color: var(--jet); border-color: var(--on-dark); }

/* Text link with animated underline */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  padding-bottom: 4px;
  position: relative;
}
.tlink::before {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1); transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.tlink .arrow { transition: transform var(--dur) var(--ease); }
.tlink:hover::before { transform: scaleX(0); }
.tlink:hover .arrow { transform: translateX(6px); }

/* =====================================================================
   HEADER / NAVIGATION
   ===================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              height var(--dur) var(--ease), color var(--dur) var(--ease);
  color: var(--on-dark);
}
/* Top scrim: guarantees nav-link contrast over bright hero imagery,
   and fades out once the solid nav takes over on scroll. */
.nav::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 220%;
  background: linear-gradient(180deg, rgba(13,13,13,0.62) 0%, rgba(13,13,13,0) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--dur) var(--ease);
  z-index: 0;
}
.nav.is-solid::before { opacity: 0; }
.nav__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo { display: flex; align-items: center; color: currentColor; }
.nav__logo svg, .nav__logo img { height: 82px; width: auto; transition: height var(--dur) var(--ease); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.5vw, 1.7rem);
  list-style: none;
}
.nav__link {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: currentColor;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta {
  padding: 0.85em 1.7em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--olive);
  color: var(--on-dark);
  border: 1px solid var(--olive);
  border-radius: 2px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__cta:hover { background: var(--olive-deep); border-color: var(--olive-deep); }

/* Scrolled / solid state */
.nav.is-solid {
  background: var(--ivory);
  color: var(--ink);
  height: 84px;
  box-shadow: 0 1px 0 var(--line), 0 12px 40px -28px rgba(0,0,0,0.4);
}
.nav.is-solid .nav__logo svg,
.nav.is-solid .nav__logo img{ height: 66px; filter: brightness(0) invert(0); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 0;
  position: relative;
  color: currentColor;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 26px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle span { top: 50%; transform: translateY(-50%); }
.nav__toggle span::before { top: -8px; }
.nav__toggle span::after  { top: 8px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav__toggle span::after  { transform: translateY(-8px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video,
.hero__media img,
.hero__media .placeholder-media { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.45) 0%, rgba(13,13,13,0.15) 40%, rgba(13,13,13,0.78) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, 7rem);
}
.hero__content { max-width: 860px; }
.hero h1 { color: #fff; margin-bottom: 1.5rem; overflow-wrap: break-word; }
.hero .lead { color: var(--on-dark-soft); max-width: 560px; margin-bottom: 2.4rem; overflow-wrap: break-word; }
.hero__content { width: 100%; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Page hero (interior pages) */
.pagehero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.25rem, 5vw, 4.5rem));
  padding-bottom: clamp(2rem, 4.5vw, 4rem);
  background: var(--jet);
  color: var(--on-dark);
  overflow: hidden;
}
.pagehero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 80% -10%, rgba(92,99,68,0.55), transparent 55%),
    linear-gradient(180deg, #101109, #0d0d0d);
  z-index: 0;
}
.pagehero__inner { position: relative; z-index: 1; }
.pagehero h1 { color: #fff; max-width: 14ch; }
.pagehero .lead { color: var(--on-dark-soft); max-width: 620px; margin-top: 1.6rem; }
.pagehero .eyebrow { color: var(--olive-mid); }

/* =====================================================================
   COMPONENTS
   ===================================================================== */

/* Media / image placeholder */
.media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--stone);
  border-radius: 2px;
}
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media:hover img { transform: scale(1.05); }

/* Elegant on-brand placeholder fill */
.placeholder-media {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  position: relative;
  background:
    linear-gradient(135deg, var(--olive) 0%, var(--olive-deep) 100%);
  color: rgba(255,255,255,0.85);
}
.placeholder-media--sage { background: linear-gradient(135deg, var(--sage), #8f8a78); }
.placeholder-media--stone { background: linear-gradient(135deg, var(--stone), #d6d1c4); color: var(--olive); }
.placeholder-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 22px);
  opacity: 0.6;
}
.placeholder-media__label {
  position: relative;
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  opacity: 0.85; text-align: center; padding: 1rem;
  max-width: 100%; overflow-wrap: break-word; line-height: 1.8;
}
/* Hero placeholder: gradient only (a subtle centred monogram, no label that
   could collide with the headline). Replaced entirely by the real video. */
.placeholder-media--hero { background: linear-gradient(160deg, #2f3323 0%, #1a1c13 55%, #0d0d0d 100%); }
.placeholder-media--hero::after {
  content: "DR"; position: absolute;
  font-family: var(--serif); font-size: clamp(6rem, 22vw, 14rem);
  color: rgba(255,255,255,0.05); letter-spacing: 0.05em;
}
.placeholder-media .mono { font-family: var(--serif); font-size: 2.8rem; letter-spacing: 0.05em; opacity: 0.9; }

/* Split / editorial row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 3.5vw, 3.75rem); align-items: center; }
.split--wide-text { grid-template-columns: 1.1fr 0.9fr; }
.split__body .eyebrow { margin-bottom: 1.6rem; }

/* Desktop: image fills the copy's height for clean, equal-height columns.
   The media is taken out of flow so the text sets the row height. */
@media (min-width: 901px) {
  .split { align-items: stretch; }
  .split__body { align-self: center; }
  .split__media { position: relative; min-height: 460px; }
  /* aspect-ratio: auto lets inset:0 win so the image fills the copy height */
  .split__media > .media { position: absolute; inset: 0; aspect-ratio: auto; height: auto; }
  .split__media > .media img { object-position: center 22%; }
}

/* Feature cards */
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(0,0,0,0.45); border-color: transparent; }
.card__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--olive);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.card h3 { margin-bottom: 0.8rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
/* Pin the card's call-to-action to the bottom so it aligns across a row */
.card__cta { margin-top: auto; padding-top: 1.6rem; margin-bottom: 0; }

/* Step / process list (Reset Method) */
.steps { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.6rem) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__index {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--sage);
  font-weight: 400;
}
.step__title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.6rem; }
.step__body { color: var(--ink-soft); max-width: 60ch; }
.section--jet .step, .section--olive .step { border-color: var(--line-dark); }
.section--jet .step__body, .section--olive .step__body { color: var(--on-dark-soft); }
.section--jet .step__index, .section--olive .step__index { color: var(--olive-mid); }

/* Stage panels (Healing Journey · Phase 2 — three progressive stages) */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}
.stage {
  border: 1px solid transparent;
  background: var(--olive);
  border-radius: 2px;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  transition: transform 0.55s var(--ease-lux), box-shadow 0.55s var(--ease-lux);
}
/* Reset · Realign · Rebuild — an earthy brand progression: green → taupe → beige */
.stage:nth-child(1) { background: var(--olive); }
.stage:nth-child(2) { background: var(--sage); }
.stage:nth-child(3) { background: var(--stone); }
.stage__head {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 1.1rem; padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(243, 241, 234, 0.26);
}
.stage__num {
  font-family: var(--serif); line-height: 1;
  font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--stone);
}
.stage__title { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--on-dark); }
.stage__body { color: var(--on-dark-soft); font-size: 0.95rem; margin: 0; }
/* The two light-fill cards (Realign · Rebuild) take dark ink for legibility */
.stage:nth-child(2) .stage__head,
.stage:nth-child(3) .stage__head { border-bottom-color: rgba(26, 26, 23, 0.18); }
.stage:nth-child(2) .stage__num,
.stage:nth-child(3) .stage__num { color: var(--olive-deep); }
.stage:nth-child(2) .stage__title,
.stage:nth-child(3) .stage__title { color: var(--ink); }
.stage:nth-child(2) .stage__body,
.stage:nth-child(3) .stage__body { color: rgba(26, 26, 23, 0.82); }
.stage:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34); }
.stages__note { color: var(--on-dark-soft); max-width: 720px; margin: clamp(2.25rem, 4vw, 3rem) auto 0; text-align: center; }

@media (max-width: 760px) {
  .stages { grid-template-columns: 1fr; }
  .stages__note { text-align: left; }
}

/* Horizontal process (home · The Reset Method) — a timeline-style row */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: clamp(2rem, 4vw, 3.25rem) 0 0;
  padding: 0;
}
.process__step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}
/* stage marker sitting on the connecting line */
.process__step::before {
  content: "";
  position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--olive-mid);
  transition: background 0.5s var(--ease-lux), transform 0.5s var(--ease-lux);
}
.process__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  line-height: 1;
  color: var(--olive-mid);
  margin-bottom: 1.1rem;
  transition: color 0.5s var(--ease-lux);
}
.process__title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  color: var(--on-dark);
  margin-bottom: 0.55rem;
}
.process__body { color: var(--on-dark-soft); font-size: 0.95rem; max-width: 32ch; }
.process__step:hover .process__num { color: var(--stone); }
.process__step:hover::before { transform: scale(1.5); background: var(--olive); }
.process__foot { margin-top: clamp(2.25rem, 4vw, 3.25rem); }

@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, 1fr); gap: clamp(1.75rem, 4vw, 2.5rem); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .process__body { max-width: none; }
}

/* Phase block (Healing Journey) */
.phase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.75rem, 3.5vw, 3.75rem);
  align-items: center;
}
.phase:nth-child(even) .phase__media { order: 2; }
.phase__tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 1rem;
}
.phase__sub { color: var(--ink-faint); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.5rem; }

/* Journey diagram (Healing Journey) */
.journey-flow {
  display: grid; gap: 1.5rem; text-align: center;
  max-width: 620px; margin-inline: auto;
}
.journey-node {
  border: 1px solid var(--line);
  background: var(--ivory);
  padding: 2rem 1.5rem;
  border-radius: 2px;
}
.journey-node h3 { color: var(--olive); }
.journey-node .meta { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.6rem; }
.journey-arrow { font-size: 1.6rem; color: var(--olive); line-height: 1; }

/* Progression line (Understanding → … → Transformation) */
.journey-chain {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(0.55rem, 1.4vw, 1.15rem);
  max-width: 920px;
  margin: clamp(2.25rem, 4vw, 3.25rem) auto 0;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.journey-chain__step {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  color: var(--ink);
  line-height: 1.2;
}
.journey-chain__step--end { color: var(--olive); }
.journey-chain__sep { color: var(--olive); font-size: 0.9em; }

/* Testimonials */
.quote {
  max-width: 900px; margin-inline: auto; text-align: center;
}
.quote__mark { font-family: var(--serif); font-size: 5rem; line-height: 0.4; color: var(--sage); display: block; margin-bottom: 1rem; }
.quote__text { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.35; font-style: italic; color: var(--ink); }
.section--jet .quote__text, .section--olive .quote__text { color: var(--on-dark); }
.quote__cite { margin-top: 1.8rem; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); }
.section--jet .quote__cite { color: var(--olive-mid); }

/* Locations — image-led cards with overlay text */
.loc-card {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 50px -48px rgba(20, 22, 14, 0.55);
}
.loc-card__media { aspect-ratio: 3 / 4; }
.loc-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-lux);
}
.loc-card:hover .loc-card__media img { transform: scale(1.05); }
.loc-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,13,13,0) 30%, rgba(13,13,13,0.15) 50%, rgba(13,13,13,0.85) 100%);
}
.loc-card__content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  color: #fff;
}
.loc-card__tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 0.7rem;
}
.loc-card__content h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 0.5rem; }
.loc-card__content p { color: rgba(243,241,234,0.82); font-size: 0.95rem; max-width: 34ch; margin: 0; }
.loc-note { margin-top: clamp(1.75rem, 3vw, 2.5rem); color: var(--ink-faint); font-size: 1rem; text-align: center; }
/* Shorter, landscape cards when stacked on mobile */
@media (max-width: 900px) { .loc-card__media { aspect-ratio: 16 / 10; } }

/* Legacy list layout (kept for reference/other uses) */
.location {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center;
}
.location:last-child { border-bottom: 1px solid var(--line); }
.location__city { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); }
.location__meta { color: var(--ink-soft); font-size: 0.95rem; }
.location__tag { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); }

/* Callout band */
.callout { text-align: center; }
.callout h2 { margin: 0 auto 1.5rem; }
.callout .lead { max-width: 620px; margin: 0 auto 2.5rem; }

/* Prose (long-form: Aftercare, Terms, Meet Diego) */
.prose { max-width: var(--maxw-text); }
.prose h2 { margin: 2.6rem 0 1rem; }
.prose h3 { margin: 2.2rem 0 0.8rem; color: var(--olive); }
.prose p { color: var(--ink-soft); }
.prose ul.ticks { list-style: none; margin: 0 0 1.5rem; display: grid; gap: 0.7rem; }
.prose ul.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.prose ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 9px; border: 1px solid var(--olive); border-top: 0; border-right: 0;
  transform: rotate(-45deg);
}
.prose .divider { height: 1px; background: var(--line); border: 0; margin: 3rem 0; }

/* =====================================================================
   CONTACT FORM
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact-info .detail { margin-bottom: 2rem; }
.contact-info .detail .k { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.5rem; }
.contact-info .detail .v { font-size: 1.05rem; color: var(--ink-soft); }
.contact-info .detail a:hover { color: var(--olive); }

.form { display: grid; gap: 1.6rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.field label .req { color: var(--olive); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  transition: border-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--olive);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6344' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.2rem center;
}
.form__consent { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.form__consent input { margin-top: 0.35rem; accent-color: var(--olive); }
.form__note { font-size: 0.85rem; color: var(--ink-faint); }

.alert { padding: 1.1rem 1.4rem; border-radius: 2px; font-size: 0.95rem; margin-bottom: 1.8rem; }
.alert--ok { background: rgba(92,99,68,0.12); border: 1px solid var(--olive); color: var(--olive-deep); }
.alert--err { background: rgba(150,60,50,0.1); border: 1px solid #a5564a; color: #7c3a30; }

/* =====================================================================
   FOOTER  (black — shared across ecosystem)
   ===================================================================== */
.footer { background: var(--jet); color: var(--on-dark); padding-top: clamp(4rem, 8vw, 6.5rem); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand svg { height: 78px; width: auto; color: var(--on-dark); margin-bottom: 1.5rem; }
.footer__brand p { color: var(--on-dark-soft); font-size: 0.95rem; max-width: 34ch; }
.footer__col h4 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--olive-mid);
  margin-bottom: 1.4rem;
}
.footer__col ul { list-style: none; display: grid; gap: 0.85rem; }
.footer__col a { color: var(--on-dark-soft); font-size: 0.95rem; transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--on-dark); }
.footer__social { display: flex; gap: 0.8rem; margin-top: 1.6rem; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center; color: var(--on-dark-soft);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer__social a:hover { background: var(--olive); color: #fff; border-color: var(--olive); }
.footer__social svg { width: 18px; height: 18px;margin-bottom: 0; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 2rem;
  font-size: 0.8rem; color: var(--on-dark-soft);
}
.footer__bottom a:hover { color: var(--on-dark); }
.footer__ecosystem { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer__ecosystem span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
/* Quiet reveal: a soft fade with a small rise. Only hides when JS can
   bring it back (graceful no-JS). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease-lux), transform 0.85s var(--ease-lux);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: 0.09s; }
.js [data-reveal-delay="2"] { transition-delay: 0.18s; }
.js [data-reveal-delay="3"] { transition-delay: 0.27s; }
.js [data-reveal-delay="4"] { transition-delay: 0.36s; }

/* Menu backdrop (shown behind the mobile drawer) */
.nav__backdrop {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(13,13,13,0.4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
body.menu-open .nav__backdrop { opacity: 1; visibility: visible; }

/* =====================================================================
   RESPONSIVE
   Breakpoints:  1200 (nav → drawer)  ·  1024 (tablet grids)
                 900 (stack layouts)  ·  600/560 (phone)
   ===================================================================== */

/* ---- Large desktop: keep the desktop nav; hide the drawer backdrop ---- */
@media (min-width: 1201px) {
  .nav__backdrop { display: none; }
}

/* ---- Below 1200px: switch to the slide-in drawer + burger ---- */
@media (max-width: 1200px) {
  :root { --nav-h: 84px; }
  .nav.is-solid { height: 78px; }
  .nav__logo svg, .nav__logo img, .nav.is-solid .nav__logo svg, .nav.is-solid .nav__logo img { height: 64px; }
  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 400px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem clamp(1.5rem, 6vw, 3rem);
    background: var(--jet);
    color: var(--on-dark);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    /* box-shadow: -30px 0 60px -30px rgba(0,0,0,0.6); */
  }
  body.menu-open .nav__menu { transform: translateX(0); }
  .nav__menu .nav__link { color: var(--on-dark); font-size: 1rem; letter-spacing: 0.08em; }
  .nav__menu .nav__cta { margin-top: 0.5rem; }
  /* The drawer's <nav> wrapper collapses to 0-width, which would let
     space-between strand the burger mid-bar — auto margin pins it right. */
  .nav__toggle { display: block; z-index: 101; margin-left: auto; }
  .nav.is-solid { color: var(--ink); }
  body.menu-open .nav { color: var(--on-dark); }
  /* IMPORTANT: backdrop-filter on the nav makes it the containing block for
     the fixed drawer, collapsing it to the nav's height. Drop it (and the
     solid background/shadow) while the menu is open so the drawer fills the
     viewport. */
  body.menu-open .nav.is-solid {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  body.menu-open { overflow: hidden; }
}

/* ---- Tablet: relax dense grids ---- */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .journey-flow .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Stack the editorial two-column layouts ---- */
@media (max-width: 900px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .split, .split--wide-text, .phase, .contact-grid { grid-template-columns: 1fr; }
  .phase:nth-child(even) .phase__media { order: 0; }
  .form .row { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; gap: 0.6rem; }
  /* On stacked splits, media should never dwarf the copy */
  .split__media .media, .phase__media .media { max-width: 620px; margin-inline: auto; }
}

/* ---- Phone ---- */
@media (max-width: 600px) {
  .grid--4 { grid-template-columns: 1fr; }
  .journey-flow .grid--4 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* =====================================================================
   REFINEMENT LAYER  —  premium through restraint
   Calm, clean and editorial: quiet motion, fine detail, generous air.
   ===================================================================== */

/* ---- Frosted-glass nav when solid (the one atmospheric touch we keep) ---- */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .nav.is-solid {
    background: rgba(247, 245, 240, 0.8);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    backdrop-filter: blur(14px) saturate(1.25);
  }
}

/* ---- Eyebrow: a fine editorial leading rule ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 0.85rem; }
.eyebrow::before {
  content: ""; width: clamp(1.4rem, 2.4vw, 2.1rem); height: 1px;
  background: currentColor; opacity: 0.5;
}
.center .eyebrow, .section-head.center .eyebrow, .callout .eyebrow, .quote .eyebrow { justify-content: center; }
.center .eyebrow::after, .section-head.center .eyebrow::after, .callout .eyebrow::after, .quote .eyebrow::after {
  content: ""; width: clamp(1.4rem, 2.4vw, 2.1rem); height: 1px;
  background: currentColor; opacity: 0.5;
}

/* ---- Hero entrance: one gentle fade-up (no zoom, no parallax) ---- */
.hero .eyebrow  { animation: heroRise 0.9s var(--ease-lux) 0.15s both; }
.hero h1        { animation: heroRise 0.9s var(--ease-lux) 0.28s both; }
.hero .lead     { animation: heroRise 0.9s var(--ease-lux) 0.42s both; }
.hero__actions  { animation: heroRise 0.9s var(--ease-lux) 0.54s both; }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .lead, .hero__actions { animation: none; }
}

/* ---- Cards: a quiet lift, nothing more ---- */
.card { transition: transform 0.55s var(--ease-lux), box-shadow 0.55s var(--ease-lux), border-color 0.55s var(--ease-lux); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lux); border-color: transparent; }

/* ---- Buttons & media: subtle ---- */
.btn { letter-spacing: 0.16em; }
.media { box-shadow: 0 24px 50px -48px rgba(20, 22, 14, 0.55); }

/* ---- Selection + focus ---- */
::selection { background: var(--olive); color: #fff; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

/* ---- Full-bleed editorial image band (Mandarin Oriental moment) ---- */
.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: var(--jet);
}
.cta-band__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.5) 0%, rgba(13,13,13,0.6) 55%, rgba(13,13,13,0.72) 100%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(243,241,234,0.85); }

/* ---- Trust / reassurance strip (luxury take on MDOsteo's promise bar) ---- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ivory); }
.trustbar__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(1.1rem, 2vw, 1.6rem) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1rem, 1vw, 1.4rem) clamp(1.6rem, 4vw, 4rem);
}
.trustbar__item {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap;
}
.trustbar__item svg { width: 15px; height: 15px; color: var(--olive); flex: none; }

/* ---- Image-led service cards ---- */
.card--service { padding: 0; overflow: hidden; }
.card--service .card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.card--service .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-lux); }
.card--service:hover .card__media img { transform: scale(1.06); }
.card--service .card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.7rem, 2.6vw, 2.3rem); }
.card--service .card__num { border: 0; padding: 0; margin-bottom: 0.9rem; }

/* ---- Condition tag-pills ---- */
.tags { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tags.center { justify-content: center; }
.tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.7em 1.4em; font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--ink-soft); background: var(--ivory);
  transition: border-color 0.4s var(--ease-lux), color 0.4s var(--ease-lux), transform 0.4s var(--ease-lux);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); flex: none; }
.tag:hover { border-color: var(--olive); color: var(--ink); transform: translateY(-2px); }
.section--stone .tag { background: transparent; }

/* =====================================================================
   BRAND GREEN — a little more olive, placed strategically
   ===================================================================== */

/* Olive edge framing the top of the black footer */
.footer { border-top: 3px solid var(--olive); }

/* Decorative quote marks in the brand colour */
.quote__mark { color: var(--olive); }
.section--jet .quote__mark, .section--olive .quote__mark { color: var(--olive-mid); }

/* Service cards: an olive accent sweeps across the top on hover */
.card--service { position: relative; overflow: hidden; }
.card--service::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: var(--olive); transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease-lux);
}
.card--service:hover::after { transform: scaleX(1); }

/* Nav: active page + hover underline pick up olive once the bar is solid */
.nav.is-solid .nav__link::after { background: var(--olive); }
.nav.is-solid .nav__link[aria-current="page"] { color: var(--olive); opacity: 1; }

/* Footer: links warm to olive-green on hover */
.footer__col a:hover { color: var(--olive-mid); }


/* ============================================================
   Enquiry form pipeline (forms.js) — alerts, errors, checkboxes
   ============================================================ */
.form-alert {
  padding: 1.1rem 1.4rem;
  border-radius: 2px;
  font-size: 0.95rem;
}
.form-alert.ok  { background: rgba(92,99,68,0.12); border: 1px solid var(--olive); color: var(--olive-deep); }
.form-alert.err { background: rgba(150,60,50,0.1);  border: 1px solid #a5564a;     color: #7c3a30; }

.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: #a5564a; }

span.field-error {
  color: #7c3a30;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.2rem;
}
.field .check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.field .check input { accent-color: var(--olive); }
@media (max-width: 640px) {
  .checks { grid-template-columns: 1fr; }
}
