/* Compass Gym - basis: kleuren, reset, typografie, hulpklassen en animaties */

/* ============================================================
   Kleuren & variabelen
   ============================================================ */

:root {
  --bg: #0B1B2D;          /* achtergrond */
  --bg-2: #0F2339;        /* kaarten, banden */
  --bg-3: #15191E;        /* gym-sectie, fotokaders */
  --bg-4: #16304D;        /* accentvlakken */
  --bg-5: #1B3049;        /* hover */
  --bg-deep: #081624;     /* footer */
  --bg-tv: #05101C;       /* tv-rand */

  --line: #24384F;
  --line-2: #2C4763;
  --line-3: #1C3149;
  --line-soft: rgba(198,216,224,0.12);

  --ice: #C6D8E0;         /* hoofdaccent */
  --accent: #72A4B8;      /* kleine labels */
  --gold: #E8C46A;        /* sterren, zwakste thema */
  --red: #E5484D;

  --text: #EDEFF0;
  --text-2: #C9D4DF;
  --text-3: #A3B6C3;
  --text-4: #D7E0E7;
  --on-ice: #0F2339;      /* tekst op lichte vlakken */

  --font: "Onest", system-ui, sans-serif;
  --font-display: "Unbounded", sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ============================================================
   Reset & basis
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
}

a {
  color: var(--ice);
}

a:hover {
  color: var(--text);
}

h1, h2, h3, p, figure, blockquote, dl, dd {
  margin: 0;
}

button, input, select, textarea {
  font-family: var(--font);
}

[hidden] {
  display: none !important;
}

/* ============================================================
   Typografie
   ============================================================ */

.h1 {
  margin-top: 28px;
  max-width: 980px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.h2--xl {
  max-width: 860px;
  margin: 0 auto;
  font-size: 54px;
  line-height: 1.05;
}

.eyebrow {
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-3);
}

.label--accent {
  letter-spacing: 0.2em;
  color: var(--accent);
}

.label--tiers {
  margin: 28px 0 10px;
}

.text {
  margin-top: 16px;
  color: var(--text-2);
}

.text--sm {
  margin: 6px 0 16px;
  font-size: 14px;
}

.note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-3);
}

.ice {
  color: var(--ice);
}

.stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 15px;
}

/* ============================================================
   Hulpklassen
   ============================================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Verborgen veld tegen spambots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ============================================================
   Animaties
   ============================================================ */

@keyframes up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes parallax {
  from { transform: translateY(-7%) scale(1.18); }
  to { transform: translateY(7%) scale(1.18); }
}

.anim-in { animation: up .9s var(--ease) both; }
.anim-in2 { animation: up .9s .15s var(--ease) both; }
.anim-in3 { animation: up .9s .3s var(--ease) both; }

/* Inschuiven bij het scrollen (enkel als JavaScript actief is) */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .stagger:not(.is-in) > * {
  opacity: 0;
}

.js .stagger.is-in > * {
  animation: up .75s var(--ease) backwards;
}

.stagger.is-in > *:nth-child(2) { animation-delay: .09s; }
.stagger.is-in > *:nth-child(3) { animation-delay: .18s; }
.stagger.is-in > *:nth-child(4) { animation-delay: .27s; }
.stagger.is-in > *:nth-child(5) { animation-delay: .36s; }

/* Lichte parallax op achtergrondfoto's (enkel in browsers die dit kennen) */
@supports (animation-timeline: view()) {
  .parallax {
    animation: parallax linear both;
    animation-timeline: view();
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stagger > * { opacity: 1 !important; transform: none !important; }
}
