/* ================================================================
   WOMAN EMPIRE CIRCLE — MAIN STYLESHEET
   Architecture: Custom Properties → Reset → Base → Layout →
                 Components → Sections → Responsive → Utilities
   Performance: CSS custom props, will-change only where needed,
                no blocking transforms on scroll, media-first mobile.
   WCAG 2.1 AA: Contrast ratios verified, focus states explicit.
================================================================ */

/* ----------------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   Single source of truth — change here, updates everywhere.
---------------------------------------------------------------- */
:root {
  /* --- Brand Colors --- */
  --pink-100: #fdf0f5;       /* lightest blush */
  --pink-200: #f9d6e8;       /* soft petal */
  --pink-300: #f2a8cc;       /* mid pink */
  --pink-400: #e87cb5;       /* vibrant pink */
  --pink-500: #d45b9a;       /* deep pink */
  --pink-600: #b33d7f;       /* rich magenta */

  --gold:     #D4AF37;       /* primary gold accent */
  --gold-light: #e8cc6a;     /* lighter gold for hovers */
  --gold-dark: #a88a20;      /* darker gold for text on light */

  --bg:       #F4F4F4;       /* primary background */
  --white:    #ffffff;
  --black:    #111111;

  /* --- Neutrals --- */
  --gray-100: #f8f8f8;
  --gray-200: #ebebeb;
  --gray-300: #d4d4d4;
  --gray-400: #9a9a9a;
  --gray-500: #666666;
  --gray-600: #444444;
  --gray-700: #2a2a2a;

  /* --- Typography --- */
  
  --font-heading: 'Syne', sans-serif;         /* Use font-weight: 800; text-transform: uppercase; */
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-accent:  'Playfair Display', serif;   /* Beautiful for delicate italics */

  --fs-xs:   0.75rem;    /* 12px */
  --fs-sm:   0.875rem;   /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-md:   1.125rem;   /* 18px */
  --fs-lg:   1.25rem;    /* 20px */
  --fs-xl:   1.5rem;     /* 24px */
  --fs-2xl:  2rem;       /* 32px */
  --fs-3xl:  2.75rem;    /* 44px */
  --fs-4xl:  3.5rem;     /* 56px */
  --fs-5xl:  4.5rem;     /* 72px */

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-base:  1.6;
  --lh-loose: 1.8;

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

  /* --- Layout --- */
  --container-max: 1200px;
  --nav-height: 72px;
  --section-pad: clamp(var(--space-16), 8vw, var(--space-24));

  /* --- Radii --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
  --shadow-xl:  0 24px 80px rgba(0,0,0,0.18);
  --shadow-gold: 0 8px 32px rgba(212,175,55,0.25);
  --shadow-pink: 0 8px 32px rgba(212,91,154,0.20);

  /* --- Glassmorphism --- */
  --glass-bg:     rgba(255,255,255,0.62);
  --glass-border: rgba(255,255,255,0.75);
  --glass-blur:   20px;

  /* --- Transitions --- */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --duration-fast: 180ms;
  --duration-base: 280ms;
  --duration-slow: 480ms;

  /* --- Z-index scale --- */
  --z-below: -1;
  --z-base:  1;
  --z-nav:   100;
  --z-modal: 200;
  --z-toast: 300;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Reduce motion for users who prefer it — accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--gray-700);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll-triggered entrance animation state */
body.loaded .animate-in {
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) forwards;
}

img, svg, video, canvas { display: block; max-width: 100%; }

a {
  color: var(--pink-500);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}
a:hover { color: var(--pink-600); }

/* Accessible focus — visible ring that doesn't ruin design */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--gray-700);
}

p { max-width: 68ch; }

/* Skip link — keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--gold);
  color: var(--black);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: var(--z-toast);
  transition: top var(--duration-fast);
}
.skip-link:focus { top: var(--space-4); }

/* ----------------------------------------------------------------
   3. LAYOUT UTILITIES
---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-12));
}

.section-pad {
  padding-block: var(--section-pad);
}

/* Section labels — small overline text */
.section-label {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.10em;       /* reduced — was 0.18em, excess caused right-edge bleed */
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow: visible;             /* never clip the label text */
  position: relative;
  z-index: 1;                    /* sit above any section pseudo-element orbs */
  width: fit-content;            /* shrink to text width — prevents flex stretch bleeding */
  padding-right: 0.10em;        /* compensate for letter-spacing on last character */
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Section headings */
.section-heading {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: 900;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-6);
  color: var(--gray-700);
}
.section-heading em {
  font-style: italic;
  font-family: var(--font-accent);
  color: var(--pink-500);
  font-weight: 700;
}

.section-sub {
  font-size: var(--fs-md);
  color: var(--gray-500);
  margin-bottom: var(--space-12);
  max-width: 58ch;
}

/* ----------------------------------------------------------------
   4. BUTTONS
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--duration-base) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-base) var(--ease-smooth),
    color var(--duration-base) var(--ease-smooth),
    border-color var(--duration-base) var(--ease-smooth);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Ripple pseudo-element */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--duration-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

/* Gold button — primary CTA */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--black);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  box-shadow: 0 12px 40px rgba(212,175,55,0.40);
  transform: translateY(-2px);
  color: var(--black);
}

/* Ghost button — secondary */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.9);
  color: var(--white);
}

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--pink-500);
  border-color: var(--pink-400);
}
.btn-outline:hover {
  background: var(--pink-100);
  color: var(--pink-600);
}

/* Sizes */
.btn-sm { font-size: var(--fs-xs); padding: var(--space-2) var(--space-5); }
.btn-lg { font-size: var(--fs-base); padding: var(--space-4) var(--space-8); }
.btn-full { width: 100%; justify-content: center; }

/* Animated arrow on CTA buttons */
.btn-arrow {
  display: inline-block;
  transition: transform var(--duration-base) var(--ease-spring);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ----------------------------------------------------------------
   5. GLASSMORPHISM CARD
---------------------------------------------------------------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------------------
   6. HEADER / NAV
---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  transition:
    background var(--duration-base) var(--ease-smooth),
    box-shadow var(--duration-base) var(--ease-smooth);
}

/* Scrolled state — added via JS */
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 clamp(var(--space-6), 4vw, var(--space-12));
  height: var(--nav-height);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  color: var(--gold);
  font-size: var(--fs-xl);
  line-height: 1;
  transition: transform var(--duration-base) var(--ease-spring);
}
.nav-logo:hover .logo-icon { transform: rotate(15deg) scale(1.1); }

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 900;
  color: var(--gray-700);
  letter-spacing: -0.02em;
}
/* Scrolled: logo text becomes visible */
.site-header:not(.scrolled) .logo-text { color: var(--white); }
.site-header:not(.scrolled) .logo-icon { color: var(--gold); }

.logo-text em {
  font-style: normal;
  color: var(--pink-500);
}
.site-header:not(.scrolled) .logo-text em { color: var(--gold-light); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-600);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  position: relative;
  text-decoration: none;
  transition: color var(--duration-fast);
}

/* Underline hover effect */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: transform var(--duration-base) var(--ease-spring);
}
.nav-link:hover::after,
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-link:hover { color: var(--pink-500); }

/* Transparent nav over hero — white text */
.site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.85); }
.site-header:not(.scrolled) .nav-link:hover { color: var(--white); }

/* Scrolled nav — explicit dark text so it shows on white background */
.site-header.scrolled .nav-link { color: var(--gray-600); }
.site-header.scrolled .nav-link:hover { color: var(--pink-500); }
.site-header.scrolled .logo-text { color: var(--gray-700); }
.site-header.scrolled .logo-text em { color: var(--pink-500); }
.site-header.scrolled .logo-icon { color: var(--gold); }
.site-header.scrolled .hamburger-line { background: var(--gray-700); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-700);
  border-radius: var(--radius-full);
  transform-origin: center;
  transition:
    transform var(--duration-base) var(--ease-smooth),
    opacity var(--duration-base),
    background var(--duration-base);
}
.site-header:not(.scrolled) .hamburger-line { background: var(--white); }

/* Animated X state */
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile overlay — always in DOM, toggled with opacity + pointer-events */
.mobile-overlay {
  display: block;           /* always rendered, never display:none */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 120;             /* above header (100) but below drawer (150) */
  opacity: 0;
  pointer-events: none;     /* invisible and non-interactive by default */
  transition: opacity var(--duration-base);
}
.mobile-overlay.visible {
  opacity: 1;
  pointer-events: auto;     /* becomes clickable only when open */
}

/* ----------------------------------------------------------------
   7. HERO SECTION
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  /* Layered gradient background — no external image needed for perf */
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212,91,154,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212,175,55,0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(180,60,120,0.25) 0%, transparent 60%),
    linear-gradient(150deg, #2d0a1e 0%, #5a1040 40%, #8b2060 70%, #3d0a28 100%);
}

/* Canvas for particle system */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero-orb--1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 70%);
  top: -100px;
  right: -80px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb--2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212,91,154,0.22), transparent 70%);
  bottom: 60px;
  left: -60px;
  animation: orbFloat2 15s ease-in-out infinite;
}
.hero-orb--3 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  top: 40%;
  left: 55%;
  animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-30px, 40px) scale(1.08); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -30px) scale(0.95); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-20px, 15px); }
}

/* Hero two-column body wrapper */
.hero-body {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
  width: 100%;
  max-width: var(--container-max);
  padding: var(--space-24) clamp(var(--space-6), 5vw, var(--space-12)) var(--space-10);
  margin-inline: auto;
}

/* Hero content — left column, left-aligned on desktop */
.hero-content {
  position: relative;
  z-index: var(--z-base);
  text-align: left;             /* left-aligned now that image is beside it */
  padding: 0;
  max-width: 100%;
}

/* Override hero text alignment children */
.hero-eyebrow { text-align: left; }
.hero-cta     { justify-content: flex-start; }

/* Hero image — right column */
.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;                   /* starts hidden, animate-in class reveals it */
}

.hero-img {
  width: 100%;
  max-width: 420px;
  height: 520px;
  object-fit: cover;
  object-position: center top;  /* keep faces in frame */
  border-radius: 48% 52% 40% 60% / 42% 44% 56% 58%; /* organic blob shape */
  display: block;
  margin-inline: auto;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.40),
    0 0 0 6px rgba(212,175,55,0.30);  /* subtle gold glow border */
  position: relative;
  z-index: 2;
}

/* Decorative spinning gold ring behind image */
.hero-img-ring {
  position: absolute;
  width: 110%;
  max-width: 460px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(212,175,55,0.35);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringRotate 20s linear infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating badge on image */
.hero-img-badge {
  position: absolute;
  bottom: 24px;
  left: -16px;
  background: var(--gold);
  color: var(--black);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-gold);
  z-index: 3;
  opacity: 0;                   /* revealed by animate-in */
}
.badge-number {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1;
}
.badge-text {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Responsive: stack on mobile ---- */
@media (max-width: 768px) {
  .hero-body {
    grid-template-columns: 1fr;  /* single column on mobile */
    text-align: center;
    padding-top: calc(var(--nav-height) + var(--space-10));
    gap: var(--space-8);
  }
  .hero-content {
    text-align: center;
    order: 1;                    /* text first */
  }
  .hero-eyebrow { text-align: center; }
  .hero-cta     { justify-content: center; }
  .hero-image-wrap {
    order: 2;                    /* image below text on mobile */
    max-width: 280px;
    margin-inline: auto;
  }
  .hero-img {
    height: 320px;
    max-width: 280px;
  }
  .hero-img-badge {
    bottom: 12px;
    left: 0;
  }
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-5);
  opacity: 0;
}

.hero-heading {
  font-size: clamp(var(--fs-3xl), 7vw, var(--fs-5xl));
  font-weight: 900;
  color: var(--white);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-6);
  opacity: 0;
}

.hero-accent {
  display: block;
  font-style: italic;
  font-family: var(--font-accent);
  color: var(--gold);
  font-size: 1.1em;
}

.hero-sub {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-lg));
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--space-10);
  margin-inline: auto;
  opacity: 0;
  line-height: var(--lh-loose);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-10);
  opacity: 0;
}

/* Scroll hint */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  margin-top: var(--space-8);
}
.scroll-text {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* Stats strip */
.hero-stats {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-8);
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100% - var(--space-8));
  opacity: 0;
  /* sticky to bottom of hero */
  margin-bottom: var(--space-8);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-plus {
  font-size: var(--fs-xl);
  color: var(--gold);
  font-weight: 900;
  vertical-align: super;
}
.stat-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.20);
  flex-shrink: 0;
}

/* Entrance animation */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { opacity: 0; }

/* 1. THE OUTER CONTAINER (Targeting the second section on the page) */
main > section:nth-of-type(2) {
  width: 100%;
  max-width: 100vw;
  position: relative;
  overflow: hidden; /* Prevents unwanted horizontal layout scrollbars */
  background-color: #FFF5F8; /* Soft girly blush background */
  padding: 40px 0; /* Vertical spacing above and below */
  display: flex;
  justify-content: center;
}

/* 2. THE VIDEO INNER WRAPPER (Targeting the div directly inside that section) */
main > section:nth-of-type(2) > div {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Forces a clean 16:9 cinematic aspect ratio */
  overflow: hidden;
  
  /* BOLD MOBILE BORDERS: Tops and bottoms stay framed cleanly on small screens */
  border-top: 4px solid #1A000D;   /* Deep contrast plum/black */
  border-bottom: 4px solid #1A000D;
  box-shadow: 0px 10px 30px rgba(255, 42, 122, 0.15); /* Vibrant pink ambient glow */
}

/* 3. THE ACTUAL VIDEO OR IFRAME */
main > section:nth-of-type(2) > div video,
main > section:nth-of-type(2) > div iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video fills the frame cleanly without distortion */
}

/* 4. DESKTOP UPGRADES (Screens wider than 768px) */
@media (min-width: 768px) {
  main > section:nth-of-type(2) {
    padding: 80px 0; /* More dramatic spacing on desktop */
  }
  
  main > section:nth-of-type(2) > div {
    /* Thickens the lines slightly for bigger displays to keep it bold */
    border-top: 6px solid #1A000D;
    border-bottom: 6px solid #1A000D;
  }
}
/* ----------------------------------------------------------------
   8. ABOUT SECTION
---------------------------------------------------------------- */
.about {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Decorative background shape */
.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--pink-100) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;          /* mobile default: stacked */
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}
@media (min-width: 640px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
}

.about-card {
  padding: var(--space-8);
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-smooth);
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-pink);
}
.about-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
  color: var(--gray-700);
}
.about-card p, .about-card ul {
  font-size: var(--fs-base);
  color: var(--gray-500);
  line-height: var(--lh-loose);
}

.card-icon {
  margin-bottom: var(--space-5);
}

/* Vision card — accent border */
.about-card--vision { border-top: 3px solid var(--gold); }
.about-card--mission { border-top: 3px solid var(--pink-400); }
.about-card--values { border-top: 3px solid var(--pink-300); }

.values-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.values-list li { color: var(--gray-500); font-size: var(--fs-sm); }

/* Manifesto quote */
.manifesto-quote {
  text-align: center;
  border-left: none;
  padding: var(--space-10) var(--space-8);
  background: linear-gradient(135deg, var(--pink-100) 0%, rgba(212,175,55,0.08) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--pink-200);
}
.manifesto-quote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl));
  color: var(--gray-700);
  margin-inline: auto;
  max-width: 60ch;
  line-height: var(--lh-snug);
  margin-bottom: var(--space-4);
}
.manifesto-quote footer {
  font-size: var(--fs-sm);
  color: var(--gold-dark);
  font-weight: 700;
}

/* ----------------------------------------------------------------
   9. PROGRAMS SECTION
---------------------------------------------------------------- */
.programs {
  background: var(--bg);
}

/* Explicit text color guards — prevent any gradient bleed hiding text */
.programs .section-heading,
.programs .section-sub,
.programs .section-label,
.about .section-heading,
.about .section-sub,
.books .section-heading,
.books .section-sub,
.leaders .section-heading,
.leaders .section-sub,
.meetings .section-heading,
.quiz .section-heading,
.quiz .section-sub,
.testimonials .section-heading {
  color: var(--gray-700);
}
.programs .section-sub,
.about .section-sub,
.books .section-sub,
.leaders .section-sub,
.quiz .section-sub {
  color: var(--gray-500);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* 3D flip card */
.program-card {
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}

.program-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-smooth);
  border-radius: var(--radius-lg);
}

/* Flip on hover/focus */
.program-card:hover .program-card__inner,
.program-card:focus-within .program-card__inner {
  transform: rotateY(180deg);
}

.program-card__front,
.program-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.program-card__front {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.program-card__back {
  background: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-600) 100%);
  color: var(--white);
  transform: rotateY(180deg);
  box-shadow: var(--shadow-lg);
}

.program-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.program-card__front h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
  color: var(--gray-700);
}

.program-card__front p {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: var(--lh-base);
  margin-inline: auto;
}

.program-card__back h3 {
  font-size: var(--fs-lg);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.program-card__back ul {
  text-align: left;
  margin-bottom: var(--space-6);
}
.program-card__back ul li {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.88);
  padding: var(--space-1) 0;
}
.program-card__back ul li::before {
  content: '✦ ';
  color: var(--gold-light);
}

/* --- Core Reset & Foundations --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #EAE7E2; /* Muted stone beige canvas from goingbeyond.com */
  overflow-x: hidden;
}

.ministry-layout-container {
  width: 100%;
  position: relative;
}

/* --- Upper Main Display Board --- */
.main-hero-display {
  width: 100%;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  
  /* Smoothly crossfade backgrounds when swapped */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
  position: relative;
}

/* Optional light ambient tint overlay over the background image */
.main-hero-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25); 
  z-index: 1;
   background-size: cover;
  background-position: center;
}

.hero-content-panel {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 40px 20px;
  color: #2F2B2C; /* Deep editorial charcoal slate */
}

.display-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.display-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  display: block;
  margin: 8px 0 30px 0;
}

.display-description {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 35px;
}

.display-cta-button {
  display: inline-block;
  background-color: #614C59; /* Classic structural plum brand color */
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  padding: 14px 38px;
  border-radius: 1px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.display-cta-button:hover {
  background-color: #4A3A44;
  transform: translateY(-1px);
}

/* --- Floating Interactive Grid Bottom Layer --- */
.thumbnail-navigation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2x columns for mobile layout compatibility */
  gap: 12px;
  width: 94%;
  max-width: 1350px;
  margin: -50px auto 40px auto; /* Pulls the row directly over the main image border */
  position: relative;
  z-index: 10;
}

.thumb-card {
  background: none;
  border: 4px solid transparent; /* invisible tracking frame */
  padding: 0;
  cursor: pointer;
  outline: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

/* Active Highlight Frame style matching image_3a989f.jpg */
.thumb-card.active-frame, 
.thumb-card:hover {
  border-color: #FFFFFF;
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.img-ratio-box {
  width: 100%;
  aspect-ratio: 16 / 7; /* Locks every card asset to an identical banner ratio */
  overflow: hidden;
}

.img-ratio-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Responsive Layout Configurations --- */
@media (min-width: 650px) {
  .thumbnail-navigation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 950px) {
  .thumbnail-navigation-grid {
    grid-template-columns: repeat(5, 1fr); /* Perfect 5-row alignment on high-res desktop views */
    margin-top: -75px; /* Deeper intersect overlap clip */
  }
}
/* ----------------------------------------------------------------
   10. MEETINGS SECTION
---------------------------------------------------------------- */
.meetings {
  background: var(--bg);
}

/* Tabs */
.meeting-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-300);
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition:
    background var(--duration-fast),
    color var(--duration-fast),
    border-color var(--duration-fast),
    box-shadow var(--duration-fast);
}
.tab-btn:hover {
  border-color: var(--pink-400);
  color: var(--pink-500);
}
.tab-btn--active {
  background: var(--pink-500);
  border-color: var(--pink-500);
  color: var(--white);
  box-shadow: var(--shadow-pink);
}

/* Meetings timeline */
.meetings-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}

/* Vertical line */
.meetings-timeline::before {
  content: '';
  position: absolute;
  left: 58px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--pink-200), transparent);
  pointer-events: none;
}

.meeting-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-6);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition:
    transform var(--duration-base) var(--ease-spring),
    box-shadow var(--duration-base),
    border-color var(--duration-base);
  position: relative;
}
.meeting-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-300);
}
/* Hidden items (filtered) */
.meeting-item[hidden] { display: none; }

.meeting-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink-100), var(--pink-200));
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-2);
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}
.date-day {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--pink-600);
  line-height: 1;
}
.date-month {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-500);
}

.meeting-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}
.meeting-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-2);
}
.meeting-desc {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: var(--lh-base);
}

/* Meeting badges */
.meeting-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}
.meeting-badge--monthly  { background: var(--pink-100); color: var(--pink-600); }
.meeting-badge--special  { background: rgba(212,175,55,0.15); color: var(--gold-dark); }
.meeting-badge--virtual  { background: rgba(80,120,220,0.10); color: #3056a8; }

/* RSVP Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 250;              /* above nav drawer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base);
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  -webkit-overflow-scrolling: touch;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.92) translateY(20px);
  transition: transform var(--duration-base) var(--ease-spring);
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: var(--fs-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.modal-close:hover { background: var(--pink-100); color: var(--pink-500); }

.modal-box h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
}
.modal-event-name {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-6);
}
.modal-note {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--pink-500);
  text-align: center;
  min-height: 20px;
}

/* ----------------------------------------------------------------
   11. FORMS (shared)
---------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-group label {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gray-600);
}
.form-group label abbr {
  color: var(--pink-500);
  text-decoration: none;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--gray-700);
  background: var(--white);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink-400);
  box-shadow: 0 0 0 4px rgba(212,91,154,0.12);
  outline: none;
}
.form-group input.error,
.form-group textarea.error {
  border-color: #e03e3e;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-error {
  font-size: var(--fs-xs);
  color: #e03e3e;
  min-height: 16px;
}
.form-success {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: #2a8a5a;
  font-weight: 600;
  min-height: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.form-group--full { grid-column: 1 / -1; }

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--gray-500);
  font-family: var(--font-body);
  font-weight: 400;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--pink-500);
  margin-top: 2px;
}

/* ----------------------------------------------------------------
   12. BOOKS SECTION
---------------------------------------------------------------- */
.books {
  background: var(--pink-100);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform var(--duration-base) var(--ease-spring),
    box-shadow var(--duration-base);
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-8px) rotate(0.5deg);
  box-shadow: var(--shadow-xl);
}

/* Book spine / cover visual */
.book-cover {
  height: 180px;
  background: var(--book-color, var(--pink-500));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
/* Decorative grain texture */
.book-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 2px,
    transparent 2px,
    transparent 8px
  );
}
/* Spine line */
.book-cover::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(0,0,0,0.15);
}

.book-cover-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--fs-md);
  color: var(--white);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin-bottom: var(--space-2);
}
.book-cover-author {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 1;
  letter-spacing: 0.06em;
}

.book-info {
  padding: var(--space-5) var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.book-info h3 {
  font-size: var(--fs-base);
  color: var(--gray-700);
}
.book-author {
  font-size: var(--fs-xs);
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.book-desc {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: var(--lh-base);
  flex: 1;
}

.book-status {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}
.book-status--read     { background: rgba(42,138,90,0.12); color: #1d6b44; }
.book-status--current  { background: rgba(212,91,154,0.12); color: var(--pink-600); }
.book-status--upcoming { background: rgba(212,175,55,0.15); color: var(--gold-dark); }

.books-cta {
  text-align: center;
  padding: var(--space-10) 0;
  border-top: 1px solid var(--pink-200);
}
.books-cta p {
  font-size: var(--fs-md);
  color: var(--gray-500);
  margin-bottom: var(--space-4);
  margin-inline: auto;
}

/* ----------------------------------------------------------------
   13. LEADERS / VANGUARD SECTION
---------------------------------------------------------------- */
.leaders {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.leaders::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--pink-100) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--gray-200);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  transition:
    transform var(--duration-base) var(--ease-spring),
    box-shadow var(--duration-base),
    border-color var(--duration-base);
}
.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pink-300);
}

.leader-avatar {
  flex-shrink: 0;
}
.avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--avatar-color, var(--pink-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--fs-base);
  color: var(--gray-600);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.leader-info h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 2px;
}
.leader-role {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink-500);
  margin-bottom: var(--space-2);
}
.leader-bio {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: var(--lh-base);
  margin-bottom: var(--space-3);
}
.leader-socials {
  display: flex;
  gap: var(--space-2);
}
.social-icon-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--gray-500);
  text-decoration: none;
  transition:
    background var(--duration-fast),
    color var(--duration-fast),
    border-color var(--duration-fast);
}
.social-icon-sm:hover {
  background: var(--pink-500);
  color: var(--white);
  border-color: var(--pink-500);
}

/* ----------------------------------------------------------------
   14. QUIZ SECTION
---------------------------------------------------------------- */
.quiz {
  background: linear-gradient(135deg, var(--pink-100) 0%, rgba(212,175,55,0.08) 100%);
}

.quiz-container {
  max-width: 680px;
  margin-inline: auto;
  padding: var(--space-10) var(--space-10);
  min-height: 300px;
}
.quiz-progress {
  height: 4px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-8);
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--pink-400), var(--gold));
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-smooth);
  width: 0%;
}

/* Quiz step styling (JS-generated) */
.quiz-question {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: var(--space-6);
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--gray-600);
  transition:
    background var(--duration-fast),
    border-color var(--duration-fast),
    transform var(--duration-fast);
}
.quiz-option-btn:hover {
  background: var(--pink-100);
  border-color: var(--pink-400);
  color: var(--pink-600);
  transform: translateX(4px);
}
.quiz-option-btn .opt-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Quiz result */
.quiz-result {
  text-align: center;
}
.quiz-result-icon { font-size: 3rem; margin-bottom: var(--space-4); }
.quiz-result-type {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--pink-500);
  margin-bottom: var(--space-3);
}
.quiz-result-desc {
  color: var(--gray-500);
  margin-bottom: var(--space-6);
  margin-inline: auto;
}
.quiz-result-program {
  display: inline-block;
  background: var(--pink-100);
  color: var(--pink-600);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.quiz-restart-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: var(--fs-sm);
  cursor: pointer;
  text-decoration: underline;
  margin-top: var(--space-3);
}
.quiz-restart-btn:hover { color: var(--gray-600); }

/* ----------------------------------------------------------------
   15. TESTIMONIALS
---------------------------------------------------------------- */
.testimonials {
  background: linear-gradient(180deg, var(--pink-100) 0%, var(--bg) 100%);
  overflow: hidden;
}

.testimonials-carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 0;                        /* gap breaks the 100% math — use padding on cards instead */
  overflow: visible;             /* parent clips, not track */
  transition: transform var(--duration-slow) var(--ease-smooth);
  will-change: transform;
}

/* Clip window wrapping the track */
.testimonials-carousel {
  overflow: hidden;              /* THIS is where clipping happens */
  position: relative;
}

.testimonial-card {
  flex: 0 0 100%;
  min-width: 0;                  /* prevent flex blowout */
  padding: var(--space-8);       /* moved from gap */
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  box-sizing: border-box;
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.testimonial-stars {
  color: var(--gold);
  font-size: var(--fs-md);
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}
.testimonial-card > p {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-md));
  color: var(--gray-600);
  line-height: var(--lh-loose);
  font-style: italic;
  margin-bottom: var(--space-6);
  max-width: 100%;
}
.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--t-color, var(--pink-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--fs-sm);
  color: var(--gray-600);
  flex-shrink: 0;
}
.testimonial-card cite {
  font-style: normal;
}
.testimonial-card cite strong {
  display: block;
  color: var(--gray-700);
  font-size: var(--fs-base);
  font-family: var(--font-heading);
}
.testimonial-card cite span {
  font-size: var(--fs-xs);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--pink-300);
  background: var(--white);
  color: var(--pink-500);
  font-size: var(--fs-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--duration-fast),
    color var(--duration-fast),
    border-color var(--duration-fast),
    transform var(--duration-fast);
}
.carousel-btn:hover {
  background: var(--pink-500);
  color: var(--white);
  border-color: var(--pink-500);
  transform: scale(1.05);
}
.carousel-dots {
  display: flex;
  gap: var(--space-2);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: background var(--duration-base), transform var(--duration-base);
}
.carousel-dot.active {
  background: var(--pink-500);
  transform: scale(1.4);
}

/* ----------------------------------------------------------------
   16. JOIN SECTION
---------------------------------------------------------------- */
.join {
  position: relative;
  overflow: hidden;
}
.join-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(212,91,154,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(212,175,55,0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--pink-100) 100%);
  pointer-events: none;
}
.join-content {
  position: relative;
  z-index: var(--z-base);
  max-width: 780px;
  margin-inline: auto;
}
.join-heading {
  margin-bottom: var(--space-4);
}
.join-sub {
  margin-bottom: var(--space-10);
  font-size: var(--fs-md);
  color: var(--gray-500);
  max-width: 55ch;
}
.join-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-10);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

/* ----------------------------------------------------------------
   17. CONTACT SECTION
---------------------------------------------------------------- */
.contact {
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact-icon {
  font-size: var(--fs-xl);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item strong {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  display: block;
  margin-bottom: var(--space-1);
  color: var(--gray-700);
}
.contact-item p,
.contact-item a {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: var(--lh-base);
  max-width: none;
}
.contact-item a:hover { color: var(--pink-500); }

/* Social link buttons */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background var(--duration-fast),
    color var(--duration-fast),
    border-color var(--duration-fast),
    transform var(--duration-fast),
    box-shadow var(--duration-fast);
}
.social-btn:hover {
  background: var(--pink-500);
  color: var(--white);
  border-color: var(--pink-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-pink);
}

/* Contact form (glass card) */
.contact-form {
  padding: var(--space-8);
}
.contact-form h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-6);
  color: var(--gray-700);
}

/* ----------------------------------------------------------------
   18. FOOTER
---------------------------------------------------------------- */
.site-footer {
  background: var(--gray-700);
  color: var(--gray-300);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

/* Footer logo */
.footer-logo .logo-text,
.footer-logo .logo-icon { color: var(--white) !important; }
.footer-logo .logo-text em { color: var(--gold) !important; }

.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--gray-400);
  line-height: var(--lh-base);
  max-width: 30ch;
}

.footer-nav h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-5);
  font-family: var(--font-heading);
}
.footer-nav ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-nav a {
  font-size: var(--fs-sm);
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.footer-nav a:hover { color: var(--gold); }

.footer-newsletter h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-3);
}
.footer-newsletter p {
  font-size: var(--fs-sm);
  color: var(--gray-400);
  margin-bottom: var(--space-4);
  line-height: var(--lh-base);
}
.newsletter-form {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 160px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-600);
  border-radius: var(--radius-full);
  background: var(--gray-600);
  color: var(--white);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: var(--gray-400); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
}
.newsletter-msg {
  font-size: var(--fs-xs);
  color: var(--gold);
  margin-top: var(--space-2);
  min-height: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-600);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--gray-400);
  max-width: none;
}
.footer-bottom a {
  color: var(--gray-400);
  font-size: var(--fs-xs);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--gold); }

/* ----------------------------------------------------------------
   19. BACK TO TOP
---------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  background: var(--pink-500);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: var(--fs-lg);
  cursor: pointer;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pink);
  transition:
    opacity var(--duration-base),
    transform var(--duration-base) var(--ease-spring),
    background var(--duration-fast);
  opacity: 0;
  transform: scale(0.8);
}
.back-to-top:not([hidden]) {
  opacity: 1;
  transform: scale(1);
}
.back-to-top:hover {
  background: var(--pink-600);
  transform: scale(1.1);
}

/* ----------------------------------------------------------------
   20. SCROLL REVEAL (intersection observer)
---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ================================================================
   RESPONSIVE BREAKPOINTS
   Mobile-first: base = mobile, then scale up
================================================================ */

/* ----------------------------------------------------------------
   Tablet — 768px and above (iPad, Huawei P20 landscape)
---------------------------------------------------------------- */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----------------------------------------------------------------
   Huawei P20 (360 × 748px portrait) — ~360px viewport
   Mobile nav transforms to drawer
---------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Show hamburger */
  .hamburger { display: flex; }

  /* Nav links: slide-in drawer from right — z-index ABOVE header */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 80vw);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-12) var(--space-8);
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 150;             /* highest — above header AND overlay */
    transform: translateX(110%);
    transition: transform var(--duration-slow) var(--ease-smooth);
    overflow-y: auto;
  }

  /* Drawer open state — JS adds .open */
  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: var(--fs-lg);
    color: var(--gray-700) !important;
    padding: var(--space-3) 0;
    width: 100%;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-link::after { display: none; }
  .nav-link:last-child { border-bottom: none; }

  /* Overlay already always-displayed at base level — no override needed */
  .mobile-overlay.visible {
    pointer-events: auto;
  }

  /* About grid → stacked */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Programs → 2 col */
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Books → 2 col */
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Leaders → 2 col */
  .leaders-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Meetings: hide timeline line */
  .meetings-timeline::before { display: none; }

  .meeting-item {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
  }
  .meeting-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  /* Footer: 2 col */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  /* Hero stats: wrap */
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-5);
    justify-content: center;
  }
  .stat-divider { display: none; }

  /* Contact: stack */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Join form */
  .form-row {
    grid-template-columns: 1fr;
  }
  .join-form {
    padding: var(--space-8) var(--space-6);
  }
}

/* ----------------------------------------------------------------
   Small mobile — Huawei P20 portrait (360px width and below)
---------------------------------------------------------------- */
@media (max-width: 468px) {
  :root {
    --nav-height: 60px;
  }

  .nav-container {
    padding-inline: var(--space-5);
  }

  /* Only show icon + brand name on small screens */
  .logo-text { font-size: var(--fs-base); }

  .hero-content {
    padding-top: var(--space-16);
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .btn-lg { width: 100%; max-width: 300px; justify-content: center; }

  .programs-grid { grid-template-columns: 1fr; }
  .books-grid    { grid-template-columns: 1fr; }
  .leaders-grid  { grid-template-columns: 1fr; }

  .hero-stats {
    padding: var(--space-4);
    gap: var(--space-4);
  }
  .stat-number { font-size: var(--fs-xl); }

  .quiz-container { padding: var(--space-6) var(--space-5); }
  .testimonial-card { padding: var(--space-6); }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .meeting-item {
    grid-template-columns: 1fr;
  }
  .meeting-date {
    flex-direction: row;
    width: auto;
    height: auto;
    gap: var(--space-2);
    align-self: flex-start;
  }

  .back-to-top {
    bottom: var(--space-5);
    right: var(--space-5);
    width: 40px;
    height: 40px;
  }
}

/* ----------------------------------------------------------------
   4K Monitor — 1920px and above
   Wider layouts, larger type, more breathing room
---------------------------------------------------------------- */
@media (min-width: 1440px) {
  :root {
    --container-max: 1360px;
    --section-pad: 7rem;
  }

  .hero-content { max-width: 1100px; }

  .about-grid,
  .programs-grid,
  .books-grid,
  .leaders-grid {
    gap: var(--space-8);
  }

  .footer-grid {
    grid-template-columns: 2.2fr 1fr 1fr 2.2fr;
    gap: var(--space-16);
  }
}

@media (min-width: 1920px) {
  :root { --container-max: 1600px; }

  .section-heading {
    font-size: var(--fs-5xl);
  }

  .programs-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ----------------------------------------------------------------
   Print styles — accessible, ink-friendly
---------------------------------------------------------------- */
@media print {
  .site-header,
  .back-to-top,
  .hero-canvas,
  .hero-orb,
  .hero-scroll-hint,
  .carousel-controls,
  .quiz,
  .join-form,
  .contact-form { display: none; }

  body { background: white; color: black; font-size: 12pt; }
  a { color: black; text-decoration: underline; }
  .hero {
    min-height: auto;
    background: none;
    border-bottom: 2px solid black;
    padding: 2rem 0;
  }
  .hero-heading, .hero-sub { color: black; }
}
