/* ============================================================
   ZILLA TRAINING — Main Stylesheet
   Stack: HTML/CSS/JS + GSAP ScrollTrigger
   Design: Premium combat sports gym, Apple/Stripe quality
   ============================================================ */

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --color-red:      #E8181F;
  --color-purple:   #3A2558;
  --color-gold:     #F5B800;
  --color-dark:     #0D0D0D;
  --color-dark-2:   #1A1A1A;
  --color-grey:     #F5F5F5;
  --color-grey-2:   #E8E8E8;
  --color-text:     #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-white:    #FFFFFF;

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1.5rem, 5vw, 4rem);

  /* Nav */
  --nav-height: 80px;
  --nav-height-scrolled: 60px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 700ms;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.20);
  --shadow-gold: 0 8px 32px rgba(245,184,0,0.30);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* Prevent horizontal overflow at html level */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  /* Perf: avoid paint on scroll */
  -webkit-overflow-scrolling: touch;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  /* Eliminates 300ms tap delay on mobile */
  touch-action: manipulation;
}

address { font-style: normal; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-fade-up, .stat, .hero__eyebrow, .hero__headline, .hero__sub, .hero__rating, .hero__ctas, .disc-card, .coach-card, .price-card, .testimonial, .why-card { 
    opacity: 1 !important; 
    transform: none !important; 
  }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-xl);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.section--grey {
  background: var(--color-grey);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-xs);
}

.section__label--light {
  color: var(--color-gold);
}

.section__header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.section__sub {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-inline: auto;
}

.text-red   { color: var(--color-red); }
.text-gold  { color: var(--color-gold); }
.text-white { color: var(--color-white); }

.text-outline {
  -webkit-text-stroke: 1.5px var(--color-white);
  color: transparent;
}
.text-outline.text-red {
  -webkit-text-stroke: 1.5px var(--color-red);
  color: transparent;
}
.text-outline.text-gold {
  -webkit-text-stroke: 1.5px var(--color-gold);
  color: transparent;
}

/* ============================================================
   ANIMATION STATES (GSAP controls these)
   ============================================================ */
.js-fade-up,
.hero__eyebrow,
.hero__headline,
.hero__sub,
.hero__rating,
.hero__ctas,
.disc-card,
.coach-card,
.price-card,
.testimonial,
.why-card {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 100vw;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background var(--duration-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn--lg  { padding: 1.125rem 2.5rem; font-size: 1.125rem; }
.btn--xl  { padding: 1.25rem 3rem; font-size: 1.25rem; }

.btn--gold {
  background: var(--color-gold);
  color: var(--color-dark);
}
.btn--gold:hover {
  box-shadow: var(--shadow-gold);
  background: #FFD000;
}

.btn--outline {
  border: 2px solid var(--color-dark);
  color: var(--color-dark);
  background: transparent;
}
.btn--outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn--ghost {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--color-white);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.btn--ghost-light {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--color-white);
  background: transparent;
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.1);
}

/* Focus styles */
.btn:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--duration-base) var(--ease-out),
              height var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  will-change: height, background;
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.97);
  height: var(--nav-height-scrolled);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Fix for mobile menu clipping when scrolled (due to backdrop-filter/height) */
body.is-nav-open .nav {
  height: 100vh !important;
  height: 100svh !important;
  background: var(--color-dark) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.nav__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Ensure branding area stays at top when menu is open */
body.is-nav-open .nav__inner {
  height: var(--nav-height);
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 40px;
  width: auto;
  transition: height var(--duration-base);
}

.nav.scrolled .nav__logo img {
  height: 32px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.875rem;
  border-radius: 4px;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.nav__cta {
  margin-left: 0.5rem;
  flex-shrink: 0;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown:hover .nav__submenu,
.nav__dropdown:focus-within .nav__submenu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 200px;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.nav__submenu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav__submenu a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  border-radius: 4px;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.nav__submenu a:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.nav__submenu--right {
  left: auto;
  right: 0;
}

.nav__cta-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav__cta-wrap:hover .nav__cta-submenu,
.nav__cta-wrap:focus-within .nav__cta-submenu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
  border-radius: 4px;
}

/* Mobile-only Free Trial CTA inside the overlay — hidden on desktop */
.nav__mobile-cta {
  display: none;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base);
}

.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);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero__video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform;
  /* Ensure the video never bleeds outside the hero */
  clip-path: inset(0);
  background: var(--color-dark);
}

.hero__placeholder {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110vw;
  height: 62vw; /* 16:9 + oversize to fill gaps */
  min-width: 196vh; /* cover tall viewports */
  min-height: 110vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
  /* Contain iframe rendering within hero bounds */
  contain: strict;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  z-index: 2;
}

.hero__video.is-playing .hero__placeholder {
  opacity: 0;
}

.hero__video.is-playing iframe {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,13,13,0.95) 0%,
    rgba(13,13,13,0.80) 50%,
    rgba(58,37,88,0.40) 100%
  );
}

.hero__3d-placeholder {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(300px, 45vw, 800px);
  height: 90%;
  z-index: 2;
  /* Awaiting Nano Banana 3D asset */
  /* background: linear-gradient(135deg, rgba(232,24,31,0.1) 0%, transparent 100%); */
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-block: calc(var(--nav-height) + var(--space-xl)) var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 100vh;
}

.hero__text {
  max-width: 640px;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero__sub {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-md);
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.stars {
  color: var(--color-gold);
  font-size: 1.125rem;
  letter-spacing: 2px;
}

.rating__text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.rating__text strong {
  color: var(--color-white);
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  margin-inline: auto;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
  background: var(--color-red);
  min-height: 8rem; /* Absolute height for consistent design */
  display: flex;
  align-items: center; /* Force vertical centering along horizontal axis */
  padding: 0;
}

.stats__grid {
  display: flex;
  justify-content: center;
  align-items: center; /* Centered */
  gap: 4.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Prevents internal centering if grid cell stretches */
  align-items: center;
  text-align: center;
  height: 100%; /* Ensures it fills grid cell properly for tracking */
}

.stat__top {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
}

.stat__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.stat__suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

.stat__label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 0.25rem;
}

/* ============================================================
   DISCIPLINES
   ============================================================ */
.disciplines__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.disc-card {
  display: flex;
  flex-direction: column;
  border-radius: 32px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.disc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.disc-card:hover .disc-card__img img {
  transform: scale(1.06);
}

.disc-card:hover .disc-card__overlay {
  border-color: var(--color-red);
}

.disc-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.disc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
  background: var(--color-dark);
}

.disc-card__overlay {
  position: absolute;
  inset: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.disc-card__overlay-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1.1;
  text-align: center;
  /* Allow wrapping on small screens to prevent overflow */
  white-space: normal;
  word-break: break-word;
}

.disc-card__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.disc-card__title {
  display: none;
}

.disc-card__text {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.disc-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   WHY ZILLA
   ============================================================ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: var(--space-lg);
}

.why-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background var(--duration-base), border-color var(--duration-base);
}

.why-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(245,184,0,0.3);
}

.why-card__icon {
  margin-inline: auto;
  margin-bottom: 1.25rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card__title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.why-card__text {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.why__usps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-lg);
}

.usp {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
}

.usp__icon {
  flex-shrink: 0;
  color: var(--color-gold);
  font-size: 1rem;
  margin-top: 2px;
}

/* ============================================================
   COACHES
   ============================================================ */
.coaches__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: var(--space-md);
}

.coach-card {
  border-radius: 32px;
  overflow: hidden;
  background: var(--color-grey);
}

.coach-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.coach-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--duration-slow) var(--ease-out);
  background: var(--color-dark-2);
}

.coach-card:hover .coach-card__img img {
  transform: scale(1.05);
}

.coach-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.coach-card:hover .coach-card__overlay {
  opacity: 1;
}

.coach-card__credential {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.coach-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.coach-card__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-dark);
}

.coach-card__role {
  font-size: 0.8125rem;
  color: var(--color-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.coaches__cta {
  text-align: center;
}

/* ============================================================
   TIMETABLE PREVIEW
   ============================================================ */
.timetable__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.625rem 1.5rem;
  border-radius: 4px;
  color: var(--color-text-muted);
  background: var(--color-grey-2);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.tab-btn:hover {
  background: var(--color-dark-2);
  color: var(--color-white);
}

.tab-btn--active {
  background: var(--color-dark);
  color: var(--color-white);
}

.timetable__panels {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.timetable__panel {
  display: none;
}

.timetable__panel--active {
  display: block;
}

.class-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-grey);
  transition: background var(--duration-fast);
}

.class-row:last-child {
  border-bottom: none;
}

.class-row:hover {
  background: var(--color-grey);
}

.class-time {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-red);
}

.class-name {
  font-weight: 600;
  font-size: 1rem;
}

.class-coach {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.timetable__footnote {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.timetable__footnote a:not(.btn) {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-md);
  max-width: 1100px;
  margin-inline: auto;
}

.price-card {
  position: relative;
  border-radius: 32px;
  border: 2px solid var(--color-grey-2);
  padding: 2rem;
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card--featured {
  border-color: var(--color-gold);
  background: var(--color-dark);
  color: var(--color-white);
}

.price-card--featured:hover {
  box-shadow: var(--shadow-gold);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 99px;
  white-space: nowrap;
}

.price-card__header {
  margin-bottom: 1.25rem;
}

.price-card__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.price-card__freq {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.price-card--featured .price-card__freq {
  color: rgba(255,255,255,0.6);
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-grey-2);
}

.price-card--featured .price-card__price {
  border-bottom-color: rgba(255,255,255,0.12);
}

.price-card__amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.price-card__period {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.price-card--featured .price-card__period {
  color: rgba(255,255,255,0.6);
}

.price-card__features {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.price-card__features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
}

.price-card__features li::before {
  content: '✓';
  color: var(--color-red);
  font-weight: 700;
  flex-shrink: 0;
}

.price-card--featured .price-card__features li::before {
  color: var(--color-gold);
}

.price-card__cta {
  width: 100%;
  text-align: center;
}

.price-card--featured .btn--outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--color-white);
}

.price-card--featured .btn--outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.pricing__note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-md);
}

/* Reviews Summary Bar */
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
}

.reviews-summary__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviews-summary__text {
  font-weight: 600;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
}

.reviews-summary__score {
  font-weight: 700;
  color: var(--color-white);
  font-size: 1.125rem;
}

.reviews-summary__stars {
  color: var(--color-gold);
  letter-spacing: 1px;
  font-size: 0.9375rem;
}

.reviews-summary__count {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.reviews-summary__btn {
  margin: 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .reviews-summary {
    flex-direction: column;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    gap: 1rem;
  }
  .reviews-summary__left {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Slider Container */
.testimonials-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-bottom: var(--space-md);
  /* mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); */
  /* -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); */
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scrollReviews 40s linear infinite;
}

.testimonials-track:hover,
.testimonials-track:focus-within,
body.lightbox-open .testimonials-track {
  animation-play-state: paused;
}

.testimonials-slider .testimonial {
  width: 350px;
  flex-shrink: 0;
  white-space: normal;
  opacity: 1;
  transform: none;
}

@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}

@media (max-width: 768px) {
  .testimonials-slider .testimonial {
    width: 300px;
  }
}

.testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 2rem;
}

.testimonial__stars {
  color: var(--color-gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial__text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial__text::before {
  content: open-quote;
  color: var(--color-red);
  font-size: 1.25rem;
}

.testimonial__text::after {
  content: close-quote;
  color: var(--color-red);
  font-size: 1.25rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-grey-2);
}

.testimonial__author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial__author-info strong {
  color: var(--color-white);
  font-size: 0.9375rem;
}

.testimonial__author-info span {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.testimonial__read-more {
  color: var(--color-red);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.25rem;
  transition: color var(--duration-fast);
}

.testimonial__read-more:hover {
  color: var(--color-gold);
}

/* Lightbox */
.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.review-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.review-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.review-lightbox__content {
  position: relative;
  background: var(--color-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 700px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  overflow: hidden; /* Contain the header/footer */
}

.review-lightbox.active .review-lightbox__content {
  transform: translateY(0);
}

.review-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.review-lightbox__close:hover {
  color: var(--color-red);
}

.review-lightbox__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-right: -0.5rem; /* Compensate for padding */
}

/* Custom scrollbar for lightbox body */
.review-lightbox__body::-webkit-scrollbar {
  width: 6px;
}
.review-lightbox__body::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}
.review-lightbox__body::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 10px;
}

.review-lightbox__text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}

.review-lightbox__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.review-lightbox__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-grey-2);
}

.review-lightbox__author {
  color: var(--color-gold);
  font-size: 1rem;
  font-weight: 600;
}

.testimonials__cta {
  text-align: center;
}

/* ============================================================
   FREE TRIAL CTA
   ============================================================ */
.trial-cta {
  position: relative;
  text-align: center;
  background: var(--color-dark);
  overflow: hidden;
}

.trial-cta__bg {
  position: absolute;
  inset: 0;
  background:
    url('../assets/element-22.png') center/cover no-repeat,
    radial-gradient(ellipse at 20% 50%, rgba(232,24,31,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(58,37,88,0.25) 0%, transparent 60%);
  background-blend-mode: overlay;
  opacity: 0.08;
}

.trial-cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.trial-cta__sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  margin-block: var(--space-sm) var(--space-md);
}

.trial-cta__small {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #050505;
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__link-groups {
  display: contents;
}

.footer__brand img {
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 280px;
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.social-link:hover {
  background: var(--color-red);
  transform: translateY(-2px);
}

.social-link svg {
  transition: transform var(--duration-fast) var(--ease-out);
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* Ensure ALL SVG elements (paths, rects, etc) turn white on hover */
.social-link:hover svg path,
.social-link:hover svg rect,
.social-link:hover svg circle {
  fill: var(--color-white) !important;
  stroke: var(--color-white) !important;
}

/* Handle specific cases where fill/stroke should be none */
.social-link:hover svg [fill="none"],
.social-link:hover svg[fill="none"] path,
.social-link:hover svg[fill="none"] rect {
  fill: none !important;
}

.social-link:hover svg [stroke="none"],
.social-link:hover svg[stroke="none"] path,
.social-link:hover svg[stroke="none"] rect {
  stroke: none !important;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__nav a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--duration-fast);
}

.footer__nav a:hover {
  color: var(--color-white);
}

.footer__contact address {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  font-size: 0.9375rem;
}

.footer__contact a {
  color: rgba(255,255,255,0.65);
  transition: color var(--duration-fast);
}

.footer__contact a:hover {
  color: var(--color-gold);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  color: inherit;
  transition: color var(--duration-fast);
}

.footer__legal a:hover {
  color: rgba(255,255,255,0.7);
}


@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer__legal {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .coaches__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
  }

  .hero__3d-placeholder {
    display: none;
  }

  .disciplines__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .why__usps {
    grid-template-columns: repeat(2, 1fr);
  }

  .coaches__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .stats__grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .stats {
    padding-block: 2.5rem; /* Larger, symmetric padding for proportional center axis */
  }

  .stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3vw;
    justify-items: center;
    align-items: flex-start !important; /* Force top-alignment so wrapped lines drop down */
    width: 100%;
  }

  .stats__grid .stat__num,
  .stats__grid .stat__suffix {
    font-size: clamp(1.25rem, 5vw, 1.625rem);
  }

  .stats__grid .stat__label {
    font-size: clamp(0.5rem, 2.2vw, 0.625rem);
    line-height: 1.1;
    white-space: normal;
  }

  /* ── Mobile nav — full-screen overlay ── */
  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--nav-height) + 3rem) var(--container-pad) 4rem;
    margin: 0;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out),
                visibility var(--duration-base) var(--ease-out);
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    text-align: left;
  }

  .nav__menu.nav__menu--open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .nav__logo {
    z-index: 2005;
    position: relative;
    transition: transform var(--duration-base);
  }

  .nav__toggle {
    display: flex;
    z-index: 2005;
    position: relative;
    touch-action: manipulation;
  }

  .nav__menu .nav__link {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 0;
    color: var(--color-white);
    background: none !important;
    text-align: left;
    width: auto;
  }

  .nav__item-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.25rem;
  }

  /* Accordion toggle button */
  .nav__submenu-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav__submenu-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
    color: var(--color-gold);
  }

  /* Kill entire CTA wrap + its submenu on mobile */
  .nav__cta-wrap {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    z-index: -1 !important;
  }

  .nav__cta {
    display: none;
  }

  /* Mobile-only Free Trial button + trial page links */
  .nav__mobile-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 320px;
  }

  .nav__mobile-cta .btn {
    width: 100%;
    text-align: center;
    font-size: 1.125rem;
  }

  .nav__mobile-trial-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
  }

  .nav__mobile-trial-links a {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    padding: 0.25rem 0;
    touch-action: manipulation;
  }

  .nav__mobile-trial-links a:hover {
    color: var(--color-gold);
  }

  /* Classes submenu accordion */
  .nav__menu .nav__dropdown .nav__submenu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transform: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    list-style: none;
    transition: max-height 0.4s var(--ease-out), opacity 0.3s ease, visibility 0.3s ease;
    padding-left: 1rem; /* Indent sub items */
  }

  .nav__menu .nav__dropdown .nav__submenu--open {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
    pointer-events: all;
    margin-bottom: 1.5rem;
  }

  .nav__submenu a {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: none;
    color: rgba(255,255,255,0.6);
    padding: 0.4rem 0;
    touch-action: manipulation;
  }

  /* ── Disciplines index cards — stack vertically ── */
  .disc-card[style*="grid-template-columns: 240px"] {
    grid-template-columns: 1fr !important;
  }

  .disc-card[style*="grid-template-columns: 240px"] > div:first-child {
    min-height: 200px;
  }

  /* ── Pricing cards ── */
  .disciplines__grid {
    grid-template-columns: 1fr;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
  }

  /* ── Hero CTA buttons ── */
  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
    max-width: 320px;
  }

  /* ── Membership "What You Get" grid ── */
  .membership-benefits-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Footer ── */
  .footer {
    padding-top: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
  }

  .footer__tagline {
    text-align: center;
    max-width: 300px;
  }

  .footer__socials {
    justify-content: center;
  }

  /* Two-column link section on mobile */
  .footer__link-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .footer__nav {
    padding-block: 1.25rem;
  }

  .footer__nav:first-child {
    border-right: 1px solid rgba(255,255,255,0.06);
  }

  .footer__contact {
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .footer__heading {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
  }

  .footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .footer__nav a {
    font-size: 0.875rem;
  }

  .footer__contact {
    text-align: center;
  }

  .footer__contact address {
    align-items: center;
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding-block: 1.25rem;
  }

  /* ── Timetable ── */
  .class-row {
    grid-template-columns: 80px 1fr;
    gap: 0.75rem;
  }

  .class-coach {
    grid-column: 2;
    margin-top: -0.5rem;
  }

  .coaches__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 4rem;
  }

  .coaches__grid {
    grid-template-columns: 1fr;
  }

  .why__usps {
    grid-template-columns: 1fr;
  }

  /* Footer even more compact */
  .footer__nav ul {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOCUS / ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 4px;
  z-index: 9999;
  transition: top var(--duration-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.desktop-only { display: none !important; }
@media (min-width: 992px) {
  .desktop-only { display: inline !important; }
}

.mobile-only { display: block !important; }
@media (min-width: 992px) {
  .mobile-only { display: none !important; }
}


/* Image Gallery Slider */
.gallery-section {
  margin: 4rem 0;
}
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
}
.gallery-title-wrapper h3 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  text-transform: uppercase;
}
.gallery-title-wrapper p {
  margin-bottom: 0;
  color: var(--color-grey-dark, #666);
}
.gallery-controls {
  display: flex;
  gap: 1rem;
}
.gallery-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary, #e3000f);
  background: transparent;
  color: var(--color-primary, #e3000f);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-btn:hover,
.gallery-btn:focus {
  background: var(--color-primary, #e3000f);
  color: #fff;
}
.gallery-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-item {
  flex: 0 0 320px;
  height: 240px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Image Lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.image-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}
.image-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
}
.image-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.image-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  padding: 10px;
}
.image-lightbox__prev,
.image-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2;
}
.image-lightbox__prev:hover,
.image-lightbox__next:hover {
  background: var(--color-primary, #e3000f);
}
.image-lightbox__prev {
  left: 20px;
}
.image-lightbox__next {
  right: 20px;
}

@media (max-width: 768px) {
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-item {
    flex: 0 0 260px;
    height: 200px;
  }
  .image-lightbox__content {
    padding: 1rem;
  }
  .image-lightbox__prev {
    left: 10px;
  }
  .image-lightbox__next {
    right: 10px;
  }
}

