/* ==========================================================================
   Washington Luis Brazilian Jiu-Jitsu — Design System
   Style: Poster Editorial (near-black + brand yellow + warm white)
   Brand colors sampled directly from the client's logo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* --- Brand (sampled from logo) --- */
  --color-yellow: #FCEF0B;
  --color-yellow-hover: #E0D400;
  --color-yellow-soft: rgba(252, 239, 11, 0.12);
  --color-yellow-soft-strong: rgba(252, 239, 11, 0.22);

  /* --- Neutrals --- */
  --color-bg: #0A0A0A;
  --color-bg-alt: #111111;
  --color-card: #151515;
  --color-card-hover: #1B1B1B;
  --color-border: #2A2A2A;
  --color-border-strong: #3A3A3A;
  --color-fg: #FAFAFA;
  --color-fg-muted: #A6A6A6;
  --color-fg-faint: #6F6F6F;
  --color-white: #FFFFFF;

  /* --- Semantic --- */
  --color-destructive: #EF4444;
  --color-success: #22C55E;

  /* --- Typography --- */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Spacing (standard density) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* --- Radius (poster-sharp, minimal rounding) --- */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-base: 280ms;
  --duration-slow: 400ms;

  /* --- Layout --- */
  --container-max: 1240px;
  --header-h: 76px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
}

section { padding-block: var(--space-7); }
@media (min-width: 1024px) { section { padding-block: var(--space-8); } }

/* Focus visibility — never remove */
:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

/* ==========================================================================
   Typography scale
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-yellow);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--color-yellow);
}

.h-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 6vw + 1rem, 5.2rem);
  line-height: 0.98;
}

.h-section {
  font-size: clamp(1.9rem, 3.2vw + 1rem, 3rem);
  text-transform: uppercase;
}

.h-card {
  font-size: 1.4rem;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.25rem);
  color: var(--color-fg-muted);
  max-width: 58ch;
  line-height: 1.65;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-5);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-yellow);
  color: #0A0A0A;
  border-color: var(--color-yellow);
}
.btn-primary:hover {
  background: var(--color-yellow-hover);
  border-color: var(--color-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(252, 239, 11, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--color-fg);
  border-color: var(--color-border-strong);
}
.btn-outline:hover {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  transform: translateY(-2px);
}

.btn-sm { min-height: 44px; padding: 0 var(--space-4); font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--duration-base) var(--ease-out);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand .brand-sub { display: block; font-size: 0.65rem; color: var(--color-fg-muted); letter-spacing: 0.12em; font-weight: 500; }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-5);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links a {
  position: relative;
  padding-block: var(--space-2);
  color: var(--color-fg-muted);
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-fg); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta {
  display: none;
  align-items: center;
  gap: var(--space-3);
}
@media (min-width: 900px) { .header-cta { display: flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-fg);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: var(--color-bg);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-out);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav a[aria-current="page"] { color: var(--color-yellow); }
.mobile-nav .btn { margin-top: var(--space-4); }

/* Sticky mobile call bar — thumb-reachable primary CTA */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: flex;
  gap: 1px;
  background: var(--color-border);
  border-top: 1px solid var(--color-border);
}
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }
.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 60px;
  background: var(--color-bg-alt);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}
.mobile-cta-bar a.is-primary { background: var(--color-yellow); color: #0A0A0A; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0A0A0A; /* shows instantly while the video buffers, and if it can't load at all */
  border-bottom: 1px solid var(--color-border);
  padding-block: 0; /* .hero-inner owns its own top/bottom spacing — the generic `section` rule would otherwise double it */
}

.hero-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
  background: #0A0A0A;
}

/* Light overall tint for contrast — deliberately subtle so the video stays the focal element */
.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 10, 0.16);
  pointer-events: none;
}

/* Scrim concentrated at the bottom, where the CTA sits, so the top ~2/3 of the video stays unobstructed */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0) 32%,
    rgba(10, 10, 10, 0.55) 66%,
    rgba(10, 10, 10, 1) 92%,
    rgba(10, 10, 10, 1) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
/* Anchored to the text block's own height (not a % of viewport), so contrast holds
   on very tall mobile screens regardless of where the video's bright/dark areas land. */
.hero-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -50vw;
  right: -50vw;
  top: -2.5rem;
  bottom: -3rem;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.6) 22%,
    rgba(10, 10, 10, 0.88) 55%,
    rgba(10, 10, 10, 0.96) 100%
  );
  pointer-events: none;
}
.hero-copy .h-display { margin-top: var(--space-3); }
.hero-copy .lede { margin-top: var(--space-4); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.hero-trust .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-yellow);
  line-height: 1;
}
.hero-trust .stat span {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.8rem;
  color: var(--color-fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Poster visual block — CSS-only "photo" substitute with depth */
.hero-poster {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--color-border-strong);
  background:
    repeating-linear-gradient(135deg, rgba(252,239,11,0.05) 0 2px, transparent 2px 10px),
    linear-gradient(155deg, #1B1B1B 0%, #0D0D0D 60%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 24px 24px 0 0 var(--color-yellow);
}
.hero-poster img {
  width: 62%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
  transition: transform var(--duration-slow) var(--ease-out);
}
.hero-poster:hover img { transform: scale(1.05); }
.hero-poster .poster-tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  background: var(--color-yellow);
  color: #0A0A0A;
}
.hero-poster .poster-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 60%, transparent 100%);
  padding: var(--space-6) var(--space-4) var(--space-4);
}

/* ==========================================================================
   Cards — interactive program / info cards
   ========================================================================== */

.card-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.info-card {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: var(--space-5);
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out);
}
.info-card:hover,
.info-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--color-yellow);
  background: var(--color-card-hover);
}

.info-card .card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-yellow-soft);
  color: var(--color-yellow);
  border: 1px solid var(--color-yellow-soft-strong);
  transition: background-color var(--duration-base) var(--ease-out);
}
.info-card:hover .card-icon { background: var(--color-yellow); color: #0A0A0A; }
.info-card .card-icon svg { width: 26px; height: 26px; }

.info-card .h-card { margin-top: var(--space-4); }
.info-card p { margin-top: var(--space-2); color: var(--color-fg-muted); }

.info-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid var(--color-border-strong);
  color: var(--color-fg-muted);
}

.info-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-fg);
}
.info-card .card-link svg { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease-out); }
.info-card:hover .card-link svg { transform: translateX(4px); }

/* Stretched-link pattern for whole-card click target */
.card-link.stretched::after { content: ''; position: absolute; inset: 0; }

/* ==========================================================================
   Section helpers
   ========================================================================== */

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 720px;
}
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }
.section-head .h-section { margin-top: var(--space-2); }

.section-alt { background: var(--color-bg-alt); border-block: 1px solid var(--color-border); }

.split {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 1024px) { .split.reverse { direction: rtl; } .split.reverse > * { direction: ltr; } }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Program sections (programs.html): same source order for every program
   (head, image, body) so mobile always reads Program/Title, Image, Description,
   Checklist, CTA — desktop still alternates image left/right via .reverse. */
.program-split {
  display: grid;
  grid-template-areas: "head" "image" "body";
  row-gap: var(--space-5);
}
.program-split .program-head { grid-area: head; }
.program-split .hero-poster { grid-area: image; }
.program-split .program-body { grid-area: body; }
@media (min-width: 1024px) {
  .program-split {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "head image" "body image";
    column-gap: var(--space-6);
    row-gap: 0;
    align-items: center;
  }
  .program-split.reverse { grid-template-areas: "image head" "image body"; }
}

/* Optional wrapper for program-split content whose head/body text is short
   (no checklist/CTA to fill the row) — keeps head+body flowing as one block,
   centered against the image on desktop, while still splitting around the
   image on mobile via display:contents. */
@media (max-width: 1023px) {
  .program-split .program-text { display: contents; }
}
@media (min-width: 1024px) {
  .program-split:has(.program-text) { grid-template-areas: "text image"; }
  .program-split.reverse:has(.program-text) { grid-template-areas: "image text"; }
  .program-split .program-text { grid-area: text; }
}

/* Checklist / feature list */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.check-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-yellow); margin-top: 2px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: var(--space-5);
  height: 100%;
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.testimonial:hover { transform: translateY(-4px); border-color: var(--color-yellow); }
.testimonial .stars { display: flex; gap: 2px; color: var(--color-yellow); margin-bottom: var(--space-3); }
.testimonial .stars svg { width: 18px; height: 18px; }
.testimonial blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.testimonial .author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.testimonial .avatar {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-yellow-soft);
  color: var(--color-yellow);
  font-family: var(--font-heading); font-weight: 700;
}
.testimonial .author b { display: block; font-size: 0.95rem; }
.testimonial .author span { font-size: 0.82rem; color: var(--color-fg-muted); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--color-yellow);
  color: #0A0A0A;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(10,10,10,0.05) 0 2px, transparent 2px 14px);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band .h-section { color: #0A0A0A; }
.cta-band .lede { color: rgba(10,10,10,0.72); }
.cta-band .btn-outline { border-color: #0A0A0A; color: #0A0A0A; }
.cta-band .btn-outline:hover { background: #0A0A0A; color: var(--color-yellow); border-color: #0A0A0A; }
.cta-band .btn-primary { background: #0A0A0A; color: var(--color-yellow); border-color: #0A0A0A; }
.cta-band .btn-primary:hover { background: #1A1A1A; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-fg-muted);
}
.field input, .field select, .field textarea {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-3);
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--color-yellow);
  outline-offset: 1px;
  border-color: var(--color-yellow);
}
.form-note { margin-top: var(--space-3); font-size: 0.85rem; color: var(--color-fg-faint); }

/* ==========================================================================
   Weekly schedule — color-coded day rows (poster-matched)
   ========================================================================== */

.day-schedule {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--color-border);
}

.day-row {
  display: flex;
  align-items: stretch;
  min-height: 88px;
}
@media (max-width: 767px) {
  .day-row { flex-direction: column; min-height: 0; }
}

.day-badge {
  flex-shrink: 0;
  width: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  text-align: center;
}
.day-badge .day-letter {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.9;
}
.day-badge .day-name {
  margin-top: 2px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
@media (max-width: 767px) {
  .day-badge {
    width: auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
  }
  .day-badge .day-letter { font-size: 1.5rem; }
  .day-badge .day-name { margin-top: 0; }
}

.day-classes {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: var(--space-3) var(--space-4);
}
.class-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: 0.92rem;
}
.class-row .class-time {
  flex-shrink: 0;
  width: 92px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
}
.class-row .class-name { font-weight: 600; }
@media (max-width: 480px) {
  /* Recover horizontal room so entries like "Little Ninjas No-Gi (Ages 4–7)"
     fit on one line instead of wrapping the age range to its own line. */
  .day-classes { padding-inline: var(--space-3); }
  .class-row { gap: var(--space-2); font-size: 0.86rem; }
  .class-row .class-time { width: 68px; font-size: 0.76rem; }
}
.class-row .class-name em { font-style: normal; font-weight: 500; opacity: 0.7; font-size: 0.88em; }

.day-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
}
@media (max-width: 767px) {
  .day-icon { display: none; }
}
.day-icon .icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.day-icon .icon-circle svg { width: 30px; height: 30px; }

/* Gi days — Monday, Wednesday, Friday */
.day-row--gi {
  background: repeating-linear-gradient(135deg, rgba(10,10,10,0.05) 0 2px, transparent 2px 12px), var(--color-yellow);
  color: #0A0A0A;
}
.day-row--gi .day-badge { border-right: 1px solid rgba(10,10,10,0.15); }
.day-row--gi .icon-circle { background: #0A0A0A; color: var(--color-yellow); }
@media (max-width: 767px) { .day-row--gi .day-badge { border-right: none; border-bottom: 1px solid rgba(10,10,10,0.15); } }

/* No-Gi days — Tuesday, Thursday */
.day-row--nogi {
  background: repeating-linear-gradient(135deg, rgba(10,10,10,0.04) 0 2px, transparent 2px 12px), #D9D9D9;
  color: #0A0A0A;
}
.day-row--nogi .day-badge { border-right: 1px solid rgba(10,10,10,0.12); }
.day-row--nogi .icon-circle { background: #FAFAFA; color: #0A0A0A; border: 2px solid #0A0A0A; }
@media (max-width: 767px) { .day-row--nogi .day-badge { border-right: none; border-bottom: 1px solid rgba(10,10,10,0.12); } }

/* Striking — Saturday */
.day-row--striking {
  background: repeating-linear-gradient(135deg, rgba(252,239,11,0.035) 0 2px, transparent 2px 12px), #141414;
  color: var(--color-fg);
}
.day-row--striking .day-badge { border-right: 1px solid var(--color-border); color: var(--color-yellow); }
.day-row--striking .class-row .class-time { color: var(--color-yellow); }
.day-row--striking .icon-circle { background: #0A0A0A; color: var(--color-yellow); border: 2px solid var(--color-yellow); }
@media (max-width: 767px) { .day-row--striking .day-badge { border-right: none; border-bottom: 1px solid var(--color-border); } }

/* Closed — Sunday */
.day-row--closed {
  background: repeating-linear-gradient(135deg, rgba(10,10,10,0.03) 0 2px, transparent 2px 12px), #ECECEC;
  color: #0A0A0A;
}
.day-row--closed .day-badge { border-right: 1px solid rgba(10,10,10,0.1); }
.day-row--closed .icon-circle { background: #FFFFFF; color: #0A0A0A; border: 2px solid #0A0A0A; }
.day-row--closed .day-classes { align-items: center; text-align: center; }
.day-row--closed .closed-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.day-row--closed .closed-sub { font-size: 0.85rem; opacity: 0.75; margin-top: 2px; }
@media (max-width: 767px) {
  .day-row--closed .day-badge { border-right: none; border-bottom: 1px solid rgba(10,10,10,0.1); }
  .day-row--closed .day-classes { padding-top: var(--space-3); padding-bottom: var(--space-4); }
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.schedule-legend .legend-item { display: flex; align-items: center; gap: var(--space-2); font-size: 0.85rem; color: var(--color-fg-muted); }
.schedule-legend .legend-swatch { width: 16px; height: 16px; flex-shrink: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-7);
  padding-bottom: calc(var(--space-7) + 64px); /* clearance for mobile cta bar */
}
@media (min-width: 900px) { .site-footer { padding-bottom: var(--space-7); } }

.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand { display: flex; align-items: center; gap: var(--space-3); }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; }
.footer-brand b { display: block; font-family: var(--font-heading); text-transform: uppercase; }
.footer-brand span { font-size: 0.82rem; color: var(--color-fg-muted); }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-fg-muted);
  margin-bottom: var(--space-3);
}
.footer-col li { padding-block: var(--space-1); }
.footer-col a:hover { color: var(--color-yellow); }

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--color-fg-faint);
}

.social-row { display: flex; gap: var(--space-2); }
.social-row a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border-strong);
}
.social-row a:hover { border-color: var(--color-yellow); color: var(--color-yellow); }
.social-row svg { width: 18px; height: 18px; }

/* ==========================================================================
   Scroll reveal (vanilla JS driven, IntersectionObserver)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Stagger children */
[data-reveal-group] > * { transition-delay: calc(var(--stagger-i, 0) * 70ms); }

/* Page-load entrance (not scroll-triggered — for above-the-fold content that's
   visible immediately, like the home hero and every inner page's header) */
@keyframes enter-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy, .page-hero .container { animation: enter-up var(--duration-slow) var(--ease-out) both; }
.mobile-cta-bar { animation: enter-up var(--duration-slow) var(--ease-out) 150ms both; }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */

.page-hero {
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
}
/* The generic `section` rule below adds another 64-96px on top of page-hero's
   own bottom padding — without this override that stacks into 130-150px of
   dead space before the next section's content starts. */
.page-hero + section { padding-top: var(--space-5); }
.breadcrumb { font-size: 0.85rem; color: var(--color-fg-faint); margin-bottom: var(--space-3); }
.breadcrumb a:hover { color: var(--color-yellow); }

/* ==========================================================================
   Utilities
   ========================================================================== */

.mt-1{margin-top:var(--space-1)}.mt-2{margin-top:var(--space-2)}.mt-3{margin-top:var(--space-3)}
.mt-4{margin-top:var(--space-4)}.mt-5{margin-top:var(--space-5)}.mt-6{margin-top:var(--space-6)}
.flex{display:flex}.items-center{align-items:center}.gap-2{gap:var(--space-2)}
.skip-link {
  position: absolute; left: var(--space-3); top: -60px;
  background: var(--color-yellow); color: #0A0A0A;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  z-index: 200; transition: top var(--duration-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-3); }

/* FAQ (home page) */
.faq { max-width: 820px; margin-inline: auto; margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.faq-item { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 12px; }
.faq-item[open] { border-color: var(--color-border-strong); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--color-yellow); font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--color-yellow); outline-offset: 2px; }
.faq-item p { margin: 0; padding: 0 20px 20px; color: #B5B5B5; line-height: 1.6; }

/* Contact page: info cards and form share the same top and bottom edges on desktop */
@media (min-width: 1024px) {
  .contact-split { align-items: stretch; }
  .contact-split > div { display: flex; flex-direction: column; }
  .contact-split > div > .card-grid { flex: 1; margin-top: 0; }
  .contact-split > div > form { flex: 1; }
}

/* Contact page, phone/tablet: let the single column shrink so the dropdown's longest option can't widen it past the screen */
@media (max-width: 1023px) {
  .contact-split { grid-template-columns: minmax(0, 1fr); }
}
