/* ═══════════════════════════════════════════════════
   RunPractice — global.css
   Design tokens, reset, typography, shared components
   Mobile-first: base = mobile, min-width scales up
   ═══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Space+Mono:wght@400;700&family=Instrument+Sans:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --black: #080808;
  --off-black: #0f0f0f;
  --surface: #161616;
  --border: rgba(255, 255, 255, 0.07);
  --lime: #c8f135;
  --lime-dim: rgba(200, 241, 53, 0.10);
  --white: #f5f5f0;
  --muted: rgba(245, 245, 240, 0.45);

  /* Fonts */
  --serif: 'DM Serif Display', serif;
  --mono: 'Space Mono', monospace;
  --sans: 'Instrument Sans', sans-serif;

  /* Breakpoints (reference only — used in media queries) */
  --bp-md: 768px;
  --bp-lg: 1100px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--sans); font-weight: 300; color: var(--white); background: var(--black); line-height: 1.7; font-size: 15px; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }

/* Hero headline */
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(40px, 10vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--white);
}

/* Section title */
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--white);
}

/* Flow step title */
.flow-title {
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

/* Italic accent (lime) — used in headline splits */
.italic { font-style: italic; color: var(--lime); }

/* Section label — mono uppercase with lime line */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--lime);
}

/* Eyebrow labels */
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Body copy */
.body-copy {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--muted);
}

/* Stat numbers */
.stat-number {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--lime);
}

.stat-large {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--lime);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--lime);
  color: var(--black);
  padding: 16px 36px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  text-align: center;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200, 241, 53, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--white); }
.btn-ghost .arrow { transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-black {
  display: inline-block;
  background: var(--black);
  color: var(--lime);
  padding: 16px 36px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
  width: 100%;
  text-align: center;
}
.btn-black:hover { transform: translateY(-2px); }

/* ── Layout ── */
.page-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 64px 0;
}

.section-alt { background: var(--off-black); }
.section-border { border-top: 1px solid var(--border); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page Load Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Custom Cursor ── */
.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s;
  opacity: 0;
}
.cursor.hover { transform: scale(2.5); }

.cursor-ring {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 241, 53, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.2s;
  opacity: 0;
}
.cursor-ring.hide { opacity: 0; }

/* ── Photography Treatment ── */
.img-treatment {
  filter: brightness(0.45) saturate(0.7);
  transition: filter 0.4s, transform 0.4s;
}
.img-treatment:hover {
  filter: brightness(0.6) saturate(0.85);
  transform: scale(1.04);
}

/* ── Glow Effects ── */
.hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200, 241, 53, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Marquee ── */
.marquee-track {
  display: flex;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── TABLET (768px+) ── */
@media (min-width: 768px) {
  .hero-headline {
    font-size: clamp(48px, 7vw, 80px);
  }
  .section-title {
    font-size: clamp(36px, 4.5vw, 68px);
  }
  .page-wrap {
    padding: 0 32px;
  }
  .btn-primary,
  .btn-black {
    width: auto;
  }
}

/* ── DESKTOP (1100px+) ── */
@media (min-width: 1100px) {
  .hero-headline {
    font-size: clamp(52px, 7vw, 104px);
  }
  .page-wrap {
    padding: 0 48px;
  }
  section {
    padding: 100px 0;
  }
  .cursor,
  .cursor-ring {
    display: block;
  }
  .hero-glow {
    width: 600px;
    height: 600px;
  }
}

/* ── Hide cursor on touch devices ── */
@media (pointer: coarse) {
  .cursor, .cursor-ring { display: none !important; }
}
