/* ============================================================
   EPOHLIVE.COM — Global Stylesheet
   EPOH Brand Palette · Object Sans (headings) + DM Sans (body)
   ============================================================ */

/* ── Local Fonts ───────────────────────────────────────────── */
@font-face {
  font-family: 'Object Sans';
  src: url('../fonts/ObjectSans/ObjectSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Object Sans';
  src: url('../fonts/ObjectSans/ObjectSans-Slanted.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Object Sans';
  src: url('../fonts/ObjectSans/ObjectSans-Heavy.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Object Sans';
  src: url('../fonts/ObjectSans/ObjectSans-HeavySlanted.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans/DMSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans/DMSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans/DMSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans/DMSans-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans/DMSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans/DMSans-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* ── EPOH Brand Colour Palette ── */

  /* Primary colours */
  --black:          #000000;   /* Primary: Black */
  --dark-teal:      #1A2E26;   /* Primary: Dark Gray Turquoise */
  --gray-turquoise: #7DAAA4;   /* Primary: Gray Turquoise */
  --azure:          #1D5B7E;   /* Primary: Azure */
  --gray-orange:    #D27333;   /* Primary: Gray Orange — main CTA accent */
  --pebble:         #E4E6E1;   /* Primary: Pebble */

  /* Secondary colours */
  --gray-azure:     #6197A2;   /* Secondary: Gray Azure */
  --gray-green:     #87A18E;   /* Secondary: Gray Green */
  --snow:           #F8F9F7;   /* Secondary: Snow */

  /* ── Semantic aliases (keep all existing class/variable references working) ── */

  /* Accent / CTA  — Gray Orange */
  --ember:          #D27333;
  --ember-light:    #E08A4A;
  --ember-dark:     #B05E22;
  --ember-muted:    rgba(210, 115, 51, 0.10);
  --ember-glow:     rgba(210, 115, 51, 0.20);

  /* Teal tone — replaces sage */
  --sage:           #1A2E26;
  --sage-light:     #7DAAA4;
  --sage-muted:     rgba(26, 46, 38, 0.10);

  /* Azure tone — replaces gold */
  --gold:           #1D5B7E;
  --gold-light:     #6197A2;
  --gold-muted:     rgba(29, 91, 126, 0.12);

  /* Backgrounds */
  --bg-base:        #F8F9F7;   /* Snow — primary page bg */
  --bg-alt:         #E4E6E1;   /* Pebble — alternating sections */
  --bg-deep:        #d5d8d2;   /* Deep pebble — strong contrast sections */
  --bg-card:        #FFFFFF;
  --bg-dark:        #1A2E26;   /* Dark Gray Turquoise — hero / CTA / footer */
  --bg-dark-mid:    #0f1c17;

  /* Text */
  --text-primary:   #000000;
  --text-body:      #1A2E26;
  --text-muted:     #6197A2;
  --text-light:     #87A18E;
  --text-on-dark:   #F8F9F7;
  --text-on-ember:  #FFFFFF;

  /* Borders */
  --border:         #E4E6E1;
  --border-strong:  #7DAAA4;
  --border-dark:    rgba(255,255,255,0.10);

  /* Typography */
  --font-display:   'Object Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body:      'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-accent:    'Object Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Font sizes — fluid */
  --fs-hero:   clamp(2.8rem, 5.5vw, 5rem);
  --fs-h1:     clamp(2.2rem, 4vw, 3.5rem);
  --fs-h2:     clamp(1.7rem, 3vw, 2.6rem);
  --fs-h3:     clamp(1.2rem, 2vw, 1.7rem);
  --fs-h4:     1.125rem;
  --fs-lg:     1.125rem;
  --fs-base:   1rem;
  --fs-sm:     0.875rem;
  --fs-xs:     0.75rem;

  /* Spacing */
  --sp-1:  0.25rem;  --sp-2:  0.5rem;   --sp-3:  0.75rem;
  --sp-4:  1rem;     --sp-5:  1.25rem;  --sp-6:  1.5rem;  --sp-7:  1.75rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;   --sp-12: 3rem;
  --sp-16: 4rem;     --sp-20: 5rem;     --sp-24: 6rem;

  /* Layout */
  --max-w:       1320px;
  --max-w-wide:  1080px;
  --max-w-prose: 720px;
  --section-py:  clamp(4rem, 8vw, 7rem);

  /* Interaction */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:   150ms ease;
  --t-mid:    280ms ease;
  --t-slow:   500ms ease;
  --t-reveal: 650ms var(--ease-out);

  /* Radii */
  --r-sm:   4px;  --r-md:  8px;  --r-lg: 16px;
  --r-xl:  24px;  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 16px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-ember: 0 8px 24px rgba(210, 115, 51, 0.25);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg-dark); overscroll-behavior-y: none; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--text-body);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  overflow-x: hidden; /* on body not html — body overflow-x does not clip position:fixed */
}
/* iOS-safe scroll lock — used when mobile nav or lightbox is open */
.scroll-locked {
  /* Scroll lock handled via JS (body position:fixed + top offset).
     This class is a state marker only — do not add overflow:hidden here,
     it doesn't prevent momentum scroll on iOS Safari. */
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
/* iOS tap highlight removal for interactive elements */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
/* Prevent double-tap zoom on buttons (iOS) */
a, button { touch-action: manipulation; }
input, textarea, select { font: inherit; }
/* iOS Safari auto-zoom prevention: keep input font ≥ 16px */
@media (max-width: 767px) {
  input, textarea, select { font-size: max(16px, 1rem); }
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0; }
p  { color: var(--text-body); line-height: 1.8; margin-bottom: var(--sp-5); }
p:last-child { margin-bottom: 0; }
.text-lg    { font-size: var(--fs-lg); line-height: 1.85; }
.text-sm    { font-size: var(--fs-sm); }
.text-xs    { font-size: var(--fs-xs); }
.text-muted { color: var(--text-muted); }
.text-ember { color: var(--ember); }
.text-sage  { color: var(--gray-turquoise); }
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: var(--sp-4);
  display: block;
}
.eyebrow--sage { color: var(--gray-turquoise); }

.accent-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15em;
}

/* ── Layout ────────────────────────────────────────────────── */
.container       { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3.5rem); }
.container--wide  { max-width: var(--max-w-wide);  margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3.5rem); }
.container--prose { max-width: var(--max-w-prose); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

.section          { padding-block: var(--section-py); }
.section--alt     { background: var(--bg-alt); }
.section--deep    { background: var(--bg-deep); }
.section--white   { background: var(--bg-card); }
.section--dark    { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-on-dark); }
.section--dark p  { color: rgba(248, 249, 247, 0.82); }
.section--dark .eyebrow { color: var(--ember-light); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.split          { display: grid; grid-template-columns: 1fr 1fr;       gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.split--60-40   { grid-template-columns: 1.4fr 1fr; }
.split--40-60   { grid-template-columns: 1fr 1.4fr; }

@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4, .split, .split--60-40, .split--40-60 { grid-template-columns: 1fr; gap: var(--sp-8); }
  .split--reverse-mobile { display: flex; flex-direction: column-reverse; gap: var(--sp-8); }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.85rem 2rem;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em;
  border-radius: var(--r-full);
  transition: all var(--t-mid);
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.btn--primary   { background: var(--ember); color: #fff; box-shadow: var(--shadow-ember); }
.btn--primary:hover { background: var(--ember-dark); box-shadow: 0 10px 28px rgba(210,115,51,.35); transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--ember); border: 1.5px solid var(--ember); }
.btn--secondary:hover { background: var(--ember-muted); transform: translateY(-1px); }
.btn--sage      { background: var(--dark-teal); color: #fff; }
.btn--sage:hover { background: var(--azure); transform: translateY(-1px); }
.btn--ghost-light { background: rgba(255,255,255,.12); color: var(--text-on-dark); border: 1.5px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.4); transform: translateY(-1px); }
.btn--lg { padding: 1rem 2.5rem; font-size: var(--fs-base); }
.btn--sm { padding: 0.6rem 1.4rem; font-size: var(--fs-xs); }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }

/* ── Site Header ───────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: var(--sp-5);
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
  background: transparent;
  transition: background var(--t-slow), border-color var(--t-slow), padding var(--t-mid), box-shadow var(--t-slow);
  border-bottom: 1px solid transparent;
}
.site-header.header--scrolled {
  background: rgba(248, 249, 247, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding-block: var(--sp-4);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.site-header.nav-open-header { z-index: 205; }

.header__inner { max-width: var(--max-w); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-8); }

.header__logo { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex-shrink: 0; }
.header__logo-img  { height: 40px; width: auto; display: block; }
.footer__logo-img  { height: 56px; width: auto; display: block; margin-bottom: var(--sp-4); }

.site-nav { display: flex; align-items: center; gap: var(--sp-6); }
.site-nav__links { display: flex; align-items: center; gap: var(--sp-2); }
.site-nav__link {
  font-size: var(--fs-sm); font-weight: 500;
  color: rgba(248,249,247,0.85);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.site-header.header--scrolled .site-nav__link { color: var(--text-body); }
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--ember); }
.site-nav__link[aria-current="page"]::after {
  content: ''; position: absolute; bottom: -2px; left: var(--sp-3); right: var(--sp-3);
  height: 2px; background: var(--ember); border-radius: 1px;
}
.nav-cta {
  background: var(--ember); color: #fff !important;
  padding: 0.6rem 1.4rem !important; border-radius: var(--r-full) !important;
  font-size: var(--fs-xs) !important; font-weight: 600 !important; letter-spacing: 0.04em !important;
  box-shadow: 0 4px 12px rgba(210,115,51,0.3); transition: all var(--t-mid) !important;
}
.nav-cta:hover { background: var(--ember-dark) !important; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(210,115,51,0.4) !important; }
.site-header.header--scrolled .nav-cta { color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; cursor: pointer; padding: 0; background: none; border: none; }
.nav-toggle span { display: block; height: 2px; background: rgba(248,249,247,0.9); border-radius: 2px; transition: all var(--t-mid); }
.site-header.header--scrolled .nav-toggle span { background: var(--text-primary); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .site-nav__links {
    display: none; position: fixed; top: 0; left: 0; right: 0;
    /* Height: dvh is the iOS-correct unit (shrinks when address bar hides).
       Fall back to -webkit-fill-available for older iOS < 15, then 100vh. */
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    background: var(--bg-base); flex-direction: column; align-items: center; justify-content: center;
    gap: var(--sp-6); z-index: 200;
    /* Prevent nav panel itself from scrolling and bouncing on iOS */
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    /* GPU compositing — prevents paint flicker on iOS Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Safe-area padding for notched iPhones (bottom home indicator) */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .site-nav__links.nav-open { display: flex; }
  .site-nav__link { font-size: 1.25rem; color: var(--text-primary) !important; }
  .nav-cta { font-size: var(--fs-base) !important; padding: 0.8rem 2rem !important; }
  .nav-toggle-close {
    position: absolute; top: var(--sp-6); right: var(--sp-6);
    font-size: 2rem; color: var(--text-primary); cursor: pointer; background: none; border: none;
    /* Ensure 44×44px tap target on iOS */
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
  }
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--bg-dark); color: var(--text-on-dark); padding-block: var(--sp-16) var(--sp-8); border-top: 1px solid rgba(255,255,255,0.06); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-10); margin-bottom: var(--sp-12); }
.footer__brand p { color: rgba(248,249,247,0.6); font-size: var(--fs-sm); margin-top: var(--sp-4); max-width: 28ch; }
.footer__col h5 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ember-light); margin-bottom: var(--sp-5); }
.footer__col h5.sage { color: var(--gray-turquoise); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__links a { color: rgba(248,249,247,0.65); font-size: var(--fs-sm); transition: color var(--t-fast); }
.footer__links a:hover { color: var(--ember-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--sp-6); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-4); }
.footer__bottom p { color: rgba(248,249,247,0.4); font-size: var(--fs-xs); margin: 0; max-width: none; }
.footer__bottom a { color: rgba(248,249,247,0.55); transition: color var(--t-fast); }
.footer__bottom a:hover { color: var(--ember-light); }
.footer__social { display: flex; gap: var(--sp-3); }
.footer__social a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-full); color: rgba(248,249,247,0.65); font-size: var(--fs-sm); transition: all var(--t-fast); }
.footer__social a:hover { border-color: var(--ember); color: var(--ember-light); }
@media (max-width: 767px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } .footer__brand { grid-column: 1 / -1; } .footer__bottom { flex-direction: column; text-align: center; } }
@media (max-width: 479px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── Cards ─────────────────────────────────────────────────── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: var(--shadow-sm); transition: box-shadow var(--t-mid), transform var(--t-mid), border-color var(--t-mid); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }
.card--ember { border-top: 3px solid var(--ember); }
.card--sage  { border-top: 3px solid var(--dark-teal); }
.card--gold  { border-top: 3px solid var(--azure); }

/* ── Stat Numbers ──────────────────────────────────────────── */
.stat-block { text-align: center; padding: var(--sp-8) var(--sp-6); }
.stat-block__number { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; color: var(--ember); line-height: 1; display: block; }
.stat-block__label  { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--sp-2); font-weight: 500; letter-spacing: 0.02em; }

/* ── Divider accents ───────────────────────────────────────── */
.divider-ember  { width: 48px; height: 3px; background: var(--ember); border-radius: 2px; margin-block: var(--sp-6); }
.divider-center { margin-inline: auto; }
.divider-sage   { background: var(--gray-turquoise); }

/* ── Section headers ───────────────────────────────────────── */
.section-header { max-width: var(--max-w-prose); margin-bottom: var(--sp-12); }
.section-header--center { text-align: center; margin-inline: auto; }
.section-header--center p { margin-inline: auto; }
.section-header h2 { margin-bottom: var(--sp-4); }
.section-header p  { color: var(--text-muted); font-size: var(--fs-lg); }

/* ── Scroll reveal ─────────────────────────────────────────── */
[data-reveal] { opacity: 0; will-change: opacity, transform; }
@media (scripting: none) { [data-reveal] { opacity: 1 !important; transform: none !important; } }
[data-reveal], [data-reveal="fade-up"]   { transform: translateY(28px); transition: opacity var(--t-reveal), transform var(--t-reveal); }
[data-reveal="fade-in"]                  { transform: none;             transition: opacity var(--t-reveal); }
[data-reveal="slide-left"]               { transform: translateX(-20px); transition: opacity var(--t-reveal), transform var(--t-reveal); }
[data-reveal="slide-right"]              { transform: translateX(20px);  transition: opacity var(--t-reveal), transform var(--t-reveal); }
[data-reveal="scale-up"]                 { transform: scale(0.95);       transition: opacity var(--t-reveal), transform var(--t-reveal); }
[data-reveal].is-revealed                { opacity: 1; transform: none; }
@media (max-width: 767px) {
  [data-reveal="slide-left"],
  [data-reveal="slide-right"] {
    transform: translateY(18px); /* use vertical only on mobile, avoids overflow */
  }
}

[data-delay="1"] { transition-delay: 0.06s; } [data-delay="2"] { transition-delay: 0.12s; }
[data-delay="3"] { transition-delay: 0.18s; } [data-delay="4"] { transition-delay: 0.24s; }
[data-delay="5"] { transition-delay: 0.30s; } [data-delay="6"] { transition-delay: 0.38s; }
[data-delay="7"] { transition-delay: 0.46s; } [data-delay="8"] { transition-delay: 0.56s; }
[data-reveal].is-revealed { transition-delay: 0s !important; }

/* ── Hero animations ───────────────────────────────────────── */
.hero__eyebrow  { animation: fadeUp 0.7s var(--ease-out) 0.10s both; }
.hero__headline { animation: fadeUp 0.8s var(--ease-out) 0.22s both; }
.hero__sub      { animation: fadeUp 0.8s var(--ease-out) 0.36s both; }
.hero__cta      { animation: fadeUp 0.7s var(--ease-out) 0.50s both; }
.hero__trust    { animation: fadeIn 0.8s ease 0.70s both; }
.hero__visual   { animation: fadeIn 1.0s ease 0.30s both; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Testimonial card ──────────────────────────────────────── */
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: var(--shadow-sm); position: relative; }
.testimonial-card::before { content: '\201C'; font-family: var(--font-accent); font-size: 5rem; line-height: 1; position: absolute; top: var(--sp-4); left: var(--sp-6); color: var(--ember); opacity: 0.25; }
.testimonial-card__text   { font-size: var(--fs-sm); line-height: 1.8; color: var(--text-body); margin-bottom: var(--sp-6); font-style: italic; padding-top: var(--sp-8); }
.testimonial-card__author { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial-card__avatar { width: 44px; height: 44px; border-radius: var(--r-full); background: var(--ember-muted); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--ember); font-size: 1.1rem; flex-shrink: 0; }
.testimonial-card__name   { font-weight: 600; font-size: var(--fs-sm); color: var(--text-primary); }
.testimonial-card__meta   { font-size: var(--fs-xs); color: var(--text-muted); }

/* ── Checkbox animated list ────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.check-item { display: flex; align-items: flex-start; gap: var(--sp-4); opacity: 0; transform: translateX(-16px); transition: opacity 0.5s ease, transform 0.5s ease; }
@media (scripting: none) { .check-item { opacity: 1 !important; transform: none !important; } }
.check-item.is-revealed { opacity: 1; transform: translateX(0); }
.check-item__box { width: 22px; height: 22px; border: 2px solid var(--border-strong); border-radius: var(--r-sm); flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease, border-color 0.3s ease; background: transparent; }
.check-item.is-revealed .check-item__box { background: var(--dark-teal); border-color: var(--dark-teal); }
.check-item__box svg { width: 12px; height: 12px; stroke: white; stroke-width: 2.5; opacity: 0; transform: scale(0.5); transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s; }
.check-item.is-revealed .check-item__box svg { opacity: 1; transform: scale(1); }
.check-item__text { font-size: var(--fs-lg); color: var(--text-body); line-height: 1.5; }

/* ── World map pin ─────────────────────────────────────────── */
.map-pin { position: absolute; cursor: pointer; }
.map-pin__dot { width: 12px; height: 12px; background: var(--ember); border-radius: var(--r-full); border: 2px solid white; box-shadow: 0 0 0 3px rgba(210,115,51,0.25); transition: transform var(--t-fast), box-shadow var(--t-fast); animation: pinPulse 2.5s ease-in-out infinite; }
.map-pin:hover .map-pin__dot { transform: scale(1.4); box-shadow: 0 0 0 5px rgba(210,115,51,0.3); animation: none; }
.map-pin__label { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); background: var(--bg-dark); color: white; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-sm); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-fast), transform var(--t-fast); }
.map-pin__label::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--bg-dark); }
.map-pin:hover .map-pin__label { opacity: 1; transform: translateX(-50%) translateY(0); }
@keyframes pinPulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(210,115,51,0.25); } 50% { box-shadow: 0 0 0 6px rgba(210,115,51,0.12); } }

/* ── Cycle / Timeline diagram ──────────────────────────────── */
.cycle-diagram { background: var(--bg-dark); border-radius: var(--r-xl); padding: var(--sp-10); position: relative; overflow: hidden; }
.cycle-diagram::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(210,115,51,0.08) 0%, transparent 70%); pointer-events: none; }

/* ── Pull quote ────────────────────────────────────────────── */
.pull-quote { border-left: 3px solid var(--ember); padding-left: var(--sp-6); margin-block: var(--sp-8); }
.pull-quote p { font-family: var(--font-accent); font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.5; color: var(--text-primary); font-style: italic; max-width: none; }
.pull-quote cite { display: block; font-size: var(--fs-sm); font-style: normal; font-weight: 600; color: var(--ember); margin-top: var(--sp-4); letter-spacing: 0.04em; }

/* ── Five elements cards ───────────────────────────────────── */
.element-card { border-radius: var(--r-lg); padding: var(--sp-8); border: 1px solid var(--border); background: var(--bg-card); display: flex; flex-direction: column; gap: var(--sp-4); transition: box-shadow var(--t-mid), transform var(--t-mid); }
.element-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.element-card__icon { width: 52px; height: 52px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.element-card h3 { font-size: var(--fs-h4); margin-bottom: 0; }
.element-card p  { font-size: var(--fs-sm); margin: 0; }

/* ── Appointment Steps ─────────────────────────────────────── */
.step-list { display: flex; flex-direction: column; gap: var(--sp-6); }
.step-item { display: flex; gap: var(--sp-5); align-items: flex-start; }
.step-item__number { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-full); background: var(--ember-muted); border: 1.5px solid var(--ember); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ember); }
.step-item__body h4 { color: var(--text-primary); margin-bottom: var(--sp-2); }
.step-item__body p  { font-size: var(--fs-sm); margin: 0; }

/* ── Alternating split sections ────────────────────────────── */
.alt-section { padding-block: clamp(3rem, 5vw, 5rem); }
.alt-section + .alt-section { padding-top: 0; }
.alt-section__image { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-deep); }
.alt-section__image img { width: 100%; height: 100%; object-fit: cover; }
.alt-section__body  { display: flex; flex-direction: column; justify-content: center; gap: var(--sp-4); }

/* ── Calendly ──────────────────────────────────────────────── */
.calendly-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; min-height: 680px; box-shadow: var(--shadow-lg); }
.calendly-inline-widget { min-width: 320px; height: 680px; }

/* ── Book cards ────────────────────────────────────────────── */
.book-card { display: flex; align-items: center; gap: var(--sp-6); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-8); box-shadow: var(--shadow-sm); transition: all var(--t-mid); }
.book-card:hover { box-shadow: var(--shadow-md); border-color: var(--ember); transform: translateX(4px); }
.book-card__logo     { font-size: 2rem; flex-shrink: 0; }
.book-card__body     { flex: 1; }
.book-card__platform { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.book-card__title    { font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-1); }
.book-card__cta { flex-shrink: 0; background: var(--ember); color: white; padding: var(--sp-3) var(--sp-5); border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; transition: all var(--t-fast); }
.book-card__cta:hover { background: var(--ember-dark); transform: translateY(-1px); }

/* ── Community features ────────────────────────────────────── */
.community-feature { display: flex; gap: var(--sp-5); align-items: flex-start; }
.community-feature__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: rgba(26,46,38,0.10); border: 1px solid rgba(26,46,38,0.2); }
.community-feature__body h4 { margin-bottom: var(--sp-2); }
.community-feature__body p  { margin: 0; font-size: var(--fs-sm); }

/* ── Hero dark section ─────────────────────────────────────── */
.hero-dark { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; background: var(--bg-dark); position: relative; overflow: hidden; padding-top: 90px; }
.hero-dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(210,115,51,0.10) 0%, transparent 65%), radial-gradient(ellipse 50% 50% at 20% 80%, rgba(125,170,164,0.08) 0%, transparent 60%); pointer-events: none; }
.hero-dark::after  { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(210,115,51,0.15) 1px, transparent 1px), radial-gradient(circle, rgba(248,249,247,0.04) 1px, transparent 1px); background-size: 60px 60px, 30px 30px; background-position: 0 0, 15px 15px; pointer-events: none; opacity: 0.6; }

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal], .check-item { opacity: 1 !important; transform: none !important; }
  /* Pause autoplaying video for users who prefer reduced motion */
  video { animation-play-state: paused !important; }
}

/* ── Utilities ─────────────────────────────────────────────── */
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mb-0       { margin-bottom: 0 !important; }
.mt-auto    { margin-top: auto; }
.w-full     { width: 100%; }
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.gap-4      { gap: var(--sp-4); }
.gap-6      { gap: var(--sp-6); }
.gap-8      { gap: var(--sp-8); }

/* ── Accessibility ─────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: var(--r-sm); }
:focus:not(:focus-visible) { outline: none; }
.skip-link { position: absolute; top: -100%; left: var(--sp-4); background: var(--ember); color: white; padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--r-md) var(--r-md); font-weight: 600; font-size: var(--fs-sm); z-index: 9999; transition: top 0.2s ease; }
.skip-link:focus { top: 0; }

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .btn, .hero__visual, .whatsapp-float, .back-to-top,
  .hero-video-wrap, video { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  h1, h2, h3 { color: black; }
  a { color: black; text-decoration: underline; }
  .section { padding-block: 1rem; }
}

/* ── Image utilities ───────────────────────────────────────── */
img { transition: opacity 0.3s ease; }
img[loading="lazy"]      { opacity: 0; }
img[loading="lazy"].loaded { opacity: 1; }
img[loading="lazy"]:not([src]) { opacity: 0; }
.img-fill    { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.img-full    { width: 100%; display: block; }
.img-cover   { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.img-contain { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── Mobile tap targets ────────────────────────────────────── */
@media (max-width: 767px) {
  .btn { min-height: 48px; }
  .site-nav__link { min-height: 48px; display: flex; align-items: center; }
  .footer__links a { padding-block: var(--sp-2); display: block; }
  .whatsapp-float { bottom: var(--sp-5); right: var(--sp-5); width: 50px; height: 50px; }
  .book-3d-inner { transform: none !important; }
}
@media (max-width: 600px) { .calendly-inline-widget { height: 900px !important; } }
@media (hover: none) { .hero-card__chip:hover { border-color: rgba(210,115,51,0.4); color: rgba(248,249,247,0.75); background: transparent; } }

/* ── Section transitions ───────────────────────────────────── */
/* Section borders removed — cause rendering artifacts on mobile */

/* ── Image overlay ─────────────────────────────────────────── */
.img-overlay-wrap { position: relative; overflow: hidden; border-radius: var(--r-xl); }
.img-overlay-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-overlay-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55) 100%); pointer-events: none; }
.img-overlay-text { position: absolute; bottom: var(--sp-8); left: var(--sp-8); right: var(--sp-8); z-index: 1; color: white; }

/* ── Component helpers ─────────────────────────────────────── */
.pain-bridge__image { position: relative; overflow: hidden; min-height: 360px; background: linear-gradient(to right, #c8d4d2, var(--pebble)); }
.pain-bridge__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.doctor-card__photo { position: relative !important; }
.doctor-card__photo-name { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: var(--sp-6); background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); }
.bg-cover-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.path-image-wrap > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }

/* ── WhatsApp float ────────────────────────────────────────── */
.whatsapp-float { position: fixed; bottom: var(--sp-6); right: var(--sp-6); z-index: 90; width: 56px; height: 56px; border-radius: var(--r-full); background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: all var(--t-mid); text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.10) translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }
.whatsapp-float__tooltip { position: absolute; right: calc(100% + 10px); background: var(--bg-dark); color: white; font-size: var(--fs-xs); font-weight: 600; padding: 5px 10px; border-radius: var(--r-sm); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-fast); }
.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }

/* ── Back to top ────────────────────────────────────────────── */
.back-to-top { position: fixed; bottom: var(--sp-6); left: var(--sp-6); z-index: 90; width: 40px; height: 40px; border-radius: var(--r-full); background: var(--bg-card); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1rem; cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(10px); transition: all var(--t-mid); pointer-events: none; text-decoration: none; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--ember-muted); border-color: var(--ember); color: var(--ember); }

/* ── Scroll offset for fixed header ────────────────────────── */
:target { scroll-margin-top: 90px; }

/* ── Interactive Map Pins ───────────────────────────────────── */
.map-pins-overlay { pointer-events: none; }
.hpin { position: absolute; transform: translate(-50%,-50%); pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hpin__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ember); border: 2px solid white; box-shadow: 0 0 0 3px rgba(210,115,51,0.25); transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative; z-index: 2; }
.hpin__dot--hq   { width: 16px; height: 16px; background: var(--ember); box-shadow: 0 0 0 4px rgba(210,115,51,0.3); }
.hpin__dot--sage { background: var(--gray-turquoise); box-shadow: 0 0 0 3px rgba(125,170,164,0.25); }
.hpin__dot--gold { background: var(--azure); box-shadow: 0 0 0 3px rgba(29,91,126,0.2); }
.hpin:hover .hpin__dot      { transform: scale(1.5); box-shadow: 0 0 0 5px rgba(210,115,51,0.2); }
.hpin:hover .hpin__dot--sage { box-shadow: 0 0 0 5px rgba(125,170,164,0.2); }
.hpin__pulse { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 28px; height: 28px; border-radius: 50%; background: rgba(210,115,51,0.2); animation: pinRipple 2.5s ease-out infinite; z-index: 1; }
.hpin__label { font-family: var(--font-body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-primary); background: white; padding: 1px 5px; border-radius: 3px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,0.12); line-height: 1.4; text-align: center; position: relative; z-index: 3; }
@keyframes pinRipple { 0% { transform: translate(-50%,-50%) scale(0.5); opacity: 0.7; } 100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; } }

/* ── Country pills ─────────────────────────────────────────── */
.country-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 600; cursor: default; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.country-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Mobile horizontal scroll container */
.mob-scroll { -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }

/* GPU compositing for video elements */
.hero-video-wrap video { will-change: transform; }

/* ── iOS Safari: hero video comprehensive fixes ─────────────
   1. -webkit-transform: translateZ(0) — force GPU layer, prevents
      black/blank video flash on Safari iOS
   2. -webkit-backface-visibility: hidden — eliminates flicker when
      body position:fixed is toggled (scroll lock)
   3. object-fit: cover with explicit w/h — needed on iOS 14 and below
      where object-fit may fail on video inside a transformed ancestor
   4. Hero margin-top on mobile uses env() safe-area for notched devices */
.hero-video-wrap {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.hero-video-wrap video {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@media (max-width: 767px) {
  .hero-video-wrap {
    /* Fixed header on mobile is ~64-72px; provide correct offset */
    margin-top: clamp(60px, 16vw, 80px);
    height: clamp(200px, 52vw, 340px);
  }
}

/* ── Scroll-lock: prevent repaint flash on fixed header (iOS) ─
   When JS sets body{position:fixed}, promote header to its own
   compositing layer to avoid a flicker/repaint on iOS Safari   */
body[style*="position: fixed"] .site-header,
body[style*="position:fixed"] .site-header {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
