/* ════════════════════════════════════════════════════════════
   BASE.CSS — Custom Properties, Reset, Typography, Utilities
   Quest 4 Life Custom Theme — edit variables here to retheme
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Custom Properties ─────────────────────────────────────
   Change these to retheme the entire site instantly.        */
:root {
  /* ── Brand Colors ── */
  --c-black:      #080d14;          /* page background        */
  --c-navy:       #0d1a27;          /* subtle section bg      */
  --c-navy-light: #132130;          /* card hover bg          */
  --c-blue:       #1d4e7b;          /* "QUEST" steel blue     */
  --c-blue-mid:   #2563a0;          /* mid accent             */
  --c-cyan:       #29b6f6;          /* "FOR LIFE" bright cyan */
  --c-cyan-dim:   rgba(41,182,246,0.10);
  --c-cyan-glow:  rgba(41,182,246,0.22);
  --c-white:      #f0f4f8;          /* primary text           */
  --c-gray:       #8899aa;          /* secondary text         */
  --c-border:     rgba(240,244,248,0.07);
  --c-border-mid: rgba(240,244,248,0.13);

  /* ── Typography ── */
  --font-display: 'Syne',  sans-serif;
  --font-body:    'Inter', sans-serif;

  /* ── Fluid Font Scale ── */
  --text-xs:   clamp(0.65rem,  1vw,   0.75rem);
  --text-sm:   clamp(0.8rem,   1.2vw, 0.9rem);
  --text-base: clamp(0.9rem,   1.5vw, 1rem);
  --text-lg:   clamp(1rem,     2vw,   1.125rem);
  --text-xl:   clamp(1.2rem,   2.5vw, 1.4rem);
  --text-2xl:  clamp(1.6rem,   4vw,   2.25rem);
  --text-3xl:  clamp(2.25rem,  6vw,   3.75rem);
  --text-hero: clamp(3.25rem,  9vw,   7rem);

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

  /* ── Layout ── */
  --nav-h:      72px;
  --max-w:      1200px;
  --max-w-text: 580px;
  --gutter:     clamp(1.5rem, 5vw, 5rem);

  /* ── Easing ── */
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Durations ── */
  --dur-fast: 250ms;
  --dur-mid:  500ms;
  --dur-slow: 900ms;
}

/* ── Reset ─────────────────────────────────────────────────  */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* belt-and-suspenders with body — stops marquee expanding mobile viewport */
  max-width: 100%;
}

body {
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { border: none; background: none; font: inherit; cursor: pointer; }

/* ── Custom Cursor (homepage only — body.home) ──────────────  */
body.home { cursor: none; }
body.home button { cursor: none; }

body.home .cursor-dot,
body.home .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

body.home .cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--c-cyan);
  transition: opacity var(--dur-fast) ease,
              transform var(--dur-fast) var(--ease-spring);
}

body.home .cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(41,182,246,0.45);
  transition: width  0.18s var(--ease-expo),
              height 0.18s var(--ease-expo),
              border-color 0.18s ease,
              background   0.18s ease;
}

body.home .cursor-ring.is-hovering {
  width: 54px;
  height: 54px;
  border-color: var(--c-cyan);
  background: var(--c-cyan-dim);
}

@media (hover: none) {
  body.home { cursor: auto; }
  body.home button { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Global Typography ──────────────────────────────────────  */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Eyebrow labels */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: var(--sp-4);
}

.eyebrow--dim { color: var(--c-gray); }

/* ── Scroll Reveal ──────────────────────────────────────────
   Add data-reveal to any element, data-delay="1..5" for lag  */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-expo),
              transform var(--dur-slow) var(--ease-expo);
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px);  }
[data-reveal="scale"] { transform: scale(0.95); opacity: 0; }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-delay="1"] { transition-delay: 100ms; }
[data-delay="2"] { transition-delay: 200ms; }
[data-delay="3"] { transition-delay: 320ms; }
[data-delay="4"] { transition-delay: 440ms; }
[data-delay="5"] { transition-delay: 560ms; }

/* ── Utility ────────────────────────────────────────────────  */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
