/* ================================================
   RENZO GRACIE WEST BOCA RATON - LANDING PAGE
   Blue theme / Better contrast / Scroll animations / Carousel
   ================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0f1318;
  --color-surface: #181d25;
  --color-surface-2: #1e2530;
  --color-gray-700: #4a5568;
  --color-gray-500: #8a95a5;
  --color-gray-300: #c5cdd8;
  --color-gray-100: #edf0f4;
  --color-white: #ffffff;
  --color-accent: #4a90d9;
  --color-accent-light: #6aabf0;
  --color-accent-dark: #3570b0;
  --color-accent-glow: rgba(74, 144, 217, 0.25);

  --font-primary: 'Montserrat', sans-serif;
  --font-display: 'Oswald', sans-serif;

  --container-max: 1200px;
  --section-padding: 100px 0;
  --transition: 0.3s ease;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--color-white);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out,
              transform 0.5s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Stagger children in grids */
.programs-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.programs-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.programs-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.programs-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.programs-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

.amenities-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.amenities-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.amenities-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.amenities-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.amenities-grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.amenities-grid .reveal:nth-child(7) { transition-delay: 0.36s; }
.amenities-grid .reveal:nth-child(8) { transition-delay: 0.42s; }
.amenities-grid .reveal:nth-child(9) { transition-delay: 0.48s; }

/* Hero entrance animations */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Section Labels --- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-label--gold {
  color: #d4a843;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--color-gray-300);
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-closing {
  font-size: 1.05rem;
  color: var(--color-gray-300);
  text-align: center;
  max-width: 700px;
  margin: 40px auto 30px;
  font-style: italic;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.15;
  text-transform: uppercase;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 0.9rem;
}

/* ================================================
   HEADER
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  contain: layout style;
}

.header--scrolled {
  background: rgba(15, 19, 24, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

.header--scrolled .logo-img {
  height: 80px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gray-300);
  transition: color var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav a:hover {
  color: var(--color-accent-light);
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  transition: all var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-accent-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--color-accent-glow);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.35s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Nav overlay for mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
}

/* ================================================
   HERO - Image right, text left (like reference)
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
  overflow: hidden;
}

/* Image positioned on the right half */
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 65%;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* Gradient: fade image into dark background on left */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      var(--color-bg) 0%,
      rgba(15, 19, 24, 0.7) 25%,
      rgba(15, 19, 24, 0.2) 50%,
      transparent 70%
    ),
    linear-gradient(to top, var(--color-bg) 0%, transparent 15%),
    linear-gradient(to bottom, var(--color-bg) 0%, transparent 10%);
  pointer-events: none;
}

/* Text content - left aligned, ~55% width */
.hero-content {
  position: relative;
  z-index: 2;
  width: 55%;
  padding: 140px 40px 100px max(32px, calc((100vw - 1200px) / 2 + 24px));
  box-sizing: content-box;
  max-width: 660px;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--color-white);
  text-transform: uppercase;
}

.hero h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--color-accent-light);
}

.hero-sub {
  font-size: 1rem;
  color: var(--color-gray-300);
  line-height: 1.9;
  margin-bottom: 36px;
}

/* ================================================
   FOUNDING MEMBER
   ================================================ */
.founding {
  position: relative;
  padding: var(--section-padding);
  background-color: var(--color-surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.founding::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--color-bg) 0%, rgba(15, 19, 24, 0.75) 35%, rgba(15, 19, 24, 0.82) 100%);
  z-index: 0;
}

.founding-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.founding h2 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.founding p {
  font-size: 1.05rem;
  color: var(--color-gray-300);
  margin-bottom: 18px;
  line-height: 1.8;
}

.founding .btn {
  margin-top: 16px;
}

/* ================================================
   FEATURED PROGRAMS (Kids, Women, Accessibility)
   ================================================ */
/* ================================================
   PROGRAMS HEADER
   ================================================ */
.programs-header {
  padding: 80px 0 0;
  background: var(--color-bg);
  text-align: center;
  contain: layout style;
}

.programs-header .btn-outline {
  margin-top: 24px;
  border: 1px solid rgba(74, 144, 217, 0.4);
  color: var(--color-accent);
  padding: 10px 36px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.programs-header .btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.featured-program {
  padding: 60px 0 80px;
  background: var(--color-bg);
}

.fp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.fp-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  position: relative;
}

.fp-photo {
  overflow: hidden;
  border-radius: var(--radius);
}

.fp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-photo--main {
  grid-column: 1 / -1;
  aspect-ratio: 16/10;
}

.fp-photo--secondary {
  aspect-ratio: 3/4;
}

.fp-photo--tertiary {
  aspect-ratio: 3/4;
}

.fp-content .section-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.fp-content h2 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 1px;
}

.fp-content p {
  color: var(--color-gray-300);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.fp-content .btn {
  margin-top: 12px;
}

.fp-btn-mobile {
  display: none;
}

/* Single photo variant (e.g. Women's Mat) */
.fp-photo-single {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
}

.fp-photo-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-photo-single--portrait {
  aspect-ratio: 3/4;
  max-width: 480px;
}

/* Alternate layout: photos right, text left */
.featured-program:nth-child(even) .fp-inner {
  direction: rtl;
}

.featured-program:nth-child(even) .fp-inner > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .programs-header {
    padding: 60px 0 0;
  }

  .featured-program {
    padding: 40px 0 60px;
  }

  .fp-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .fp-content {
    order: 1;
    text-align: center;
  }

  .fp-photos,
  .fp-photo-single {
    order: 2;
  }

  .fp-content .fp-btn {
    display: none;
  }

  .fp-btn-mobile {
    display: block;
    order: 3;
    text-align: center;
  }

  .fp-content .section-label {
    display: inline-block;
  }
}

/* ================================================
   PROGRAMS
   ================================================ */
.programs {
  padding: 0 0 var(--section-padding);
  background: var(--color-bg);
  text-align: center;
  contain: layout style;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.program-card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  border-color: rgba(74, 144, 217, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.program-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  color: var(--color-accent);
}

.program-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-white);
}

.program-card p {
  font-size: 0.88rem;
  color: var(--color-gray-500);
  line-height: 1.7;
}

.programs-extras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-gray-300);
}

.extra-check {
  color: #d4a843;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ================================================
   ABOUT
   ================================================ */
.about {
  padding: var(--section-padding);
  background: var(--color-surface);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 24px 56px;
  align-items: start;
}

.about-heading {
  grid-column: 1;
  grid-row: 1;
}

.about-text {
  grid-column: 1;
  grid-row: 2;
}

.about-image {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(74, 144, 217, 0.15);
  aspect-ratio: 4/5;
}

.about-heading .section-label {
  display: block;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--color-accent-light);
  font-weight: 500;
  margin-bottom: 14px;
}

.about-text p {
  color: var(--color-gray-300);
  margin-bottom: 14px;
  font-size: 1rem;
}

.about-text .btn {
  margin-top: 14px;
}

.about-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center bottom;
  border: none;
  border-radius: 0;
  display: block;
}

/* ================================================
   INSTRUCTORS
   ================================================ */
.instructors {
  padding: var(--section-padding);
  background: var(--color-bg);
  text-align: center;
}

.instructor-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
  text-align: left;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 40px;
  margin-top: 36px;
}

.instructor-card--featured {
  border-color: rgba(74, 144, 217, 0.2);
  background: linear-gradient(135deg, var(--color-surface), rgba(74, 144, 217, 0.03));
}

.instructor-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 60%;
  border: 1px solid rgba(74, 144, 217, 0.12);
  border-radius: var(--radius);
}

.instructor-belt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(74, 144, 217, 0.1);
  padding: 6px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.belt-icon {
  width: 48px;
  height: 12px;
  flex-shrink: 0;
}

.instructor-belt--coral {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.12);
}

.instructor-belt--black {
  color: #ccc;
  background: rgba(255, 255, 255, 0.08);
}

.instructor-info h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 18px;
  color: var(--color-white);
}

.instructor-info p {
  color: var(--color-gray-300);
  font-size: 0.92rem;
  margin-bottom: 12px;
  line-height: 1.8;
}

/* ================================================
   ACADEMY
   ================================================ */
.academy {
  padding: var(--section-padding);
  background: var(--color-surface);
  text-align: center;
  contain: layout style;
}

/* Gallery - Grid on desktop */
.gallery-wrapper {
  margin-bottom: 56px;
}

.gallery {
  overflow: hidden;
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Gallery dots (mobile only) */
.gallery-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-gray-700);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.gallery-dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 10px;
  text-align: left;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-gray-300);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease;
}

.amenity:hover {
  border-color: rgba(212, 168, 67, 0.2);
}

.amenity-icon {
  color: #d4a843;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ================================================
   POPUP MODAL
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--color-surface);
  border: 1px solid rgba(74, 144, 217, 0.15);
  border-radius: 16px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-gray-500);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
  padding: 4px;
}

.modal-close:hover {
  color: var(--color-white);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  margin-bottom: 28px;
  line-height: 1.6;
}

.modal-form-wrapper {
  min-height: 200px;
}

/* Native GymDesk form styles */
.gd-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gd-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray-300);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gd-field label small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--color-gray-500);
}

.gd-field input,
.gd-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-white);
  font-size: 0.95rem;
  font-family: var(--font-primary);
  transition: border-color var(--transition), background var(--transition);
}

.gd-field input::placeholder,
.gd-field textarea::placeholder {
  color: var(--color-gray-600);
}

.gd-field input:focus,
.gd-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(74, 144, 217, 0.06);
}

.gd-field textarea {
  resize: vertical;
  min-height: 80px;
}

.gd-submit {
  margin-top: 4px;
  cursor: pointer;
}

.gd-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.gd-success {
  text-align: center;
  padding: 40px 20px;
}

.gd-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.gd-success p {
  color: var(--color-gray-300);
  line-height: 1.7;
}

/* ================================================
   CONTACT / CTA SECTION
   ================================================ */
.contact {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
  border-top: 1px solid rgba(74, 144, 217, 0.08);
}

.contact-inner-centered {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner-centered h2 {
  color: var(--color-accent-light);
}

.contact-desc {
  color: var(--color-gray-300);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  padding: 44px 0;
  background: var(--color-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--color-gray-500);
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gray-500);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--color-gray-700);
}

/* ================================================
   RESPONSIVE - TABLET
   ================================================ */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instructor-card {
    grid-template-columns: 260px 1fr;
    padding: 32px;
    gap: 32px;
  }

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

  .gallery-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 56px 0;
  }

  /* Kill stagger delays on mobile — too many simultaneous compositing layers */
  .programs-grid .reveal,
  .amenities-grid .reveal {
    transition-delay: 0s !important;
  }

  /* Disable hover effects on touch devices */
  .program-card:hover,
  .amenity:hover,
  .gallery-item:hover img,
  .btn-primary:hover,
  .btn-outline:hover {
    transform: none;
    box-shadow: none;
  }

  .container {
    padding: 0 16px;
  }

  /* Mobile Nav */
  .menu-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-overlay.active {
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 28px;
    gap: 20px;
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav--open {
    right: 0;
  }

  .nav a {
    font-size: 0.9rem;
    padding: 8px 0;
    width: 100%;
  }

  .nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
    width: 100% !important;
    display: block !important;
  }

  /* Logo mobile */
  .logo-img {
    height: 70px;
  }

  .header--scrolled .logo-img {
    height: 60px;
  }

  /* Hero mobile - stacked: image top, text bottom */
  .hero {
    flex-direction: column;
    min-height: auto;
    align-items: stretch;
  }

  .hero-bg {
    position: relative;
    width: 100%;
    height: 55vh;
    flex-shrink: 0;
  }

  .hero-bg-img {
    object-position: center 55%;
  }

  .hero-bg::after {
    background:
      linear-gradient(to top, var(--color-bg) 8%, rgba(15,19,24,0.4) 50%, transparent 80%),
      linear-gradient(to bottom, rgba(15,19,24,0.8) 0%, transparent 20%);
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 20px 40px;
    margin-top: -48px;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.7;
  }

  .hero-tag {
    font-size: 0.68rem;
    letter-spacing: 3px;
    margin-bottom: 14px;
  }

  .btn {
    padding: 15px 28px;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-lg {
    padding: 16px 32px;
    font-size: 0.82rem;
  }

  .btn:active {
    opacity: 0.85;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .section-intro {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  /* Founding */
  .founding {
    border-top: none;
    border-bottom: none;
  }

  .founding p {
    font-size: 0.95rem;
  }

  /* Programs */
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .program-card {
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .programs-extras {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 0 4px;
  }

  .extra-item {
    font-size: 0.88rem;
  }

  /* About */
  .about-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .about-heading {
    order: 1;
    text-align: center;
  }

  .about-image {
    order: 2;
    aspect-ratio: 16/10;
    width: 100%;
  }

  .about-img {
    position: relative;
    height: auto;
    width: 100%;
  }

  .about-text {
    order: 3;
    text-align: center;
  }

  .about-text p {
    font-size: 0.92rem;
  }

  /* Instructors */
  .instructor-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .instructor-img {
    aspect-ratio: 3/4;
    max-height: none;
    width: 100%;
  }

  .instructor-info h3 {
    font-size: 1.3rem;
  }

  .instructor-info p {
    font-size: 0.86rem;
    line-height: 1.7;
  }

  /* Gallery - Native scroll carousel */
  .gallery {
    overflow: visible;
  }

  .gallery-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }

  .gallery-track::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    width: 85%;
    flex-shrink: 0;
    aspect-ratio: 4/3;
    scroll-snap-align: center;
  }

  .gallery-dots {
    display: flex;
  }

  /* Amenities */
  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .amenity {
    font-size: 0.88rem;
    padding: 12px 14px;
  }

  /* Contact */
  .contact-desc {
    font-size: 0.92rem;
  }

  /* Modal */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.8);
  }

  .modal-content {
    padding: 28px 20px 32px;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    max-width: 100%;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  /* Footer */
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .footer-links a {
    font-size: 0.72rem;
  }
}

/* ================================================
   RESPONSIVE - SMALL MOBILE
   ================================================ */
@media (max-width: 380px) {
  :root {
    --section-padding: 48px 0;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero-sub {
    font-size: 0.84rem;
  }

  .hero-bg {
    height: 48vh;
  }

  .logo-img {
    height: 60px;
  }

  .instructor-card {
    padding: 16px;
  }

  .program-card {
    padding: 22px 16px;
  }

  .founding h2 {
    font-size: 1.5rem;
  }

  .section-closing {
    font-size: 0.9rem;
  }
}
