/* ============================================================
   Ortiz Chinese Boxing Association — Main Stylesheet
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --bg-base:      #0B0B0D;
  --bg-surface:   #141417;
  --bg-surface-2: #1A1A1F;

  --red:        #C8102E;
  --red-hover:  #A00D24;
  --green:      #7CB342;
  --gold:       #D4AF37;

  --text-white: #FFFFFF;
  --text-muted: #A8A8B3;

  --font-display: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius: 10px;
  --radius-lg: 14px;

  --container-max: 1200px;
  --section-pad: 110px;
  --section-pad-mobile: 64px;

  --shadow-glow: 0 0 24px rgba(200, 16, 46, 0.35);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { color: var(--text-muted); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-pad) 0; position: relative; }

/* Alternating surface rhythm: odd sections sit on --bg-surface with a faint red
   vignette so the page reads as a sequence of bands, not a flat stack. Applied
   via a utility class rather than nth-of-type so PHP can opt sections in/out
   explicitly (inline style="background:var(--bg-surface)" usages are being
   retired in favor of this). */
.section-alt {
  background: var(--bg-surface);
  background-image: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(200,16,46,0.07), transparent 70%);
}

@media (max-width: 768px) {
  section { padding: var(--section-pad-mobile) 0; }
}

.text-gradient {
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--green);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-2px);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-hover));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(200, 16, 46, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--red);
  background: rgba(200, 16, 46, 0.08);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8942c);
  color: #0B0B0D;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(212,175,55,0.4); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 11, 13, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(11, 11, 13, 0.92);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-logo img { width: 44px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text-white); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
}

.nav-cta { display: none; }
@media (min-width: 769px) { .nav-cta { display: inline-flex; } }

.hamburger {
  display: none; /* mobile-only — shown in the ≤768px media query */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  }
  .nav-links.open { right: 0; }
  .nav-cta { display: none !important; }
  .hamburger { display: flex; }
}

/* ---------- Hero ----------
   Cinematic full-viewport hero: the emblem artwork is an absolutely-positioned
   backdrop layer behind the copy (60-75% of hero height), not a side-by-side
   grid column — it needs to read as the dominant visual, not an illustration
   next to the text. */
.hero {
  min-height: 92vh;
  display: flex;
  /* Column: the copy grid and the full-width action band stack vertically —
     row direction put the two containers side by side and crushed both. */
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 168px 0 90px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(200,16,46,0.22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(124,179,66,0.08), transparent 70%),
    linear-gradient(160deg, #0B0B0D 0%, #141417 55%, #0B0B0D 100%);
}

.hero-backdrop {
  position: absolute;
  top: 4%;
  right: -6%;
  width: 68%;
  height: 78%;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-backdrop::before {
  content: '';
  position: absolute;
  width: 62%;
  height: 62%;
  background: radial-gradient(circle, rgba(200,16,46,0.4), transparent 70%);
  filter: blur(20px);
}
.hero-backdrop img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Screen blend melts the art's black field into the hero; the edge masks
     feather the outer 10% on every side so the AI art's textured near-black
     never prints as a hard rectangle against the page background. */
  mix-blend-mode: screen;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect;
  animation: heroFloat 9s ease-in-out infinite;
}

/* Legibility scrim: sits above the backdrop, below the copy. Solid dark on the
   left where the headline/body text lives, fading to transparent toward the
   art so the emblem still reads as dominant on the right/bottom of the hero. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(11,11,13,0.94) 0%, rgba(11,11,13,0.82) 32%, rgba(11,11,13,0.35) 56%, transparent 74%);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.025); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.hero-copy { max-width: min(640px, 56%); }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.hero-copy .eyebrow::before { display: none; }

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.6rem, 6vw, 5rem);
}
.hero h1 .tagline-symbol { color: var(--gold); font-size: 0.5em; vertical-align: super; }
.hero h1 .type-cursor {
  display: inline-block;
  width: 3px;
  background: var(--red);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

.hero-brush-rule {
  display: block;
  width: 120px;
  height: 6px;
  margin: 0 0 28px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 3px;
  position: relative;
}
.hero-brush-rule::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 40%;
  height: 100%;
  background: rgba(255,255,255,0.35);
  border-radius: 3px;
}

.hero-sub {
  font-size: 1.2rem;
  max-width: 560px;
  margin-bottom: 38px;
  color: var(--text-muted);
}

/* Full-width action band under the hero copy: CTAs left, trust chips spread
   right — spans the whole container instead of cramping in the copy column. */
.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.14);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-indicator .line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrolldown 1.8s ease-in-out infinite;
}

@media (max-width: 1024px) {
  /* Below 1024px the copy column no longer fits beside the art without
     collision, so the art becomes a full-bleed backdrop that sits BEHIND
     the whole hero (top-anchored, faded out before the copy starts) and the
     scrim goes full-strength so text always lands on a clean dark ground —
     the emblem still reads as dominant, just stacked instead of side-by-side. */
  .hero-backdrop { top: -4%; right: -10%; left: -10%; width: auto; height: 46%; opacity: 0.9; justify-content: flex-end; }
  .hero-scrim { background: linear-gradient(180deg, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.97) 42%, var(--bg-base) 60%); }
  .hero-grid { text-align: center; }
  .hero-copy { max-width: 640px; margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-brush-rule { margin-inline: auto; }
  .hero-ctas, .trust-chips { justify-content: center; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .hero { padding-top: 130px; min-height: 88vh; }
  .hero-backdrop { top: -2%; height: 40%; }
  .hero-copy { max-width: 100%; }
  .btn { width: 100%; }
  .hero-ctas { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-backdrop img { animation: none; }
}

/* ---------- Why OCBA ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,16,46,0.4);
  box-shadow: var(--shadow-glow);
}
.why-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  background: rgba(200,16,46,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--red);
}
.why-card h3 { margin-bottom: 12px; color: var(--text-white); }

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Programs ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.program-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.program-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,16,46,0.45);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.program-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-surface-2), var(--bg-base));
  display: flex;
  align-items: center;
  justify-content: center;
}
.program-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top center;
}
.program-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.program-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.program-badge.free { color: var(--gold); }
.program-body h3 { margin-bottom: 10px; color: var(--text-white); }
.program-body p { flex: 1; margin-bottom: 18px; font-size: 0.95rem; }
.program-card-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.program-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.program-link:hover { gap: 10px; color: var(--gold); }
.program-book-link {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.program-book-link:hover { border-color: var(--red); color: var(--text-white); background: rgba(200,16,46,0.1); }

@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .programs-grid { grid-template-columns: 1fr; }
}

/* ---------- Schedule strip / table ---------- */
.schedule-table-wrap {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
table.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}
.schedule-table th {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--gold);
  background: rgba(255,255,255,0.03);
}
.schedule-table td:first-child { color: var(--text-white); font-weight: 600; }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(200,16,46,0.15);
  color: #ff8a9c;
  font-size: 0.75rem;
  margin-right: 6px;
  margin-bottom: 4px;
}
.schedule-table .tag.green { background: rgba(124,179,66,0.15); color: #b3e08a; }
.schedule-table .tag.gold { background: rgba(212,175,55,0.15); color: var(--gold); }
.schedule-table .row-book-link {
  float: right;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 5px 12px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.schedule-table .row-book-link:hover { border-color: var(--red); color: var(--text-white); background: rgba(200,16,46,0.1); }

.schedule-cta { text-align: center; margin-top: 36px; }

@media (max-width: 640px) {
  .schedule-table th, .schedule-table td { padding: 12px 14px; font-size: 0.85rem; }
  .schedule-table .row-book-link { float: none; display: inline-block; margin-top: 8px; }
}

/* ---------- Heritage band ----------
   Full-width strip of big Oswald numerals — lineage years / forms / ages / founded.
   Values are always injected from ocbaCompany(), never hardcoded. */
.heritage-band {
  padding: 64px 0;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.heritage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.heritage-item { padding: 0 12px; position: relative; }
.heritage-item + .heritage-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 46px;
  background: rgba(255,255,255,0.1);
}
.heritage-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.heritage-label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .heritage-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 8px; }
  .heritage-item:nth-child(3)::before { display: none; }
}

/* ---------- Book a Session (homepage #book) ---------- */
.book-section {
  background: var(--bg-surface);
  background-image: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(200,16,46,0.1), transparent 70%);
}
.book-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: flex-start;
}
.book-info h2 { margin-bottom: 16px; }
.book-info p { font-size: 1.05rem; margin-bottom: 26px; }
.book-info-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.book-info-item { display: flex; gap: 14px; align-items: flex-start; }
.book-info-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(200,16,46,0.12);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.book-info-item h4 { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text-white); margin-bottom: 3px; text-transform: uppercase; }
.book-info-item p { margin: 0; font-size: 0.9rem; }
.book-phone-fallback { font-size: 0.9rem; }
.book-phone-fallback a { color: var(--red); text-decoration: underline; text-decoration-color: rgba(200,16,46,0.4); }
.book-phone-fallback a:hover { text-decoration-color: var(--red); }

.book-form-card {
  background: var(--bg-base);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.book-form-card .form-row { margin-bottom: 18px; }
.book-age-row { display: none; }
.book-age-row.is-visible { display: block; }
.book-form-msg { margin-top: 16px; font-size: 0.9rem; display: none; }
.book-form-msg.error { color: #ff8a9c; display: block; }
.book-confirm {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.book-confirm.is-visible { display: block; }
.book-confirm .confirm-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(124,179,66,0.15);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.book-confirm h3 { color: var(--text-white); margin-bottom: 10px; }
.book-confirm p { max-width: 380px; margin: 0 auto; }

@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-form-card { padding: 26px 22px; }
}

/* ---------- Sticky mobile booking bar ---------- */
.sticky-book-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(135deg, var(--red), var(--red-hover));
  box-shadow: 0 -8px 30px rgba(0,0,0,0.5);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease;
}
.sticky-book-bar.is-hidden { transform: translateY(110%); }
@media (max-width: 768px) {
  .sticky-book-bar { display: flex; }
  /* keep chatbot launcher above the sticky bar instead of overlapping it */
  #chatbot-btn { bottom: 80px; }
  #chatbot-panel { bottom: 152px; }
}

/* ---------- Offer banner ---------- */
.offer-banner {
  background: linear-gradient(120deg, rgba(200,16,46,0.18), rgba(212,175,55,0.1));
  border: 1px solid rgba(200,16,46,0.35);
  border-radius: var(--radius-lg);
  padding: 46px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.offer-banner h2 { margin-bottom: 12px; }
.offer-banner p { font-size: 1.05rem; max-width: 560px; margin: 0 auto 26px; }
.offer-banner .eyebrow { color: var(--gold); }
.offer-banner .eyebrow::before { background: var(--gold); }
.offer-price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--text-white);
  margin-bottom: 6px;
}
.offer-price span { color: var(--red); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 22px 26px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text-white);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 26px 22px; font-size: 0.95rem; }

/* ---------- Contact CTA (shared banner) ---------- */
.contact-cta {
  text-align: center;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(200,16,46,0.18), transparent 70%), var(--bg-surface);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.contact-cta h2 { margin-bottom: 16px; }
.contact-cta p { max-width: 560px; margin: 0 auto 30px; font-size: 1.05rem; }
.contact-cta .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-base);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 70px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 1fr;
  gap: 46px;
  margin-bottom: 50px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 42px; }
.footer-brand span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a, .footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text-white); }

.footer-contact-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-contact-hours h4:not(:first-child) { margin-top: 0; }

.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-link:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
}
.footer-copy { color: var(--text-muted); }
.footer-built-by { font-size: 0.72rem; color: var(--text-muted); }
.footer-built-by a { color: var(--red); text-decoration: none; transition: color 0.2s; }
.footer-built-by a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact-hours { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact-hours { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  padding: 170px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(200,16,46,0.18), transparent 70%),
    linear-gradient(160deg, #0B0B0D 0%, #141417 60%, #0B0B0D 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero .eyebrow { display: block; }
.page-hero p { max-width: 640px; margin: 18px auto 0; font-size: 1.05rem; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--gold); margin: 0 6px; }

/* ---------- Programs page ---------- */
.program-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.program-detail:last-of-type { border-bottom: none; }
.program-detail.reverse .program-detail-media { order: 2; }
.program-detail-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  max-height: 460px;
}
.program-detail-copy .price-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin: 14px 0 18px;
}
.program-detail-copy ul { margin: 18px 0; }
.program-detail-copy ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.program-detail-copy ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .program-detail { grid-template-columns: 1fr; gap: 30px; }
  .program-detail.reverse .program-detail-media { order: 1; }
}

.tuition-table-wrap {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
table.tuition-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.tuition-table th, .tuition-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tuition-table th {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(255,255,255,0.03);
}
.tuition-table td:nth-child(2) { color: var(--text-white); font-weight: 600; }
.tuition-table tr:last-child td { border-bottom: none; }

/* ---------- About page ---------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-story-media img { border-radius: var(--radius-lg); width: 100%; }
.about-story-copy p { margin-bottom: 16px; }

.lineage-block {
  margin-top: 90px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.lineage-media img { border-radius: var(--radius-lg); width: 100%; }
.lineage-copy .stat-row {
  display: flex;
  gap: 30px;
  margin: 26px 0;
  flex-wrap: wrap;
}
.lineage-stat { }
.lineage-stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
}
.lineage-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.philosophy-quote {
  margin: 90px 0;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  padding: 50px 30px;
  position: relative;
}
.philosophy-quote::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--red);
}
.philosophy-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-white);
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.philosophy-quote span {
  display: block;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--gold);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tradition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 40px;
}
.tradition-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.tradition-card h3 { color: var(--text-white); margin-bottom: 10px; }

@media (max-width: 900px) {
  .about-story, .lineage-block { grid-template-columns: 1fr; }
  .lineage-media { order: 1; }
  .tradition-grid { grid-template-columns: 1fr; }
}

/* ---------- Schedule page ---------- */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.hours-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.hours-card .day { font-family: var(--font-display); color: var(--gold); letter-spacing: 0.05em; margin-bottom: 8px; }
.hours-card .time { font-size: 1.05rem; color: var(--text-white); }

.first-class-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 40px;
}
.first-class-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.first-class-card h3 { margin-bottom: 14px; color: var(--text-white); }
.first-class-card ul li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.first-class-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
}

@media (max-width: 768px) {
  .hours-grid { grid-template-columns: 1fr; }
  .first-class-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: flex-start;
}
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--bg-base);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.15);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-msg { margin-top: 16px; font-size: 0.9rem; display: none; }
.form-msg.success { color: #b3e08a; display: block; }
.form-msg.error { color: #ff8a9c; display: block; }

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 26px;
}
.contact-info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: rgba(200,16,46,0.12);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-row h4 { font-size: 0.85rem; letter-spacing: 0.05em; color: var(--text-white); margin-bottom: 4px; text-transform: uppercase; }
.contact-info-row a, .contact-info-row p { font-size: 0.92rem; }
.contact-info-row a:hover { color: var(--red); }

.map-embed-link {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  height: 220px;
  background: linear-gradient(160deg, var(--bg-surface-2), var(--bg-base));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.2s ease;
}
.map-embed-link:hover { border-color: var(--red); color: var(--text-white); }
.map-embed-link .map-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-two-col { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
