/* =====================================================================
   Crimsongym — Bright theme landing page
   Fonts: Powerr Bold (headings, self-hosted — same face as crimsongym.com)
          Nunito Sans (body)
   ===================================================================== */

@font-face {
  font-family: "Powerr";
  src: url("fonts/PowerrBold.ttf") format("truetype");
  font-weight: 100 900; /* single bold cut: map every weight to it, no faux-bold */
  font-style: normal;
  font-display: swap;
}

:root {
  --crimson: #b91c1c;
  --crimson-deep: #991b1b;
  --crimson-bright: #dc2626;
  --crimson-soft: #fef2f2;
  --crimson-tint: #fecaca;

  --ink: #111111;
  --ink-soft: #3f3f46;
  --muted: #6b6b7a;
  --line: #ececf1;
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --bg-warm: #fbf6f4;

  --r-xs: 12px;
  --r-sm: 18px;
  --r-md: 26px;
  --r-lg: 34px;
  --r-xl: 44px;
  --r-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(17, 17, 17, .06);
  --shadow-md: 0 18px 40px -12px rgba(17, 17, 17, .14);
  --shadow-lg: 0 40px 80px -24px rgba(17, 17, 17, .22);
  --shadow-red: 0 20px 44px -14px rgba(185, 28, 28, .45);

  --font-head: "Powerr", "Arial Black", Impact, system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1200px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
figure { margin: 0; }

/* Powerr is a wide single-weight display face: sentence case like the live site,
   uppercase reserved for small labels / the CTA banner. */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.3rem); }
h3 { font-size: 1.45rem; }
.btn, .eyebrow, .marquee-track span, .training-tag, .price-ribbon, .toggle-btn, .link-arrow, .back-top, .footer-col h4 { font-weight: 400; }
h2 em, h1 em { font-style: normal; color: var(--crimson); }

p { margin: 0; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(5rem, 9vw, 8.5rem) 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head);
  font-size: .85rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}
/* Brand mark from crimsongym.com/favicon.ico (replaces the old red stripe) */
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.6em; height: 1.6em;
  background: url("images/mark.png") center / contain no-repeat;
  /* Optical vertical center with Powerr caps (face sits slightly high in the em box) */
  transform: translateY(-0.12em);
}
.eyebrow.light { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.section-head-row > p { max-width: 380px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head); font-size: .95rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(120% 120% at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.25), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn svg { transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { --btn-bg: var(--crimson); box-shadow: var(--shadow-red); }
.btn-primary:hover { --btn-bg: var(--crimson-bright); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn-ghost:hover { --btn-bg: var(--bg-soft); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--crimson); }
.btn-light:hover { --btn-bg: var(--crimson-soft); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline-light:hover { --btn-bg: #fff; --btn-fg: var(--crimson); }
.btn-sm { padding: .65rem 1.2rem; font-size: .85rem; }
.btn-lg { padding: 1.15rem 2.1rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem;
  color: var(--crimson); font-weight: 500;
}
.link-arrow span { transition: transform .3s var(--ease-out); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 1000; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--crimson-deep), var(--crimson-bright));
  transform-origin: left; transform: scaleX(var(--progress, 0));
  border-radius: 0 4px 4px 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s, border-color .4s, background .4s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: var(--header-h); transition: height .4s var(--ease-out); }
.site-header.is-scrolled .header-inner { height: 68px; }

.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  flex: none;
  position: relative;
  top: -4.5px;
  transition: transform .6s var(--ease-spring);
}
.logo:hover .logo-mark { transform: rotate(180deg); }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }

.nav-list { display: flex; gap: .25rem; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  transition: background .25s, color .25s;
}
.nav-list > li > a:hover, .nav-list > li.is-open > a,
.nav-list > li > a.is-active, .nav-list > li > a.is-current { background: var(--crimson-soft); color: var(--crimson); }
.mobile-nav a.is-current { color: var(--crimson); }
.has-dropdown > a svg { transition: transform .3s; }
.has-dropdown:hover > a svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 210px; padding: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  max-height: min(70vh, 520px); overflow: auto;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: .6rem .9rem; border-radius: var(--r-xs); font-weight: 600; font-size: .92rem; color: var(--ink-soft); transition: background .2s, color .2s, padding-left .2s; }
.dropdown a:hover { background: var(--crimson-soft); color: var(--crimson); padding-left: 1.1rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: var(--bg-soft); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: .25rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
}
.mobile-nav a:not(.btn) { padding: .85rem .5rem; font-family: var(--font-head); text-transform: uppercase; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 1rem; }
.site-header.menu-open .mobile-nav { display: flex; animation: fadeDown .4s var(--ease-out) both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(ellipse 1600px 1100px at 88% -18%,
      rgba(237, 213, 213, .75) 0%,
      rgba(237, 213, 213, .38) 32%,
      rgba(237, 213, 213, .14) 55%,
      transparent 82%),
    radial-gradient(ellipse 1200px 900px at -8% 115%,
      rgba(248, 236, 236, .6) 0%,
      rgba(248, 236, 236, .22) 40%,
      transparent 75%),
    var(--bg);
}
.blob { position: absolute; border-radius: 45% 55% 60% 40% / 50% 40% 60% 50%; filter: blur(60px); opacity: .7; pointer-events: none; }
.blob-1 { width: 520px; height: 520px; right: -140px; top: -120px; background: #fecaca; animation: morph 14s ease-in-out infinite alternate; }
.blob-2 { width: 420px; height: 420px; left: -160px; bottom: -180px; background: #fee2e2; animation: morph 18s ease-in-out infinite alternate-reverse; }
@keyframes morph {
  0%   { border-radius: 45% 55% 60% 40% / 50% 40% 60% 50%; }
  100% { border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; }
}

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }
.hero-title { margin: .2rem 0 1.4rem; }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--crimson); font-weight: 600; }
.hero-stats span { font-size: .9rem; color: var(--muted); margin-top: .3rem; }

/* Word split animation */
.split-words .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .word > span { display: inline-block; transform: translateY(110%); animation: wordUp .9s var(--ease-out) forwards; animation-delay: calc(.12s + var(--w, 0) * .09s); }
@keyframes wordUp { to { transform: none; } }

/* Fixed aspect so absolutely-positioned children have predictable geometry:
   main image = 72% wide × 4/5  →  its bottom edge sits at ~18% from the container bottom. */
.hero-visual { position: relative; aspect-ratio: 10 / 11; }
.hero-img { position: absolute; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.hero-img-main {
  right: 0; top: 0; width: 72%; aspect-ratio: 4 / 5;
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 120px;
  animation: floatIn 1.1s var(--ease-out) both;
}
.hero-img-small {
  left: 0; bottom: 6%; width: 46%; aspect-ratio: 1;
  border-radius: 120px var(--r-xl) var(--r-xl) var(--r-xl);
  border: 6px solid #fff;
  animation: floatIn 1.1s var(--ease-out) .25s both;
}
.hero-img-small img { object-position: 50% 15%; }
@keyframes floatIn { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
.hero-img:hover img { transform: scale(1.06); }

.badge-rotate {
  /* Straddles the bottom edge of the main image (edge ≈ 18% from the bottom of .hero-visual) */
  position: absolute; right: -4%; bottom: calc(18% - 82px);
  width: 150px; height: 150px; display: grid; place-items: center;
  border-radius: 50%; background: var(--crimson); color: #fff; box-shadow: var(--shadow-red);
  border: 6px solid #fff;
  animation: floatIn 1s var(--ease-spring) .55s both;
  transition: transform .4s var(--ease-spring);
}
.badge-rotate:hover { transform: scale(1.06); }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(var(--spin, 0deg)); }
.badge-ring text { font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: .12em; fill: #fff; }
.badge-center { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--crimson); display: grid; place-items: center; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid var(--ink); border-radius: 20px; display: flex; justify-content: center; padding-top: 6px; opacity: .55;
}
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--crimson); animation: hint 1.8s infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
/* Padding keeps the tilted band inside the clip. Overflow still stops the
   rotation from widening the page, and z-index paints the band over the hero. */
.marquee-clip {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-block: calc(1rem + 1.5vw);
  margin-top: -.5rem;
}
.marquee { overflow: hidden; background: var(--crimson); color: #fff; padding: 1rem 0; transform: rotate(-1.2deg) scale(1.03); }
.marquee-track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; white-space: nowrap; }
.marquee-track i { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-visual { position: relative; min-height: 560px; }
.about-img { position: absolute; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.about-img:hover img { transform: scale(1.05); }
.about-img-1 { left: 0; top: 0; width: 62%; aspect-ratio: 3/4; border-radius: var(--r-xl); }
.about-img-2 { right: 0; bottom: 0; width: 56%; aspect-ratio: 4/4.6; border-radius: var(--r-xl); border: 8px solid #fff; }
.about-sticker {
  position: absolute; right: 8%; top: 6%;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-content: center; text-align: center;
  font-family: var(--font-head); text-transform: uppercase; box-shadow: var(--shadow-md);
}
.about-sticker strong { font-size: .85rem; letter-spacing: .12em; font-weight: 500; opacity: .8; }
.about-sticker span { font-size: 2rem; line-height: 1; }
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy p { color: var(--ink-soft); font-size: 1.08rem; }
.checklist { margin: 2rem 0; display: grid; gap: .8rem; }
.checklist li { display: flex; align-items: center; gap: .85rem; font-weight: 600; }
.checklist li::before {
  content: "✓"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--crimson-soft); color: var(--crimson); display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}

/* ---------- Features ---------- */
.features { background: var(--bg-soft); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2.4rem 2.2rem; display: flex; flex-direction: column; gap: 1rem;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
  transform-style: preserve-3d;
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card h3 { margin-top: .5rem; }
.feature-card p { color: var(--ink-soft); flex: 1; }
.feature-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--crimson-soft); color: var(--crimson); display: grid; place-items: center; transition: transform .5s var(--ease-spring), background .3s, color .3s; }
.feature-icon svg { width: 30px; height: 30px; }
.feature-card:hover .feature-icon { background: var(--crimson); color: #fff; transform: rotate(-8deg) scale(1.05); }

/* Spotlight (cursor-following glow) */
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 28, 28, .10), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* ---------- Trainingen: scroll scrub ---------- */
.trainingen { background: var(--bg-soft); padding-bottom: 0; }
.scrub { position: relative; height: 500vh; }
.scrub-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.scrub-track {
  display: flex; gap: 1.5rem; padding-left: max(1.25rem, calc((100vw - var(--container)) / 2));
  padding-right: 1.25rem; width: max-content;
  transform: translate3d(calc(var(--x, 0) * -1px), 0, 0);
  will-change: transform;
}
.training-card {
  position: relative; flex: none; width: clamp(260px, 48vh, 380px); aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--r-xl); background: var(--ink); box-shadow: var(--shadow-md);
}
.training-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.training-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,0) 35%, rgba(17,17,17,.85)); }
.training-card:hover img { transform: scale(1.08); }
.training-body { position: absolute; inset: auto 0 0 0; padding: 1.8rem; color: #fff; z-index: 1; transform: translateY(12px); transition: transform .5s var(--ease-out); }
.training-card:hover .training-body { transform: none; }
.training-body p { opacity: 0; transform: translateY(8px); transition: opacity .4s .05s, transform .5s var(--ease-out) .05s; color: rgba(255,255,255,.85); margin-top: .5rem; }
.training-card:hover .training-body p { opacity: 1; transform: none; }
.training-tag { display: inline-block; padding: .3rem .8rem; border-radius: var(--r-pill); background: rgba(255,255,255,.18); backdrop-filter: blur(6px); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-head); margin-bottom: .6rem; }
.training-body h3 { font-size: 2rem; }
.training-more { margin-top: .85rem; position: relative; z-index: 2; }
.training-num { position: absolute; top: 1.4rem; right: 1.4rem; z-index: 1; font-family: var(--font-head); color: #fff; font-size: 1rem; letter-spacing: .1em; opacity: .8; }
.training-card-cta { background: var(--crimson); display: grid; place-items: center; text-align: center; padding: 2rem; color: #fff; }
.training-card-cta::after { display: none; }
.training-card-cta h3 { font-size: 2rem; margin-bottom: .6rem; }
.training-card-cta p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.scrub-progress { width: min(100% - 2.5rem, var(--container)); margin: 2.5rem auto 0; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.scrub-progress span { display: block; height: 100%; width: 100%; background: var(--crimson); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Coaches ---------- */
.coaches { background: var(--bg-soft); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.coach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.coach-card { position: relative; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.coach-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.coach-card figure { aspect-ratio: 4/4.4; overflow: hidden; background: var(--crimson-soft); }
.coach-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s; }
.coach-card:hover img { transform: scale(1.06); }
.coach-body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; }
.coach-body h3 { font-size: 1.6rem; }
.coach-body span { color: var(--muted); font-size: .95rem; }
.coach-socials { position: absolute; top: 1rem; right: 1rem; display: flex; gap: .4rem; opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .4s var(--ease-out); }
.coach-card:hover .coach-socials { opacity: 1; transform: none; }
.coach-socials a { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--crimson); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.coach-socials svg { width: 18px; height: 18px; }

/* ---------- Pricing ---------- */
.toggle { position: relative; display: inline-flex; padding: 6px; background: var(--bg-soft); border-radius: var(--r-pill); margin-top: 1.6rem; border: 1px solid var(--line); }
.toggle-btn { position: relative; z-index: 1; padding: .7rem 1.5rem; border-radius: var(--r-pill); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--ink-soft); transition: color .3s; }
.toggle-btn.is-active { color: #fff; }
.toggle-pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: 0; background: var(--crimson); border-radius: var(--r-pill); transition: transform .45s var(--ease-spring), width .45s var(--ease-spring); box-shadow: var(--shadow-red); }
/* Keep inactive panels laid out (absolute + visibility) so the hidden bsport
   widget still receives a real width when it mounts — `display:none` would
   collapse it to 0 and break the card grid. */
.pricing-panels { position: relative; }
/* While a pass/subscription details dialog is open, lift the whole tarieven
   section above later page sections. The dialog's own z-index only competes
   inside this stacking context, so coaches/banner/footer were painting over it. */
body:has(.bs-contract-details-dialog) #tarieven,
body:has(.bs-paymentpack-details-dialog) #tarieven,
body:has([class*="details-dialog"]:not([class*="__"])) #tarieven {
  position: relative;
  z-index: 5000;
}
.pricing-panel {
  display: block;
  opacity: 0; visibility: hidden; pointer-events: none;
  position: absolute; inset: 0 auto auto 0; width: 100%;
}
.pricing-panel.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  position: relative;
  /* Opacity-only: a transform (even identity from animation fill) creates a
     containing block that traps bsport's position:fixed Details dialogs
     inside the embed instead of covering the viewport. */
  animation: panelIn .6s var(--ease-out) both;
}
@keyframes panelIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Rooster ---------- */
.rooster { background: var(--bg-warm); border-radius: var(--r-xl); margin-inline: clamp(0px, 2vw, 2rem); }
.rooster-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.rooster-copy h2 { margin-bottom: 1.2rem; }
.rooster-copy p { color: var(--ink-soft); margin-bottom: 2rem; }
.rooster-list { display: grid; gap: .8rem; }
.rooster-item { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 1.2rem; padding: 1.1rem 1.4rem; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); transition: transform .4s var(--ease-out), box-shadow .4s; }
.rooster-item:hover { transform: translateX(8px); box-shadow: var(--shadow-sm); }
.rooster-item time { font-family: var(--font-head); font-size: 1.4rem; color: var(--crimson); font-weight: 600; }
.rooster-item strong { display: block; font-family: var(--font-head); text-transform: uppercase; font-size: 1.1rem; }
.rooster-item span { color: var(--muted); font-size: .9rem; }
.rooster-item em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--ink-soft); padding: .35rem .8rem; background: var(--bg-soft); border-radius: var(--r-pill); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card { margin: 0; padding: 2.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 1rem; transition: transform .5s var(--ease-out), box-shadow .5s; }
.testi-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow-md); }
.stars { color: var(--crimson); letter-spacing: .1em; }
.testi-card p { font-size: 1.05rem; color: var(--ink-soft); flex: 1; }
.testi-card footer { display: flex; align-items: center; gap: .8rem; }
.testi-card footer img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-card footer strong { display: block; font-family: var(--font-head); text-transform: uppercase; }
.testi-card footer span { font-size: .85rem; color: var(--muted); }

/* ---------- Banner ---------- */
.banner { position: relative; overflow: hidden; margin: 0 clamp(0px, 2vw, 2rem); border-radius: var(--r-xl); min-height: 560px; display: grid; place-items: center; text-align: center; color: #fff; }
.banner-bg { position: absolute; inset: -12% 0; z-index: 0; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0), 0) scale(1.05); will-change: transform; }
.banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(153,27,27,.92), rgba(185,28,28,.82) 55%, rgba(220,38,38,.65)); }
.banner-inner { position: relative; z-index: 1; padding: 4rem 0; }
.banner h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 0; }
.banner-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-copy h2 { margin-bottom: 1.2rem; }
.contact-copy > p { color: var(--ink-soft); }
.contact-info { margin-top: 2.5rem; display: grid; gap: 1.25rem; list-style: none; padding: 0; }
.contact-info > li { margin: 0; padding: 0; }
/* Match crimsongym.com/nl/contact .contact-items infobuttons */
.contact-items .content {
  display: flex;
  align-items: center;
  margin: .25rem 0;
}
.contact-items .content .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  margin-right: 1.25rem;
  border-radius: 50%;
  background: var(--crimson);
  border: 2px solid var(--crimson);
  transition: background .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out;
}
.contact-items .content .icon a {
  display: grid;
  place-items: center;
  color: #fff;
  line-height: 0;
}
.contact-items .content .icon a svg { display: block; }
.contact-items .content .icon.link:hover {
  background: #fff;
  border-color: var(--crimson);
}
.contact-items .content .icon.link:hover a { color: var(--crimson); }
.contact-items .content .text { color: var(--ink); min-width: 0; }
.contact-items .content .text h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 .2rem;
  text-transform: none;
  letter-spacing: 0;
}
.contact-items .content .text a,
.contact-items .content .text p {
  display: block;
  margin: 0;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
}
.contact-items .content .text a:hover { color: var(--crimson); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 2.6rem); box-shadow: var(--shadow-md); display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field span { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; width: 100%; padding: .9rem 1.1rem; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--crimson); background: #fff; box-shadow: 0 0 0 4px rgba(185,28,28,.12); }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--crimson); text-decoration: underline; }
.contact-form.is-sent { animation: pulse .6s var(--ease-spring); }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 4.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { color: var(--muted); margin: 1rem 0 1.4rem; max-width: 320px; }
.footer-socials { display: flex; gap: .5rem; }
.footer-socials a { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background .3s, color .3s, transform .3s var(--ease-spring); }
.footer-socials a:hover { background: var(--crimson); color: #fff; transform: translateY(-3px); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-col { display: grid; gap: .6rem; align-content: start; }
.footer-col h4 { font-size: 1rem; letter-spacing: .1em; color: var(--crimson); margin-bottom: .4rem; }
.footer-col a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; width: fit-content; position: relative; }
.footer-col a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--crimson); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.footer-col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.back-top { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--delay, 0s) + var(--i, 0) * .1s);
  will-change: opacity, transform;
}
.reveal[data-reveal="up"]    { transform: translateY(40px); }
.reveal[data-reveal="left"]  { transform: translateX(-50px); }
.reveal[data-reveal="right"] { transform: translateX(50px); }
.reveal[data-reveal="scale"] { transform: scale(.85); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Parallax targets */
[data-parallax] { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  /* Clip horizontal overflow on mobile only. On desktop this must stay
     `visible` — any non-visible overflow on html/body breaks the sticky
     trainingen scrub (cards scroll off-screen while translating sideways). */
  html, body { overflow-x: clip; }
  @supports not (overflow: clip) { html, body { overflow-x: hidden; } }
  .nav, .header-actions .btn-ghost, .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid, .about-grid, .rooster-grid, .contact-grid { grid-template-columns: 1fr; }
  /* width:100% is required: all children are absolute, and margin:auto
     cancels the grid item's stretch, so without it the box collapses to 0 */
  .hero-visual { width: 100%; max-width: 560px; margin: 1rem auto 0; }
  .badge-rotate { right: 0; }
  .feature-grid, .coach-grid, .testi-grid { grid-template-columns: 1fr; }
  .coach-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .about-visual { min-height: 440px; }
  /* Scrub becomes a native horizontal scroller */
  .scrub { height: auto; }
  .scrub-sticky { position: static; height: auto; overflow: visible; }
  .scrub-track { overflow-x: auto; width: auto; transform: none; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; }
  .scrub-track::-webkit-scrollbar { display: none; }
  .training-card { width: 300px; scroll-snap-align: start; }
  .training-body p { opacity: 1; transform: none; }
  .scrub-progress { display: none; }
  .trainingen { padding-bottom: clamp(5rem, 9vw, 8.5rem); }
  /* Horizontal reveals become vertical so hidden elements never stick out
     past the viewport edge before they animate in */
  .reveal[data-reveal="left"], .reveal[data-reveal="right"] { transform: translateY(40px); }
  .reveal.is-visible { transform: none; }
  .rooster-item:hover { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Header must fit logo + CTA + hamburger inside the 350px container */
  .header-inner { gap: .75rem; }
  .header-actions { gap: .4rem; }
  .header-actions .btn-sm { padding: .6rem .95rem; font-size: .78rem; }
  .logo-text { font-size: 1.15rem; }
  .logo-mark { width: 30px; height: 30px; }
  .hero { padding-top: 2rem; }
  .hero-stats { gap: .75rem; justify-content: space-between; }
  .hero-stats li { flex: 1 1 0; min-width: 0; }
  .hero-stats strong { font-size: 2rem; }
  .hero-stats span { font-size: .76rem; }
  .hero-img-main { width: 78%; }            /* bottom edge ≈ 11% from container bottom */
  .hero-img-small { width: 48%; bottom: 0; }
  .badge-rotate { width: 110px; height: 110px; right: 0; bottom: calc(11% - 60px); border-width: 4px; }
  .badge-ring text { font-size: 19px; }
  .coach-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .rooster-item { grid-template-columns: 64px 1fr; }
  .rooster-item em { display: none; }
  .marquee-track span { font-size: 1.2rem; }
  .about-sticker { width: 96px; height: 96px; }
  .about-sticker span { font-size: 1.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .split-words .word > span { transform: none; }
  .scrub { height: auto; }
  .scrub-sticky { position: static; height: auto; overflow: visible; }
  .scrub-track { overflow-x: auto; width: auto; transform: none; }
}
