/* ============================================================
   Dr. Ever — All-on-4 | Dr. Parra Dental Clinic
   Pinned cinematic header (GSAP) + organized flow
   Palette: black / grey / forest green
   ============================================================ */
:root {
  --black: #0a0d0b;
  --ink: #0c0f0d;
  --grey-900: #15191a;
  --grey-700: #2a2f30;
  --grey-500: #5d6463;
  --grey-300: #9aa3a1;
  --grey-100: #d7dcda;
  --forest: #1f5138;
  --forest-bright: #2f7d54;
  --forest-glow: #3fae73;
  --mist: #e8efe9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--grey-100);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Lock scroll while the site preloader is up. */
body.preloading { overflow: hidden; height: 100vh; height: 100svh; }

/* ---------- Site preloader (black + forest green) ---------- */
#site-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 44%, #11211a 0%, #070908 72%);
  transition: opacity .35s ease, visibility .35s ease;
}
#site-preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 24px; }
.pl-brand {
  font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.5rem); color: var(--mist);
  display: flex; flex-direction: column; align-items: center; line-height: 1.1; letter-spacing: .5px;
}
.pl-brand span {
  font-family: var(--sans); font-size: .6rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--forest-glow); margin-top: 10px;
}
.pl-ring {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(63,174,115,.16);
  border-top-color: var(--forest-glow);
  animation: pl-spin .85s linear infinite;
  box-shadow: 0 0 26px rgba(63,174,115,.22);
}
@keyframes pl-spin { to { transform: rotate(360deg); } }
.pl-bar {
  width: min(260px, 60vw); height: 2px; border-radius: 100px;
  background: rgba(63,174,115,.15); overflow: hidden;
}
.pl-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--forest-bright), var(--forest-glow));
  box-shadow: 0 0 12px rgba(63,174,115,.55);
  transition: width .3s ease;
}
.pl-pct { font-family: var(--serif); font-size: 1rem; color: var(--forest-glow); letter-spacing: .06em; }
.pl-pct span { color: var(--grey-500); margin-left: 1px; }
@media (prefers-reduced-motion: reduce) { .pl-ring { animation: none; } }

/* ---------- Top progress rail ---------- */
#progress-rail { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,.05); z-index: 60; }
#progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--forest), var(--forest-glow)); box-shadow: 0 0 12px var(--forest-glow); }

/* ---------- Nav ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  padding-top: max(22px, env(safe-area-inset-top));
  padding-left: max(clamp(20px, 5vw, 64px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 5vw, 64px), env(safe-area-inset-right));
  z-index: 50; transition: background .4s ease, padding .3s ease;
}
#nav.scrolled { background: linear-gradient(180deg, rgba(10,13,11,.94), rgba(10,13,11,0)); backdrop-filter: blur(8px); padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; }
.brand-mark { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .5px; color: var(--mist); }
.brand-sub { font-size: .58rem; letter-spacing: .32em; color: var(--forest-glow); margin-top: 2px; }
#nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
#nav nav a { color: var(--grey-300); text-decoration: none; font-size: .82rem; letter-spacing: .04em; transition: color .25s; }
#nav nav a:hover { color: var(--mist); }
.nav-cta { border: 1px solid var(--forest-bright); color: var(--forest-glow) !important; padding: 8px 18px; border-radius: 100px; transition: background .25s, color .25s; }
.nav-cta:hover { background: var(--forest-bright); color: #fff !important; }

/* ============================================================
   CINEMATIC HEADER (pinned)
   ============================================================ */
#cinematic { position: relative; height: 300vh; }      /* scroll length of the scrub — shorter = faster playback */
.cine-stage {
  height: 100vh; height: 100svh; width: 100%;          /* svh = stable under the mobile URL bar */
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #12211a 0%, #0a0d0b 72%);
}
body.no-gsap .cine-stage { position: sticky; top: 0; }   /* fallback pinning */
#scrub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cine-grain {
  position: absolute; inset: 0; pointer-events: none;
  background:
    /* keep the centre clear so the animation shows; scrim only top, bottom & left for text */
    linear-gradient(180deg, rgba(10,13,11,.5) 0%, rgba(10,13,11,0) 24%, rgba(10,13,11,0) 46%, rgba(10,13,11,.62) 74%, rgba(10,13,11,.94) 100%),
    linear-gradient(90deg, rgba(10,13,11,.66) 0%, rgba(10,13,11,.2) 38%, rgba(10,13,11,0) 62%);
}

.cine-overlay { position: absolute; inset: 0; display: grid; align-items: center; justify-items: start; padding: 0 clamp(20px, 6vw, 80px); }
.cine-scene { grid-area: 1 / 1; text-align: left; max-width: 720px; }
.cine-scene[data-scene="1"], .cine-scene[data-scene="2"] { opacity: 0; }   /* GSAP fades these in */

.eyebrow { text-transform: uppercase; letter-spacing: .35em; font-size: .72rem; color: var(--forest-glow); margin-bottom: 20px; }
.cine-title { font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 11vw, 8rem); line-height: .92; color: var(--mist); letter-spacing: -1.5px; }
.cine-sub { margin-top: 18px; font-size: clamp(1rem, 2.4vw, 1.5rem); color: var(--grey-300); font-weight: 300; letter-spacing: .14em; }
.cine-big { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 6vw, 4.4rem); line-height: 1.04; color: var(--mist); letter-spacing: -1px; }
.cine-big .muted { color: var(--forest-glow); }
.cine-accolade { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 2.3vw, 1.4rem); color: var(--mist); letter-spacing: .01em; }
.cine-accolade::before { content: "—"; color: var(--forest-glow); margin-right: 12px; opacity: .8; }
.cine-trustbar { list-style: none; display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 4px 0; margin-top: 20px; padding: 0; }
.cine-trustbar li { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-300); padding: 0 18px; position: relative; white-space: nowrap; }
.cine-trustbar li:first-child { padding-left: 0; }
.cine-trustbar li:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 11px; background: var(--grey-700); }
.cine-trust { margin-top: 30px; font-size: clamp(.98rem, 2.1vw, 1.3rem); color: var(--grey-300); font-weight: 300; letter-spacing: .02em; }
.cine-trust span { color: var(--forest-glow); }
.cine-actions { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; margin-top: 36px; }

.cine-meta { position: absolute; bottom: max(30px, env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(20px, 6vw, 64px); pointer-events: none; }
.cine-counter { font-size: .8rem; letter-spacing: .18em; color: var(--grey-500); font-variant-numeric: tabular-nums; }
.cine-counter b { color: var(--forest-glow); font-weight: 600; }
.cine-cue { font-size: .75rem; letter-spacing: .25em; color: var(--grey-500); text-transform: uppercase; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(6px); opacity: 1; } }

/* ============================================================
   FLOW (everything underneath the header)
   ============================================================ */
.flow { position: relative; z-index: 2; background: var(--black); }
.section { padding: clamp(80px, 13vh, 160px) clamp(20px, 6vw, 80px); position: relative; }
.section.alt { background: linear-gradient(180deg, #0c100e, #0a0d0b); border-top: 1px solid #11161300; }
.section.alt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 50% at 50% 0%, rgba(31,81,56,.14), transparent 70%); pointer-events: none; }
.wrap { max-width: 1100px; margin: 0 auto; position: relative; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }

.section-head { margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 14px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 5.2vw, 3.8rem); line-height: 1.04; color: var(--mist); letter-spacing: -.5px; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--mist); margin-bottom: 6px; }
.body { font-size: 1.05rem; color: var(--grey-300); line-height: 1.7; font-weight: 300; }
.body strong { color: var(--grey-100); font-weight: 500; }
.lead { font-size: 1.2rem; color: var(--grey-100); }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

/* ---------- Scroll reveals (CSS-driven — independent of any JS ticker) ----------
   Hidden state applies ONLY when JS has added .reveal-ready to <html>,
   so if scripts fail the content stays fully visible (never blank). */
.reveal-ready [data-reveal],
.reveal-ready [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .85s ease, transform .85s ease;
}
.reveal-ready [data-reveal].show,
.reveal-ready [data-reveal-group] > .show {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-size: .92rem; letter-spacing: .03em; padding: 15px 30px; border-radius: 100px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s, background .25s, box-shadow .25s, color .25s; font-family: var(--sans); }
.btn-solid { background: var(--forest-bright); color: #fff; box-shadow: 0 8px 30px rgba(47,125,84,.35); }
.btn-solid:hover { background: var(--forest-glow); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(63,174,115,.45); }
.btn-ghost { border-color: var(--grey-700); color: var(--grey-100); }
.btn-ghost:hover { border-color: var(--forest-glow); color: var(--forest-glow); transform: translateY(-2px); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { padding: 28px 22px; border: 1px solid var(--grey-700); border-radius: 14px; background: rgba(20,25,26,.45); }
.stat .num { display: block; font-family: var(--serif); font-size: 3rem; color: var(--forest-glow); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .label { display: block; margin-top: 10px; font-size: .8rem; color: var(--grey-300); letter-spacing: .02em; }

/* ---------- Procedure timeline ---------- */
.timeline { position: relative; padding-left: 8px; }
.tl-track { position: absolute; left: 30px; top: 12px; bottom: 12px; width: 2px; background: var(--grey-900); border-radius: 2px; }
.tl-progress { position: absolute; inset: 0; background: linear-gradient(180deg, var(--forest-bright), var(--forest-glow)); transform: scaleY(0); transform-origin: top; box-shadow: 0 0 14px rgba(63,174,115,.5); }
body.no-gsap .tl-progress { transform: scaleY(1); }
.tl-steps { list-style: none; display: grid; gap: 8px; }
.tl-steps li { display: flex; gap: 28px; align-items: flex-start; padding: 22px 0; }
.tl-node { position: relative; z-index: 1; flex: 0 0 60px; height: 60px; width: 60px; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; color: var(--forest-glow); background: var(--ink); border: 1px solid var(--forest-bright); border-radius: 50%; }
.tl-card { flex: 1; padding-top: 8px; }
.tl-card p { color: var(--grey-300); font-weight: 300; line-height: 1.6; max-width: 620px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.team-grid.team-single { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
.doc-card { display: flex; flex-direction: column; border: 1px solid var(--grey-700); border-radius: 18px; background: rgba(13,17,15,.7); overflow: hidden; transition: border-color .3s, transform .3s, box-shadow .3s; }
.doc-card:hover { border-color: var(--forest-bright); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.doc-portrait { height: 180px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 120%, var(--forest) 0%, transparent 60%), linear-gradient(135deg, var(--grey-900), var(--ink)); border-bottom: 1px solid var(--grey-900); }
.doc-portrait span { font-family: var(--serif); font-size: 3.4rem; font-weight: 600; letter-spacing: 2px; color: var(--forest-glow); opacity: .85; }
.doc-body { padding: 26px clamp(22px, 3vw, 32px) 30px; }
.doc-body h3 { font-size: 1.7rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.cred { font-family: var(--sans); font-size: .68rem; letter-spacing: .18em; color: var(--forest-glow); border: 1px solid var(--forest-bright); border-radius: 100px; padding: 3px 10px; }
.doc-role { color: var(--forest-glow); font-size: .85rem; letter-spacing: .04em; margin: 6px 0 16px; }
.doc-bio { color: var(--grey-300); font-weight: 300; line-height: 1.65; font-size: .98rem; }
.doc-bio strong { color: var(--grey-100); font-weight: 500; }
.doc-facts { list-style: none; margin: 20px 0 0; display: grid; gap: 10px; }
.doc-facts li { color: var(--grey-300); font-size: .88rem; display: flex; gap: 10px; align-items: baseline; }
.doc-facts li span { color: var(--forest-glow); font-family: var(--serif); font-size: 1rem; min-width: 56px; font-weight: 600; }
.doc-quote { margin-top: 20px; padding-left: 18px; border-left: 2px solid var(--forest-bright); font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.45; color: var(--mist); }

/* ---------- Straumann brand ---------- */
.straumann-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-card { border: 1px solid var(--grey-700); border-radius: 16px; padding: 28px 24px; background: rgba(13,17,15,.6); transition: border-color .3s, transform .3s, box-shadow .3s; }
.feat-card:hover { border-color: var(--forest-bright); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.feat-tag { display: inline-block; font-size: .72rem; letter-spacing: .12em; color: var(--forest-glow); border: 1px solid var(--forest-bright); border-radius: 100px; padding: 4px 12px; margin-bottom: 16px; }
.feat-card h3 { font-size: 1.4rem; margin-bottom: 10px; line-height: 1.15; }
.feat-card p { color: var(--grey-300); font-weight: 300; line-height: 1.6; font-size: .92rem; }
.straumann-mark { text-align: center; margin-top: 46px; color: var(--grey-500); font-size: .82rem; letter-spacing: .04em; }
.straumann-mark span { font-family: var(--sans); font-weight: 600; letter-spacing: .28em; color: var(--mist); font-size: 1.05rem; }
.straumann-mark sup { font-size: .55em; }

/* ---------- Before / After slider ---------- */
.ba-slider { --pos: 50%; position: relative; width: 100%; max-width: 900px; margin: 44px auto 0; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--grey-700); box-shadow: 0 30px 80px rgba(0,0,0,.5); user-select: none; touch-action: none; }
.ba-after, .ba-before { position: absolute; inset: 0; }
.ba-after img, .ba-before img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--forest-glow); transform: translateX(-1px); box-shadow: 0 0 16px rgba(63,174,115,.8); pointer-events: none; }
.ba-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--forest-glow); font-size: 1.1rem; background: rgba(10,13,11,.8); border: 2px solid var(--forest-glow); backdrop-filter: blur(4px); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; }
.ba-label { position: absolute; bottom: 16px; padding: 6px 14px; border-radius: 100px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; background: rgba(10,13,11,.55); backdrop-filter: blur(6px); }
.ba-label-after { right: 16px; color: var(--forest-glow); border: 1px solid var(--forest-bright); }
.ba-label-before { left: 16px; color: var(--grey-300); border: 1px solid var(--grey-700); }
.ba-hint { text-align: center; color: var(--grey-500); font-size: .82rem; letter-spacing: .06em; margin-top: 16px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 58px; }
.testi { border: 1px solid var(--grey-700); border-radius: 16px; padding: 32px 28px; background: rgba(13,17,15,.7); display: flex; flex-direction: column; gap: 16px; transition: border-color .3s, transform .3s; }
.testi:hover { border-color: var(--forest-bright); transform: translateY(-4px); }
.testi-stars { color: var(--forest-glow); letter-spacing: 3px; font-size: .9rem; }
.testi blockquote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.42; color: var(--mist); font-style: italic; }
.testi figcaption { color: var(--grey-300); font-size: .85rem; margin-top: auto; }
.testi figcaption span { display: inline-block; margin-left: 8px; color: var(--forest-glow); border: 1px solid var(--forest-bright); border-radius: 100px; padding: 2px 10px; font-size: .68rem; letter-spacing: .08em; vertical-align: middle; }
.testi-note { text-align: center; color: var(--grey-500); font-size: .76rem; margin-top: 26px; font-style: italic; }

/* ---------- Facility / clinic walkthrough ---------- */
.facility-lead { margin-top: 76px; text-align: center; }
.facility-subhead { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--mist); line-height: 1.12; letter-spacing: -.01em; font-weight: 600; }
.facility-figure { max-width: 960px; margin: 40px auto 0; }
.facility-media { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--forest-bright); background: radial-gradient(circle at 50% 32%, rgba(31,81,56,.38), transparent 62%), linear-gradient(160deg, var(--grey-900), var(--ink)); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.facility-video, .facility-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facility-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 28px; }
.fp-icon { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--forest-glow); color: var(--forest-glow); font-size: 1.5rem; padding-left: 6px; box-shadow: 0 0 34px rgba(63,174,115,.3); margin-bottom: 6px; }
.fp-overline { font-family: var(--serif); font-size: 1.5rem; color: var(--mist); }
.fp-sub { color: var(--grey-300); max-width: 460px; font-size: .98rem; line-height: 1.6; }
.fp-tag { margin-top: 10px; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--forest-glow); border: 1px solid var(--forest-bright); border-radius: 100px; padding: 5px 14px; }
.facility-cap { text-align: center; color: var(--grey-500); font-size: .8rem; letter-spacing: .04em; margin-top: 16px; }
.facility-trust { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 46px 0 0; padding: 0; }
.facility-trust li { border: 1px solid var(--grey-700); border-radius: 16px; padding: 26px 24px; background: rgba(13,17,15,.6); transition: border-color .3s, transform .3s; }
.facility-trust li:hover { border-color: var(--forest-bright); transform: translateY(-4px); }
.facility-trust h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--forest-glow); margin-bottom: 8px; }
.facility-trust p { color: var(--grey-300); font-size: .92rem; line-height: 1.6; }
.facility-trust + .booking-cta { margin-top: 40px; }
@media (max-width: 760px) { .facility-trust { grid-template-columns: 1fr; } }

/* ---------- Full-bleed clinic scroll-scrub walkthrough ---------- */
/* Breaks out of .wrap to span the full viewport width, edge to edge, no padding. */
.clinic-scrub {
  position: relative;
  left: 50%;
  width: 100vw;
  margin: 56px -50vw 8px;   /* -50vw left+right cancels the centered wrap */
}
.clinic-scrub__stage {
  position: relative;
  width: 100%;
  height: 100vh; height: 100svh;   /* svh = stable under the mobile URL bar */
  overflow: hidden;
  background: #000;   /* matches the video's own background */
}
body.no-gsap .clinic-scrub__stage { position: sticky; top: 0; }   /* fallback pinning */
#clinic-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.clinic-scrub__grain {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,10,9,.55) 0%, rgba(8,10,9,0) 22%, rgba(8,10,9,0) 58%, rgba(8,10,9,.78) 100%),
    linear-gradient(0deg, transparent 82%, rgba(8,10,9,.5) 100%);   /* faint top scrim keeps the hint legible */
}
.clinic-scrub__overlay {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: clamp(22px, 5vw, 56px);
  padding-bottom: max(clamp(22px, 5vw, 56px), env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.clinic-scrub__eyebrow {
  font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2.4rem); color: var(--mist);
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}
.clinic-scrub__cap {
  color: var(--grey-300); font-size: clamp(.74rem, 1.6vw, .86rem);
  letter-spacing: .05em; text-shadow: 0 1px 12px rgba(0,0,0,.7);
}
.clinic-scrub__hint {
  position: absolute; top: clamp(18px, 4vw, 32px); right: clamp(18px, 4vw, 40px);
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--forest-glow); border: 1px solid var(--forest-bright);
  border-radius: 100px; padding: 6px 14px; background: rgba(10,13,11,.4);
  backdrop-filter: blur(4px); transition: opacity .4s;
}

/* ---------- Pricing ---------- */
.price-compare { max-width: 640px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 12px; }
.pc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 24px; border-radius: 14px; border: 1px solid var(--grey-900); background: rgba(13,17,15,.5); }
.pc-label { font-size: .95rem; color: var(--grey-300); letter-spacing: .01em; }
.pc-value { font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 1.95rem); white-space: nowrap; }
.pc-us { opacity: .85; }
.pc-us .pc-value { color: var(--grey-300); text-decoration: line-through; text-decoration-color: rgba(224,122,122,.75); text-decoration-thickness: 2px; }
.pc-here { border-color: var(--forest-bright); background: linear-gradient(180deg, rgba(31,81,56,.22), rgba(13,17,15,.5)); }
.pc-here .pc-value { color: var(--forest-glow); font-weight: 600; }
.pc-here .pc-value em { font-style: normal; font-family: var(--sans); font-size: .82rem; color: var(--grey-300); letter-spacing: .04em; margin-left: 6px; }
.pc-save { text-align: center; margin: 6px 0 0; font-size: 1.02rem; color: var(--mist); }
.pc-save strong { color: var(--forest-glow); }
@media (max-width: 560px) { .pc-row { flex-direction: column; align-items: flex-start; gap: 6px; } }

.price-card { max-width: 660px; margin: 30px auto 0; text-align: center; border: 1px solid var(--forest-bright); border-radius: 20px; padding: clamp(34px, 5vw, 56px); background: linear-gradient(180deg, rgba(31,81,56,.16), rgba(13,17,15,.6)); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.price-tag { display: inline-block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--forest-glow); border: 1px solid var(--forest-bright); border-radius: 100px; padding: 5px 14px; margin-bottom: 24px; }
.price-figure { display: flex; align-items: baseline; justify-content: center; gap: 2px; line-height: 1; margin-bottom: 20px; }
.price-currency { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--forest-glow); }
.price-amount { font-family: var(--serif); font-weight: 600; font-size: clamp(3.4rem, 10vw, 5.6rem); color: var(--mist); letter-spacing: -1.5px; }
.price-unit { font-family: var(--sans); font-size: clamp(.9rem, 2vw, 1.05rem); color: var(--grey-300); letter-spacing: .04em; margin-left: 10px; }
.price-note { color: var(--grey-300); font-weight: 300; line-height: 1.65; max-width: 500px; margin: 0 auto 24px; font-size: .98rem; }
.price-includes { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 30px; padding: 0; }
.price-includes li { font-size: .82rem; color: var(--grey-100); border: 1px solid var(--grey-700); border-radius: 100px; padding: 7px 15px; }
.price-includes li::before { content: "✓\00a0"; color: var(--forest-glow); }

/* ---------- Assurances band (important notes) ---------- */
.assurance-band {
  padding: clamp(48px, 8vh, 72px) clamp(20px, 6vw, 80px);
  background: linear-gradient(180deg, rgba(31,81,56,.16), rgba(31,81,56,.05));
  border-top: 1px solid rgba(47,125,84,.35);
  border-bottom: 1px solid rgba(47,125,84,.35);
}
.assure-eyebrow { text-align: center; text-transform: uppercase; letter-spacing: .32em; font-size: .7rem; color: var(--forest-glow); margin-bottom: 34px; }
.assurance-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1000px; margin: 0 auto; }
.assure { display: flex; gap: 20px; align-items: flex-start; }
.assure-icon { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; color: var(--forest-glow); border: 1px solid var(--forest-bright); border-radius: 14px; background: rgba(10,13,11,.55); }
.assure-icon svg { width: 28px; height: 28px; }
.assure h3 { font-size: 1.4rem; margin-bottom: 6px; }
.assure p { color: var(--grey-300); font-weight: 300; line-height: 1.6; font-size: .96rem; }

.pay-strip { max-width: 1000px; margin: 44px auto 0; text-align: center; padding-top: 34px; border-top: 1px solid rgba(47,125,84,.28); }
.pay-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--forest-glow); margin-bottom: 18px; }
.pay-methods { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; }
.pay-methods li { font-size: .82rem; color: var(--grey-100); border: 1px solid var(--grey-700); border-radius: 100px; padding: 7px 16px; background: rgba(10,13,11,.5); letter-spacing: .02em; transition: border-color .2s, color .2s; }
.pay-methods li:hover { border-color: var(--forest-bright); color: var(--forest-glow); }

/* ---------- Location / map ---------- */
.loc-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: stretch; }
.loc-map { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--grey-700); min-height: 440px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.loc-map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.9); }
.loc-directions { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: .8rem; color: var(--mist); background: rgba(10,13,11,.85); border: 1px solid var(--forest-bright); border-radius: 100px; padding: 9px 16px; text-decoration: none; backdrop-filter: blur(6px); transition: background .2s, color .2s; }
.loc-directions:hover { background: var(--forest-bright); color: #fff; }
.loc-info { display: grid; gap: 16px; align-content: start; }
.loc-card { border: 1px solid var(--grey-700); border-radius: 14px; padding: 24px 26px; background: rgba(13,17,15,.6); transition: border-color .3s; }
.loc-card:hover { border-color: var(--forest-bright); }
.loc-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.loc-card p { color: var(--grey-300); font-weight: 300; line-height: 1.65; font-size: .95rem; }
.loc-card p strong { color: var(--mist); font-weight: 500; }
.loc-airport { border-color: var(--forest-bright); background: linear-gradient(180deg, rgba(31,81,56,.16), rgba(13,17,15,.6)); }
.loc-tag { display: inline-block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--forest-glow); border: 1px solid var(--forest-bright); border-radius: 100px; padding: 3px 11px; margin-bottom: 12px; }
.loc-sub { color: var(--grey-500) !important; font-size: .85rem !important; margin-top: 10px; }
.airport-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.airport-list li { padding-top: 14px; border-top: 1px solid var(--grey-900); }
.airport-list li:first-child { border-top: none; padding-top: 2px; }
.ap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ap-name { font-family: var(--serif); font-size: 1.15rem; color: var(--mist); }
.ap-name em { color: var(--forest-glow); font-style: normal; font-family: var(--sans); font-size: .78rem; letter-spacing: .04em; }
.ap-dist { font-size: .78rem; color: var(--forest-glow); font-variant-numeric: tabular-nums; white-space: nowrap; border: 1px solid var(--forest-bright); border-radius: 100px; padding: 3px 11px; }
.airport-list > li > p { color: var(--grey-300); font-weight: 300; font-size: .88rem; line-height: 1.5; margin-top: 6px; }

/* ---------- Easy booking steps ---------- */
.booking-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0; }
.bk-step { border: 1px solid var(--grey-700); border-radius: 16px; padding: 34px 28px; background: rgba(13,17,15,.6); transition: border-color .3s, transform .3s, box-shadow .3s; }
.bk-step:hover { border-color: var(--forest-bright); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.bk-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-family: var(--serif); font-size: 1.4rem; color: var(--forest-glow); border: 1px solid var(--forest-bright); margin-bottom: 18px; }
.bk-step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.bk-step p { color: var(--grey-300); font-weight: 300; line-height: 1.6; font-size: .94rem; }
.booking-cta { text-align: center; margin-top: 44px; }

/* ---------- Forms ---------- */
.card-form { margin-top: 40px; background: rgba(13,17,15,.82); border: 1px solid var(--grey-700); border-radius: 18px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
fieldset { border: none; margin-bottom: 26px; }
legend { font-family: var(--serif); font-size: 1.25rem; color: var(--forest-glow); margin-bottom: 16px; padding-bottom: 8px; width: 100%; border-bottom: 1px solid var(--grey-900); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: .8rem; color: var(--grey-300); letter-spacing: .03em; }
label.full { margin-bottom: 16px; }
.hint { color: var(--grey-500); font-size: .72rem; }
input, select, textarea { font-family: var(--sans); font-size: .95rem; color: var(--mist); background: rgba(8,11,9,.85); border: 1px solid var(--grey-700); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest-bright); box-shadow: 0 0 0 3px rgba(47,125,84,.18); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey-300) 50%), linear-gradient(135deg, var(--grey-300) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.form-footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-msg { font-size: .9rem; }
.form-msg.ok { color: var(--forest-glow); }
.form-msg.err { color: #e07a7a; }
/* ---------- File uploader ---------- */
.upload-field { display: block; margin-bottom: 16px; }
.upload-label { display: block; font-size: .8rem; color: var(--grey-300); letter-spacing: .03em; margin-bottom: 8px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; cursor: pointer;
  padding: 30px 22px;
  border: 1.5px dashed var(--grey-700);
  border-radius: 14px;
  background: rgba(8,11,9,.55);
  transition: border-color .25s, background .25s, transform .15s;
}
.dropzone:hover { border-color: var(--forest-bright); background: rgba(31,81,56,.1); }
.dropzone.dragover { border-color: var(--forest-glow); background: rgba(31,81,56,.18); transform: scale(1.01); }
.dz-icon { font-size: 1.7rem; color: var(--forest-glow); line-height: 1; }
.dz-text { color: var(--grey-300); font-size: .92rem; }
.dz-text strong { color: var(--mist); font-weight: 500; }
.dz-browse { color: var(--forest-glow); text-decoration: underline; text-underline-offset: 3px; }
.dz-files { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.dz-files li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: .82rem; color: var(--grey-100);
  background: rgba(31,81,56,.16); border: 1px solid var(--grey-700);
  border-radius: 8px; padding: 8px 12px; text-align: left;
}
.dz-files li .dz-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-files li .dz-size { color: var(--grey-500); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.dz-files li .dz-remove { flex: 0 0 auto; cursor: pointer; color: var(--grey-500); border: none; background: none; font-size: 1.05rem; line-height: 1; padding: 0 2px; transition: color .2s; }
.dz-files li .dz-remove:hover { color: #e07a7a; }

.mock-card { border: 1px dashed var(--forest-bright); border-radius: 12px; padding: 18px; color: var(--grey-300); font-size: .9rem; line-height: 1.5; background: rgba(31,81,56,.12); margin-bottom: 18px; }
.mock-card code { color: var(--forest-glow); }
#payment-element { margin: 8px 0 18px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(70px, 12vh, 130px) clamp(20px, 6vw, 80px); border-top: 1px solid var(--grey-900); text-align: center; }
.brand-mark.big { font-size: 2.2rem; }
.footer .body { margin: 10px auto 0; max-width: 560px; }
.fine { font-size: .76rem; color: var(--grey-500); margin: 22px auto 0; line-height: 1.6; max-width: 560px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  #nav nav a:not(.nav-cta) { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .straumann-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .assurance-list { grid-template-columns: 1fr; }
  .booking-steps { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .loc-map { min-height: 320px; }
  .loc-map iframe { min-height: 320px; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .tl-steps li { gap: 16px; }
  .tl-node { flex-basis: 48px; height: 48px; width: 48px; font-size: 1.1rem; }
  .tl-track { left: 23px; }
}

/* Shorter pinned scrub on phones — fewer screen-heights of swiping. */
@media (max-width: 767px) {
  #cinematic { height: 220vh; height: 220svh; }
}

/* ---------- Mobile polish (phones) ---------- */
@media (max-width: 600px) {
  /* Tighter vertical rhythm + comfortable side gutters */
  .section { padding: clamp(56px, 9vh, 84px) 22px; }
  .assurance-band { padding: 48px 22px; }
  .footer { padding: 64px 22px; }

  /* Bigger, more impactful headlines on small screens */
  h2 { font-size: clamp(2.5rem, 8.5vw, 3.4rem); }
  .cine-big { font-size: clamp(2.3rem, 11vw, 3rem); }
  .brand-mark.big { font-size: 1.8rem; }

  /* Hero: arch sits up top (contain), so drop the text to the bottom half where
     it reads against black instead of obscuring the graphic. */
  .cine-overlay { align-items: end; padding-bottom: 92px; }
  .cine-scene { width: 100%; }
  /* Hero text scenes: stack the trustbar (drop the dividers) and full-width CTAs */
  .cine-trustbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cine-trustbar li { padding: 0 !important; white-space: normal; }
  .cine-trustbar li:not(:last-child)::after { display: none; }
  .cine-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cine-actions .btn { text-align: center; }

  /* Single-column for the tightest grids */
  .straumann-grid { grid-template-columns: 1fr; }

  /* Pricing figure: let the qualifier drop below the big number */
  .price-figure { flex-wrap: wrap; }
  .price-unit { flex-basis: 100%; margin-left: 0; margin-top: 6px; }

  /* Comfortable touch targets (>= ~44px) */
  .nav-cta { padding: 12px 20px; }
  .loc-directions { padding: 12px 18px; left: 12px; right: 12px; bottom: 12px; text-align: center; }
  .dz-files li .dz-remove { padding: 6px 10px; min-width: 36px; min-height: 36px; }

  /* iOS: 16px inputs prevent the jarring zoom-on-focus */
  input, select, textarea { font-size: 16px; }

  /* Before/after slider: let vertical page-scroll pass through, bigger grip */
  .ba-slider { touch-action: pan-y; }
  .ba-grip { width: 54px; height: 54px; }
  .ba-hint { color: var(--grey-300); }

  /* Walkthrough overlay legibility on small screens */
  .clinic-scrub__eyebrow { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .clinic-scrub__hint { font-size: .58rem; padding: 5px 11px; }
}
