/* RH Basketball Academy — Premium Dark Athletic UI */
:root {
  --bg-deep: #0a0a0b;
  --bg-primary: #111113;
  --bg-card: #18181b;
  --bg-elevated: #1f1f23;
  --bg-hover: #27272a;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --orange: #f97316;
  --orange-bright: #fb923c;
  --orange-deep: #ea580c;
  --orange-glow: rgba(249,115,22,0.35);
  --orange-soft: rgba(249,115,22,0.12);
  --success: #22c55e;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --nav-h: 72px;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Prefer GPU compositing for scroll without creating excess layers */
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  /* Decode off main thread where supported; avoid layout thrash */
}
img[loading="lazy"] {
  content-visibility: auto;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }

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

/* ========== TYPOGRAPHY ========== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 48px;
}
.section-header.center {
  text-align: center;
}
.section-header.center .section-label {
  justify-content: center;
}
.section-header.center .section-label::before { display: none; }
.section-header.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--orange-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--orange-glow);
  background: linear-gradient(135deg, var(--orange-bright) 0%, var(--orange) 100%);
}

.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft);
}

.btn-ghost {
  color: var(--text-muted);
  padding: 14px 20px;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn-block { width: 100%; }

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  /* Own compositor layer — avoid backdrop-filter (major scroll jank) */
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  contain: layout style;
}
.nav.scrolled {
  /* Near-opaque solid instead of blur — same look, far cheaper while scrolling */
  background-color: rgba(10, 10, 11, 0.97);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 1001;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px var(--orange-glow);
}
.logo-text span { color: var(--orange); }

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-hover); }

.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,10,11,0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  content-visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 80px 24px 40px;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  content-visibility: visible;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 20px;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu-contact {
  margin-top: 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
}
.mobile-menu-contact a {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  padding: 4px;
}

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

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
  contain: layout style;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Isolate large bitmap so scroll of page content doesn't constantly reblend */
  contain: layout paint style;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* Avoid expensive re-raster of huge photo during scroll */
  transform: translateZ(0);
  will-change: auto;
  pointer-events: none;
  user-select: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.75) 0%, rgba(10,10,11,0.55) 40%, rgba(10,10,11,0.92) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.9) 0%, rgba(10,10,11,0.4) 60%, rgba(10,10,11,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--orange-soft);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange-bright);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--orange);
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  letter-spacing: 0.02em;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bob 2.5s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--orange), transparent);
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
  position: relative;
  /* Skip layout/paint for off-screen sections — big scroll win on long pages */
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
.section-alt {
  background: var(--bg-primary);
}

/* ========== ABOUT / TRAINER ========== */
.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }
}

.about-image-wrap {
  position: relative;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-card);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image-accent {
  position: absolute;
  inset: -12px -12px auto auto;
  width: 40%;
  height: 40%;
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}
.about-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(10,10,11,0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-image-badge-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.about-image-badge strong {
  display: block;
  font-size: 0.9375rem;
}
.about-image-badge span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.about-body p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}
.about-body p:last-of-type { margin-bottom: 28px; }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}
.about-highlight svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========== TRAINING TYPES ========== */
.training-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .training-grid { grid-template-columns: 1fr 1fr; }
}

.training-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  contain: layout paint style;
}
.training-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
  opacity: 0;
  transition: opacity 0.3s;
}
.training-card:hover {
  border-color: rgba(249,115,22,0.3);
  transform: translateY(-4px);
}
.training-card:hover::before { opacity: 1; }

.training-icon {
  width: 56px;
  height: 56px;
  background: var(--orange-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 24px;
}
.training-icon svg { width: 28px; height: 28px; }

.training-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.training-card > p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.training-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.training-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.training-features li svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}

/* ========== PRICING ========== */
.pricing-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.pricing-tab-group {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  gap: 4px;
}
.pricing-tab {
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pricing-tab.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  box-shadow: 0 4px 16px var(--orange-glow);
}
.pricing-tab:hover:not(.active) {
  color: var(--text);
  background: var(--bg-hover);
}

.pricing-panels { position: relative; }
.pricing-panel {
  display: none;
  animation: fadeUp 0.4s var(--ease);
}
.pricing-panel.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  contain: layout paint style;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.price-card.featured {
  border-color: rgba(249,115,22,0.45);
  background: linear-gradient(180deg, rgba(249,115,22,0.08) 0%, var(--bg-card) 50%);
  box-shadow: 0 8px 40px rgba(249,115,22,0.12);
}
.price-card.featured:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 48px rgba(249,115,22,0.2);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px var(--orange-glow);
}

.price-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  margin-top: 4px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.price-amount span {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: super;
}
.price-per {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  min-height: 1.3em;
}
.price-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-grow: 1;
}
.price-card .btn { margin-top: auto; }

.pricing-notes {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}
.pricing-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.pricing-note svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}

.pricing-cap {
  text-align: center;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ========== SCHEDULE ========== */
.schedule-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .schedule-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.schedule-days {
  display: grid;
  gap: 10px;
}

.schedule-day {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.schedule-day:hover { border-color: var(--border-strong); }

.schedule-day-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 100px;
}
.schedule-day-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}
.schedule-day-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
}
.schedule-day-fill.light {
  background: linear-gradient(90deg, #a16207, #ca8a04);
  width: 40% !important;
}
.schedule-day-fill.off {
  background: var(--bg-hover);
  width: 8% !important;
}
.schedule-day-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 90px;
  text-align: right;
}
.schedule-day.off .schedule-day-name { color: var(--text-dim); }
.schedule-day.off .schedule-day-label { color: var(--text-dim); }

.schedule-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.schedule-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.schedule-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.schedule-info-item {
  display: flex;
  gap: 14px;
}
.schedule-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}
.schedule-info-item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}
.schedule-info-item span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}
.gallery-item:nth-child(1) {
  grid-column: span 2;
  aspect-ratio: 2/1;
}
@media (min-width: 768px) {
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
  transform: translateZ(0);
  backface-visibility: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img { transform: translateZ(0) scale(1.05); }
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,11,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  content-visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 20px;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  content-visibility: visible;
}
.lightbox-img {
  max-width: min(90vw, 1000px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s;
  z-index: 2001;
}
.lightbox-close:hover { background: var(--bg-hover); }
.lightbox-close svg { width: 24px; height: 24px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s;
  z-index: 2001;
}
.lightbox-nav:hover { background: var(--bg-hover); }
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  contain: layout paint style;
}
.testimonial-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--orange);
  margin-bottom: 20px;
}
.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 24px;
}
.testimonial-text::before { content: '"'; }
.testimonial-text::after { content: '"'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-soft), var(--bg-elevated));
  border: 1px solid rgba(249,115,22,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--orange);
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.9375rem;
}
.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ========== BOOKING / CONTACT ========== */
.contact-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: start;
  }
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.contact-method:hover {
  border-color: rgba(249,115,22,0.35);
  background: var(--bg-elevated);
}
.contact-method-icon {
  width: 48px;
  height: 48px;
  background: var(--orange-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.contact-method-icon svg { width: 22px; height: 22px; }
.contact-method strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-method span {
  font-size: 1rem;
  font-weight: 600;
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.booking-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
}
@media (min-width: 600px) {
  .booking-form-wrap { padding: 40px 36px; }
}

.booking-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.booking-form-wrap > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 500px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-group label .req { color: var(--orange); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 3.5L11.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 16px;
  text-align: center;
  line-height: 1.5;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34,197,94,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--success);
}
.form-success h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.form-success p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}
.footer-social a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft);
}
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-col p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--text-muted); }

/* ========== LEGAL PAGES ========== */
.legal-page {
  padding: calc(var(--nav-h) + 48px) 0 80px;
  min-height: 100vh;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.legal-meta {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text);
}
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
}
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-content ul,
.legal-content ol {
  margin: 12px 0 16px 20px;
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 8px; padding-left: 4px; }
.legal-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--orange-bright); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--orange); }
.legal-back svg { width: 18px; height: 18px; }

/* ========== UTILS ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Reveal animations — keep lightweight (opacity + small translate only) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto; /* drop promotion after reveal finishes */
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.2s; }

/* Soften heavy hover lifts on touch / coarse pointers */
@media (hover: none), (pointer: coarse) {
  .training-card:hover,
  .price-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
  .gallery-item:hover img { transform: translateZ(0); }
  .hero-scroll { animation: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; will-change: auto; }
  .hero-scroll { animation: none; }
  .hero-badge-dot { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Performance: never use filter:blur / backdrop-filter on scroll surfaces.
   Nav and badges use solid translucent fills instead. */
