/* Brentford Health & Dental — cinematic concept site
   Palette: night / champagne gold / ivory (see DESIGN.md) */

:root {
  --night: oklch(0.17 0.012 75);        /* #100d09 */
  --night-2: oklch(0.22 0.015 75);      /* #1c1712 */
  --gold: oklch(0.89 0.055 90);         /* #eadcb7 */
  --gold-deep: oklch(0.74 0.09 85);     /* #c9a96a */
  --brown: oklch(0.45 0.03 75);         /* #635747 */
  --ink: oklch(0.28 0.025 70);          /* #2b241c */
  --ivory: oklch(0.975 0.01 90);        /* #faf7f0 */
  --white: #fff;

  --font-display: "Bodoni Moda", "Didot", serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* z-scale */
  --z-canvas: 1;
  --z-acts: 2;
  --z-meter: 5;
  --z-header: 6;
  --z-sticky-bar: 7;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
a { color: inherit; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72em 1.5em; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-lg { padding: 0.9em 2em; font-size: 1.02rem; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: oklch(0.92 0.05 90); }
.btn-ghost { color: var(--gold); }
.btn-ghost:hover { color: var(--white); }
.btn-outline { border: 1px solid oklch(0.89 0.055 90 / 0.55); color: var(--gold); }
.btn-outline:hover { border-color: var(--gold); color: var(--white); }
.btn-night { background: var(--night); color: var(--gold); }
.btn-night:hover { color: var(--white); }
.btn-outline-night { border: 1px solid oklch(0.17 0.012 75 / 0.5); color: var(--night); }
.btn-outline-night:hover { border-color: var(--night); }

/* ── Header ──────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, oklch(0.17 0.012 75 / 0.85), oklch(0.17 0.012 75 / 0));
  transition: background 0.4s;
}
.site-header.scrolled { background: oklch(0.17 0.012 75 / 0.92); box-shadow: 0 1px 0 oklch(0.89 0.055 90 / 0.12); }
.header-logo img { width: 150px; height: auto; }
.header-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.header-nav a {
  color: var(--gold); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.25s;
}
.header-nav a:hover { color: var(--white); }
.header-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ── Journey (scroll-scrub) ──────────────────────── */
.journey { position: relative; height: 1000vh; background: var(--night); }
.journey-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey-canvas, .journey-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: var(--z-canvas);
}
/* poster sits under the canvas: instant paint before frames decode */
.journey-poster { z-index: 0; }
.journey-canvas { z-index: var(--z-canvas); opacity: 0; transition: opacity 0.4s; }
.journey-canvas.is-ready { opacity: 1; }
body.no-scrub .journey-canvas { display: none; }
.journey-veil {
  position: absolute; inset: 0; z-index: var(--z-canvas);
  background: linear-gradient(to top, oklch(0.17 0.012 75 / 0.6), oklch(0.17 0.012 75 / 0) 42%),
              linear-gradient(to bottom, oklch(0.17 0.012 75 / 0.5), oklch(0.17 0.012 75 / 0) 32%),
              radial-gradient(ellipse 120% 90% at 50% 50%, oklch(0.17 0.012 75 / 0) 55%, oklch(0.17 0.012 75 / 0.38) 100%);
  pointer-events: none;
}

/* Acts */
.act {
  position: absolute; inset: 0; z-index: var(--z-acts);
  display: flex; align-items: center;
  padding: clamp(1.25rem, 5vw, 5rem);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.act.is-live { opacity: 1; visibility: visible; pointer-events: auto; }
.act-inner { max-width: 620px; }
.act-hero { justify-content: center; align-items: flex-end; text-align: center; padding-bottom: clamp(1.5rem, 6vh, 4.5rem); }
.act-hero .act-inner { max-width: 780px; }
.act-left { margin-right: auto; }
.act-right { margin-left: auto; margin-right: clamp(4rem, 11vw, 10rem); text-align: right; }
.act-right p { margin-left: auto; }
.act-center { margin-inline: auto; text-align: center; }

.act-hero .act-inner, .act-panel .act-inner { text-shadow: 0 1px 24px oklch(0.17 0.012 75 / 0.7), 0 1px 3px oklch(0.17 0.012 75 / 0.75); }
/* contrast plate: act copy must stay readable over bright video frames */
.act-panel .act-inner {
  background: oklch(0.17 0.012 75 / 0.58);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.8rem, 3.4vw, 2.8rem);
  border-radius: 16px;
}
.act-hero .act-inner {
  background: radial-gradient(ellipse 90% 100% at 50% 50%, oklch(0.17 0.012 75 / 0.5), oklch(0.17 0.012 75 / 0) 78%);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 24px;
}
.hero-sub {
  color: var(--gold); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem;
}
.act h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  margin-bottom: 0.35em;
}
.act h1 .amp { font-style: italic; color: var(--gold); }
.hero-lede { color: var(--white); font-size: clamp(1.05rem, 2vw, 1.25rem); margin-inline: auto; }
.hero-ctas { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-scroll {
  margin-top: clamp(1rem, 2.5vh, 2rem); color: oklch(0.89 0.055 90 / 0.8);
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.scroll-line {
  display: block; width: 1px; height: 44px; margin: 0.7rem auto 0;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollhint 2.2s var(--ease-out) infinite;
}
@keyframes scrollhint { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.act-panel h2 { color: var(--white); font-size: clamp(1.8rem, 4.2vw, 3.1rem); }
.act-panel p { color: var(--white); font-size: clamp(1rem, 1.8vw, 1.18rem); }
.act-panel em { color: var(--gold); font-style: italic; }
.hud-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.4rem 0 0; padding: 0; }
.hud-chips li {
  border: 1px solid oklch(0.89 0.055 90 / 0.45); color: var(--gold);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.42em 0.95em; border-radius: 999px;
}

/* ── HUD meter ───────────────────────────────────── */
.meter {
  position: fixed; right: clamp(0.8rem, 2.5vw, 2.2rem); top: 50%;
  transform: translateY(-50%); z-index: var(--z-meter);
  display: flex; gap: 0.9rem; align-items: stretch;
  opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s;
}
.meter.is-live { opacity: 1; visibility: visible; }
.meter-track {
  width: 1px; background: oklch(0.89 0.055 90 / 0.25);
  position: relative; border-radius: 1px;
}
.meter-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: var(--gold); border-radius: 1px;
}
.meter ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.2rem;
}
.meter li {
  display: flex; align-items: center; gap: 0.55rem; flex-direction: row-reverse;
  color: oklch(0.89 0.055 90 / 0.62);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  text-shadow: 0 1px 2px oklch(0.17 0.012 75 / 0.9), 0 0 10px oklch(0.17 0.012 75 / 0.8);
  transition: color 0.35s;
}
.meter .hex { filter: drop-shadow(0 1px 2px oklch(0.17 0.012 75 / 0.85)); }
.meter li.is-active { color: var(--gold); }
.meter .hex { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.meter li.is-active .hex { fill: oklch(0.89 0.055 90 / 0.25); }

/* ── Sections ────────────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 8rem) 0; scroll-margin-top: 84px; }
.section-ivory { background: var(--ivory); color: var(--ink); }
.section-white { background: var(--white); color: var(--ink); }
.section-night { background: var(--night); color: oklch(0.93 0.02 90); }
.section-night .section-title { color: var(--white); }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wrap-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--ink); }
.section-lede { font-size: 1.12rem; color: var(--brown); margin-bottom: clamp(2rem, 4vw, 3.2rem); }

/* Reveal (enhance visible default — content readable without JS) */
[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* Technology */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.tech-card {
  background: var(--white); border-radius: 14px; padding: 1.8rem 1.7rem;
  box-shadow: 0 1px 4px oklch(0.28 0.025 70 / 0.07);
}
.tech-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; margin-bottom: 0.4em; color: var(--ink); }
.tech-card p { font-size: 0.97rem; color: var(--brown); margin: 0; }
.tech-card-wide { grid-column: span 2; }
.tech-card-gold { background: var(--night); }
.tech-card-gold h3 { color: var(--gold); }
.tech-card-gold p { color: oklch(0.9 0.025 90); }

/* Services */
.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px; background: oklch(0.89 0.055 90 / 0.6);
  border: 1px solid oklch(0.89 0.055 90 / 0.6); border-radius: 16px; overflow: hidden;
}
.services li { background: var(--white); padding: 1.7rem 1.6rem; transition: background 0.3s; }
.services li:hover { background: var(--ivory); }
.services h3 { font-size: 1.35rem; margin-bottom: 0.3em; color: var(--ink); }
.services p { font-size: 0.95rem; color: var(--brown); margin: 0; }
.services .svc-accent { background: oklch(0.955 0.025 90); }
.services .svc-accent:hover { background: oklch(0.93 0.035 90); }

/* Steps */
.steps {
  list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem);
}
.steps li { position: relative; padding-top: 0.4rem; }
.step-n {
  font-family: var(--font-display); font-size: 2.6rem; color: var(--gold);
  display: block; line-height: 1; margin-bottom: 0.55rem;
}
.steps h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--white); margin-bottom: 0.35em; }
.steps p { font-size: 0.94rem; color: oklch(0.82 0.02 90); margin: 0; }

/* Team + Clinic */
.team-photo img, .clinic-panel img, .visit-photo img { border-radius: 16px; width: 100%; object-fit: cover; }
.team-copy p { color: var(--brown); }
.clinic-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.clinic-panel { margin: 0; overflow: hidden; border-radius: 16px; }
.clinic-panel img { transition: transform 0.8s var(--ease-out); }
.clinic-panel:hover img { transform: scale(1.03); }
.clinic-panel figcaption { font-size: 0.88rem; color: var(--brown); padding: 0.8rem 0.2rem 0; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.reviews blockquote {
  margin: 0; background: var(--white); border-radius: 14px; padding: 1.9rem 1.8rem;
  box-shadow: 0 1px 4px oklch(0.28 0.025 70 / 0.07);
}
.reviews p { font-size: 1rem; color: var(--ink); font-style: italic; }
.reviews cite { font-style: normal; font-size: 0.82rem; color: var(--brown); letter-spacing: 0.04em; }

/* Visit */
.visit-details { font-style: normal; margin-bottom: 1.6rem; }
.visit-line { margin: 0 0 0.45em; font-size: 1.08rem; }
.visit-line a { color: var(--gold); text-decoration: none; }
.visit-line a:hover { text-decoration: underline; }
.visit-hours { color: oklch(0.82 0.02 90); font-size: 0.95rem; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Final CTA */
.section-cta { background: var(--gold); color: var(--night); text-align: center; }
.section-cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--night); }
.section-cta p { margin-inline: auto; font-size: 1.15rem; }
.cta-hex { width: 34px; height: 34px; fill: none; stroke: var(--night); stroke-width: 1.4; margin-bottom: 1.2rem; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin: 1.8rem 0 1.4rem; }
.cta-note { font-size: 0.95rem; }
.cta-note a { font-weight: 600; }

/* Footer */
.site-footer { background: var(--night); color: oklch(0.82 0.02 90); text-align: center; padding: 3.5rem 1.5rem 7rem; }
.site-footer img { margin: 0 auto 1.2rem; width: 170px; }
.site-footer p { margin-inline: auto; font-size: 0.95rem; }
.site-footer a { color: var(--gold); text-decoration: none; }
.footer-fine { font-size: 0.8rem; color: oklch(0.62 0.02 80); margin-top: 0.6rem; }

/* Sticky mobile bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-bar);
  display: none; gap: 0.7rem; padding: 0.7rem clamp(1rem, 4vw, 1.5rem) calc(0.7rem + env(safe-area-inset-bottom));
  background: oklch(0.17 0.012 75 / 0.94); backdrop-filter: blur(8px);
}
.sticky-bar .btn { flex: 1; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .tech-card-wide { grid-column: auto; }
}
@media (max-width: 720px) {
  .header-actions .btn-ghost { display: none; }
  .sticky-bar { display: flex; }
  .meter { right: 0.35rem; }
  .meter li { font-size: 0; gap: 0; }        /* icons only on phones */
  .meter .hex { width: 11px; height: 11px; }
  .meter ol { gap: 1.5rem; }
  .act-right { text-align: left; }
  .act-right p { margin-left: 0; }
  .journey { height: 700vh; }
}

/* ── Reduced motion / no-scrub fallback ──────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
body.no-scrub .journey { height: auto; }
body.no-scrub .journey-stage { position: relative; height: auto; overflow: visible; }
body.no-scrub .journey-poster { position: relative; inset: auto; height: 100svh; }
body.no-scrub .act { position: relative; inset: auto; opacity: 1; visibility: visible; pointer-events: auto; background: var(--night); }
body.no-scrub .act .act-inner { opacity: 1 !important; transform: none !important; }
body.no-scrub .act-hero { position: absolute; top: 0; left: 0; right: 0; height: 100svh; }
body.no-scrub .act-panel { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
body.no-scrub .act-panel .act-inner { background: none; }
body.no-scrub .meter { display: none; }
body.no-scrub .journey-veil { height: 100svh; inset: 0 0 auto 0; }
