/* =========================================================
   CHANDLER JUDO ACADEMY — Design Tokens & Component Styles
   ========================================================= */

/* --- Design Tokens --- */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Font Families */
  --font-display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Color Palette — Dark, authoritative martial arts theme */
  --color-bg: #0e0e0e;
  --color-surface: #161616;
  --color-surface-2: #1c1c1c;
  --color-surface-offset: #222222;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-divider: rgba(255, 255, 255, 0.06);

  --color-text: #f0f0f0;
  --color-text-muted: #a0a0a0;
  --color-text-faint: #666666;

  --color-accent: #c81e1e;
  --color-accent-hover: #a81818;
  --color-accent-active: #8e1414;

  /* Force color scheme to dark to prevent webview/browser overrides */
  color-scheme: dark;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}


/* --- Top Bar --- */
.top-bar {
  background: #c81e1e;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-family: var(--font-body);
}

.top-bar__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-2) var(--space-5);
  text-align: center;
}

.top-bar__phone {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
}

.top-bar__phone svg {
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.top-bar__phone:hover {
  opacity: 0.9;
}


/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 300ms ease;
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.nav__logo-icon {
  color: #c81e1e;
  color: var(--color-accent);
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

/* Mobile nav toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 200ms ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu */
.nav__menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(14, 14, 14, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-4) 0;
}

.nav__menu.is-open {
  display: block;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav__link {
  display: block;
  padding: var(--space-4) var(--space-5);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__link:hover {
  color: var(--color-accent);
}

.nav__link--cta {
  color: #c81e1e;
  color: var(--color-accent);
  font-weight: 700;
}

@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    display: block;
    position: static;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
  }

  .nav__list {
    flex-direction: row;
    gap: var(--space-1);
  }

  .nav__link {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
  }

  .nav__link--cta {
    background: #c81e1e;
    background: var(--color-accent);
    color: #fff;
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-md);
  }

  .nav__link--cta:hover {
    background: #a81818;
    background: var(--color-accent-hover);
    color: #fff;
  }
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  min-height: 48px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 120ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: #c81e1e;
  background: var(--color-accent);
  color: #fff;
  border-color: #c81e1e;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: #a81818;
  background: var(--color-accent-hover);
  border-color: #a81818;
  border-color: var(--color-accent-hover);
}

.btn--primary:active {
  background: #8e1414;
  background: var(--color-accent-active);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.btn--lg {
  padding: 16px 36px;
  font-size: var(--text-sm);
  min-height: 52px;
}

.btn--sm {
  padding: 8px 20px;
  font-size: var(--text-xs);
  min-height: 40px;
}

.btn--full {
  width: 100%;
}


/* --- Section Utility --- */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-10);
  letter-spacing: -0.02em;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-10);
}


/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0000 0%, #0e0e0e 50%, #1a0a0a 100%);
}

.hero__video,
#hero-yt-player {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 178vh;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.85) 100%
  );
  /* Ensure overlay blocks any YouTube UI from showing through */
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-8) var(--space-5);
  max-width: 720px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.hero__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-surface);
}

.testimonials__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.testimonial-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testimonial-card__stars {
  color: #f0a500;
  font-size: var(--text-sm);
  letter-spacing: 2px;
}

.testimonial-card__author cite {
  font-style: normal;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}


/* =========================================================
   COMMUNITY / GROUP PHOTO
   ========================================================= */
.community {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.community__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.community__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.community__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.6) 100%
  );
}

.community__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(var(--space-16), 10vw, var(--space-24)) var(--space-5);
  max-width: 600px;
}

.community__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-4);
}

.community__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
}


/* =========================================================
   PROGRAMS
   ========================================================= */
.programs {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.programs__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .programs__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.program-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.program-card:hover {
  border-color: rgba(255,255,255,0.2);
  box-shadow: var(--shadow-md);
}

.program-card--featured {
  border-color: var(--color-accent);
}

.program-card--featured:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 24px rgba(200, 30, 30, 0.2);
}

.program-card__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.program-card__icon svg {
  color: var(--color-accent);
  width: 40px;
  height: 40px;
}

.program-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
}

.program-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.program-card__list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}

.program-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.program-card__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}


/* =========================================================
   AFTER SCHOOL
   ========================================================= */
.after-school {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-surface);
}

.after-school__inner {
  max-width: 720px;
  margin: 0 auto;
}

.after-school__label {
  display: inline-block;
  background: rgba(200, 30, 30, 0.15);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
}

.after-school__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.after-school__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.after-school__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.after-school__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.after-school__list li svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.after-school__pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.after-school__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-text);
}

.after-school__price span {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
}

.after-school__price-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.after-school__urgency {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-6);
}


/* =========================================================
   ABOUT / SENSEI CARRIE
   ========================================================= */
.about {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.about__layout {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .about__layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
  }
}

.about__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__photo--main {
  grid-column: 1 / -1;
}

.about__photo--main img {
  aspect-ratio: 16/10;
}

.about__photo--secondary img {
  aspect-ratio: 4/3;
}

.about__photo--tertiary img {
  aspect-ratio: 4/3;
}

.about__bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about__bio p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.about__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.credential {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}


/* =========================================================
   STEPS
   ========================================================= */
.steps {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-surface);
}

.steps__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .steps__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
}

.step__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 280px;
}


/* =========================================================
   FINAL CTA / TRIAL FORM
   ========================================================= */
.final-cta {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.final-cta__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.final-cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.final-cta__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.trial-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}

.trial-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.trial-form__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.trial-form__input {
  width: 100%;
  padding: 14px var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  min-height: 48px;
}

.trial-form__input::placeholder {
  color: var(--color-text-faint);
}

.trial-form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200, 30, 30, 0.15);
}

.trial-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.trial-form__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-2);
}

/* Form success state */
.trial-form--success {
  text-align: center;
  padding: var(--space-8) 0;
}

.trial-form__success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.trial-form__success-icon svg {
  color: #22c55e;
}

.trial-form__success-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.trial-form__success-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}


/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: clamp(var(--space-12), 6vw, var(--space-16)) 0 var(--space-8);
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
}

.footer__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
  }
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}

.footer__logo svg {
  color: var(--color-accent);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer__address {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.footer__address a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__address a:hover {
  color: var(--color-text);
}

.footer__phone,
.footer__email {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-2);
}

.footer__phone:hover,
.footer__email:hover {
  color: var(--color-accent);
}

.footer__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.footer__social-links {
  display: flex;
  gap: var(--space-4);
}

.footer__social-links a {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-2);
}

.footer__social-links a:hover {
  color: var(--color-accent);
  background: var(--color-surface-offset);
}

.footer__bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__attribution {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}

.footer__attribution:hover {
  color: var(--color-text-muted);
}


/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }


/* =========================================================
   HARDCODED COLOR FALLBACKS
   Some webviews / in-app browsers may not properly resolve
   CSS custom properties. These fallbacks use the actual
   hex values directly.
   ========================================================= */
body {
  background-color: #0e0e0e;
  color: #f0f0f0;
}

.top-bar { background: #c81e1e; }
.nav { background: rgba(14, 14, 14, 0.92); }
.nav__logo-icon { color: #c81e1e; }
.nav__link:hover { color: #c81e1e; }
.nav__link--cta { color: #c81e1e; }
@media (min-width: 768px) {
  .nav__link--cta { background: #c81e1e; color: #fff; }
  .nav__link--cta:hover { background: #a81818; color: #fff; }
}

.btn--primary { background: #c81e1e; border-color: #c81e1e; color: #fff; }
.btn--primary:hover { background: #a81818; border-color: #a81818; }
.btn--primary:active { background: #8e1414; }

.program-card--featured { border-color: #c81e1e; }
.program-card__badge { background: #c81e1e; }
.program-card__icon svg { color: #c81e1e; }
.program-card__list li::before { background: #c81e1e; }

.after-school__label { background: rgba(200, 30, 30, 0.15); color: #c81e1e; }
.after-school__list li svg { color: #c81e1e; }
.after-school__urgency { color: #c81e1e; }

.step__number { background: #c81e1e; }

.testimonial-card__stars { color: #f0a500; }
.testimonial-card { background: #1c1c1c; border-color: rgba(255,255,255,0.1); }
.testimonials { background: #161616; }
.programs { background: #0e0e0e; }
.after-school { background: #161616; }
.about { background: #0e0e0e; }
.steps { background: #161616; }
.final-cta { background: #0e0e0e; }
.footer { background: #161616; }
.program-card { background: #161616; border-color: rgba(255,255,255,0.1); }

.trial-form__input { background: #161616; border-color: rgba(255,255,255,0.1); color: #f0f0f0; }
.trial-form__input:focus { border-color: #c81e1e; box-shadow: 0 0 0 3px rgba(200,30,30,0.15); }

.footer__social-links a { background: #1c1c1c; color: #a0a0a0; }
.footer__social-links a:hover { color: #c81e1e; background: #222222; }
.footer__phone:hover,
.footer__email:hover { color: #c81e1e; }

.credential { background: #161616; border-color: rgba(255,255,255,0.1); color: #f0f0f0; }

.skip-link { background: #c81e1e; }

:focus-visible { outline-color: #c81e1e; }


/* =========================================================
   PRICING SECTION
   ========================================================= */
.pricing {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.pricing__grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  text-align: center;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.pricing-card--featured {
  border-color: #c81e1e;
  box-shadow: 0 4px 24px rgba(200,30,30,0.15);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #c81e1e;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-card__tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #fff;
  line-height: 1;
}

.pricing-card__price span {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
}

.pricing__no-contract {
  text-align: center;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.pricing__transparency {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

.pricing__transparency-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.pricing__transparency p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}


/* =========================================================
   PUNCHCARD SECTION
   ========================================================= */
.punchcard {
  padding: clamp(var(--space-12), 8vw, var(--space-20)) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
}

.punchcard__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.punchcard__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.punchcard__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.punchcard__highlight {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}


/* =========================================================
   AFTER-SCHOOL VAN IMAGE
   ========================================================= */
.after-school__image-wrap {
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.after-school__van-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: brightness(1.05);
}


/* =========================================================
   CONFIDENCE / KIDS FLEXING SECTION
   ========================================================= */
.confidence {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.confidence__inner {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .confidence__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.confidence__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.confidence__image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: brightness(1.05) contrast(1.02);
}

.confidence__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.confidence__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}


/* =========================================================
   CAMPS SECTION
   ========================================================= */
.camps {
  padding: clamp(var(--space-12), 8vw, var(--space-20)) 0;
  background: var(--color-surface);
}

.camps__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.camps__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.camps__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}


/* =========================================================
   MEET SENSEI — COACHING PHOTO FULL WIDTH
   ========================================================= */
.about__photo--coaching-full {
  grid-column: 1 / -1;
}

.about__photo--coaching-full img {
  aspect-ratio: 16/7;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Enhanced credential badges */
.credential--highlight {
  background: rgba(200, 30, 30, 0.12);
  border-color: rgba(200, 30, 30, 0.4);
  color: #f0a0a0;
  font-weight: 700;
}


/* =========================================================
   OLYMPIC DREAMS SECTION
   ========================================================= */
.olympic-dreams {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.olympic-dreams__inner {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .olympic-dreams__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.olympic-dreams__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.olympic-dreams__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.olympic-dreams__stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: #c81e1e;
  margin-bottom: var(--space-8);
}

.olympic-dreams__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.olympic-dreams__image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: brightness(1.05);
}


/* =========================================================
   TEAM PRIDE / SOCIAL PROOF SECTION
   ========================================================= */
.team-pride {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-pride__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.team-pride__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
}

.team-pride__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}

.team-pride__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(var(--space-16), 10vw, var(--space-24)) var(--space-5);
  max-width: 640px;
}

.team-pride__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.team-pride__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
}


/* =========================================================
   DONATE SECTION
   ========================================================= */
.donate {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-surface);
}

.donate__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.donate__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.donate__lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.donate__sub {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  text-align: left;
}

.donate__list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.donate__list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-6);
  position: relative;
}

.donate__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #c81e1e;
  border-radius: 50%;
}

.donate__closing {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  font-style: italic;
}

.donate__cta-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}


/* =========================================================
   FOOTER ACTIONS
   ========================================================= */
.footer__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}


/* =========================================================
   MOBILE OPTIMIZATIONS
   ========================================================= */
@media (max-width: 767px) {
  .pricing-card {
    padding: var(--space-6) var(--space-5);
  }

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

  .olympic-dreams__inner {
    grid-template-columns: 1fr;
  }

  .olympic-dreams__image-wrap {
    order: -1;
  }

  .donate__sub,
  .donate__list {
    text-align: left;
  }

  .footer__actions {
    justify-content: flex-start;
  }
}
