/* ============================================================
   ZOMBIE BJJ — style.css
   Retro Martial Arts Training Theme
   Barlow Condensed (display) + Barlow (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,700;1,900&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --cream:        #FAF7F2;
  --light:        #F3EDE3;
  --surface:      #EAE4D9;
  --surface-2:    #E1DACF;
  --surface-3:    #D8D0C4;

  --red:          #C41E1E;
  --red-bright:   #E02424;
  --red-dim:      #9B1818;
  --red-glow:     rgba(196, 30, 30, 0.12);

  --navy:         #1A2852;
  --navy-dark:    #111D3D;
  --blue:         #1E4DB7;
  --blue-light:   #3B6FD4;
  --blue-kids:    #1D4ED8;
  --purple-women: #7E22CE;

  --dark:         #1A1A1A;
  --dark-2:       #2C2C2C;
  --mid:          #555555;
  --gray-300:     #777777;
  --gray-600:     #AAAAAA;

  --white:        #FFFFFF;
  --off-white:    #FAF7F2;

  --font-d: 'Barlow Condensed', sans-serif;
  --font-b: 'Barlow', sans-serif;

  --nav-h:    76px;
  --section:  130px;
  --section-sm: 80px;
  --max-w:    1280px;
  --gutter:   clamp(20px, 4vw, 48px);

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.label {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 14px;
}
.label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.h1, h1 {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(4.5rem, 12vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.h2, h2 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 0.93;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.h3, h3 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.h4, h4 {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.text-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--mid);
}

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

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 30, 30, 0.35);
}

.btn--outline {
  border: 1.5px solid rgba(26, 26, 26, 0.3);
  color: var(--dark);
}
.btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  padding: 18px 52px;
}
.btn--dark:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}

/* Outline on dark backgrounds */
.btn--outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn--outline-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn--arrow::after {
  content: '→';
  font-size: 1.1em;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 999;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--red);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.nav.scrolled {
  background: rgba(250, 247, 242, 0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__logo-name {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
}
.nav__logo-name:hover { color: var(--red); }
.nav__logo-sub {
  font-family: var(--font-d);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--red);
  margin-block-start: 3px;
}

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-2);
  position: relative;
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.35s var(--ease-out);
}
.nav__link:hover,
.nav__link.active { color: var(--red); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__phone {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  transition: color 0.2s;
}
.nav__phone:hover { color: var(--blue); }

.nav__cta { margin-inline-start: 8px; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav__mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 998;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px var(--gutter);
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
  border-top: 4px solid var(--red);
}
.nav__mobile-menu.open {
  pointer-events: all;
  opacity: 1;
  transform: translateX(0);
}
.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav__mobile-link {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 16px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  color: var(--dark);
  transition: color 0.2s;
}
.nav__mobile-link:hover { color: var(--red); }
.nav__mobile-cta {
  margin-block-start: 40px;
  align-self: flex-start;
}
.nav__mobile-phone {
  margin-block-start: 20px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gray-300);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  will-change: transform;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(26,40,82,0.88) 0%, rgba(26,40,82,0.55) 55%, rgba(26,40,82,0.1) 100%),
    linear-gradient(to top, rgba(26,40,82,0.95) 0%, rgba(26,40,82,0.35) 30%, rgba(26,40,82,0) 60%);
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-block-start: calc(var(--nav-h) + 24px);
  padding-block-end: clamp(48px, 6vw, 88px);
  width: 100%;
}

.hero__eyebrow {
  margin-block-end: 20px;
  animation: revealLeft 0.9s var(--ease-out) 0.3s both;
  color: rgba(255,255,255,0.85);
}
.hero__eyebrow::before { background: rgba(255,255,255,0.7); }

.hero__title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2.8rem, 5.5vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-block-end: 28px;
  animation: revealUp 1s var(--ease-out) 0.5s both;
}

.hero__title em {
  font-style: normal;
  color: var(--red);
  display: block;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  max-width: 440px;
  line-height: 1.7;
  margin-block-end: 44px;
  animation: revealFade 0.8s ease 0.95s both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: revealFade 0.8s ease 1.15s both;
}

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

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 6vw, 80px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: revealFade 1s ease 1.6s both;
}
.hero__scroll-text {
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-lr;
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1) translateY(0); }
  50% { opacity: 0.3; transform: scaleY(0.6) translateY(8px); }
}

/* Hero load animations */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(70px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--navy);
  border-top: none;
  border-bottom: none;
}
.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.trust-bar__item:last-child { border-right: none; }
.trust-bar__num {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--red);
}
.trust-bar__label {
  font-family: var(--font-d);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-block-start: 8px;
}

/* ============================================================
   PROGRAMS SECTION
   ============================================================ */
.programs-section { background: var(--cream); }

.programs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-block-end: 64px;
  flex-wrap: wrap;
}

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

.prog-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: default;
  display: block;
}

.prog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.prog-card:hover .prog-card__img { transform: scale(1.07); }

.prog-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(26,40,82,0.05) 0%,
    rgba(26,40,82,0.55) 45%,
    rgba(26,40,82,0.96) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px);
  transition: background 0.5s ease;
}
.prog-card:hover .prog-card__overlay {
  background: linear-gradient(
    170deg,
    rgba(26,40,82,0.1) 0%,
    rgba(26,40,82,0.72) 40%,
    rgba(26,40,82,0.98) 100%
  );
}

.prog-card__tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 12px;
  margin-block-end: 14px;
  align-self: flex-start;
}

.prog-card__num {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 5rem;
  color: rgba(196,30,30,0.18);
  line-height: 1;
  position: absolute;
  top: 24px;
  right: 24px;
  letter-spacing: -0.05em;
}

.prog-card__title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.93;
  margin-block-end: 14px;
  color: var(--white);
}

.prog-card__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s ease;
}
.prog-card:hover .prog-card__desc { max-height: 120px; opacity: 1; }

.prog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 18px;
  font-family: var(--font-d);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out) 0.1s, opacity 0.4s ease 0.1s;
}
.prog-card__cta::after { content: '→'; }
.prog-card:hover .prog-card__cta { max-height: 40px; opacity: 1; }

/* ============================================================
   WHY US
   ============================================================ */
.why-section { background: var(--light); overflow: hidden; }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.why-text-col { position: relative; }

.why-ghost-num {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(8rem, 15vw, 16rem);
  line-height: 1;
  color: rgba(196,30,30,0.05);
  position: absolute;
  top: -60px;
  left: -30px;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.why-heading { margin-block: 20px 40px; color: var(--dark); }

.why-features { display: flex; flex-direction: column; }

.why-feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding-block: 24px;
  border-bottom: 1px solid rgba(26,26,26,0.1);
  align-items: start;
}
.why-feature:first-child { border-top: 1px solid rgba(26,26,26,0.1); }

.why-feature__num {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
  padding-block-start: 2px;
}
.why-feature__title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-block-end: 6px;
  color: var(--dark);
}
.why-feature__text {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.65;
}

/* Image stack */
.why-img-col {
  position: relative;
  height: 640px;
}
.why-img-main {
  position: absolute;
  right: 0;
  top: 0;
  width: 82%;
  height: 80%;
  object-fit: cover;
  object-position: center top;
}
.why-img-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52%;
  height: 50%;
  object-fit: cover;
  border: 4px solid var(--light);
}
.why-badge {
  position: absolute;
  top: clamp(60%, 65%, 70%);
  right: 0;
  background: var(--red);
  color: var(--white);
  padding: 18px 22px;
  text-align: center;
  transform: translate(0, -60%);
}
.why-badge__num {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1;
}
.why-badge__text {
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-block-start: 4px;
}

/* ============================================================
   COMMUNITY BANNER
   ============================================================ */
.community {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.community__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.community__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(26,40,82,0.95) 0%,
    rgba(26,40,82,0.75) 50%,
    rgba(26,40,82,0.3) 100%
  );
}
.community__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.community__content .label { color: rgba(255,255,255,0.8); }
.community__content .label::before { background: rgba(255,255,255,0.5); }
.community__title { margin-block: 16px 20px; color: var(--white); }
.community__text {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-block-end: 40px;
}
.community__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.community__stat-num {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--red);
  line-height: 1;
}
.community__stat-lbl {
  font-family: var(--font-d);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-block-start: 6px;
}

/* ============================================================
   WOMEN'S SECTION
   ============================================================ */
.women-section { background: var(--surface); }
.women-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}
.women-img-col {
  position: relative;
  overflow: hidden;
}
.women-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.9s var(--ease-out);
}
.women-img-col:hover .women-img { transform: scale(1.05); }

.women-content {
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.women-title { margin-block: 16px 24px; color: var(--dark); }
.women-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
  margin-block-end: 32px;
}
.women-schedule-label {
  font-family: var(--font-d);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  margin-block-end: 14px;
}
.women-times { display: flex; flex-direction: column; gap: 10px; margin-block-end: 36px; }
.women-time {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.women-time::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--cream); }
.testimonials-header { text-align: center; margin-block-end: 64px; }
.testimonials-header .label { justify-content: center; }
.testimonials-header h2 { margin-block-start: 16px; color: var(--dark); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--surface);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 7rem;
  color: var(--red);
  opacity: 0.08;
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
  pointer-events: none;
}
.testimonial__stars {
  display: flex;
  gap: 3px;
  margin-block-end: 20px;
}
.testimonial__stars span { color: var(--red); font-size: 0.9rem; }
.testimonial__quote {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--mid);
  margin-block-end: 32px;
  position: relative;
}
.testimonial__author { display: flex; align-items: center; gap: 14px; }
.testimonial__avatar {
  width: 46px;
  height: 46px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial__name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
}
.testimonial__belt {
  font-size: 0.78rem;
  color: var(--gray-300);
  font-weight: 300;
  margin-block-start: 2px;
}

/* ============================================================
   TRIAL CTA
   ============================================================ */
.trial-cta {
  background: var(--red);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.trial-cta__ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(10rem, 22vw, 22rem);
  color: rgba(0,0,0,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}
.trial-cta .label { color: rgba(255,255,255,0.7); justify-content: center; }
.trial-cta .label::before { background: rgba(255,255,255,0.5); }
.trial-cta h2 {
  color: var(--white);
  margin-block: 20px 20px;
  font-size: clamp(3rem, 6vw, 6rem);
  position: relative;
}
.trial-cta p {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  margin-inline: auto;
  margin-block-end: 44px;
  max-width: 480px;
  position: relative;
}
.trial-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.trial-cta .btn--dark {
  background: var(--white);
  color: var(--red);
}
.trial-cta .btn--dark:hover {
  background: var(--cream);
  transform: translateY(-2px);
}
.trial-cta .btn--outline {
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}
.trial-cta .btn--outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  border-top: 3px solid var(--red);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 80px 0 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand-name {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white);
}
.footer__brand-sub {
  font-family: var(--font-d);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-block-start: 4px;
}
.footer__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-block: 20px 28px;
  max-width: 280px;
}
.footer__social { display: flex; gap: 10px; }
.footer__social-a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.footer__social-a:hover { border-color: var(--red); color: var(--red); }

.footer__col-title {
  font-family: var(--font-d);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-block-end: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__link {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--white); }

.footer__contact-row {
  display: flex;
  gap: 12px;
  margin-block-end: 14px;
  align-items: flex-start;
}
.footer__contact-icon { color: var(--red); font-size: 0.9rem; margin-block-start: 2px; }
.footer__contact-val {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}
.footer__contact-val a { transition: color 0.2s; }
.footer__contact-val a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer__bottom-links {
  display: flex;
  gap: 24px;
}
.footer__bottom-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer__bottom-link:hover { color: rgba(255,255,255,0.65); }

/* ============================================================
   PAGE HERO (INTERIOR PAGES)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding-block: calc(var(--nav-h) + 72px) 72px;
  border-bottom: 3px solid var(--red);
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.page-hero__ghost {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(8rem, 18vw, 18rem);
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.page-hero .label {
  margin-block-end: 16px;
  color: rgba(255,255,255,0.7);
}
.page-hero .label::before { background: var(--red); }
.page-hero h1 { margin-block-end: 20px; font-size: clamp(3rem, 7vw, 7rem); color: var(--white); }
.page-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 540px;
}

/* ============================================================
   SCHEDULE PAGE
   ============================================================ */
.schedule-section { background: var(--cream); }

.schedule-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-block-end: 48px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--gi     { background: var(--navy); }
.dot--nogi   { background: var(--blue); }
.dot--kids   { background: var(--blue-kids); }
.dot--muay   { background: var(--red); }
.dot--women  { background: var(--purple-women); }
.dot--open   { background: var(--gray-300); }
.dot--wrestle { background: #166534; }

/* Day tabs */
.day-tabs {
  display: flex;
  gap: 2px;
  margin-block-end: 48px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.day-tabs::-webkit-scrollbar { display: none; }

.day-tab {
  flex: 1;
  min-width: 80px;
  padding: 16px 12px;
  background: var(--white);
  border: 1px solid var(--surface);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.day-tab__name {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  display: block;
  transition: color 0.25s;
}
.day-tab__date {
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-300);
  display: block;
  margin-block-start: 3px;
  transition: color 0.25s;
}
.day-tab:hover,
.day-tab.active {
  background: var(--red);
  border-color: var(--red);
}
.day-tab:hover .day-tab__name,
.day-tab.active .day-tab__name { color: var(--white); }
.day-tab:hover .day-tab__date,
.day-tab.active .day-tab__date { color: rgba(255,255,255,0.65); }

/* Schedule panels */
.schedule-panel { display: none; }
.schedule-panel.active { display: block; }

.class-list { display: flex; flex-direction: column; gap: 2px; }

.class-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border-left: 3px solid transparent;
  border: 1px solid var(--surface);
  border-left: 3px solid transparent;
  transition: background 0.2s ease;
}
.class-item:hover { background: var(--light); }

.class-item--gi      { border-left-color: var(--navy); }
.class-item--nogi    { border-left-color: var(--blue); }
.class-item--kids    { border-left-color: var(--blue-kids); }
.class-item--muay    { border-left-color: var(--red); }
.class-item--women   { border-left-color: var(--purple-women); }
.class-item--open    { border-left-color: var(--gray-600); }
.class-item--wrestle { border-left-color: #166534; }

.class-item__time {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--dark);
}
.class-item__duration {
  font-family: var(--font-d);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-block-start: 3px;
}
.class-item__name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dark);
}
.class-item__detail {
  font-size: 0.8rem;
  color: var(--mid);
  font-weight: 300;
  margin-block-start: 3px;
}
.class-item__badge {
  font-family: var(--font-d);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  border: 1px solid rgba(26,26,26,0.15);
  padding: 6px 14px;
  white-space: nowrap;
}

/* Schedule CTA */
.schedule-cta {
  margin-block-start: 64px;
  background: var(--navy);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--white);
}
.schedule-cta h3 { margin-block-end: 8px; color: var(--white); }
.schedule-cta p { font-weight: 300; color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.schedule-cta .btn--outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.schedule-cta .btn--outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-family: var(--font-d);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--white);
  border: 1.5px solid var(--surface);
  color: var(--dark);
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: var(--font-b);
  font-weight: 400;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-600); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
.form-select option { background: var(--white); color: var(--dark); }

.form-submit {
  background: var(--red);
  color: var(--white);
  padding: 18px 40px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.form-submit:hover { background: var(--red-bright); transform: translateY(-2px); }
.form-submit::after { content: '→'; font-size: 1.1em; }

.form-note {
  font-size: 0.8rem;
  color: var(--gray-300);
  font-weight: 300;
}

/* Contact info panel */
.contact-info { display: flex; flex-direction: column; gap: 0; }

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--surface);
  padding: 28px 32px;
  border-bottom: none;
}
.contact-info-card:first-child { border-top: 1px solid var(--surface); }
.contact-info-card:last-of-type { border-bottom: 1px solid var(--surface); }

.contact-info-card__label {
  font-family: var(--font-d);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-block-end: 10px;
}
.contact-info-card__value {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
  line-height: 1.3;
  transition: color 0.2s;
}
.contact-info-card__value a:hover { color: var(--red); }
.contact-info-card__sub {
  font-size: 0.85rem;
  color: var(--mid);
  font-weight: 300;
  margin-block-start: 4px;
  line-height: 1.5;
}

.map-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  filter: grayscale(30%) contrast(1.0);
  border: 1px solid var(--surface);
  margin-block-start: 4px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-section { background: var(--cream); }

.blog-featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3px;
  margin-block-end: 3px;
}

.blog-feat-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--surface);
}
.blog-feat-img-wrap {
  overflow: hidden;
  height: 420px;
}
.blog-feat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.blog-feat-card:hover .blog-feat-img { transform: scale(1.05); }
.blog-feat-content { padding: clamp(24px, 3vw, 40px); }
.blog-feat-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 12px;
  margin-block-end: 16px;
}
.blog-feat-title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-block-end: 12px;
  transition: color 0.2s;
  color: var(--dark);
}
.blog-feat-card:hover .blog-feat-title { color: var(--red); }
.blog-feat-excerpt {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.7;
  margin-block-end: 24px;
}
.blog-feat-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-d);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-300);
}
.blog-feat-meta span { color: var(--red); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.blog-card:hover .blog-card__img { transform: scale(1.06); }
.blog-card__body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__cat {
  font-family: var(--font-d);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(196,30,30,0.35);
  display: inline-block;
  padding: 4px 10px;
  margin-block-end: 14px;
  align-self: flex-start;
}
.blog-card__title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-block-end: 12px;
  transition: color 0.2s;
  color: var(--dark);
}
.blog-card:hover .blog-card__title { color: var(--red); }
.blog-card__excerpt {
  font-size: 0.85rem;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.7;
  flex: 1;
  margin-block-end: 24px;
}
.blog-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-start: 20px;
  border-top: 1px solid var(--surface);
}
.blog-card__date {
  font-family: var(--font-d);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-300);
}
.blog-card__read {
  font-family: var(--font-d);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  transition: gap 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-card__read::after { content: '→'; }

.blog-load {
  text-align: center;
  padding-block-start: 64px;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}
[data-reveal="up"]     { transform: translateY(56px); }
[data-reveal="down"]   { transform: translateY(-32px); }
[data-reveal="left"]   { transform: translateX(-56px); }
[data-reveal="right"]  { transform: translateX(56px); }
[data-reveal="scale"]  { transform: scale(0.9); }
[data-reveal="fade"]   { transform: none; }

[data-reveal].revealed { opacity: 1; transform: none; }

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.18s; }
[data-delay="3"] { transition-delay: 0.28s; }
[data-delay="4"] { transition-delay: 0.38s; }
[data-delay="5"] { transition-delay: 0.48s; }
[data-delay="6"] { transition-delay: 0.58s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .why-inner { grid-template-columns: 1fr; gap: 56px; }
  .why-img-col { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .blog-featured-grid { grid-template-columns: 1fr; }
  .blog-feat-img-wrap { height: 300px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 64px; }
}

@media (max-width: 768px) {
  :root {
    --section: 72px;
    --section-sm: 48px;
    --nav-h: 64px;
  }

  .nav__links,
  .nav__phone,
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .hero { min-height: 580px; }
  .hero__title { font-size: clamp(2.4rem, 10vw, 4rem); }

  .trust-bar__inner { grid-template-columns: 1fr 1fr; }
  .trust-bar__item:nth-child(2) { border-right: none; }

  .programs-grid { grid-template-columns: 1fr; gap: 3px; }
  .prog-card { aspect-ratio: 4/3; }
  .prog-card__desc, .prog-card__cta { max-height: none; opacity: 1; }

  .community { min-height: auto; padding-block: 72px; }
  .community__stats { gap: 28px; }

  .women-inner { grid-template-columns: 1fr; }
  .women-img-col { height: 320px; }
  .women-content { padding: 48px 28px; }

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

  .schedule-section .class-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .class-item__badge { align-self: flex-start; }

  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured-grid { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .schedule-cta { flex-direction: column; align-items: flex-start; }

  .day-tab { min-width: 60px; padding: 12px 6px; }
  .day-tab__name { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .trust-bar__inner { grid-template-columns: 1fr 1fr; }
  .programs-header { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PROGRAMS PAGE
   ============================================================ */
.programs-page { background: var(--cream); }

.prog-detail {
  --accent: var(--red);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 100px);
  border-block-end: 1px solid var(--surface-2);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prog-detail:last-of-type { border-block-end: none; }

.prog-detail--flip .prog-detail__media { order: 2; }

.prog-detail__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--surface);
}
.prog-detail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.prog-detail:hover .prog-detail__img { transform: scale(1.05); }
.prog-detail__num {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.prog-detail__tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-d);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-block-end: 18px;
}
.prog-detail__title { color: var(--dark); margin-block-end: 20px; }
.prog-detail__text {
  color: var(--mid);
  font-weight: 300;
  line-height: 1.75;
  margin-block-end: 28px;
}
.prog-detail__tracks-label {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-block-end: 14px;
}
.prog-detail__tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-end: 32px;
}
.prog-track {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  border: 1px solid rgba(26,26,26,0.16);
  padding: 8px 16px;
}
.prog-track::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .prog-detail { grid-template-columns: 1fr; gap: 32px; }
  .prog-detail--flip .prog-detail__media { order: 0; }
  .prog-detail__media { aspect-ratio: 16/10; }
}

/* ============================================================
   FREE CLASS MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 29, 61, 0.74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s var(--ease-out);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--cream);
  border-top: 4px solid var(--red);
  padding: clamp(28px, 5vw, 48px);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.modal-overlay.active .modal-panel { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--mid);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.25s ease;
}
.modal-close:hover { color: var(--red); transform: rotate(90deg); }

.modal-eyebrow {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-block-end: 10px;
}
.modal-title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-block-end: 12px;
}
.modal-sub {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.6;
  margin-block-end: 26px;
}

.modal-form { display: flex; flex-direction: column; gap: 18px; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.modal-label {
  font-family: var(--font-d);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0;
}
.modal-input {
  background: var(--white);
  border: 1.5px solid var(--surface);
  color: var(--dark);
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: var(--font-b);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.modal-input:focus { outline: none; border-color: var(--red); }
.modal-input.modal-invalid { border-color: var(--red); background: rgba(196, 30, 30, 0.05); }

.modal-programs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-prog { position: relative; display: block; cursor: pointer; }
.modal-prog input { position: absolute; opacity: 0; width: 0; height: 0; }
.modal-prog__box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 54px;
  height: 100%;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--surface);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  transition: all 0.2s ease;
}
.modal-prog:hover .modal-prog__box { border-color: var(--red); }
.modal-prog input:checked + .modal-prog__box {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.modal-prog input:focus-visible + .modal-prog__box {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.modal-programs.modal-prog-invalid .modal-prog__box { border-color: var(--red); }

.modal-submit { width: 100%; justify-content: center; margin-block-start: 6px; }

/* Success state */
.modal-success { display: none; text-align: center; padding-block: 16px; }
.modal-success.active { display: block; }
.modal-success__check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #166534;
  color: #fff;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-success__title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--dark);
  margin-block-end: 12px;
}
.modal-success__text {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.6;
  margin-block-end: 24px;
}

@media (max-width: 480px) {
  .modal-row { grid-template-columns: 1fr; }
  .modal-programs { grid-template-columns: 1fr; }
  .modal-panel { padding: 32px 20px; }
}
