/* ============================================================
   OUTfit Ninja Warrior — Main Stylesheet
   Design: Matte black / athletic red / premium sports brand
   Font: Barlow Condensed (display) + Inter (body)
   Signature: Diagonal red slash dividers + red top-border card hover
============================================================ */

/* ── 1. CSS VARIABLES ─────────────────────────────────────── */
:root {
  --bg:            #ffffff;
  --surface:       #f7f7f7;
  --surface-2:     #eeeeee;
  --surface-3:     #e4e4e4;
  --border:        #e0e0e0;
  --border-light:  #cccccc;

  --red:           #e81c24;
  --red-dark:      #b01218;
  --red-glow:      rgba(232,28,36,0.15);
  --red-glow-lg:   rgba(232,28,36,0.08);

  --white:         #ffffff;
  --text:          #111111;
  --text-sec:      #4a4a4a;
  --text-muted:    #888888;

  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'Inter', sans-serif;

  --nav-h:         80px;
  --max-w:         1280px;
  --r:             4px;
  --r-lg:          8px;

  --ease:          cubic-bezier(0.25,0.46,0.45,0.94);
  --t-fast:        0.18s;
  --t-med:         0.3s;
  --t-slow:        0.5s;

  --shadow:        0 4px 24px rgba(0,0,0,0.09);
  --shadow-red:    0 8px 32px rgba(232,28,36,0.25);
}

/* ── 2. RESET ─────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
ul,ol { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
input,textarea,select { font-family:inherit; }
address { font-style:normal; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}
h1 { font-size: clamp(3rem, 8vw, 7rem); font-weight:900; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: 1.3rem; font-weight:700; }
h5 { font-size: 1.1rem; font-weight:700; }
p  { color: var(--text-sec); line-height:1.7; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 8px;
}

/* ── 4. LAYOUT ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 140px 0; }
.section-dark { background: var(--bg); }
.section-surface { background: var(--surface); }
.section-surface-2 { background: var(--surface-2); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-header p { font-size:1.05rem; margin-top:1rem; }

.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.flex-center { display:flex; align-items:center; justify-content:center; }
.flex-between { display:flex; align-items:center; justify-content:space-between; }

/* Diagonal slash divider — signature element */
.slash-divider {
  height: 80px;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
  margin-bottom: -1px;
}
.slash-divider-rev {
  height: 80px;
  background: var(--surface);
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
}
.slash-dark { background: var(--bg) !important; }
.slash-s2 { background: var(--surface-2) !important; }

/* ── 5. BUTTONS ───────────────────────────────────────────── */
.btn-red,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 36px;
  border-radius: var(--r);
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-red {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-ghost:hover {
  background: var(--red-glow);
  transform: translateY(-2px);
}
.btn-sm { padding:10px 22px; font-size:0.85rem; }
.btn-lg { padding:18px 48px; font-size:1.15rem; }

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── 6. NAVIGATION ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--t-med), background var(--t-med);
}
.site-header.scrolled {
  background: #ffffff;
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-wrap { height: 100%; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img { height:42px; width:auto; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}
.logo-red { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-sec);
  padding: 8px 12px;
  border-radius: var(--r);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--red); }

.nav-links .nav-cta {
  margin-left: 12px;
  padding: 10px 24px;
  font-size: 0.9rem;
  color:#fff;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t-fast) var(--ease);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: #111111;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  isolation: isolate;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.75);
  padding: 8px 20px;
  transition: color var(--t-fast);
}
.mobile-nav-links a:hover { color: var(--white); }
.mobile-cta-btn {
  display: inline-block;
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 14px 40px !important;
  border-radius: var(--r);
  font-size: 1.4rem !important;
  margin-top: 8px;
}
.mobile-menu-social {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
}
.mobile-menu-social a {
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.mobile-menu-social a:hover { color: var(--red); }

/* Sticky mobile CTA */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 990;
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--t-fast);
}
.sticky-mobile-cta:hover { background: var(--red-dark); }

/* ── 7. HERO SECTION ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
/* ── Legacy static hero background (inner pages still use .page-hero-bg) ── */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,13,13,0.92) 0%,
    rgba(13,13,13,0.75) 55%,
    rgba(232,28,36,0.08) 100%
  );
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0; right: 28%;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--red), transparent);
  opacity: 0.4;
  z-index: 1;
}

/* ── YouTube video background hero ──────────────────────────────────────── */
.hero--video {
  background: #0d0d0d;
}

/* Iframe container — fills hero, clips overflow */
.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Scale iframe to always cover: wider-axis wins */
.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 16:9: width = 177.78vh, height = 56.25vw */
  width:  177.78vh;
  height: 100vh;
  min-width:  100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

/* Dark gradient overlay — same look as static hero */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,13,13,0.90) 0%,
    rgba(13,13,13,0.72) 55%,
    rgba(232,28,36,0.08) 100%
  );
  z-index: 1;
}

/* Red vertical accent slash */
.hero-video-accent {
  position: absolute;
  top: 0; right: 28%;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--red), transparent);
  opacity: 0.4;
  z-index: 2;
}

/* On mobile: hide video, show dark bg instead */
@media (max-width: 768px) {
  .hero-video-bg {
    display: none;
  }
  .hero--video {
    background: linear-gradient(135deg, #0d0d0d 0%, #1c1c1c 100%);
  }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-content .eyebrow { font-size:0.8rem; }
.hero h1 {
  margin-bottom: 20px;
  line-height: 0.95;
}
.hero h1 span { color: var(--red); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-sec);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.65;
}
.hero-ctas { margin-bottom: 56px; }

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.hero-stat-num span { color: var(--red); }
.hero-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Inner page hero (shorter) */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
  margin-top: var(--nav-h);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.4) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero h1 { font-size: clamp(2.4rem,6vw,4.5rem); }
.page-hero-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-hero-breadcrumb a { color: var(--text-muted); transition: color var(--t-fast); }
.page-hero-breadcrumb a:hover { color: var(--red); }
.page-hero-breadcrumb span { color: var(--red); }

/* ── 8. TRUST / STATS BAR ─────────────────────────────────── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 180px;
}
.trust-icon {
  width: 44px;
  height: 44px;
  background: var(--red-glow);
  border: 1px solid var(--red-glow-lg);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.trust-item-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.04em;
}
.trust-item-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── 9. CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
}
.card:hover::before { transform: scaleX(1); }

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--ease);
}
.card:hover .card-img { transform: scale(1.04); }
.card-img-wrap { overflow: hidden; }

.card-body { padding: 24px; }
.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.15;
}
.card-text {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.65;
}
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Obstacle card specific */
.obstacle-card .card-img { height: 200px; }
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.diff-beginner { background: rgba(34,197,94,0.15); color: #22c55e; }
.diff-intermediate { background: rgba(234,179,8,0.15); color: #eab308; }
.diff-advanced { background: rgba(232,28,36,0.15); color: var(--red); }
.diff-pro { background: rgba(168,85,247,0.15); color: #a855f7; }

/* Course / Pricing Card */
.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-fast) var(--ease);
  position: relative;
}
.course-card:hover {
  border-color: var(--red);
  transform: translateY(-6px);
  box-shadow: var(--shadow-red);
}
.course-card.featured {
  border-color: var(--red);
}
.course-card-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.course-card-img { width:100%; height:200px; object-fit:cover; }
.course-card-body { padding: 28px; }
.course-card-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.course-card-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.course-features {
  list-style: none;
  margin-bottom: 24px;
}
.course-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border);
}
.course-features li:last-child { border-bottom: none; }
.course-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.course-cta-area {
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.course-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.course-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 16px;
}

/* ── 10. TESTIMONIALS ─────────────────────────────────────── */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.testimonial-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}
.testimonial-quote-icon {
  color: var(--red);
  opacity: 0.6;
  margin-bottom: 16px;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
.testimonial-stars span { color: #f59e0b; font-size: 1rem; }
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-avatar img { width:100%; height:100%; object-fit:cover; }
.testimonial-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
}
.testimonial-role { font-size:0.75rem; color:var(--text-muted); }

/* ── 11. FEATURED OBSTACLES GRID ─────────────────────────── */
.featured-obstacles { background: var(--surface); }
.obstacle-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr)); gap:24px; }

/* ── 12. GALLERY ──────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-zoom-icon { color: var(--white); width:40px; height:40px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--t-fast);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
  font-size: 1.4rem;
}
.lightbox-nav:hover { background: rgba(232,28,36,0.4); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── 13. FAQ ACCORDION ────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  gap: 20px;
  user-select: none;
}
.faq-question-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
}
.faq-question:hover .faq-question-text { color: var(--red); }
.faq-item.open .faq-question-text { color: var(--red); }
.faq-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all var(--t-fast);
  font-size: 1.2rem;
  font-weight: 300;
}
.faq-item.open .faq-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease), padding var(--t-med);
}
.faq-answer-inner {
  padding-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-sec);
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 500px; }

/* ── 14. FORMS ────────────────────────────────────────────── */
.form-grid { display:grid; gap:20px; }
.form-row-2 { grid-template-columns:1fr 1fr; }
.form-group { display:flex; flex-direction:column; gap:8px; }
.form-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-sec);
}
.form-input,
.form-textarea,
.form-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-size: 0.95rem;
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-checkbox-group { display:flex; flex-direction:column; gap:10px; }
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-sec);
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface-2);
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}
.form-note { font-size:0.8rem; color:var(--text-muted); }
.form-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  padding: 16px 20px;
  border-radius: var(--r);
  font-size: 0.9rem;
  display: none;
}
.form-error {
  background: var(--red-glow);
  border: 1px solid rgba(232,28,36,0.3);
  color: var(--red);
  padding: 16px 20px;
  border-radius: var(--r);
  font-size: 0.9rem;
  display: none;
}
.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
}

/* ── 15. CTA SECTION ──────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.cta-section .container { position:relative; z-index:1; }
.cta-section h2 { margin-bottom:1rem; }
.cta-section p { max-width:520px; margin:0 auto 36px; font-size:1.05rem; }
.cta-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.15);
}

/* Red accent block */
.red-cta-bar {
  background: var(--red);
  padding: 60px 0;
}
.red-cta-bar h2 { color: var(--white); }
.red-cta-bar p { color: rgba(255,255,255,0.8); }
.red-cta-bar .btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.red-cta-bar .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ── 16. ABOUT PAGE SPECIFIC ──────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
}
.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--red);
  color: var(--white);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-red);
}
.about-image-badge strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}
.about-image-badge span { font-size:0.65rem; text-transform:uppercase; letter-spacing:0.1em; opacity:0.85; }
.about-content h2 { margin-bottom:1.2rem; }
.about-content p { margin-bottom:1rem; }
.about-list {
  list-style: none;
  margin: 24px 0;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border);
}
.about-list li:last-child { border-bottom:none; }
.about-list-icon { color: var(--red); flex-shrink:0; margin-top:2px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 60px;
}
.stat-item {
  background: var(--surface);
  padding: 36px 28px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num span { color: var(--red); }
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ── 17. TEAM GRID ────────────────────────────────────────── */
.team-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:24px; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: center;
  transition: all var(--t-fast);
}
.team-card:hover { border-color:var(--red); transform:translateY(-4px); }
.team-card img { width:100%; height:260px; object-fit:cover; }
.team-card-body { padding:24px 20px; }
.team-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
}
.team-role { font-size:0.8rem; color:var(--red); text-transform:uppercase; letter-spacing:0.1em; }

/* ── 18. CONTACT PAGE ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contact-info-list { list-style:none; margin:28px 0; }
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:first-child { padding-top:0; }
.contact-info-item:last-child { border-bottom:none; }
.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--red-glow);
  border: 1px solid rgba(232,28,36,0.2);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.contact-info-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: 0.95rem;
  color: var(--text);
}
.contact-info-value a { transition: color var(--t-fast); }
.contact-info-value a:hover { color: var(--red); }
.map-embed {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 24px;
  height: 220px;
}
.map-embed iframe { width:100%; height:100%; border:none; display:block; }

/* ── 19. FOOTER ───────────────────────────────────────────── */
.site-footer { background: #080808; border-top:1px solid var(--border); }
.footer-top { padding:80px 0 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-col p { font-size:0.9rem; line-height:1.7; max-width:300px; }
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.footer-social a:hover { border-color:var(--red); color:var(--red); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.footer-col ul { display:flex; flex-direction:column; gap:8px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer-col ul a:hover { color:var(--white); padding-left:4px; }
.footer-contact address p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-contact address p svg { flex-shrink:0; margin-top:2px; color:var(--red); }
.footer-contact address a { transition: color var(--t-fast); }
.footer-contact address a:hover { color:var(--red); }
.footer-quote-btn { margin-top:16px; display:inline-flex; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size:0.8rem; color:var(--text-muted); }
.footer-legal a { color:var(--text-muted); transition:color var(--t-fast); }
.footer-legal a:hover { color:var(--red); }

/* ── 20. SCROLL ANIMATIONS ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── 21. UTILITY ──────────────────────────────────────────── */
.text-red { color: var(--red) !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom:0 !important; }
.mt-auto { margin-top:auto; }
.w-full { width:100%; }
.space-after { margin-bottom: 60px; }
.divider { height:1px; background:var(--border); margin:0; }
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-glow);
  border: 1px solid rgba(232,28,36,0.25);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ── 22. PAGE-BODY TOP SPACING ────────────────────────────── */
.page-body { margin-top: var(--nav-h); }

/* ── 23. MEDIA QUERIES ────────────────────────────────────── */
@media (max-width:1100px) {
  .footer-grid { grid-template-columns:1fr 1fr; gap:40px; }
  .footer-col.footer-brand { grid-column: 1 / -1; }
  .footer-col.footer-brand p { max-width:100%; }
}

@media (max-width:1024px) {
  .nav-links { display:none; }
  .nav-hamburger { display:flex; }
  .sticky-mobile-cta { display:block; }
  .about-split { grid-template-columns:1fr; gap:48px; }
  .about-image-badge { right:0; }
  .stat-grid { grid-template-columns:repeat(2,1fr); }
  .contact-grid { grid-template-columns:1fr; }
  .grid-4 { grid-template-columns:repeat(2,1fr); }
}

@media (max-width:768px) {
  :root { --nav-h:64px; }
  .section { padding:72px 0; }
  .section-sm { padding:48px 0; }
  .section-lg { padding:80px 0; }
  .section-header { margin-bottom:40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns:1fr; }
  .hero-stats { gap:28px; }
  .hero { min-height:88vh; }
  .page-hero { height:320px; }
  .hero-stat-num { font-size:2.2rem; }
  .form-row-2 { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:36px; }
  .trust-bar-inner { gap:16px; }
  .trust-divider { display:none; }
  .trust-item { min-width:140px; flex:none; }
  .stat-grid { grid-template-columns:repeat(2,1fr); }
  .gallery-grid { grid-template-columns:repeat(2,1fr); }
  body { padding-bottom:58px; }
}

@media (max-width:480px) {
  .container { padding:0 16px; }
  .btn-red, .btn-outline, .btn-ghost { padding:13px 24px; font-size:0.92rem; }
  .btn-group { flex-direction:column; align-items:flex-start; }
  .hero-ctas .btn-group { flex-direction:row; }
  .course-card-body { padding:20px; }
  .gallery-grid { grid-template-columns:1fr; }
  .stat-grid { grid-template-columns:1fr 1fr; }
  .form-wrap { padding:24px 20px; }
  .lightbox-nav { display:none; }
}

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

/* ── LIGHT THEME: dark-context heading overrides ──────────────
   Hero, page-hero, footer stay white; everything else is dark */
.hero h1, .hero h2, .hero h3, .hero h4,
.page-hero h1, .page-hero h2,
.red-cta-bar h2, .red-cta-bar h3,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 {
  color: var(--white);
}

/* Hero sub-text and stats stay white (over dark photo overlay) */
.hero-sub { color: rgba(255,255,255,0.8); }
.hero-stat-num { color: var(--white); }
.hero-stat-label { color: rgba(255,255,255,0.55); }

/* btn-outline inside hero/page-hero needs white treatment */
.hero .btn-outline,
.page-hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.hero .btn-outline:hover,
.page-hero .btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Footer stays dark — text overrides inside it */
.site-footer { background: #111111; }
.footer-col ul a:hover { color: var(--white); }