/* ==========================================================================
   CALMA CLINIC — GLOBAL STYLESHEET
   ==========================================================================
   Colours & fonts are injected from config.js as CSS variables.
   Sections:
     1.  Reset & base
     2.  Typography
     3.  Buttons & links
     4.  Header / navigation
     5.  Intro animation overlay
     6.  Hero
     7.  Generic sections & layout helpers
     8.  Cards (treatments, values, why-us)
     9.  Stats
     10. Testimonials
     11. Gallery & lightbox
     12. Contact / forms
     13. Footer
     14. Floating book button
     15. Scroll reveal & micro-interactions
     16. Utility pages (404, legal)
     17. Responsive
     18. Reduced motion & accessibility
   ========================================================================== */

/* ---------- 1. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Fallbacks — real values come from config.js */
  --ink: #2a0a10;
  --ink-soft: #4a1620;
  --gold: #c9a05c;
  --gold-light: #e5c989;
  --cream: #faf6f0;
  --cream-deep: #f2eae0;
  --white: #ffffff;
  --text-body: #4e4038;
  --text-on-dark: #f5ede2;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 40px rgba(42, 10, 16, 0.08);
  --shadow-hover: 0 22px 60px rgba(42, 10, 16, 0.16);
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* Stop the page sliding/rocking sideways on phones */
  overflow-x: hidden;
  width: 100%;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  letter-spacing: 0.01em;
  /* Stop the page sliding/rocking sideways on phones */
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  overscroll-behavior-x: none;
  opacity: 0;
  animation: pageFade 0.7s var(--ease-lux) forwards;
}
@keyframes pageFade { to { opacity: 1; } }

img { max-width: 100%; display: block; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--ink); }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ink); color: var(--gold); padding: 12px 24px;
  border-radius: 0 0 12px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- 2. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

p { max-width: 68ch; }

.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: ""; width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }
.section-head.center .kicker::after { display: none; }
.section-head h2 { margin: 0.6rem 0 1rem; }
.section-head p { margin-inline: auto; }

/* ---------- 3. BUTTONS & LINKS ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 38px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.45s var(--ease-lux), box-shadow 0.45s var(--ease-lux), background 0.45s var(--ease-lux), color 0.45s var(--ease-lux);
  overflow: hidden;
  isolation: isolate;
}
.btn::after {           /* soft sheen sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.8s var(--ease-lux);
}
.btn:hover::after { transform: translateX(110%); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  box-shadow: 0 8px 26px rgba(201, 160, 92, 0.4);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(201, 160, 92, 0.5); }

.btn-outline {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }

.btn-outline-light { color: var(--text-on-dark); box-shadow: inset 0 0 0 1.5px rgba(229, 201, 137, 0.7); background: transparent; }
.btn-outline-light:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }

.text-link {
  color: var(--ink); text-decoration: none; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: gap 0.35s var(--ease-lux), color 0.35s;
}
.text-link:hover { gap: 14px; color: var(--gold); }

/* ---------- 4. HEADER / NAVIGATION ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--ink);         /* solid deep ink — matches the dark sections */
  /* Short, cheap transitions only — animating backdrop-filter made the bar
     lag and smear behind the page while scrolling on phones.
     ⚠️ NEVER add transform / filter / backdrop-filter / perspective here:
     any of them makes this element the containing block for its
     position:fixed children, which traps the full-screen mobile menu
     inside the header bar. */
  transition: box-shadow 0.25s linear, height 0.25s var(--ease-lux);
}
.site-header.scrolled {
  height: 68px;
  background: var(--ink);
  box-shadow: 0 8px 30px rgba(42, 10, 16, 0.35);
}
/* While the mobile menu is open, the header must NOT have a backdrop-filter —
   a filtered parent traps position:fixed children inside its own box, which
   broke the full-screen menu on phones. The menu overlay has its own bg. */
.site-header.menu-open {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.nav-wrap {
  width: min(1240px, 92%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 46px; width: auto; transition: height 0.25s var(--ease-lux); }
.site-header.scrolled .nav-logo img { height: 38px; }

.nav-links { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 26px); }
.nav-links a:not(.btn) {
  position: relative;
  color: var(--text-on-dark); text-decoration: none;
  font-size: 0.76rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 0; white-space: nowrap;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s var(--ease-lux), left 0.4s var(--ease-lux);
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; left: 0; }
.nav-links a[aria-current="page"] { color: var(--gold-light); }
.nav-links .btn { padding: 11px 22px; font-size: 0.72rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 1001;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; margin: 6px auto;
  background: var(--gold); border-radius: 2px;
  transition: transform 0.4s var(--ease-lux), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 5. INTRO CURTAIN (branded panel, Atlas-style) ---------- */
#curtain {
  position: fixed; inset: 0; z-index: 1500;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(201, 160, 92, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, #1c060a 100%);
  display: flex; align-items: center; justify-content: center;
  transform: translate(0, 0);
  transition: transform var(--intro-dur, 1.15s) cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
  overflow: hidden;
}
#curtain.lift-left { transform: translateX(-100%); }
#curtain.lift-up   { transform: translateY(-100%); }
#curtain::after {   /* gold shimmer sweep across the curtain */
  content: "";
  position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent 0%, rgba(229, 201, 137, 0.14) 50%, transparent 100%);
  animation: curtainShimmer 2.4s 0.5s ease-in-out forwards;
}
@keyframes curtainShimmer { to { left: 110%; } }

.curtain-inner { text-align: center; position: relative; z-index: 1; padding: 0 8%; }
.curtain-logo {
  display: block;
  max-height: 88px; max-width: min(420px, 78vw); width: auto;
  margin: 0 auto;
  opacity: 0;
  animation: cFadeUp 0.6s 0.1s var(--ease-lux) forwards;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}
.curtain-rule {
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin: 1.3rem auto;
  animation: cRuleGrow 0.6s 0.55s var(--ease-lux) forwards;
  box-shadow: 0 0 12px rgba(201, 160, 92, 0.5);
}
.curtain-sub {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  animation: cFadeUp 0.55s 0.85s var(--ease-lux) forwards;
}
@keyframes cFadeUp   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cRuleGrow { to { width: min(280px, 60vw); } }

/* ---------- 6. HERO (classy framed portrait — whole photo — text below) ---------- */
.hero-photo-section {
  position: relative;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  padding: calc(var(--nav-h) + clamp(1.2rem, 3.5vw, 2.4rem)) clamp(12px, 3vw, 36px) clamp(2rem, 4vw, 3.5rem);
  display: flex; justify-content: center;
  overflow: hidden;               /* contains the 3D tilt spill, no page x-scroll */
}

/* ---- Apple-style 3D parallax hero (Atropos.js) ---- */
.hero-atropos {
  width: min(1280px, 94vw);
  opacity: 0; animation: heroFade 1.4s var(--ease-lux) 0.1s forwards;
}
/* let the layers lift out of the frame without a hard clip */
.hero-atropos .atropos-inner { overflow: visible; }
.hero-atropos .atropos-rotate,
.hero-atropos .atropos-scale { transition-timing-function: var(--ease-lux); }

.hero-layer { display: block; }

/* SUBJECT — the photo, cropped to a clean head-and-shoulders frame.
   Change "object-position" Y% to slide the crop up/down. */
.hero-subject {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover; object-position: 50% 16%;
  border-radius: clamp(18px, 2.2vw, 28px);
  box-shadow: 0 0 0 1px rgba(201, 160, 92, 0.45),
              0 32px 80px rgba(28, 6, 10, 0.5);
  will-change: transform;
}

/* BACKGROUND — a soft, blurred echo of the photo. Moves the least. */
.hero-bg {
  position: absolute; inset: -7% -7% -7% -7%; z-index: 0;
  background-position: center; background-size: cover;
  border-radius: 40px;
  filter: blur(28px) brightness(0.72) saturate(1.05);
  transform: scale(1.06);
  opacity: 0.85;
}

/* GOLD LOGO — floats the furthest forward, with a gentle shine sweep. */
.hero-logo-wrap {
  position: absolute; z-index: 3;
  left: 50%; bottom: 6.5%; transform: translateX(-50%);
  width: clamp(180px, 40%, 460px);
  will-change: transform;
}
.hero-logo {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 10px 22px rgba(20, 4, 8, 0.55));
}
/* the shine — a light sweep masked to the logo's shape */
.hero-logo-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg,
    transparent 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%);
  background-size: 250% 100%; background-repeat: no-repeat;
  -webkit-mask: url(../logo.png) center / contain no-repeat;
          mask: url(../logo.png) center / contain no-repeat;
  animation: heroLogoShine 6s var(--ease-lux) 2.2s infinite;
}
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroLogoShine {
  0%   { background-position: -160% 0; }
  55%  { background-position: 260% 0; }
  100% { background-position: 260% 0; }
}
/* soft, premium highlight from Atropos */
.hero-atropos .atropos-highlight {
  background-image: radial-gradient(circle at 50%,
    rgba(255, 245, 225, 0.22), transparent 55%);
}

/* The intro text sits below the photo, on the page background */
.hero-intro {
  background: var(--cream); text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero-intro .kicker { justify-content: center; color: var(--gold); }
.hero-intro .kicker::before, .hero-intro .kicker::after { display: none; }
.hero-intro h1 {
  color: var(--ink); margin: 1rem auto 0; max-width: 22ch; text-wrap: balance;
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08;
}
.hero-sub {
  margin: 1.2rem auto 2rem; max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text-body);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Staggered entrance — elements start hidden, .in class animates them up */
.hero-stagger { opacity: 0; transform: translateY(34px); }
.hero-stagger.in { animation: riseIn 1.1s var(--ease-lux) forwards; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

/* Scroll indicator — not used with the framed hero */
.scroll-hint {
  display: none;
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3;
  flex-direction: column; align-items: center; gap: 10px;
  color: var(--gold-light); text-decoration: none;
  font-size: 0.65rem; letter-spacing: 0.34em; text-transform: uppercase;
}
.scroll-hint .line {
  width: 1px; height: 44px; overflow: hidden; position: relative;
  background: rgba(229, 201, 137, 0.25);
}
.scroll-hint .line::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--gold-light);
  animation: scrollDrip 2.2s var(--ease-lux) infinite;
}
@keyframes scrollDrip { 60% { top: 100%; } 100% { top: 100%; } }

/* Compact page hero for inner pages */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
  background: var(--ink);   /* solid deep ink — seamless with the header */
  color: var(--text-on-dark);
}
.page-hero h1 { color: var(--white); margin-top: 0.6rem; }
.page-hero p { color: var(--text-on-dark); margin-top: 1rem; }
.page-hero .kicker { color: var(--gold-light); }

/* ---------- 7. SECTIONS & LAYOUT ---------- */
.wrap { width: min(1240px, 92%); margin-inline: auto; }
section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
section.tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.alt-bg { background: var(--cream-deep); }
.dark-bg { background: linear-gradient(160deg, var(--ink), var(--ink-soft)); color: var(--text-on-dark); }
.dark-bg h2, .dark-bg h3 { color: var(--white); }
.dark-bg p { color: var(--text-on-dark); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }

/* Framed editorial image */
.img-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.img-frame::before {
  content: ""; position: absolute; inset: 14px; z-index: 2;
  border: 1px solid rgba(229, 201, 137, 0.55);
  border-radius: calc(var(--radius-lg) - 12px);
  pointer-events: none;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform 1.2s var(--ease-lux); }
.img-frame:hover img { transform: scale(1.04); }
/* Landscape variant (e.g. the Emry product photo, 1558x1009) */
.img-frame.landscape img { aspect-ratio: 1558 / 1009; }

/* ---------- 8. CARDS ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.6s var(--ease-lux), box-shadow 0.6s var(--ease-lux);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

/* Treatment card */
.treatment-card { display: flex; flex-direction: column; }
.treatment-card .card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.treatment-card .card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-lux);
}
.treatment-card:hover .card-media img { transform: scale(1.07); }
.treatment-card .card-media .price-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(42, 10, 16, 0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 201, 137, 0.4);
  color: var(--gold-light);
  padding: 8px 18px; border-radius: 999px;
  font-size: 0.78rem; letter-spacing: 0.1em;
}
.treatment-card .card-body { padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.treatment-card .card-body p { font-size: 0.95rem; }
.treatment-card .card-meta { display: flex; gap: 18px; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; }
.treatment-card .card-actions { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Detailed treatment panel (treatments page) */
.treatment-detail {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.treatment-detail:nth-of-type(even) { grid-template-columns: 1.1fr 0.9fr; }
.treatment-detail:nth-of-type(even) .td-media { order: 2; }
.treatment-detail + .treatment-detail { margin-top: clamp(2.5rem, 5vw, 4rem); }
.td-media { position: relative; min-height: 340px; background: var(--ink); }
.td-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.td-body { padding: clamp(1.8rem, 4vw, 3.2rem); }
.td-body h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.td-facts {
  display: grid; grid-template-columns: repeat(3, auto); gap: 10px 26px;
  margin: 1.4rem 0; padding: 1.1rem 1.4rem;
  background: var(--cream); border-radius: var(--radius);
  font-size: 0.85rem;
}
.td-facts div span { display: block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.td-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.4rem 0; }
.td-cols h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.td-cols ul li, .td-cols p { font-size: 0.92rem; padding: 3px 0; }
.td-cols ul li::before { content: "—"; color: var(--gold); margin-right: 10px; }

/* Course level badge (Training page) */
.course-level {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 0.9rem;
}
/* "Coming Soon" badge — burgundy outline so it reads as a status, not a level */
.course-level.coming-soon {
  background: transparent; color: var(--ink-soft);
  box-shadow: inset 0 0 0 1.5px var(--gold);
  margin-left: 8px;
}

/* Gold badge on cards / service photos (e.g. "Most Booked") */
.card-badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(42,10,16,0.28);
}
.service-badge { top: 18px; left: 18px; }

/* Group heading between services on the Treatments page */
.group-heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-align: center; margin: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.4rem, 3vw, 2rem);
  position: relative; padding-bottom: 1rem;
}
.group-heading::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.group-heading:first-child { margin-top: 0; }

/* Journey note on semi-permanent makeup services */
.service-journey {
  background: var(--cream); border-left: 3px solid var(--gold);
  padding: 0.9rem 1.2rem; border-radius: 0 12px 12px 0;
  font-size: 0.9rem; margin: 1.1rem 0 0.4rem;
}

/* Previous Calma Clients section */
.pc-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); }
.pc-group {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-soft);
  text-align: center;
}
.pc-group-title {
  font-size: 1.4rem; margin-bottom: 0.4rem;
  padding-bottom: 0.8rem; border-bottom: 1px solid rgba(201,160,92,0.25);
}
.pc-group .price-menu { margin-top: 0; border-top: none; text-align: left; }

/* Treatments page — centre the top hero too */
body[data-page="treatments"] .page-hero .wrap { text-align: center; }
body[data-page="treatments"] .page-hero .kicker { justify-content: center; }
body[data-page="treatments"] .page-hero .kicker::before { display: none; }
body[data-page="treatments"] .page-hero p { margin-inline: auto; }

/* Service block with a price "menu" (Treatments page) */
.service-block {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.6rem, 4vw, 3.2rem);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
/* A service with no photo spans the full width */
.service-block.no-photo { grid-template-columns: 1fr; }
.service-block.no-photo .service-body { padding: clamp(1.8rem, 4vw, 3rem); }
.inline-badge {
  position: static; display: inline-block; margin-bottom: 0.8rem;
}
/* Book Now + Aftercare buttons row on each service */
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.service-block.centered .service-actions { justify-content: center; }

/* Centred, photoless service block (Treatments page) */
.service-block.centered {
  max-width: 720px; margin-inline: auto; text-align: center;
}
.service-block.centered .service-body { display: flex; flex-direction: column; align-items: center; }
.service-block.centered .kicker { justify-content: center; }
.service-block.centered .kicker::before,
.service-block.centered .kicker::after { display: none; }
.service-block.centered > .service-body > p,
.service-block.centered .service-journey { max-width: 60ch; }
.service-block.centered .service-journey {
  border-left: none; border-radius: 14px; text-align: center;
  background: var(--cream);
}
.service-block.centered .benefit-chips { justify-content: center; }
/* Price list stays left/right (name … price) but the whole menu is centred */
.service-block.centered .price-menu {
  width: 100%; max-width: 540px; margin-inline: auto; text-align: left;
}
.service-block.centered .service-extra { text-align: center; justify-items: center; width: 100%; max-width: 620px; }
.service-block.centered .btn { margin-top: 0.5rem; }
.service-block:nth-of-type(even) { grid-template-columns: 1.15fr 0.85fr; }
.service-block:nth-of-type(even) .service-media { order: 2; }
.service-block + .service-block { margin-top: clamp(2rem, 4vw, 3.5rem); }
/* Squarer, framed photo that sits centred beside the price list instead of
   stretching to the full height of the text column */
.service-media {
  position: relative; background: var(--ink);
  align-self: center;
  aspect-ratio: 1 / 1; min-height: 0;
  margin: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: clamp(1.8rem, 4vw, 3rem); }
.service-body h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0.4rem 0 0.8rem; }
.service-body > p { font-size: 0.98rem; }

.benefit-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2rem 0 0.4rem; }
.benefit-chips li {
  font-size: 0.76rem; letter-spacing: 0.04em; color: var(--ink);
  background: var(--cream-deep); border: 1px solid rgba(201,160,92,0.3);
  padding: 6px 14px; border-radius: 999px;
}

/* The price list */
.price-menu { margin: 1.4rem 0 0.6rem; border-top: 1px solid rgba(201,160,92,0.25); }
.menu-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(201,160,92,0.18);
}
.menu-info { display: flex; flex-direction: column; gap: 2px; }
.menu-name { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); font-weight: 500; }
.menu-note { font-size: 0.82rem; color: var(--text-body); opacity: 0.85; max-width: 46ch; }
.menu-dur { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.menu-price {
  flex: none; font-family: var(--font-display); font-size: 1.25rem;
  color: var(--gold); font-weight: 600; white-space: nowrap;
}
.service-note { font-size: 0.82rem; color: var(--text-body); opacity: 0.85; margin: 0.8rem 0 0; font-style: italic; }
.service-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.6rem 0; }
.service-extra h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.service-extra p { font-size: 0.9rem; }

/* Training photo slideshow */
.slideshow {
  position: relative; width: min(460px, 100%); margin-inline: auto;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow-soft);
}
.slideshow .slide {
  position: absolute; inset: 0; opacity: 0; margin: 0;
  transition: opacity 1s var(--ease-lux);
}
.slideshow .slide.active { opacity: 1; }
.slideshow .slide img, .slideshow .slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow-dots {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 2; display: flex; gap: 8px;
}
.slideshow-dots button {
  width: 26px; height: 3px; border: none; border-radius: 2px; cursor: pointer;
  background: rgba(255, 255, 255, 0.45); transition: background 0.4s;
}
.slideshow-dots button[aria-selected="true"] { background: var(--gold-light); }

/* Training YouTube video */
.video-frame {
  position: relative; width: min(880px, 100%); margin-inline: auto;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--ink), var(--ink-soft));
  box-shadow: var(--shadow-soft);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Thumbnail "facade" — a clean poster + play button (no YouTube error card) */
.video-facade { display: block; cursor: pointer; text-decoration: none; }
.video-facade .vf-thumb {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-facade::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(42,10,16,0.15), rgba(42,10,16,0.35));
  transition: background 0.4s var(--ease-lux);
}
.video-facade:hover::after { background: rgba(42,10,16,0.18); }
.video-facade .vf-play,
.fu-video .vf-play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 5px;
  background: rgba(201, 160, 92, 0.94); color: var(--ink);
  font-size: 1.5rem; box-shadow: 0 12px 34px rgba(20, 4, 8, 0.45);
  transition: transform 0.35s var(--ease-lux), background 0.35s;
}
.video-facade:hover .vf-play,
.fu-video:hover .vf-play { transform: scale(1.09); background: var(--gold-light); }
.fu-video .vf-play { width: 62px; height: 62px; font-size: 1.2rem; }
.video-placeholder {
  display: grid; place-items: center; align-content: center; gap: 1rem;
  color: var(--gold-light);
}
.video-placeholder .vp-play {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px;
  border: 1px solid rgba(229, 201, 137, 0.5);
  background: rgba(201, 160, 92, 0.15);
  font-size: 1.2rem;
}
.video-placeholder p {
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-light);
}

/* Aftercare page cards */
.aftercare-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.aftercare-card + .aftercare-card { margin-top: 1.6rem; }
.aftercare-card { scroll-margin-top: calc(var(--nav-h) + 20px); }
.aftercare-card .kicker { justify-content: center; color: var(--gold); }
.aftercare-card .kicker::before, .aftercare-card .kicker::after { display: none; }
.aftercare-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.aftercare-card > p { font-size: 0.98rem; margin: 0; color: var(--text-body); }
.aftercare-card .btn { margin-top: 0.7rem; }
.aftercare-healing {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--cream); border: 1px solid rgba(201,160,92,0.3);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 1rem;
  font-size: 0.95rem; color: var(--ink);
}
.aftercare-healing span { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.aftercare-img { width: 100%; border-radius: var(--radius); margin-top: 0.4rem; }

/* Why-us / values card */
.value-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft);
  transition: transform 0.6s var(--ease-lux), box-shadow 0.6s var(--ease-lux);
}
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.value-card .icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
}
.value-card .icon svg { width: 26px; height: 26px; }
/* Burgundy text on the light cards (headings and body) */
.value-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--ink-soft); }
.value-card p { font-size: 0.92rem; color: var(--ink-soft); }
.dark-bg .value-card { background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(229, 201, 137, 0.18); box-shadow: none; }
.dark-bg .value-card h3 { color: var(--gold); }
.dark-bg .value-card p { color: var(--gold); }

/* ---------- 9. STATS ---------- */
.stats-band { border-block: 1px solid rgba(201, 160, 92, 0.35); }
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); text-align: center; }
.stat .num {
  font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--gold); line-height: 1.18;   /* room so the ★ never touches */
}
.stat .label { margin-top: 8px; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* ---------- 10. TESTIMONIALS ---------- */
.testimonial-stage { position: relative; max-width: 780px; margin-inline: auto; text-align: center; min-height: 300px; }
.testimonial {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s var(--ease-lux), transform 0.9s var(--ease-lux);
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
}
.testimonial.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.testimonial .stars { color: var(--gold); letter-spacing: 6px; font-size: 1.05rem; }
.testimonial blockquote {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-style: italic; color: var(--white); line-height: 1.5; text-wrap: balance;
}
.testimonial cite { font-style: normal; font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-light); }
.testimonial-dots { display: flex; justify-content: center; gap: 12px; margin-top: 2rem; }
.testimonial-dots button {
  width: 34px; height: 3px; border: none; cursor: pointer; border-radius: 2px;
  background: rgba(229, 201, 137, 0.25);
  transition: background 0.4s;
}
.testimonial-dots button[aria-selected="true"] { background: var(--gold); }

/* ---------- 11. GALLERY & LIGHTBOX ---------- */
.masonry { columns: 3 300px; column-gap: 1.4rem; }
.masonry-item {
  break-inside: avoid; margin-bottom: 1.4rem;
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; background: var(--cream-deep);
  box-shadow: var(--shadow-soft);
}
.masonry-item img {
  width: 100%; transition: transform 1s var(--ease-lux), opacity 0.8s var(--ease-lux);
  opacity: 0;
}
.masonry-item img.loaded { opacity: 1; }
.masonry-item:hover img { transform: scale(1.05); }
/* video tiles */
.masonry-item video { width: 100%; display: block; }
.masonry-item .play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(42,10,16,0.55); color: var(--gold-light);
  border: 1px solid rgba(229,201,137,0.5); font-size: 1rem; padding-left: 3px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: transform 0.4s var(--ease-lux), opacity 0.4s;
}
.masonry-item.is-video:hover .play-badge { transform: translate(-50%, -50%) scale(1.1); }
.masonry-item.is-video::before { display: none; }
.masonry-item .cap {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 2.2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(42,10,16,0.75));
  color: var(--gold-light); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease-lux), transform 0.5s var(--ease-lux);
}
.masonry-item:hover .cap { opacity: 1; transform: translateY(0); }
/* shimmer placeholder while lazy image loads */
.masonry-item::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--cream-deep) 40%, #fff 50%, var(--cream-deep) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}
.masonry-item:has(img.loaded)::before { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(20, 5, 8, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-lux);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img, .lightbox video {
  max-width: min(90vw, 1100px); max-height: 82vh;
  border-radius: var(--radius); object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.6s var(--ease-lux);
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}
.lightbox.open img, .lightbox.open video { transform: scale(1); }
.lightbox .lb-cap { color: var(--gold-light); margin-top: 1rem; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(229,201,137,0.35);
  color: var(--gold-light); cursor: pointer; border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.2rem; display: grid; place-items: center;
  transition: background 0.3s, transform 0.3s;
}
.lightbox button:hover { background: rgba(201,160,92,0.25); transform: scale(1.06); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }

/* ---------- 12. CONTACT / FORMS ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 2rem; }
.info-list .item { display: flex; gap: 18px; align-items: flex-start; }
.info-list .item .icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink); display: grid; place-items: center;
}
.info-list .item .icon svg { width: 22px; height: 22px; }
.info-list .item h3 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.info-list .item a { color: var(--text-body); text-decoration: none; transition: color 0.3s; }
.info-list .item a:hover { color: var(--gold); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid rgba(201,160,92,0.2); font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; color: var(--ink); font-weight: 400; }
.hours-table tr.today td { color: var(--gold); font-weight: 500; }

.map-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 380px; border: 0; filter: sepia(0.28) saturate(0.85); }

/* Glassmorphic form */
.form-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 160, 92, 0.28);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.2rem; }
.field label { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  background: var(--white); border: 1px solid rgba(201, 160, 92, 0.35);
  border-radius: 14px; padding: 14px 18px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 160, 92, 0.18);
}
.form-note { font-size: 0.82rem; margin-top: 1rem; }
.form-success { display: none; text-align: center; padding: 2rem 0; }
.form-success.show { display: block; }
.form-success .tick {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: grid; place-items: center; color: var(--ink); font-size: 1.6rem;
  animation: pop 0.6s var(--ease-lux);
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* Download (forms page) card */
.download-card {
  display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}
.download-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.download-card + .download-card { margin-top: 1.6rem; }
.download-card .pdf-icon {
  flex: none; width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: var(--gold-light); display: grid; place-items: center;
}
.download-card .pdf-icon svg { width: 34px; height: 34px; }
.download-card p { font-size: 0.92rem; margin: 6px 0 0; }
.download-card .btn { flex: none; }

/* ---------- 13. FOOTER ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--ink), #1c060a);
  color: var(--text-on-dark);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.site-footer .f-logo img { height: 42px; width: auto; margin-bottom: 1.2rem; }
.site-footer p { font-size: 0.9rem; color: rgba(245, 237, 226, 0.75); }
.site-footer h3 { font-family: var(--font-body); color: var(--gold); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer ul li { padding: 5px 0; }
.site-footer a { color: rgba(245, 237, 226, 0.8); text-decoration: none; font-size: 0.9rem; transition: color 0.3s, padding-left 0.3s; }
.site-footer a:hover { color: var(--gold-light); padding-left: 6px; }
.footer-hours li { display: flex; justify-content: space-between; font-size: 0.85rem; color: rgba(245, 237, 226, 0.75); }
.footer-social { display: flex; gap: 12px; margin-top: 1.4rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(229, 201, 137, 0.35);
  display: grid; place-items: center; color: var(--gold-light);
  transition: background 0.35s, transform 0.35s;
}
.footer-social a:hover { background: rgba(201, 160, 92, 0.2); transform: translateY(-4px); padding-left: 0; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(229, 201, 137, 0.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.78rem; color: rgba(245, 237, 226, 0.55);
}
.footer-bottom a { font-size: 0.78rem; color: rgba(245, 237, 226, 0.55); }
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* ---------- 14. FLOATING BOOK BUTTON ---------- */
.float-book {
  position: fixed; right: 22px; bottom: 22px; z-index: 950;
  opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none;
  transition: opacity 0.5s var(--ease-lux), transform 0.5s var(--ease-lux);
}
.float-book.show { opacity: 1; transform: none; pointer-events: auto; }
.float-book .btn { box-shadow: 0 14px 40px rgba(42, 10, 16, 0.35); padding: 15px 30px; }
.float-book .btn::before {   /* gentle pulse ring */
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  border: 1.5px solid var(--gold);
  animation: pulseRing 2.6s var(--ease-lux) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- 15. SCROLL REVEAL & MICRO-INTERACTIONS ---------- */
/* NOTE: these start hidden ONLY when JavaScript is running (html.js). If the
   script ever fails, nothing is hidden and the page still reads normally. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.5s var(--ease-lux), transform 0.5s var(--ease-lux); }
.reveal.visible { opacity: 1; transform: none; }
.js .reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity 0.5s var(--ease-lux), transform 0.5s var(--ease-lux); }
.js .reveal-right { opacity: 0; transform: translateX(30px);  transition: opacity 0.5s var(--ease-lux), transform 0.5s var(--ease-lux); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
/* stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 55ms); }

/* Instagram CTA band */
.insta-band { text-align: center; }
.insta-band .handle {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--gold); text-decoration: none; font-style: italic;
  transition: letter-spacing 0.5s var(--ease-lux);
}
.insta-band .handle:hover { letter-spacing: 0.06em; }

/* Video card — our own photo as the cover, YouTube button over it */
.video-card { text-align: center; max-width: 720px; margin-inline: auto; }
.video-card .kicker { justify-content: center; }
.video-card .kicker::after { display: none; }
.video-card h2 { margin-top: 0.7rem; }
.video-card p { margin: 0.9rem auto 0; max-width: 52ch; }
.vc-cover {
  position: relative; display: block; overflow: hidden;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  aspect-ratio: var(--vc-aspect, 16 / 9);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink), var(--ink-soft));
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(201, 160, 92, 0.3);
}
/* a tall cover shouldn't run the full width */
.vc-cover[style*="4 / 5"], .vc-cover[style*="9 / 16"] {
  max-width: 420px; margin-inline: auto;
}
.vc-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.8s var(--ease-lux);
}
.vc-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(42,10,16,0.1), rgba(42,10,16,0.42));
  transition: background 0.45s var(--ease-lux);
}
.vc-cover:hover img { transform: scale(1.06); }
.vc-cover:hover::after { background: rgba(42,10,16,0.16); }
.vc-yt {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 84px; height: 60px; color: #FF0000;
  display: grid; place-items: center;
  filter: drop-shadow(0 10px 26px rgba(20, 4, 8, 0.5));
  transition: transform 0.35s var(--ease-lux);
}
.vc-yt svg { width: 100%; height: 100%; }
.vc-cover:hover .vc-yt { transform: scale(1.08); }

/* "Inside the clinic" — clinic photo on the left, journey video on the right */
/* both columns start at the top so the two headings line up */
.space-row { align-items: start; }
.space-col .section-head { margin-bottom: clamp(1.1rem, 2.4vw, 1.6rem); }
#clinic-images { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2vw, 1.6rem); }
.space-row .video-card { max-width: none; }
.space-row .vc-cover { margin-top: clamp(1.1rem, 2.4vw, 1.6rem); }

/* Find Us — "where to park" YouTube Shorts button */
.fu-short-wrap { margin-top: clamp(2rem, 4vw, 3rem); display: flex; justify-content: center; }
.fu-short {
  display: flex; align-items: center; gap: 16px;
  width: min(460px, 100%); padding: 18px 22px;
  background: var(--white); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(201, 160, 92, 0.3);
  transition: transform 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux);
}
.fu-short:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(42, 10, 16, 0.16), 0 0 0 1px rgba(201, 160, 92, 0.55);
}
.fu-short-ico {
  flex: 0 0 auto; width: 46px; height: 46px;
  display: grid; place-items: center;
  color: #FF0000;                        /* YouTube red */
}
.fu-short-ico svg { width: 40px; height: 40px; }
.fu-short-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.fu-short-txt strong {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink);
}
.fu-short-txt em {
  font-style: normal; font-size: 0.82rem; color: var(--text-body); line-height: 1.35;
}
.fu-short-arrow { margin-left: auto; flex: 0 0 auto; color: var(--gold); display: grid; place-items: center; }
.fu-short-arrow svg { width: 20px; height: 20px; }

/* Instagram feed grid */
.insta-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(8px, 1vw, 14px);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.insta-tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 1 / 1; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(201, 160, 92, 0.28);
}
.insta-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s var(--ease-lux), filter 0.5s var(--ease-lux);
}
.insta-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(42,10,16,0.05), rgba(42,10,16,0.45));
  opacity: 0; transition: opacity 0.45s var(--ease-lux);
}
.insta-tile .insta-ico {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 30px; height: 30px; color: var(--gold-light);
  opacity: 0; transform: scale(0.8) translateY(6px);
  transition: opacity 0.45s var(--ease-lux), transform 0.45s var(--ease-lux);
}
.insta-tile .insta-ico svg { width: 100%; height: 100%; }
.insta-tile:hover img { transform: scale(1.09); }
.insta-tile:hover::after { opacity: 1; }
.insta-tile:hover .insta-ico { opacity: 1; transform: scale(1) translateY(0); }
/* live widget mode */
.insta-widget { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- 16. UTILITY PAGES ---------- */
.page-404 {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, var(--ink), var(--ink-soft));
  color: var(--text-on-dark); padding: 2rem;
}
.page-404 .big {
  font-family: var(--font-display); font-size: clamp(6rem, 20vw, 12rem);
  line-height: 1; color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; background-clip: text;
}
.page-404 h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0.5rem 0 1rem; }

.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; }
.legal-content p, .legal-content li { font-size: 0.95rem; margin-bottom: 0.8rem; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .treatment-detail, .treatment-detail:nth-of-type(even) { grid-template-columns: 1fr; }
  .treatment-detail:nth-of-type(even) .td-media { order: 0; }
  .td-media { min-height: 280px; }
  .service-block, .service-block:nth-of-type(even) { grid-template-columns: 1fr; }
  .service-block:nth-of-type(even) .service-media { order: 0; }
  .service-media { margin-bottom: 0; }
}

@media (max-width: 820px) {
  :root { --nav-h: 72px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1000;
    flex-direction: column; justify-content: center; gap: 30px;
    /* Fully opaque — the page must never show through the open menu */
    background: linear-gradient(160deg, var(--ink), var(--ink-soft));
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease-lux);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { color: var(--text-on-dark) !important; font-size: 1rem; opacity: 0; transform: translateY(16px); transition: opacity 0.3s var(--ease-lux), transform 0.3s var(--ease-lux); }
  .nav-links.open a:not(.btn) { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 40ms + 0.06s); }
  .nav-links .btn { opacity: 0; transition: opacity 0.3s var(--ease-lux) 0.28s, transform 0.3s var(--ease-lux); }
  .nav-links.open .btn { opacity: 1; }

  .grid-2, .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  /* Stack the stats in one perfectly centred column on phones */
  .stats-grid { flex-direction: column; align-items: center; gap: 2.4rem; }
  .stats-grid .stat { flex-basis: auto; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .td-facts { grid-template-columns: 1fr 1fr; }
  .td-cols { grid-template-columns: 1fr; }
  .service-extra { grid-template-columns: 1fr; }
  .menu-price { font-size: 1.1rem; }
  .pc-groups { grid-template-columns: 1fr; }
  /* On phones, reveal animations slide UP only (never sideways) so the
     page never appears to shift left/right as you scroll. */
  .reveal-left, .reveal-right { transform: translateY(34px); }
  .download-card { flex-direction: column; text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* HERO on mobile: show the WHOLE photo, uncut (the 4/3 crop is PC-only) */
  .hero-atropos { width: 100%; }
  .hero-subject { aspect-ratio: auto; height: auto; object-fit: fill; object-position: 50% 50%; }
  .hero-logo-wrap { width: clamp(160px, 56%, 340px); bottom: 5.5%; }
  .hero-intro { padding-top: clamp(1.6rem, 5vw, 2.4rem); }
  .hero-intro h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .hero-sub { font-size: 0.98rem; }
}

@media (max-width: 520px) {
  .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2 150px; column-gap: 0.9rem; }
  .masonry-item { margin-bottom: 0.9rem; }
  .btn { padding: 15px 30px; }
  .hero-ctas .btn { width: 100%; }
  .float-book { right: 14px; bottom: 14px; }
}

/* ---------- 18. REDUCED MOTION & ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .hero-stagger { opacity: 1; transform: none; }
  #curtain { display: none !important; }
  /* Hero: keep it still and flat for reduced-motion users */
  .hero-atropos { opacity: 1 !important; animation: none !important; }
  .hero-logo-wrap::after { display: none; }
}
