/* Bronx Combat Club rebuild. Mobile-first, no build step. */
:root {
  --bg: #0b0b0c;
  --bg-soft: #141415;
  --card: #171718;
  --ink: #f4f4f4;
  --muted: #bdbdc0;
  --line: #2a2a2d;
  --red: #c8102e;
  --red-dark: #9c0c24;
  --red-text: #ff5c6c;
  --gold: #f5b301;
  --radius: 10px;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0 0 0.6em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--muted); }
p strong, li strong { color: var(--ink); }

a { color: var(--ink); }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--red-text);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* Layout */
.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
section { padding: 3.5rem 0; }
.section-kicker {
  color: var(--red-text);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.96);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  width: min(1240px, 100% - 2rem);
  margin-inline: auto;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  margin-right: auto;
}
.wordmark span { color: var(--red-text); }
.wordmark img {
  height: 46px;
  width: auto;
  display: block;
}
.footer-brand .wordmark img { height: 64px; }

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}
.icon-btn:hover { color: #fff; background: var(--bg-soft); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: #fff; }
.btn-phone {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: clip;
  padding: 5rem 0 3.5rem;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: -12% 0;
  z-index: -1;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.25) 40%, rgba(11,11,12,0.92) 100%);
}
.hero-content { max-width: 720px; }
.hero .section-kicker { color: #fff; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.6); }
.hero p.lede { color: #e8e8e8; font-size: 1.1rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Disciplines strip */
.disciplines {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 0;
}
.disciplines ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.disciplines a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.disciplines a:hover { background: var(--red); color: #fff; }

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; margin-bottom: 1rem; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}
.card .card-link:hover { color: var(--red-text); }

/* Gallery */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery img { width: 100%; filter: grayscale(0%); }

/* Reviews */
.review-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}
.review {
  background: #fff;
  color: #1a1a1a;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.review p { color: #3c4043; font-size: 0.95rem; margin-bottom: 0.75rem; }
.review .reviewer { font-weight: 700; color: #1a1a1a; margin: 0; }
.review .stars { color: #9a6a00; letter-spacing: 0.15em; font-size: 1.05rem; margin-bottom: 0.5rem; }
.review .source { font-size: 0.8rem; color: #70757a; margin: 0; }
.reviews-shot { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* Location */
.location-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}
.nap { font-style: normal; }
.nap .org { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.05em; color: var(--ink); }
.nap address { font-style: normal; color: var(--muted); margin: 0.5rem 0; }
.nap a.phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.nap a.phone:hover { color: var(--red-text); }
.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Program sections (classes page) */
.program { border-top: 1px solid var(--line); }
.program:first-of-type { border-top: 0; }
.program-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.program p { max-width: 44rem; }
.why-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.why-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  color: var(--muted);
}
.cta-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band .btn { margin: 0.25rem; }

/* Schedule */
.day-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}
.day-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.day-card h2 {
  font-size: 1.2rem;
  margin: 0;
  padding: 0.9rem 1.25rem;
  background: var(--red);
  color: #fff;
  letter-spacing: 0.08em;
}
.day-card table { width: 100%; border-collapse: collapse; }
.day-card td {
  padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.95rem;
}
.day-card tr:first-child td { border-top: 0; }
.day-card td.class-name { color: var(--ink); font-weight: 600; }
.day-card td.class-time { color: var(--muted); text-align: right; white-space: nowrap; }
.schedule-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
  color: var(--muted);
}
.schedule-note a { color: #fff; font-weight: 700; }
.flyer { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* Pricing */
.tier-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}
.tier {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.tier.featured { border: 2px solid var(--red); }
.tier h2 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.tier .price { font-family: var(--font-display); font-size: 2.6rem; color: #fff; letter-spacing: 0.03em; }
.tier .price small { font-family: var(--font-body); font-size: 1rem; color: var(--muted); font-weight: 400; }
.tier ul { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; color: var(--muted); }
.tier li::before { content: "✓ "; color: var(--red-text); font-weight: 700; }
.tier .btn { margin-top: auto; }
.trial-note { text-align: center; margin-top: 2rem; color: var(--muted); }
.trial-note a { color: #fff; font-weight: 700; }
.signup-embed { margin-top: 2.5rem; }
.signup-embed iframe {
  width: 100%;
  height: 1100px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: block;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}
.team-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.call-block { margin-bottom: 2rem; }
.call-block .section-kicker { color: var(--red); }
.call-block a.big-phone {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}
.call-block a.big-phone:hover { color: var(--red-text); }

/* Form */
.trial-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
.field label, .field legend {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field .req { color: var(--red-text); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 3px solid var(--red-text);
  outline-offset: 1px;
  border-color: var(--red);
}
.field fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.check-group, .radio-group { display: grid; gap: 0.25rem; }
.check-option, .radio-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.35rem 0;
  cursor: pointer;
  color: var(--muted);
}
.check-option input, .radio-option input {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
  flex: none;
  margin: 0;
}
.form-error {
  display: none;
  background: #2a0d12;
  border: 1px solid var(--red);
  color: #ffd9de;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
}
.form-error.show { display: block; }
.form-confirm {
  display: none;
  background: #0f2a16;
  border: 1px solid #2e7d32;
  color: #d7f0db;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1.25rem;
}
.form-confirm.show { display: block; }
.form-confirm a { color: #fff; font-weight: 700; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #080808;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.footer-brand .wordmark { margin: 0 0 1rem; display: inline-block; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.footer-nav a:hover { color: #fff; }
.footer-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: #7d7d80;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
.social-row { display: flex; gap: 0.25rem; margin-top: 0.5rem; }

/* Reveal (JS only; content visible without JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Page hero for inner pages */
.page-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 20rem at 50% -6rem, rgba(200,16,46,0.16), transparent 70%),
    var(--bg);
}
.page-hero p.lede { max-width: 44rem; font-size: 1.05rem; }

/* Breakpoints */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .day-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .disciplines ul { grid-template-columns: repeat(4, 1fr); }
  .disciplines a { border-bottom: 0; border-left: 1px solid var(--line); }
  .disciplines li:first-child a { border-left: 0; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: 1fr 1.2fr; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; }
  .day-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #101011;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem 1rem 1rem; }
  .site-nav a { font-size: 1rem; padding: 0 0.5rem; }
  .header-actions .btn-phone { display: none; }
}

/* Narrow phones: keep the header on one line, no horizontal scroll */
@media (max-width: 420px) {
  .header-inner { width: min(1240px, 100% - 1rem); gap: 0.5rem; }
  .wordmark { font-size: 1.02rem; letter-spacing: 0.04em; }
  .header-actions { gap: 0.25rem; }
}

/* Reduced motion: kill parallax, reveals, smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media { inset: 0; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- 3D gloves signature moment (schedule section) ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.schedule-layout { display: block; }

.glove-stage {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  height: 240px;
  margin: 1.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(200,16,46,0.28), rgba(200,16,46,0) 60%),
    radial-gradient(80% 70% at 50% 20%, #1d1d20, #0b0b0c 75%);
}
.glove-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none; /* decorative: never trap scroll or taps */
}
.glove-hint {
  position: absolute; left: 0; right: 0; bottom: 0.55rem;
  margin: 0; text-align: center;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

/* Cards go translucent over the sticky stage; text stays AA on near-black */
.day-card {
  background: rgba(20, 20, 22, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}

/* No WebGL / no THREE: stage drops out, layout collapses to plain cards */
.no-gloves .glove-stage { display: none; }

@media (min-width: 900px) {
  .schedule-layout {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
  .glove-stage {
    top: calc(var(--header-h) + 20px);
    height: min(72vh, 560px);
    margin-top: 1.75rem;
  }
  .schedule-layout .day-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 3D penguin mascot hero ---- */
.hero-inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  width: 100%;
}
.mascot-stage {
  position: relative;
  height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(110% 85% at 50% 108%, rgba(200,16,46,0.32), rgba(200,16,46,0) 62%),
    radial-gradient(75% 65% at 50% 18%, #202024, #0b0b0c 78%);
}
.mascot-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none; /* decorative: never trap scroll or taps */
}
.no-mascot .mascot-stage { display: none; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr minmax(320px, 430px); gap: 2.5rem; }
  .mascot-stage { height: 460px; }
}
