/* ============================================
   VANGUARD ACADEMY JIU-JITSU
   Design System & Styles
   ============================================ */

/* --- Rockstar Font --- */
@font-face {
  font-family: 'Rockstar';
  src: url('../fonts/Rockstar.otf') format('opentype'),
       url('../fonts/Rockstar.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rockstar';
  src: url('../fonts/Rockstar-Bold.otf') format('opentype'),
       url('../fonts/Rockstar-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rockstar';
  src: url('../fonts/Rockstar-ExtraBold.otf') format('opentype'),
       url('../fonts/Rockstar-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #060606;
  --color-surface: #111111;
  --color-surface-2: #181818;
  --color-surface-3: #1f1f1f;
  --color-border: #252525;
  --color-border-light: #333333;
  --color-text: #f0f0f0;
  --color-text-secondary: #999999;
  --color-text-muted: #666666;
  --color-accent: #2576d1;
  --color-accent-hover: #3a8ee6;
  --color-accent-dark: #1c5faa;
  --color-accent-glow: rgba(37, 118, 209, 0.25);
  --color-white: #ffffff;
  --color-success: #22c55e;
  --color-danger: #ef4444;

  --font-display: 'Rockstar', 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --container-max: 1280px;
  --container-padding: clamp(1rem, 4vw, 2rem);
  --nav-height: 80px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Noise Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
}
.section--dark { background: var(--color-bg-alt); }
.section--surface { background: var(--color-surface); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.nav--scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav__container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
  z-index: 1001;
}
.nav__logo-icon {
  height: 38px;
  width: auto;
}
.nav__logo-wordmark {
  height: 18px;
  width: auto;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-white);
}
.nav__logo-sub {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-top: 1px;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active {
  color: var(--color-white);
  background: rgba(255,255,255,0.05);
}
.nav__cta {
  flex-shrink: 0;
}

/* Mobile Nav Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 1001;
  border-radius: var(--radius-sm);
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out-expo);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 0 0 0 var(--color-accent-glow);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -8px var(--color-accent-glow), 0 0 0 1px rgba(37, 118, 209, 0.3);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  border: 1px solid var(--color-border-light);
  color: var(--color-text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(37, 118, 209, 0.08);
}
.btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn--full { width: 100%; }
.btn--ghost {
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
}
.btn--ghost:hover { color: var(--color-white); }

/* --- Hero --- */
.hero {
  min-height: 100vh; /* fallback */
  min-height: 100svh; /* avoids iOS address-bar jump */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(37, 118, 209, 0.08), transparent 70%),
    linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.65) 50%, rgba(10,10,10,0.4) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.2) 60%, var(--color-bg) 100%);
  z-index: 1;
}
.hero__bg-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}
.hero__bg-image--gradient {
  width: 100%; height: 100%;
  opacity: 0.25;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero__label {
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--color-accent);
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 span { color: var(--color-accent); }
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Credential Bar --- */
.credential-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.credential-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.credential-bar__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}
.credential-bar__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header--center { text-align: center; }
.section-header--center .section-header__line { margin: 0 auto; }
.section-header .label { margin-bottom: 1rem; display: block; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--color-text-secondary);
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.section-header--center p { margin: 0 auto; }
.section-header__line {
  width: 48px; height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 1.5rem;
}

/* --- Program Cards --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}
.program-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.5s var(--ease-out-expo);
}
.program-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.program-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo), filter 0.6s ease;
  filter: brightness(0.7) saturate(0.9);
}
.program-card:hover .program-card__image img {
  transform: scale(1.05);
  filter: brightness(0.85) saturate(1);
}
.program-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--color-surface) 0%, transparent 50%);
  pointer-events: none;
}
.program-card__body {
  padding: 1.5rem 2rem 2rem;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}
.program-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 118, 209, 0.3);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}
.program-card:hover::before { transform: scaleX(1); }
.program-card__icon {
  display: none;
}
.program-card--no-image .program-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(37, 118, 209, 0.1);
  border: 1px solid rgba(37, 118, 209, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.program-card h3 { margin-bottom: 0.75rem; }
.program-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.program-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}
.program-card__link:hover { gap: 0.75rem; }

/* --- Value Props --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
}
.value-item {
  display: flex;
  gap: 1.25rem;
}
.value-item__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(37, 118, 209, 0.15);
  line-height: 1;
  flex-shrink: 0;
}
.value-item h4 { margin-bottom: 0.5rem; }
.value-item p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Instructor Cards --- */
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 1.5rem;
}
.instructor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}
.instructor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px -24px rgba(0,0,0,0.6);
}
.instructor-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-surface-2);
  position: relative;
  overflow: hidden;
}
.instructor-card__image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-surface-2), var(--color-surface-3));
  position: relative;
}
.instructor-card__image-placeholder::after {
  content: '';
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(37, 118, 209, 0.08);
  border: 2px solid rgba(37, 118, 209, 0.15);
}
.instructor-card__image-placeholder svg {
  position: absolute;
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
  opacity: 0.4;
}
.instructor-card__info {
  padding: 1.5rem;
}
.instructor-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.instructor-card__role {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.instructor-card__excerpt {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.instructor-card__bio-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s ease;
  cursor: pointer;
}
.instructor-card__bio-btn:hover { gap: 0.65rem; }

/* --- Location Cards --- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 2rem;
}
.location-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.location-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}
.location-card:hover { border-color: rgba(37, 118, 209, 0.3); }
.location-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.location-card__detail {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.location-card__detail svg {
  width: 18px; height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.location-card__actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Schedule --- */
.schedule-selector {
  display: flex;
  margin-bottom: 3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.schedule-selector__btn {
  flex: 1;
  padding: 1.25rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  z-index: 1;
  color: var(--color-text-secondary);
}
.schedule-selector__btn:hover { color: var(--color-text); }
.schedule-selector__btn.active {
  color: var(--color-white);
  background: var(--color-accent);
}
.schedule-selector__location {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.schedule-selector__address {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 0.2rem;
}
.schedule-current-label {
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.schedule-current-label::before,
.schedule-current-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.4;
}
/* Keep old tabs for backward compat */
.schedule-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.schedule-tab {
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}
.schedule-tab:hover { border-color: var(--color-border-light); }
.schedule-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}
.schedule-panel { display: none; }
.schedule-panel.active { display: block; }

.schedule-day {
  margin-bottom: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.schedule-day__header {
  padding: 1.25rem 1.75rem;
  min-height: 56px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.schedule-day__header:hover { background: var(--color-surface-3); }
.schedule-day__header svg {
  width: 18px; height: 18px;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}
.schedule-day.expanded .schedule-day__header svg {
  transform: rotate(180deg);
}
.schedule-day__accent {
  width: 4px; height: 18px;
  background: var(--color-accent);
  border-radius: 2px;
}
.schedule-day__classes {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo);
}
.schedule-day.expanded .schedule-day__classes {
  max-height: 2000px;
}
.schedule-class {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s ease;
}
.schedule-class:last-child { border-bottom: none; }
.schedule-class:hover { background: rgba(37, 118, 209, 0.03); }
.schedule-class__name {
  font-weight: 500;
  font-size: 0.95rem;
}
.schedule-class__name--kids { color: #f59e0b; }
.schedule-class__name--advanced { color: var(--color-accent); }
.schedule-class__name--kickboxing { color: #ef4444; }
.schedule-class__name--openmat { color: var(--color-success); }
.schedule-class__name--special { color: #a855f7; }
.schedule-class__time {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.schedule-class__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}
.schedule-class__tag--kids { background: rgba(245,158,11,0.15); color: #f59e0b; }
.schedule-class__tag--advanced { background: rgba(37,118,209,0.15); color: var(--color-accent); }
.schedule-class__tag--kickboxing { background: rgba(239,68,68,0.15); color: #ef4444; }
.schedule-class__tag--open { background: rgba(34,197,94,0.15); color: var(--color-success); }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- Parallax Image Break --- */
.image-break {
  position: relative;
  height: clamp(280px, 40vw, 420px);
  overflow: hidden;
}
.image-break img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.5) saturate(0.85);
}
.image-break::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--color-bg) 0%, transparent 20%, transparent 80%, var(--color-bg) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.3), transparent 40%, transparent 60%, rgba(10,10,10,0.3));
  z-index: 1;
  pointer-events: none;
}
.image-break__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-break__logo {
  height: 80px;
  width: auto;
  opacity: 0.2;
}

/* --- Footer Logo Image --- */
.footer__logo-img {
  height: 22px;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

/* --- Forms --- */
.form__group {
  margin-bottom: 1rem;
}
.form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}
.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  /* 16px minimum prevents iOS Safari auto-zoom on focus */
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
}
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.form__textarea {
  resize: vertical;
  min-height: 120px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__content {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.5s var(--ease-out-expo);
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal.active .modal__content {
  transform: translateY(0) scale(1);
}
.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 2;
}
.modal__close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
}
.modal__step h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.modal__step > p {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}
.modal__locations {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.modal__location-btn {
  width: 100%;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out-expo);
}
.modal__location-btn:hover {
  border-color: var(--color-accent);
  background: rgba(37, 118, 209, 0.05);
  transform: translateX(4px);
}
.modal__location-name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.modal__location-addr {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
.modal__back {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.modal__back:hover { color: var(--color-accent); }
.modal__success {
  text-align: center;
  padding: 2rem 0;
}
.modal__success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.modal__success h2 { color: var(--color-success); }

/* --- Bio Modal --- */
.bio-modal .modal__content {
  max-width: 600px;
  padding: 0;
  overflow: hidden;
}
.bio-modal__header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2.5rem 2.5rem 0;
}
.bio-modal__avatar {
  width: 80px; height: 80px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-surface-2), var(--color-surface-3));
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--color-accent);
}
.bio-modal__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}
.bio-modal__role {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-top: 0.25rem;
}
.bio-modal__body {
  padding: 1.5rem 2.5rem 2.5rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}
.bio-modal__body p + p { margin-top: 1rem; }

/* --- CTA Section --- */
.cta-section {
  padding: clamp(5rem, 12vw, 10rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-section__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.2) saturate(0.6);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(37, 118, 209, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}
.footer__tagline {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer__col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-white);
}
.footer__col p, .footer__col a {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}
.footer__col a {
  display: block;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--color-accent); }
.footer__col li + li { margin-top: 0.35rem; }
.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom p, .footer__bottom a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.footer__bottom a:hover { color: var(--color-accent); }

/* --- Page Header (inner pages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 20%, rgba(37, 118, 209, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.page-header .container { position: relative; z-index: 2; }
.page-header .label { margin-bottom: 1rem; display: block; }
.page-header h1 { margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.page-header p {
  color: var(--color-text-secondary);
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.page-header__bg {
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.page-header__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: saturate(0.5);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.4) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.4) 0%, transparent 100%);
}

/* --- Placeholder Page --- */
.placeholder-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.placeholder-section__inner {
  max-width: 500px;
}
.placeholder-section__icon {
  width: 80px; height: 80px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: rgba(37, 118, 209, 0.08);
  border: 1px solid rgba(37, 118, 209, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-accent);
}
.placeholder-section h2 { margin-bottom: 1rem; }
.placeholder-section p {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* --- Welcome Page --- */
.welcome__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.welcome__content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}
.welcome__intro {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}
.welcome__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.welcome__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.welcome__list-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 118, 209, 0.08);
  border: 1px solid rgba(37, 118, 209, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.welcome__closing {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--color-text);
}
.welcome__video-wrapper {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.welcome__video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-text-muted);
}
.welcome__video-placeholder svg {
  opacity: 0.4;
}
.welcome__video-placeholder p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .welcome__grid {
    grid-template-columns: 1fr;
  }
  .welcome__video-wrapper {
    position: static;
  }
}

/* --- Gallery --- */
.gallery { overflow: hidden; }

.gal-comp {
  position: relative;
  margin-bottom: clamp(4rem, 10vw, 8rem);
}
.gal-tag {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(37, 118, 209, 0.18);
  margin-bottom: -0.35em;
  position: relative;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  text-shadow:
    0 0 40px rgba(37, 118, 209, 0.08),
    0 0 80px rgba(37, 118, 209, 0.04);
  filter: drop-shadow(0 0 30px rgba(37, 118, 209, 0.1));
}

/* Shared frame styles */
.gal-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transform: rotate(var(--rot, 0deg));
  cursor: pointer;
  will-change: transform, filter;
  transition:
    transform 0.6s var(--ease-out-expo),
    filter 0.6s ease,
    box-shadow 0.6s var(--ease-out-expo);
  filter: saturate(0.65) brightness(0.82);
}
.gal-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
  transition: border-color 0.4s ease;
}
.gal-frame:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.03);
  filter: saturate(1) brightness(1);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 40px var(--color-accent-glow);
  z-index: 10;
}
.gal-frame:hover::after {
  border-color: rgba(37, 118, 209, 0.3);
}

/* --- Comp 1: Staggered duo --- */
.gal-comp__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
.gal-comp__duo .gal-frame { aspect-ratio: 3 / 4; }
.gal-comp__duo .gal-frame:nth-child(2) {
  margin-top: clamp(3rem, 8vw, 6rem);
}

/* --- Comp 2: Offset pair --- */
.gal-comp__pair {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
.gal-comp__pair .gal-frame { aspect-ratio: 3 / 4; }
.gal-frame--push-down { margin-top: clamp(4rem, 10vw, 8rem); }
.gal-frame--pull-up { margin-top: clamp(-2rem, -4vw, -1rem); }

/* --- Comp 3: Mosaic --- */
.gal-comp__mosaic {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1rem, 3vw, 2rem);
}
.gal-comp__mosaic .gal-frame--tall { aspect-ratio: 3 / 5; }
.gal-comp__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 2rem);
  padding-top: clamp(2rem, 5vw, 4rem);
}
.gal-comp__stack .gal-frame { aspect-ratio: 4 / 3; }

/* --- Comp 4: Kids trio --- */
.gal-comp__trio {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
}
.gal-comp__trio .gal-frame { aspect-ratio: 3 / 4; }
.gal-comp__trio .gal-frame--hero {
  aspect-ratio: 3 / 4.2;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  z-index: 2;
  filter: saturate(0.75) brightness(0.88);
}
.gal-comp__trio .gal-frame--side:first-child { margin-top: 3rem; }
.gal-comp__trio .gal-frame--side:last-child { margin-top: -2rem; }

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 4, 4, 0.96);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--color-text);
  z-index: 2001;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
}
.lightbox__close:hover {
  transform: scale(1.2);
  color: var(--color-accent);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  color: var(--color-text);
  z-index: 2001;
  padding: 0.5rem;
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
  line-height: 1;
}
.lightbox__nav:hover { opacity: 1; color: var(--color-accent); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__stage {
  max-width: 88vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: opacity 0.3s ease;
}
.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- Gallery mobile --- */
@media (max-width: 768px) {
  .gal-comp__duo,
  .gal-comp__pair,
  .gal-comp__mosaic {
    grid-template-columns: 1fr;
  }
  .gal-comp__trio {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .gal-comp__duo .gal-frame:nth-child(2),
  .gal-frame--push-down,
  .gal-comp__trio .gal-frame--side:first-child,
  .gal-comp__trio .gal-frame--side:last-child {
    margin-top: 0;
  }
  .gal-frame--pull-up { margin-top: 0; }
  .gal-comp__stack { padding-top: 0; }
  .gal-frame { transform: rotate(0deg) !important; }
  .gal-tag { font-size: clamp(2.5rem, 12vw, 4.5rem); }
  .lightbox__nav { font-size: 2.5rem; }
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item__label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* --- Reveal Animation Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--scale { transform: scale(0.95); }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.stagger-child { opacity: 0; transform: translateY(24px); }
.stagger-child.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

/* --- Divider --- */
.diagonal-divider {
  height: 80px;
  position: relative;
  overflow: hidden;
}
.diagonal-divider::before {
  content: '';
  position: absolute;
  left: -5%; right: -5%;
  bottom: 0;
  height: 200%;
  background: var(--color-bg);
  transform: skewY(-2deg);
  transform-origin: bottom left;
}
.diagonal-divider--surface::before { background: var(--color-surface); }
.diagonal-divider--dark::before { background: var(--color-bg-alt); }

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumbs a { transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs__sep { opacity: 0.4; }

/* --- Map Placeholder --- */
.map-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Fully opaque solid fallback stacked under a translucent blur layer */
    background-color: #0a0a0a;
    background-image: linear-gradient(180deg, rgba(10,10,10,0.98), rgba(10,10,10,1));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    /* Leave room for the fixed nav bar + iOS safe areas; allow scrolling when content overflows */
    padding: calc(var(--nav-height) + 1.5rem) 1.5rem calc(2rem + env(safe-area-inset-bottom)) 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .nav__menu.active {
    opacity: 1;
    visibility: visible;
  }
  .nav__list {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    width: 100%;
  }
  .nav__link {
    font-size: 1.1rem;
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav__cta {
    margin-top: 0.5rem;
  }

  .hero__content { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .modal__content {
    padding: 2rem 1.5rem;
  }
  .bio-modal__header {
    flex-direction: column;
    padding: 2rem 1.5rem 0;
  }
  .bio-modal__body {
    padding: 1.5rem;
  }

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

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

  .schedule-class {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.875rem 1.25rem;
  }
}

@media (max-width: 640px) {
  /* Tighter location/contact cards */
  .location-card {
    padding: 1.75rem 1.5rem;
  }
  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }
  .contact-info-card > div {
    padding: 1.5rem !important;
  }
  /* Stack schedule selector */
  .schedule-selector {
    flex-direction: column;
  }
  .schedule-selector__btn {
    padding: 1rem 1.25rem;
  }
  .schedule-selector__btn + .schedule-selector__btn {
    border-top: 1px solid var(--color-border);
  }
  .schedule-selector__location {
    font-size: 1.1rem;
  }
  /* Program card inner padding tighter */
  .program-card__body {
    padding: 1.25rem 1.5rem 1.75rem;
  }
  /* Credential bar as 2-col grid for balance */
  .credential-bar {
    padding: 2rem 0;
  }
  .credential-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    row-gap: 1.5rem;
  }
  .credential-bar__item {
    font-size: 0.8rem;
    gap: 0.6rem;
  }
  .credential-bar__icon {
    width: 36px; height: 36px;
  }
  /* Section headers spacing */
  .section-header {
    margin-bottom: 2rem;
  }
  /* Modal padding + reachable header */
  .bio-modal .modal__content {
    padding: 0;
  }
  /* Tighter instructors card info */
  .instructor-card__info {
    padding: 1.25rem;
  }
  /* Welcome list sizing */
  .welcome__list li {
    font-size: 0.98rem;
  }
  .welcome__list-icon {
    width: 40px; height: 40px;
  }
  /* Hero actions stack full-width for easier thumb reach */
  .hero__actions {
    width: 100%;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
    min-width: 160px;
  }
  /* Page header bg image faded more on mobile */
  .page-header__bg {
    width: 65%;
  }
  .page-header {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero__sub { font-size: 0.95rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .instructors-grid { grid-template-columns: 1fr; }
  .credential-bar__item span { font-size: 0.78rem; }
  /* Reduce oversized gallery tag text */
  .gal-tag {
    font-size: clamp(2rem, 13vw, 3.8rem);
  }
  /* Button sizing + full-width CTAs on tightest phones */
  .btn--lg {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
  }
  .location-card__actions .btn,
  .location-card__actions {
    width: 100%;
  }
  .location-card__actions .btn {
    justify-content: center;
  }
  /* Smaller footer layout */
  .footer {
    padding: 3rem 0 1.5rem;
  }
  .footer__grid {
    gap: 1.75rem;
    margin-bottom: 2rem;
  }
  /* Modal reachable area */
  .modal {
    padding: 0.5rem;
    align-items: flex-end;
  }
  .modal__content {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    max-height: 92dvh;
  }
  .modal__step h2 {
    font-size: 1.5rem;
  }
  .modal__location-btn {
    padding: 1.25rem;
  }
  /* Bio modal mobile sizing */
  .bio-modal__header {
    padding: 2rem 1.25rem 0;
  }
  .bio-modal__body {
    padding: 1.25rem;
    font-size: 0.92rem;
  }
  /* Lightbox nav buttons larger hit area */
  .lightbox__nav {
    font-size: 2.25rem;
    padding: 0.75rem 1rem;
  }
  .lightbox__close {
    top: 0.5rem;
    right: 0.75rem;
    padding: 0.5rem;
  }
}

/* --- Safe-area insets for iPhone notch/home indicator --- */
@supports (padding: max(0px)) {
  .nav__container,
  .container {
    padding-left: max(var(--container-padding), env(safe-area-inset-left));
    padding-right: max(var(--container-padding), env(safe-area-inset-right));
  }
  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

/* --- Respect reduced motion preferences --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__scroll-line { animation: none; }
  .reveal, .stagger-child {
    opacity: 1 !important;
    transform: none !important;
  }
  [data-parallax] { transform: none !important; }
}

/* ================================================================
   MEN'S BEGINNER COURSE PAGE
   ================================================================ */

/* --- Course Hero --- */
.course-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.course-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.course-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(37, 118, 209, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 90%, rgba(37, 118, 209, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.94) 60%, var(--color-bg) 100%);
  z-index: 1;
}
.course-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.28;
  filter: saturate(0.5) contrast(1.1);
}
.course-hero .breadcrumbs {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}
.course-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.course-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.course-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(37, 118, 209, 0.2), rgba(37, 118, 209, 0.05));
  border: 1px solid rgba(37, 118, 209, 0.35);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
}
.course-hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.course-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 0.98;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}
.course-hero__title-accent {
  color: var(--color-accent);
  font-style: italic;
  position: relative;
  display: inline-block;
}
.course-hero__title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.18em;
  background: rgba(37, 118, 209, 0.22);
  z-index: -1;
  transform: skewX(-8deg);
}
.course-hero__lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 1rem;
  max-width: 560px;
}
.course-hero__sub {
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}
.course-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}
.course-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(24, 24, 24, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.course-pill__icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  display: inline-flex;
}
.course-pill__icon svg {
  width: 100%;
  height: 100%;
}
.course-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}
.course-hero__note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* --- Sneak peek video placeholder --- */
.course-hero__video {
  position: relative;
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(24,24,24,0.9), rgba(10,10,10,0.7));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(37, 118, 209, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.course-hero__video::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 118, 209, 0.6), transparent);
  border-radius: 50%;
}
.course-hero__video-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}
.course-hero__video-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: liveDot 2s ease-in-out infinite;
}
@keyframes liveDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.course-hero__video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.course-hero__mux {
  --media-object-fit: cover;
  --controls-backdrop-color: rgba(10, 10, 10, 0.55);
  --media-control-hover-background: rgba(37, 118, 209, 0.35);
  --play-button-icon-color: #ffffff;
  --time-display-color: #f0f0f0;
  --seek-backward-button-display: none;
  --seek-forward-button-display: none;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.course-hero__video-footer {
  margin-top: 0.9rem;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}

/* --- Course Split (Who) --- */
.course-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.course-split__lead h2 {
  margin-bottom: 1.5rem;
}
.course-split__lead p {
  color: var(--color-text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 440px;
}
.course-split__line {
  width: 64px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.course-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.course-list__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-text);
  transition: padding-left 0.4s var(--ease-out-expo), color 0.3s ease;
}
.course-list__item:first-child {
  padding-top: 0;
}
.course-list__item:last-child {
  border-bottom: none;
}
.course-list__item:hover {
  padding-left: 0.75rem;
  color: var(--color-white);
}
.course-list__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(37, 118, 209, 0.12);
  border: 1px solid rgba(37, 118, 209, 0.3);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.course-list__check svg {
  width: 14px;
  height: 14px;
}

/* --- Pullquote --- */
.course-pullquote {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(37, 118, 209, 0.06), rgba(37, 118, 209, 0.01));
  border: 1px solid rgba(37, 118, 209, 0.18);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.course-pullquote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 10rem;
  line-height: 1;
  color: rgba(37, 118, 209, 0.12);
  pointer-events: none;
}
.course-pullquote__rule {
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 1rem;
}
.course-pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.course-pullquote em {
  color: var(--color-accent);
  font-style: italic;
}

/* --- Course Reasons --- */
.course-reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.course-reason {
  position: relative;
  padding: 2rem 1.75rem 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out-expo);
}
.course-reason:hover {
  border-color: rgba(37, 118, 209, 0.3);
  transform: translateY(-4px);
}
.course-reason__num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(37, 118, 209, 0.18);
  line-height: 1;
  margin-bottom: 1rem;
}
.course-reason h4 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  color: var(--color-text);
}
.course-reason p {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* --- Course Outcome --- */
.course-outcome {
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    linear-gradient(145deg, rgba(24, 24, 24, 0.9), rgba(10, 10, 10, 0.6));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
}
.course-outcome__header {
  margin-bottom: 2rem;
  text-align: center;
}
.course-outcome__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}
.course-outcome__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}
.course-outcome__index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  min-width: 2.25rem;
  letter-spacing: 0.02em;
}
.course-outcome__item p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}
.course-outcome__goal {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  position: relative;
}
.course-outcome__goal p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  max-width: 560px;
  margin: 0 auto;
}
.course-outcome__quote {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* --- Course Modules (film strip) --- */
.course-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
  position: relative;
}
.course-modules::before {
  content: '';
  position: absolute;
  top: 28%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 118, 209, 0.3), transparent);
  z-index: 0;
  pointer-events: none;
}
.course-module {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.5s ease;
  z-index: 1;
}
.course-module::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
}
.course-module:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 118, 209, 0.35);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 0 40px -10px rgba(37, 118, 209, 0.15);
}
.course-module:hover::before {
  transform: scaleX(1);
}
.course-module__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  background: rgba(37, 118, 209, 0.12);
  border: 1px solid rgba(37, 118, 209, 0.25);
  color: var(--color-accent-hover);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}
.course-module--intro .course-module__tag {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}
.course-module__num {
  position: absolute;
  top: 1.5rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.course-module__title {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}
.course-module__subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.course-module__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.course-module__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.course-module__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.6;
}
.course-module__duration {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 100%;
}
.course-module__duration::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

/* --- Course Steps (access) --- */
.course-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1rem;
  counter-reset: step;
  margin-bottom: 3rem;
  position: relative;
}
.course-step {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease;
}
.course-step:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 118, 209, 0.3);
}
.course-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(37, 118, 209, 0.1);
  border: 1px solid rgba(37, 118, 209, 0.3);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.course-step h4 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.course-step p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}
.course-access-cta {
  text-align: center;
  padding: 2rem 0;
}
.course-access-cta p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

/* --- What Happens After --- */
.course-after {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.course-after__content h2 {
  margin-bottom: 1.5rem;
}
.course-after__intro {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}
.course-after__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.course-after__list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.course-after__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}
.course-after__list span {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}
.course-after__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(37, 118, 209, 0.08);
  border: 1px solid rgba(37, 118, 209, 0.2);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-after__icon svg {
  width: 20px;
  height: 20px;
}
.course-after__note {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}
.course-after__why {
  padding: 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.course-after__why::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}
.course-after__why .label {
  display: block;
  margin-bottom: 1rem;
}
.course-after__why h3 {
  font-size: 1.3rem;
  margin-bottom: 1.75rem;
  line-height: 1.3;
}
.course-after__why-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.course-after__why-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.5;
}
.course-after__why-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(37, 118, 209, 0.4);
}

/* --- Enroll Section --- */
.enroll-section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.enroll-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.enroll-section__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37, 118, 209, 0.18), transparent 60%),
    linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(6,6,6,0.9) 100%);
  z-index: 1;
}
.enroll-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.22;
  filter: saturate(0.4);
}
.enroll-section .container {
  position: relative;
  z-index: 2;
}
.enroll__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.enroll__intro .label {
  display: block;
  margin-bottom: 1rem;
}
.enroll__intro h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.25rem;
}
.enroll__intro > p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.enroll__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.enroll__bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}
.enroll__bullets svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.enroll__form-card {
  position: relative;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.92), rgba(10, 10, 10, 0.88));
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.enroll__form-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.7;
}
.enroll__form-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.35rem 0.75rem;
  background: rgba(37, 118, 209, 0.1);
  border: 1px solid rgba(37, 118, 209, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.enroll__form-card h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  margin-bottom: 0.4rem;
}
.enroll__form-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
}
.enroll__form .form__group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}
.enroll__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  cursor: pointer;
}
.enroll__consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.enroll__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.enroll__trust svg {
  color: var(--color-accent);
}
.enroll__success {
  text-align: center;
  padding: 1.5rem 0;
}
.enroll__success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.enroll__success h3 {
  color: var(--color-success);
  margin-bottom: 0.5rem;
}
.enroll__success p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================================================================
   HOMEPAGE COURSE PROMO POPUP
   ================================================================ */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s var(--ease-out-expo);
}
.promo-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.promo-modal__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(37, 118, 209, 0.18), transparent 60%),
    rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.promo-modal__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.96), rgba(10, 10, 10, 0.98));
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(37, 118, 209, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.7s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo);
}
.promo-modal__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.8;
  pointer-events: none;
  z-index: 3;
}
.promo-modal.is-open .promo-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.promo-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease;
}
.promo-modal__close:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: rotate(90deg);
}

/* Media side */
.promo-modal__media {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.promo-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.8) brightness(0.7);
  transform: scale(1.02);
}
.promo-modal__media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(37, 118, 209, 0.18), transparent 55%),
    linear-gradient(180deg, transparent 30%, rgba(10, 10, 10, 0.75) 100%),
    linear-gradient(90deg, transparent 60%, rgba(10, 10, 10, 0.5) 100%);
  pointer-events: none;
}
.promo-modal__badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 118, 209, 0.4);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
  z-index: 2;
}
.promo-modal__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: promoPulse 2.2s ease-in-out infinite;
}
@keyframes promoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.35); }
}

/* Body side */
.promo-modal__body {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.promo-modal__body .label {
  display: block;
  margin-bottom: 1rem;
}
.promo-modal__body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.promo-modal__body p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.promo-modal__body p strong {
  color: var(--color-text);
  font-weight: 600;
}
.promo-modal__points {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.promo-modal__points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 500;
}
.promo-modal__points svg {
  color: var(--color-accent);
  flex-shrink: 0;
}
.promo-modal__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.promo-modal__actions .btn {
  flex: 0 1 auto;
}
.promo-modal__dismiss {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.6rem 0.25rem;
  transition: color 0.25s ease;
  cursor: pointer;
  background: none;
  border: none;
}
.promo-modal__dismiss:hover {
  color: var(--color-text);
}

/* Promo responsive */
@media (max-width: 768px) {
  .promo-modal {
    padding: 0;
    align-items: flex-end;
  }
  .promo-modal__card {
    grid-template-columns: 1fr;
    max-width: 100%;
    max-height: 94dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
  }
  .promo-modal.is-open .promo-modal__card {
    transform: translateY(0);
  }
  .promo-modal__media {
    height: 180px;
    min-height: 180px;
  }
  .promo-modal__body {
    padding: 1.5rem 1.5rem 1.75rem;
  }
  .promo-modal__body h2 {
    font-size: 1.35rem;
  }
  .promo-modal__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .promo-modal__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .promo-modal__dismiss {
    width: 100%;
    padding: 0.85rem;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .promo-modal__media {
    height: 150px;
    min-height: 150px;
  }
  .promo-modal__body h2 {
    font-size: 1.25rem;
  }
  .promo-modal__body p {
    font-size: 0.9rem;
  }
}

/* --- Course Lead Modal --- */
.course-modal .modal__content {
  max-width: 520px;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.96), rgba(10, 10, 10, 0.96));
  border: 1px solid var(--color-border-light);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}
.course-modal .modal__content::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.7;
  pointer-events: none;
}
.course-modal .enroll__form-badge {
  margin-bottom: 1rem;
}
.course-modal__content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  margin-bottom: 0.35rem;
  line-height: 1.1;
}
.course-modal__sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
}
.course-modal__form-wrap .form__group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}
@media (max-width: 520px) {
  .course-modal .modal__content {
    padding: 1.75rem 1.25rem;
  }
  .course-modal .form__row {
    grid-template-columns: 1fr;
  }
}

/* --- Course page responsive --- */
@media (max-width: 1024px) {
  .course-hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .course-hero__video {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .course-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .course-after {
    grid-template-columns: 1fr;
  }
  .enroll__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .course-hero {
    padding-top: calc(var(--nav-height) + 1.5rem);
  }
  .course-hero__title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }
  .course-hero__actions .btn {
    flex: 1 1 auto;
    min-width: 160px;
    justify-content: center;
  }
  .course-modules::before {
    display: none;
  }
  .course-modules {
    grid-template-columns: 1fr;
  }
  .course-steps {
    grid-template-columns: 1fr 1fr;
  }
  .course-outcome__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .course-pullquote::before {
    font-size: 6rem;
    top: -10px;
  }
  .course-after__why {
    padding: 2rem 1.75rem;
  }
}
@media (max-width: 520px) {
  .course-hero__eyebrow {
    gap: 0.6rem;
  }
  .course-hero__badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
  }
  .course-pill {
    font-size: 0.76rem;
    padding: 0.5rem 0.85rem;
  }
  .course-steps {
    grid-template-columns: 1fr;
  }
  .course-module {
    padding: 1.75rem 1.5rem;
  }
  .course-module__num {
    font-size: 2.75rem;
    top: 1.25rem;
    right: 1rem;
  }
  .enroll__form-card {
    padding: 1.75rem 1.5rem;
  }
  .course-list__item {
    font-size: 0.98rem;
    gap: 1rem;
  }
}

/* --- Pointer (touch) optimizations --- */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover-only transforms on touch */
  .program-card:hover {
    transform: none;
  }
  .instructor-card:hover {
    transform: none;
  }
  .modal__location-btn:hover {
    transform: none;
  }
  .gal-frame:hover {
    transform: rotate(0deg);
  }
  .course-module:hover,
  .course-reason:hover,
  .course-step:hover {
    transform: none;
  }
  .course-list__item:hover {
    padding-left: 0;
  }
  /* Use simpler static noise on mobile to reduce GPU repaint */
  body::after {
    background-size: 150px;
    opacity: 0.02;
  }
}
