/* ==========================================================================
   GUERRILLA JIU-JITSU MODESTO
   Style: Performance-Athletic · Brand Kit · Dark mode
   ========================================================================== */

:root {
  --bg: #141618;
  --card: #1F2226;
  --elevated: #2A2D31;
  --accent: #B8A263;
  --accent-hover: #D1B975;
  --accent-subtle: rgba(184, 162, 99, 0.12);
  --text: #F5F2EB;
  --muted: #9BA0A6;
  --border: rgba(245, 242, 235, 0.08);
  --border-strong: rgba(245, 242, 235, 0.16);

  --display: 'Archivo Black', 'Anton', 'Impact', sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --max: 1440px;
  --gutter: clamp(20px, 4vw, 56px);

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.01em; }

h1.display { font-size: clamp(2.5rem, 6.5vw, 6rem); }
h2.display { font-size: clamp(2rem, 5.5vw, 4.75rem); }
h3.display { font-size: clamp(1.5rem, 3vw, 2.25rem); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 60ch; }

/* Layout ================================================================== */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

section { padding-block: clamp(72px, 10vw, 140px); position: relative; }

/* Navbar =================================================================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
/* Soft top-of-page scrim — sits behind the nav, darkens whatever is
   underneath (hero image, page headers) to guarantee nav legibility.
   Fades away once the user scrolls and the nav gets its own blurred bg. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.78) 0%, rgba(8, 10, 12, 0.4) 55%, rgba(8, 10, 12, 0) 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.nav.scrolled::before { opacity: 0; }
.nav.scrolled {
  background: rgba(20, 22, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo-wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; }

/* Primary wordmark logo — inverts the black source to crisp near-white */
.nav-logo {
  height: 34px;
  width: auto;
  max-width: 320px;
  filter: invert(1) brightness(1.04);
  transition: filter 0.3s ease;
}
.nav-logo-wrap:hover .nav-logo {
  /* subtle gold wash on hover: invert → then tint with a hue-rotate */
  filter: invert(1) brightness(1.04) sepia(0.3) saturate(1.4) hue-rotate(-8deg);
}
@media (max-width: 540px) { .nav-logo { height: 28px; } }

/* Fallback text mark (shown only if image fails to load via onerror) */
.nav-logo-text {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
  display: none; /* hidden by default — logo image is the primary */
}
.nav-logo-text.show { display: inline; }
.nav-logo-text .accent { color: var(--accent); }

.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease, text-shadow 0.3s ease;
  position: relative;
  padding: 6px 0;
}
/* When nav is transparent (over hero image), add a soft dark glow behind
   the link text so it stays legible regardless of what's underneath.
   When scrolled, the nav has its own tinted blurred bg, so the glow is off. */
.nav:not(.scrolled) .nav-links a {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.4);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #1A1C1F;
  padding: 12px 22px;
  font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--text); }

.nav-mobile { display: none; }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-mobile {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 20px var(--gutter) 28px;
    gap: 16px;
  }
  .nav.open .nav-mobile a {
    font-size: 0.95rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .nav.open .nav-mobile .nav-cta-mobile {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: #1A1C1F;
    padding: 14px 22px; border-radius: 2px;
    font-weight: 700; margin-top: 6px;
  }
}

/* Simplified booking navbar */
.nav.nav--booking .nav-links,
.nav.nav--booking .nav-cta,
.nav.nav--booking .nav-toggle { display: none; }

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: #1A1C1F; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-large { padding: 20px 40px; font-size: 0.9rem; }

/* Brand stamp system ======================================================
   The uploaded logos are pure black. Rather than sit flat on dark bg, we
   use them as CSS masks and fill them with brand gradients or solid white.
   Three treatments:
     .brand-stamp--gold     → gold gradient fill, used as a medallion motif
     .brand-stamp--watermark → very-low-opacity gold ghost for hero backgrounds
     .brand-mark-white       → solid cream/white fill for small inline marks
   ========================================================================== */

.brand-stamp {
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: var(--accent);
  pointer-events: none;
  aspect-ratio: 1;
  display: inline-block;
}
.brand-stamp--circle {
  -webkit-mask-image: url('images/logo/logo-circle.webp');
  mask-image: url('images/logo/logo-circle.webp');
}
.brand-stamp--gold {
  background: linear-gradient(135deg, #E4C988 0%, #D1B975 40%, #B8A263 65%, #8E7A48 100%);
}
.brand-stamp--watermark {
  background: linear-gradient(135deg, rgba(209,185,117,0.22) 0%, rgba(184,162,99,0.08) 60%, rgba(184,162,99,0) 100%);
}
.brand-mark-white {
  -webkit-mask-image: url('images/logo/logo-circle.webp');
  mask-image: url('images/logo/logo-circle.webp');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: var(--text);
  aspect-ratio: 1;
  display: inline-block;
}

/* Ring medallion — a gold bordered disc that sits behind/around a logo mark.
   Used for premium "championship" vibes in hero + CTA banners. */
.brand-medallion {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(209,185,117,0.25), rgba(184,162,99,0.05) 70%);
  border: 1px solid rgba(184,162,99,0.35);
}
.brand-medallion::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(184,162,99,0.35);
}
.brand-medallion .brand-stamp {
  width: 58%;
  height: 58%;
  position: relative;
  z-index: 2;
}

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

.hero {
  min-height: 92vh;
  display: flex; align-items: flex-end;
  padding-block: 140px 72px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.18) contrast(1.18) brightness(0.92) saturate(0.95);
}
/* Multi-layer directional scrim:
   1) horizontal — heavy on the left (where text lives), light on the right
   2) radial vignette — darkens the text zone specifically
   3) vertical fade — smooth edge into the marquee section below
   Together these "press" the photo down under the type without hiding it. */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 28% 62%, rgba(0, 0, 0, 0.55), transparent 70%),
    linear-gradient(90deg, rgba(14, 16, 18, 0.88) 0%, rgba(14, 16, 18, 0.62) 35%, rgba(14, 16, 18, 0.18) 65%, rgba(14, 16, 18, 0.45) 100%),
    linear-gradient(180deg, rgba(14, 16, 18, 0.35) 0%, rgba(14, 16, 18, 0) 22%, rgba(14, 16, 18, 0) 55%, rgba(20, 22, 24, 0.98) 100%);
}
/* Thin gold film at the very bottom — echoes the marquee accent below
   and gives the hero a subtle horizontal "base line". */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(184, 162, 99, 0.7), transparent);
  z-index: 3;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
}

/* Ghosted logo watermark — lives in the far right edge, low enough to
   not compete with the headline on the left. Tuned way down from before. */
.hero-watermark {
  position: absolute;
  right: -8%;
  bottom: -6%;
  top: auto;
  width: clamp(220px, 28vw, 420px);
  height: clamp(220px, 28vw, 420px);
  z-index: 1;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@media (max-width: 700px) {
  .hero-watermark { right: -14%; bottom: -12%; opacity: 0.18; }
}

/* Reset the hero-content editorial anchor on very small screens so the
   gold rule doesn't hug the screen edge. */
@media (max-width: 540px) {
  .hero h1.display { letter-spacing: -0.01em; }
}
/* Hero-specific headline — one step smaller than the global h1.display
   so it reads as "bold editorial" rather than "billboard billboard". */
.hero h1.display {
  font-size: clamp(2.25rem, 5.2vw, 5.25rem);
  line-height: 0.94;
  letter-spacing: -0.018em;
  margin-bottom: 24px;
  max-width: 16ch;
  /* Layered shadow — a tight outline for sharp edge definition
     plus a soft bloom that lets the type feel "pressed into" the photo. */
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.55),
    0 20px 42px rgba(0, 0, 0, 0.45);
}
.hero h1 .accent {
  color: var(--accent);
  /* the gold "#1" gets its own gold halo so it reads as a highlight */
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 0 24px rgba(209, 185, 117, 0.55);
}

/* Eyebrow becomes a compact gold-outlined plate — small but elevated. */
.hero-content .eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  padding: 7px 14px 6px;
  border: 1px solid rgba(184, 162, 99, 0.55);
  background: rgba(184, 162, 99, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2px;
  color: var(--accent);
  letter-spacing: 0.24em;
  font-size: 0.72rem;
}

/* Lead copy lifts to full cream text (was muted gray) with a soft shadow
   so it stays readable against the photo texture. */
.hero p {
  margin-bottom: 36px;
  max-width: 48ch;
  color: #E8E4DA;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.75);
  font-weight: 400;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
/* Make the ghost button on hero more readable against photo */
.hero-ctas .btn-ghost {
  background: rgba(14, 16, 18, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-stats {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-strong);
  padding-top: 36px;
}
.stat-num { font-family: var(--display); font-size: clamp(1.75rem, 3.5vw, 2.75rem); color: var(--accent); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 700px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

/* Page header (non-home hero) ============================================= */

.page-header {
  padding: 180px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-header-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: grayscale(0.3); }
.page-header-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,24,0.55) 0%, rgba(20,22,24,0.95) 100%);
}
.page-header .container { position: relative; z-index: 2; }
.page-header .eyebrow { margin-bottom: 18px; }
.page-header h1 { margin-bottom: 16px; }

/* Marquee ================================================================== */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding: 20px 0;
  background: var(--card);
}
.marquee-track {
  display: flex; gap: 56px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.marquee-item {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text);
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee-item .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section header =========================================================== */

.section-head { margin-bottom: 64px; max-width: 800px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.section-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  max-width: none;
}
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; gap: 28px; } }

/* Program cards ============================================================ */

.programs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) { .programs { grid-template-columns: 1fr; } }

.program-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.program-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.program-card-img {
  aspect-ratio: 16/10;
  margin: -36px -36px 28px;
  overflow: hidden;
}
.program-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.program-card:hover .program-card-img img { transform: scale(1.04); }
.program-card-tag {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; font-weight: 600;
}
.program-card h3 { margin-bottom: 14px; font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
.program-card p { color: var(--muted); margin-bottom: 24px; flex: 1; font-size: 0.97rem; }
.program-card .btn { align-self: flex-start; }

/* Feature row ============================================================== */

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; gap: 36px; } }
.feature-row + .feature-row { margin-top: 120px; }
.feature-row--reverse .feature-media { order: 2; }
@media (max-width: 860px) { .feature-row--reverse .feature-media { order: 0; } }
.feature-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-md);
  position: relative;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy h2 { margin-bottom: 20px; }
.feature-copy p { color: var(--muted); margin-bottom: 20px; }
.feature-list { list-style: none; margin-bottom: 32px; }
.feature-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  font-size: 0.95rem;
}
.feature-list li:last-child { border-bottom: 1px solid var(--border); }
.feature-list li::before {
  content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0;
}

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

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .testimonials { grid-template-columns: 1fr; } }

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex; flex-direction: column;
  opacity: 1 !important;
}
.testimonial .stars {
  display: flex; gap: 3px; margin-bottom: 18px; color: var(--accent);
}
.testimonial blockquote {
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
  color: var(--text);
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.testimonial-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-subtle); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.testimonial-author-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-author-label { font-size: 0.78rem; color: var(--muted); }

/* Schedule grid ============================================================ */

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .schedule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .schedule-grid { grid-template-columns: 1fr; } }

.schedule-day {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 20px;
  opacity: 1 !important;
}
.schedule-day-title {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.schedule-class { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.schedule-class:last-child { border-bottom: none; }
.schedule-class-time { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.schedule-class-name { font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* FAQ ====================================================================== */

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%;
  padding: 26px 0;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-q .icon { flex-shrink: 0; color: var(--accent); transition: transform 0.3s ease; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.faq-a-inner { padding: 0 0 28px; max-width: 68ch; }

/* Instructor card ========================================================== */

.instructor {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 48px;
}
@media (max-width: 860px) { .instructor { grid-template-columns: 1fr; padding: 32px; } }
.instructor-photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--elevated);
}
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) contrast(1.05); }
.instructor-label { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.instructor h3 { margin-bottom: 22px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.instructor-creds { list-style: none; margin-top: 24px; }
.instructor-creds li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.98rem;
}
.instructor-creds li:last-child { border-bottom: 1px solid var(--border); }
.instructor-creds li .num {
  font-family: var(--display);
  font-size: 0.8rem;
  color: var(--accent);
  min-width: 28px;
}

/* CTA banner =============================================================== */

.cta-banner {
  background: var(--card);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: clamp(64px, 8vw, 110px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(184,162,99,0.18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(184,162,99,0.12), transparent 55%);
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner .brand-medallion { margin-bottom: 28px; }
.cta-banner h2 { margin-bottom: 20px; max-width: 20ch; margin-inline: auto; }
.cta-banner p { color: var(--muted); margin-bottom: 36px; max-width: 52ch; margin-inline: auto; }

/* Contact grid ============================================================= */

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 40px;
}
.contact-info-item { padding: 22px 0; border-top: 1px solid var(--border); display: flex; align-items: flex-start; gap: 20px; }
.contact-info-item:first-of-type { border-top: none; padding-top: 0; }
.contact-info-item:last-of-type { padding-bottom: 0; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-subtle); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.contact-info-value { font-size: 1.02rem; font-weight: 500; }
.contact-info-value a:hover { color: var(--accent); }

/* Form (contact page) ====================================================== */

.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 40px; }
.form-row { margin-bottom: 18px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .form-row--split { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 14px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); background: var(--elevated);
}
textarea { resize: vertical; min-height: 130px; }

/* Blog placeholder ========================================================= */

.blog-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  max-width: 640px;
  margin: 0 auto;
}
.blog-empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-subtle); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.blog-empty h3 { margin-bottom: 14px; }
.blog-empty p { color: var(--muted); margin-bottom: 28px; }

/* Legal / prose ============================================================ */

.prose { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.prose h2 { color: var(--text); margin: 48px 0 16px; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.02em; }
.prose h3 { color: var(--text); margin: 32px 0 12px; font-size: 1.15rem; font-weight: 700; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-subtle); }
.prose a:hover { border-bottom-color: var(--accent); }

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

.footer { background: #0E1012; border-top: 1px solid var(--border); padding: 80px 0 32px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-brand-lockup .brand-stamp { width: 42px; height: 42px; flex-shrink: 0; }
.footer-brand-lockup img.footer-wordmark {
  max-width: 200px;
  height: auto;
  filter: invert(1) brightness(1.05);
}
.footer-brand h4 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-brand h4 .accent { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 30ch; }
.footer-col h5 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--muted); font-size: 0.93rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-subtle); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--text); }

.powered-by {
  font-size: 0.78rem;
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.powered-by a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-subtle);
  padding-bottom: 1px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.powered-by a:hover { border-bottom-color: var(--accent); }

/* Lead modal =============================================================== */

.lead-modal {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px;
}
.lead-modal.open { display: flex; }
.lead-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 12, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.lead-modal__card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 40px;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
}
.lead-modal.open .lead-modal__card { transform: scale(1); opacity: 1; }
@media (max-width: 540px) {
  .lead-modal { padding: 0; }
  .lead-modal__card { max-height: 100vh; height: 100vh; max-width: 100%; border-radius: 0; padding: 32px 24px; }
}
.lead-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.lead-modal__close:hover { background: var(--elevated); color: var(--text); }
.lead-modal__eyebrow { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.lead-modal__title { font-family: var(--display); font-size: 1.75rem; line-height: 1.05; text-transform: uppercase; margin-bottom: 10px; }
.lead-modal__subtitle { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.lead-modal__submit {
  width: 100%; margin-top: 10px;
  background: var(--accent); color: #1A1C1F;
  padding: 16px 20px;
  font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lead-modal__submit:hover { background: var(--accent-hover); transform: translateY(-1px); }
.lead-modal__error { color: #E07070; font-size: 0.82rem; margin-top: 6px; display: none; }
.lead-modal__field.has-error input,
.lead-modal__field.has-error select { border-color: #E07070; }
.lead-modal__field.has-error .lead-modal__error { display: block; }

/* Booking page ============================================================= */

/* Tighter headline on booking page — the goal is to get the calendar above
   the fold, so we scale the H1 down and reduce surrounding whitespace. */
.booking-headline {
  font-size: clamp(1.75rem, 4vw, 3.25rem) !important;
  line-height: 0.98;
  margin-bottom: 14px !important;
}

.booking-progress {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.booking-progress-steps { display: flex; align-items: center; gap: 10px; }
.booking-progress-step {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: var(--muted);
}
.booking-progress-step .dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--elevated); border: 1px solid var(--border-strong);
  font-size: 0.78rem; font-family: var(--display);
}
.booking-progress-step.done { color: var(--accent); }
.booking-progress-step.done .dot { background: var(--accent); color: #1A1C1F; border-color: var(--accent); }
.booking-progress-step.current { color: var(--text); }
.booking-progress-step.current .dot { background: var(--accent); color: #1A1C1F; border-color: var(--accent); }
.booking-progress-bar {
  flex: 1; height: 2px; background: var(--border);
  overflow: hidden; max-width: 120px;
}
.booking-progress-bar-fill { display: block; width: 100%; height: 100%; background: var(--accent); }

.booking-calendar-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; }
.booking-calendar { min-height: 720px; }
.booking-calendar[hidden] { display: none; }
.calendar-placeholder {
  border: 2px dashed var(--accent);
  border-radius: var(--r-md);
  padding: 80px 32px;
  text-align: center;
  background: var(--accent-subtle);
  color: var(--text);
  min-height: 600px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.calendar-placeholder strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.calendar-placeholder p { color: var(--muted); max-width: 46ch; }

.program-switcher { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.program-switcher h4 { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.program-switcher-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.program-chip {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.program-chip:hover, .program-chip.active { color: var(--accent); border-color: var(--accent); background: var(--accent-subtle); }

.booking-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 860px) { .booking-trust { grid-template-columns: 1fr; } }
.booking-trust-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; }
.booking-trust-item .icon { color: var(--accent); margin-bottom: 14px; }
.booking-trust-item h5 { font-family: var(--display); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.booking-trust-item p { color: var(--muted); font-size: 0.94rem; }

.booking-footer { text-align: center; padding: 40px 0 32px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); margin-top: 80px; }
.booking-footer .powered-by { margin-top: 10px; }

/* Fade-up animation ======================================================== */

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.fade-up.in { opacity: 1; transform: translateY(0); }

.service-card, .program-card, .testimonial, .schedule-day { opacity: 1 !important; }

/* Reduced motion =========================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
  .fade-up { opacity: 1; transform: none; }
}
