/* ============================================================
   JL Castle Fitness Center — Dark Theme
   Dominance: black #0F0D0C > red #E8000D > white #FFFFFF
   ============================================================ */

:root {
  /* Brand red */
  --red:        #E8000D;
  --red-soft:   rgba(232,0,13,.12);
  --red-line:   rgba(232,0,13,.25);
  --red-deep:   #B30009;

  /* Dark surfaces */
  --ink:        #0A0A0A;   /* deepest black — body bg */
  --ink-2:      #141414;   /* cards, nav */
  --ink-3:      #1E1E1E;   /* hover surfaces */
  --ink-4:      #2A2A2A;   /* borders, dividers */

  /* Text */
  --paper:      #F5F2ED;   /* primary text on dark */
  --paper-2:    #C4BCB4;   /* secondary / muted text */
  --paper-3:    #7A706A;   /* very muted */

  /* White — use sparingly */
  --white:      #FFFFFF;
  --line:       rgba(255,255,255,.07);
  --line-2:     rgba(255,255,255,.12);

  /* Type */
  --f-display:  'Bebas Neue', 'Barlow Condensed', sans-serif;
  --f-cond:     'Barlow Condensed', sans-serif;
  --f-body:     'Barlow', system-ui, sans-serif;
  --f-mono:     'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.2);
  --shadow-md:  0 4px 16px rgba(0,0,0,.4),  0 2px 4px rgba(0,0,0,.3);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.5),  0 4px 12px rgba(0,0,0,.4);
  --shadow-red: 0 8px 32px rgba(232,0,13,.35);

  --ease: cubic-bezier(.22,.61,.36,1);
  --nav-h: 92px;
}

[data-density="comfy"]  { --space-scale: 1; }
[data-density="tight"]  { --space-scale: .82; }
[data-density="airy"]   { --space-scale: 1.18; }

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--red); color: #fff; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-weight: 400;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ─── Layout ──────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 980px; }

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--paper   { background: var(--ink); }
.section--paper-2 { background: var(--ink-2); }
.section--ink     { background: var(--red); color: #fff; }

/* ─── Type primitives ─────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--red);
}
.eyebrow--light { color: rgba(255,255,255,.7); }
.eyebrow--light::before { background: var(--red); }

.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: .92;
}
.display--xxl { font-size: clamp(3.2rem, 9vw, 7.2rem); }
.display--xl  { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.display--lg  { font-size: clamp(2rem,   4.5vw, 3.4rem); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--paper-2);
  font-weight: 400;
  max-width: 56ch;
}
.section--ink .lead { color: rgba(255,255,255,.8); }

.kbd {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--ink-2);
  color: var(--paper-2);
}

.mark-red { color: var(--red); }

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .005em;
  border-radius: var(--r-pill);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 1rem; }
.btn--sm { height: 38px; padding: 0 14px; font-size: .85rem; }
.btn--full { width: 100%; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); box-shadow: var(--shadow-red); }

.btn--ink { background: var(--white); color: var(--ink); }
.btn--ink:hover { background: var(--paper); box-shadow: var(--shadow-sm); }

.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }

.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.btn--ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--text { padding: 0; height: auto; background: 0; border: 0; color: var(--paper); }
.btn--text:hover { color: var(--red); }
.btn--text .arr { transition: transform .25s var(--ease); }
.btn--text:hover .arr { transform: translateX(3px); }

/* ─── NAV ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,13,12,.85);
  backdrop-filter: saturate(120%) blur(16px);
  -webkit-backdrop-filter: saturate(120%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  overflow: visible;
}
.nav.is-stuck { border-bottom-color: var(--line-2); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: visible;
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo {
  height: 72px;
  width: auto;
  display: block;
}

/* Nav links */
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: .92rem;
  color: var(--paper-2);
  border-radius: var(--r-pill);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--paper); background: rgba(255,255,255,.06); }
.nav__link.is-active { color: var(--white); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 14px;
  width: 16px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.nav__profile {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  display: grid; place-items: center;
  color: var(--paper);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav__profile:hover { border-color: var(--red); background: var(--ink-3); }

/* Burger */
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  margin-left: auto; /* push to far right when links/actions are hidden on mobile */
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  display: block;
  width: 18px; height: 1.6px;
  background: var(--paper);
  border-radius: 2px;
  position: relative;
}
.nav__burger span::before,
.nav__burger span::after { content: ""; position: absolute; left: 0; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }

/* Mobile sheet — full screen, dark */
.mobile-sheet {
  position: fixed; inset: 0;
  z-index: 60;
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
.mobile-sheet.is-open { transform: translateX(0); }
.mobile-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.mobile-sheet__close {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--ink-3);
  display: grid; place-items: center;
  color: var(--paper);
}
.mobile-sheet__links {
  margin-top: 16px;
  display: flex; flex-direction: column;
}
.mobile-sheet__link {
  font-family: var(--f-display);
  font-size: 2.2rem;
  letter-spacing: .015em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--paper-2);
  transition: color .2s var(--ease);
}
.mobile-sheet__link:hover { color: var(--paper); }
.mobile-sheet__link.is-active { color: var(--red); }
.mobile-sheet__cta { margin-top: auto; display: grid; gap: 10px; }

/* ─── HERO ────────────────────────────────────────── */
.hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 88px);
  position: relative;
  background: var(--ink);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; }
.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  line-height: .9;
  letter-spacing: .005em;
  color: var(--paper);
}
.hero__title span { display: block; }
.hero__title .accent { color: var(--red); position: relative; display: inline-block; }
.hero__title .underline { position: relative; display: inline-block; }
.hero__title .underline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px;
  height: 6px;
  background: var(--red-soft);
  z-index: -1;
  border-radius: 3px;
}

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__meta {
  display: flex; align-items: center; gap: 16px;
  font-size: .9rem; color: var(--paper-2);
}
.hero__avatars { display: flex; }
.hero__avatars .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--ink-4);
  margin-left: -10px;
  position: relative; overflow: hidden;
}
.hero__avatars .av:first-child { margin-left: 0; }
.hero__avatars .av::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 35%, var(--paper-2) 0 22%, transparent 23%),
              radial-gradient(circle at 50% 95%, var(--paper-2) 0 60%, transparent 61%);
}

/* Hero visual */
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: var(--shadow-lg);
}
.hero__visual img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.05) brightness(.9);
}
.hero__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(232,0,13,.08) 0%, rgba(15,13,12,0) 40%, rgba(15,13,12,.5) 100%);
}

/* Floating chips */
.hero__chip {
  position: absolute;
  background: rgba(26,23,20,.92);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  font-size: .88rem;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.hero__chip--tl { top: 24px; left: -16px; }
.hero__chip--br { bottom: 24px; right: -16px; }
.hero__chip .ic {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--red-soft);
  display: grid; place-items: center;
  color: var(--red);
  flex-shrink: 0;
}
.hero__chip strong { display: block; font-weight: 600; font-size: .92rem; color: var(--paper); }
.hero__chip span { color: var(--paper-2); font-size: .8rem; }

/* Stat row */
.stat-row {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--paper);
  line-height: 1;
}
.stat__num small { font-size: .55em; color: var(--red); margin-left: 2px; vertical-align: super; }
.stat__lbl { color: var(--paper-2); font-size: .9rem; }

/* ─── Section heads ──────────────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  margin-bottom: 64px;
}
.section-head--center .eyebrow { justify-self: center; }
.section-head__title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: .95;
  letter-spacing: .005em;
  margin-top: 14px;
  color: var(--paper);
}
.section-head__right { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.section-head--center .section-head__right { align-items: center; }

/* ─── BENEFITS ───────────────────────────────────── */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit {
  background: var(--ink-2);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--red-line); }
.benefit__ic {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--ink-3);
  display: grid; place-items: center;
  color: var(--paper);
  margin-bottom: 20px;
}
.benefit__ic--red { background: var(--red-soft); color: var(--red); }
.benefit h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; color: var(--paper); }
.benefit p { color: var(--paper-2); font-size: .95rem; }

/* ─── PROGRAMS ───────────────────────────────────── */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.program {
  position: relative;
  background: var(--ink-2);
  padding: 32px;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
}
.program:hover { background: var(--ink-3); border-color: var(--red-line); }
.program__ic {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--ink-3);
  display: grid; place-items: center;
  color: var(--paper-2);
  margin-bottom: 28px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.program:hover .program__ic { background: var(--red-soft); color: var(--red); }
.program__tag {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--paper-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.program h3 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  letter-spacing: .01em;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--paper);
}
.program p { color: var(--paper-2); font-size: .95rem; }
.program__meta {
  display: flex; gap: 16px;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--paper-3);
}
.program__meta span { display: flex; align-items: center; gap: 6px; }
.program__arr {
  position: absolute;
  top: 32px; right: 32px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--paper-3);
  transition: all .3s var(--ease);
}
.program:hover .program__arr { background: var(--red); color: #fff; border-color: var(--red); transform: rotate(-45deg); }

/* ─── PLANS ──────────────────────────────────────── */
.plans-toggle {
  display: inline-flex;
  background: var(--ink-3);
  border-radius: var(--r-pill);
  padding: 4px;
  border: 1px solid var(--line-2);
}
.plans-toggle button {
  padding: 8px 18px;
  font-size: .88rem;
  font-weight: 500;
  border-radius: var(--r-pill);
  color: var(--paper-2);
  transition: all .25s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.plans-toggle button.is-active { background: var(--red); color: #fff; }
.plans-toggle .save {
  font-size: .68rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plans--four { grid-template-columns: repeat(4, 1fr); }
.plans--four .plan { padding: 32px 26px; }
.plans--four .plan__price .amt { font-size: 2.8rem; }
.plans--four .plan__name { font-size: 1.25rem; }
.plans--four .plan__feats { font-size: .88rem; gap: 10px; }
@media (max-width: 1100px) {
  .plans--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .plans--four { grid-template-columns: 1fr; }
}
.plan {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.plan:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.plan--featured {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-12px);
  box-shadow: var(--shadow-red);
}
.plan--featured:hover { transform: translateY(-16px); box-shadow: 0 16px 48px rgba(232,0,13,.45); }
.plan__badge {
  position: absolute;
  top: -10px; left: 32px;
  background: var(--white);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan__head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.plan__ic {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--ink-3);
  display: grid; place-items: center;
  color: var(--paper);
}
.plan--featured .plan__ic { background: rgba(255,255,255,.15); color: #fff; }
.plan__name { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: .015em; color: var(--paper); }
.plan--featured .plan__name { color: #fff; }
.plan__price { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 6px; }
.plan__price .amt { font-family: var(--f-display); font-size: 3.4rem; line-height: 1; }
.plan__price .cur {
  font-family: var(--f-display); font-size: 1.4rem;
  color: var(--paper-2); align-self: flex-start; margin-top: 8px;
}
.plan--featured .plan__price .cur { color: rgba(255,255,255,.7); }
.plan__per { color: var(--paper-2); font-size: .9rem; margin-bottom: 22px; }
.plan--featured .plan__per { color: rgba(255,255,255,.7); }
.plan__divider { height: 1px; background: var(--line); margin-bottom: 22px; }
.plan--featured .plan__divider { background: rgba(255,255,255,.2); }
.plan__feats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan__feat { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--paper-2); }
.plan__feat svg { flex-shrink: 0; color: var(--red); margin-top: 3px; }
.plan--featured .plan__feat { color: rgba(255,255,255,.9); }
.plan--featured .plan__feat svg { color: #fff; }
.plan__feat.is-off { color: var(--paper-3); }
.plan__feat.is-off svg { color: var(--paper-3); }
.plan--featured .plan__feat.is-off { color: rgba(255,255,255,.4); }
.plan--featured .plan__feat.is-off svg { color: rgba(255,255,255,.4); }

/* ─── TRAINERS ───────────────────────────────────── */
.trainers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trainer { display: flex; flex-direction: column; gap: 14px; }
.trainer__img {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  background: var(--ink-3);
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.trainer__img-placeholder {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 16px, rgba(255,255,255,.03) 16px 17px),
              linear-gradient(180deg, var(--ink-3), var(--ink-4));
  display: flex; align-items: flex-end; padding: 16px;
  font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .12em; color: var(--paper-3);
}
.trainer__role {
  font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.trainer__name { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: .015em; line-height: 1; color: var(--paper); }
.trainer__bio { color: var(--paper-2); font-size: .9rem; }

/* ─── FACILITIES ─────────────────────────────────── */
.facilities {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 520px;
}
.fac {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 28px;
  color: #fff;
  transition: transform .35s var(--ease);
  border: 1px solid var(--line);
}
.fac:hover { transform: scale(1.01); }
.fac__1 { grid-row: 1 / span 2; background: var(--ink-3); }
.fac__2 { background: var(--ink-3); }
.fac__3 { background: var(--ink-3); }
.fac__4 { background: var(--ink-3); }
.fac__5 { background: var(--ink-3); }
.fac::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.025) 18px 19px);
}
.fac__inner { position: relative; z-index: 2; }
.fac__num { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; opacity: .7; margin-bottom: 8px; color: #fff; }
.fac__name { font-family: var(--f-display); font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: .01em; line-height: 1; color: #fff; }
.fac__sub { font-size: .88rem; opacity: .78; margin-top: 6px; color: #fff; }

/* ─── TESTIMONIALS ───────────────────────────────── */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
  transition: border-color .3s var(--ease);
}
.testi:hover { border-color: var(--red-line); }
.testi__stars { display: flex; gap: 2px; color: var(--red); }
.testi__quote { font-size: 1.05rem; line-height: 1.5; color: var(--paper); text-wrap: pretty; }
.testi__person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi__av {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1rem; color: var(--red);
}
.testi__name { font-weight: 600; font-size: .95rem; color: var(--paper); }
.testi__role { font-size: .82rem; color: var(--paper-2); }

/* ─── FAQ ────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; text-align: left;
  font-size: 1.05rem; font-weight: 500;
  color: var(--paper);
  transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--red); }
.faq__plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: all .3s var(--ease);
  flex-shrink: 0; margin-left: 16px;
  color: var(--paper-2);
}
.faq__item.is-open .faq__plus { background: var(--red); color: #fff; border-color: var(--red); transform: rotate(45deg); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease), padding .35s var(--ease);
  color: var(--paper-2);
  padding-right: 64px;
}
.faq__item.is-open .faq__a { max-height: 240px; padding-bottom: 22px; }

/* ─── CONTACT (section--ink = red bg) ───────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 24px; }
.contact__row { display: flex; gap: 16px; align-items: flex-start; }
.contact__ic {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.contact__lbl { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.contact__val { font-size: 1.05rem; color: #fff; }
.contact__val a:hover { color: rgba(255,255,255,.7); text-decoration: underline; }

.contact__form {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 36px;
  border: 1px solid var(--line-2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .82rem; font-weight: 500; color: var(--paper-2); }
.field input,
.field select,
.field textarea {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: .95rem;
  color: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--paper-3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0; border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.field textarea { resize: vertical; min-height: 96px; }
.field--error input,
.field--error select,
.field--error textarea { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field__err { font-size: .78rem; color: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  font-size: .85rem; color: var(--paper-2);
  transition: all .2s var(--ease); cursor: pointer;
}
.chip:hover { border-color: var(--red-line); color: var(--paper); }
.chip.is-active { background: var(--red); color: #fff; border-color: var(--red); }

.success-flash {
  background: var(--red-soft);
  color: var(--red);
  border-radius: var(--r-md);
  padding: 14px 18px; font-size: .92rem;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  border: 1px solid var(--red-line);
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--ink-2);
  color: var(--paper);
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__col h4 {
  font-family: var(--f-cond);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: 18px; font-weight: 600;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--paper-2); font-size: .95rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--red); }
.footer__col span { color: var(--paper-3); font-size: .95rem; }
.footer__intro p { color: var(--paper-2); font-size: .95rem; margin-top: 16px; max-width: 32ch; line-height: 1.6; }
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--ink-3);
  display: grid; place-items: center;
  color: var(--paper-2);
  transition: all .2s var(--ease);
}
.footer__social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--paper-3);
  flex-wrap: wrap; gap: 12px;
}

/* ─── DASHBOARD ──────────────────────────────────── */
.db { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); }
.db__side {
  background: var(--ink-2);
  border-right: 1px solid var(--line);
  padding: 28px 16px;
}
.db__nav { display: flex; flex-direction: column; gap: 2px; }
.db__nav button {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: .92rem; color: var(--paper-2); text-align: left; width: 100%;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.db__nav button:hover { background: var(--ink-3); color: var(--paper); }
.db__nav button.is-active { background: var(--red); color: #fff; }
.db__main { padding: 32px clamp(20px, 4vw, 48px); }
.db__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.db__title { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--paper); }
.db__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.db__card {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  transition: border-color .2s var(--ease);
}
.db__card:hover { border-color: var(--red-line); }
.db__card-lbl { font-size: .82rem; color: var(--paper-2); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.db__card-val { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--paper); }
.db__card-delta { font-size: .78rem; color: var(--red); margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.db__split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.db__panel {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
}
.db__panel h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--paper); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 16px; }
.bar {
  flex: 1; background: var(--ink-3);
  border-radius: 6px 6px 0 0; position: relative;
  transition: background .25s var(--ease);
}
.bar:hover { background: var(--red); }
.bar::after {
  content: attr(data-day);
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); margin-top: 6px;
  font-size: .72rem; color: var(--paper-3);
}
.bar.is-today { background: var(--red); }
.bar.is-today:hover { background: var(--red-deep); }

.upnext { display: flex; flex-direction: column; gap: 10px; }
.upnext__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--r-sm); background: var(--ink-3);
}
.upnext__time { font-family: var(--f-mono); font-size: .82rem; color: var(--paper-3); width: 56px; flex-shrink: 0; }
.upnext__name { font-weight: 500; font-size: .92rem; color: var(--paper); }
.upnext__cls { font-size: .78rem; color: var(--paper-2); }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 960px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 540px; margin: 0 auto; }
  .hero__chip--tl, .hero__chip--br { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .programs { grid-template-columns: 1fr; gap: 2px; }
  .plans { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-3px); }
  .trainers { grid-template-columns: repeat(2, 1fr); }
  .facilities { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: auto; }
  .fac__1 { grid-row: auto; grid-column: 1 / -1; min-height: 220px; }
  .fac { min-height: 180px; }
  .testis { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .db { grid-template-columns: 1fr; }
  .db__side { display: none; }
  .db__cards { grid-template-columns: 1fr 1fr; }
  .db__split { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .social-cards { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .benefits { grid-template-columns: 1fr; }
  .trainers { grid-template-columns: 1fr; }
  .facilities { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .contact__form { padding: 24px; }
  .nav__inner { gap: 12px; }
  .brand__logo { height: 52px; }
  .values-grid { grid-template-columns: 1fr !important; }
  .social-cards { grid-template-columns: 1fr !important; }
}

/* Tweak: hide floating chips */
.hide-floating-chips .hero__chip { display: none; }

/* ─── Reveal animation ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Page transitions */
.page-fade { animation: pageFade .45s var(--ease); }
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════════
   HERO SPLIT — photo bg + content overlay
   ════════════════════════════════════════════════════════════ */
.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* ── Background photo ─────────────────────────────────── */
.hero-split__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-split__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-split__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,  rgba(10,8,8,.75) 0%, rgba(10,8,8,.2) 42%, rgba(10,8,8,.04) 55%, rgba(10,8,8,.68) 100%),
    linear-gradient(to top,    rgba(10,8,8,.55) 0%, transparent 35%);
}

/* ── Page mini-hero — Programas / Membresías / Nosotros ──
   Same idea as .hero-split but shorter; one banner photo
   per page with a left-heavy dark gradient so the title
   stays legible regardless of what the photo shows. ── */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 64px 0;
}
.page-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(10,8,8,.9) 0%, rgba(10,8,8,.62) 38%, rgba(10,8,8,.22) 65%, rgba(10,8,8,.4) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}
@media (max-width: 760px) {
  .page-hero {
    min-height: 440px;
    padding: 0;
    align-items: flex-end; /* text sits at the bottom */
  }
  .page-hero__photo img {
    object-position: var(--mobile-pos, right) top;
  }
  .page-hero__img--custom {
    object-position: var(--mobile-pos) top;
  }
  .page-hero__overlay {
    /* dark at bottom where text is, transparent at top where image shows */
    background: linear-gradient(to top,
      rgba(10,8,8,.96) 0%,
      rgba(10,8,8,.75) 40%,
      rgba(10,8,8,.2)  70%,
      rgba(10,8,8,.05) 100%);
  }
  .page-hero__content {
    padding-bottom: 36px;
  }
}

/* ── Left — text block ────────────────────────────────── */
.hero-split__left {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 72px) clamp(20px, 4vw, 48px) 80px clamp(24px, 6vw, 88px);
}

.hero-split__title {
  font-family: var(--f-display);
  font-size: clamp(4.8rem, 9.5vw, 9rem);
  line-height: .86;
  letter-spacing: .01em;
  color: #fff;
  margin: 16px 0 28px;
}
.hero-split__title span { display: block; }
.hero-split__title-accent { color: var(--red); }

.hero-split__lead {
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  color: rgba(255,255,255,.78);
  max-width: 38ch;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-split__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Right — stats + badge ────────────────────────────── */
.hero-split__right {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 48px) clamp(24px, 6vw, 88px) 80px clamp(20px, 4vw, 48px);
  gap: 32px;
}

.hero-split__stats { display: flex; flex-direction: column; gap: 28px; align-items: flex-end; }
.hero-split__stat { text-align: right; }
.hero-split__stat-num {
  font-family: var(--f-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1; color: #fff;
  position: relative; display: inline-block;
}
.hero-split__stat-num::after {
  content: '';
  position: absolute; bottom: -4px; right: 0;
  width: 40%; height: 3px;
  background: var(--red); border-radius: 2px;
}
.hero-split__stat-lbl {
  font-family: var(--f-cond);
  font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  margin-top: 10px; display: block;
}

.hero-split__badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(15,13,12,.55);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); padding: 14px 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.hero-split__badge-ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--red); display: grid; place-items: center;
  color: #fff; flex-shrink: 0;
}
.hero-split__badge-t { font-weight: 600; font-size: .92rem; color: #fff; }
.hero-split__badge-s { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 2px; }

/* ── Bottom bar ───────────────────────────────────────── */
.hero-split__bar {
  position: relative; z-index: 2;
  grid-column: 1 / -1; grid-row: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap; padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(10,8,8,.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--f-cond); font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45);
}
.hero-split__bar-dot { color: var(--red); font-size: 1.1rem; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; min-height: 100svh; }
  .hero-split__left  { grid-column:1; grid-row:1; padding: calc(var(--nav-h)+40px) 28px 40px; }
  .hero-split__right { grid-column:1; grid-row:2; align-items:flex-start; padding: 0 28px 48px; gap:20px; }
  .hero-split__stats { flex-direction: row; flex-wrap: wrap; gap: 16px 28px; }
  .hero-split__stat  { text-align: left; }
  .hero-split__stat-num::after { right: auto; left: 0; }
  .hero-split__title { font-size: clamp(3.6rem,13vw,6rem); }
  .hero-split__badge { align-self: flex-start; }
  .hero-split__vignette {
    background:
      linear-gradient(to right, rgba(10,8,8,.82) 0%, rgba(10,8,8,.6) 100%),
      linear-gradient(to top,   rgba(10,8,8,.6)  0%, transparent 50%);
  }
}
@media (max-width: 500px) {
  .hero-split__left  { padding-left: 24px; padding-right: 24px; }
  .hero-split__right { padding-left: 24px; padding-right: 24px; }
  .hero-split__title { font-size: clamp(3rem,13.5vw,4.6rem); margin: 14px 0 22px; }
  .hero-split__lead  { font-size: .92rem; max-width: none; }
  .hero-split__bar   { gap:12px; font-size:.7rem; letter-spacing:.12em; }
  .hero-split__badge { display: none; }
}
@media (max-width: 360px) {
  .hero-split__left  { padding-left: 20px; padding-right: 20px; }
  .hero-split__right { padding-left: 20px; padding-right: 20px; }
  .hero-split__title { font-size: clamp(2.6rem,13vw,4rem); }
}

/* ─── Trainers photo section responsive ──────────── */
@media (max-width: 760px) {
  /* Collapse two-col to one — let photo fill, text on top */
  .trainers-overlay-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Facilities card glow ───────────────────────── */
.fac {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.fac:hover {
  transform: scale(1.015);
  box-shadow:
    0 0 0 1px rgba(232,0,13,.35),
    0 12px 48px rgba(232,0,13,.22),
    0 0 80px rgba(232,0,13,.1);
  z-index: 2;
}
.fac::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 100%, rgba(232,0,13,.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.fac:hover::before { opacity: 1; }

/* ─── Videos section responsive ─────────────────── */
@media (max-width: 760px) {
  .video-grid-3 {
    grid-template-columns: 1fr !important;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─── Autofill override — global ────────────────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--paper, #F6F3EE) !important;
  -webkit-box-shadow: 0 0 0 1000px #141414 inset !important;
  box-shadow: 0 0 0 1000px #141414 inset !important;
  caret-color: #F6F3EE;
  transition: background-color 99999s ease-in-out 0s !important;
}
input, select, textarea {
  color-scheme: dark;
  background-color: var(--ink-3, #1A1714);
  color: var(--paper, #F6F3EE);
}

/* ─── Mode toggle: Presencial / Online — BIG & visible ── */
.mode-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0 36px;
}
.mode-toggle {
  position: relative;
  display: inline-flex;
  background: var(--ink-3);
  border: 2px solid var(--red-line);
  border-radius: var(--r-pill);
  padding: 6px;
  box-shadow: 0 0 0 6px rgba(232,0,13,.06), 0 8px 28px rgba(0,0,0,.25);
}
.mode-toggle button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--f-cond);
  letter-spacing: .04em;
  border-radius: var(--r-pill);
  color: var(--paper-2);
  transition: color .3s var(--ease);
  background: transparent;
  cursor: pointer;
}
.mode-toggle button.is-active { color: #fff; }
.mode-toggle__glide {
  position: absolute;
  top: 6px; left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: var(--red);
  border-radius: var(--r-pill);
  box-shadow: 0 4px 16px rgba(232,0,13,.5);
  transition: transform .35s var(--ease);
  z-index: 1;
}
.mode-toggle__glide.is-right { transform: translateX(100%); }

@media (max-width: 480px) {
  .mode-toggle button { padding: 12px 18px; font-size: .88rem; gap: 6px; }
}

/* Online plans — 3 columns */
.plans--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .plans--three { grid-template-columns: 1fr; }
}

/* ── Product detail modal ───────────────────────── */
@media (max-width: 640px) {
  .product-modal {
    flex-direction: column !important;
    max-height: 92vh;
    overflow-y: auto;
  }
  .product-modal > div:first-child {
    flex: 0 0 auto !important;
    min-height: 260px !important;
  }
}

/* ── Gallery masonry grid ──────────────────────── */
:root { --gallery-cols: 3; }
@media (max-width: 900px) { :root { --gallery-cols: 2; } }
@media (max-width: 560px) { :root { --gallery-cols: 2; } }

/* ── Showreel section ───────────────────────────── */
@keyframes showreel-pulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1);   opacity:.6; }
  50%       { transform: translate(-50%,-50%) scale(1.35); opacity:0; }
}
@media (max-width: 680px) {
  .showreel-header { grid-template-columns: 1fr !important; }
}