/* ============================================
   BRIAN'S GYM — Modern Marketing Website
   Sedalia's #1 Fitness Facility
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0a1628;
  --navy-light: #122841;
  --navy-lighter: #1a3556;
  --blue: #2c79bf;
  --blue-light: #4a9cd8;
  --blue-glow: rgba(44, 121, 191, 0.3);
  --gold: #f0a500;
  --white: #ffffff;
  --off-white: #e8edf2;
  --gray: #8a99ab;
  --gray-dark: #5a6b7f;
  --success: #2ecc71;
  --danger: #e74c3c;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-blue: 0 4px 30px rgba(44, 121, 191, 0.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  /* Native (instant) scrolling by default — CSS smooth scroll contributes
     to touch-scroll jank on iOS. Desktop pointers opt back in below. */
  scroll-behavior: auto;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* Smooth anchor scrolling only on desktop (fine pointer + hover) and when
   the user hasn't asked for reduced motion. Mobile keeps native scroll. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--off-white);
  line-height: 1.7;
  /* Clip stray horizontal overflow without creating a scroll container —
     `hidden` causes iOS scroll-chaining jank. Older browsers that don't
     support `clip` fall back to the `hidden` line above it. */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--white);
}

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}

.text-center { text-align: center; }
.text-blue { color: var(--blue-light); }
.text-gold { color: var(--gold); }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  position: relative;
}

.section-lg { padding: 7rem 0; }
.section-sm { padding: 3rem 0; }

.bg-navy-light { background: var(--navy-light); }
.bg-gradient {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}
.bg-gradient-blue {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 100%);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #ffb31a;
  border-color: #ffb31a;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(240, 165, 0, 0.3);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 1.1rem 2.5rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 121, 191, 0.15);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 38px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--blue-light);
  letter-spacing: 0.05em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav a {
  color: var(--off-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--blue-light);
  background: rgba(44, 121, 191, 0.1);
}

.nav a.active {
  color: var(--blue-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--off-white);
  transition: all var(--transition);
}

.header-social a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.header-social svg {
  width: 16px;
  height: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  transform: translateX(0);
  display: block;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--off-white);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition);
}

.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--blue-light);
}

.mobile-nav .btn {
  margin-top: 1.5rem;
}

.mobile-nav-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.mobile-nav-social a {
  border-bottom: none;
  padding: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.6) 50%, rgba(10, 22, 40, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem 0;
}

.hero h1 {
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero h1 .highlight {
  color: var(--blue-light);
  display: block;
}

.hero .tagline,
.page-hero .tagline {
  font-size: 1.25rem;
  color: var(--off-white);
  margin-bottom: 2rem;
  font-style: italic;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page hero (smaller, for interior pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 100%);
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(44, 121, 191, 0.15) 0%, transparent 70%);
}

/* Optional photo background (mirrors .hero-bg / .hero-overlay).
   Without these children, .page-hero stays flat navy. */
.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.82) 50%, rgba(10, 22, 40, 0.88) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

/* Keep text readable when a photo background is present */
.page-hero-bg ~ .container h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.page-hero-bg ~ .container .breadcrumb,
.page-hero-bg ~ .container .breadcrumb a {
  color: var(--off-white);
  opacity: 0.85;
}

.page-hero-bg ~ .container .breadcrumb a:hover {
  color: var(--blue-light);
  opacity: 1;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover {
  color: var(--blue-light);
}

/* ===== FULL-PAGE PHOTO BACKGROUND (interior pages) =====
   Body gets .page-with-bg + inline --page-bg url. The photo is a fixed
   full-viewport layer (z-index 0) with a navy overlay above it (z-index 1),
   and all page content lifted to z-index 2 — same feel as the home hero.
   No negative z-index: that would paint the photo behind the body's own
   navy background and hide it completely. */
body.page-with-bg {
  background: transparent;
}

body.page-with-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: var(--page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

body.page-with-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.72) 0%, rgba(10, 22, 40, 0.58) 50%, rgba(10, 22, 40, 0.72) 100%);
  pointer-events: none;
}

/* Lift page content above the photo + overlay. Fixed overlays (header,
   mobile nav, floating CTA, lightbox, Coach B widget) are excluded so this
   higher-specificity rule doesn't clobber their position: fixed / z-index. */
body.page-with-bg > *:not(.site-header, .mobile-nav, .floating-cta, .lightbox, .coachb-launcher, .coachb-panel) {
  position: relative;
  z-index: 2;
}

/* Coach B embed — must stay viewport-fixed, tucked bottom-RIGHT, never
   centered/fullscreen. Pins every positioning axis so the embed's own
   styles can't relocate it. */
.coachb-launcher,
.coachb-panel {
  position: fixed !important;
  z-index: 2147483000 !important;
  left: auto !important;
  top: auto !important;
  right: 20px !important;
  bottom: 20px !important;
  margin: 0 !important;
  inset: auto 20px 20px auto !important;
}

.coachb-launcher {
  max-width: calc(100vw - 32px);
}

.coachb-panel {
  width: min(380px, calc(100vw - 32px)) !important;
  height: min(560px, calc(100vh - 40px)) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100vh - 40px) !important;
}

/* Mobile: keep tucked bottom-right — never stretch across the viewport.
   Cap the open panel well under half the screen so a finger can always
   start a scroll gesture above it (full-bleed 70vh panels trap touches
   and make page scroll "stick"). */
@media (max-width: 768px) {
  .coachb-launcher {
    right: 16px !important;
    bottom: 16px !important;
    left: auto !important;
    top: auto !important;
    font-size: 14px !important;
    padding: 10px 14px 10px 10px !important;
  }
  .coachb-panel {
    right: 12px !important;
    left: auto !important;
    top: auto !important;
    bottom: 12px !important;
    width: min(360px, calc(100vw - 24px)) !important;
    height: min(45vh, 420px) !important;
    height: min(45dvh, 420px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: 45vh !important;
    max-height: 45dvh !important;
    border-radius: 18px !important;
  }
}

/* Title band: taller and transparent so the fixed photo shows through */
body.page-with-bg .page-hero {
  background: transparent;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-with-bg .page-hero::before {
  display: none;
}

body.page-with-bg .page-hero h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

body.page-with-bg .page-hero .breadcrumb,
body.page-with-bg .page-hero .breadcrumb a {
  color: var(--off-white);
  opacity: 0.85;
}

body.page-with-bg .page-hero .breadcrumb a:hover {
  color: var(--blue-light);
  opacity: 1;
}

/* Solid section fills become translucent so the photo reads as the
   whole page background while scrolling, not just a top strip */
body.page-with-bg .bg-navy-light,
body.page-with-bg .stats-bar {
  background: rgba(18, 40, 65, 0.6);
}

body.page-with-bg .cta-section {
  background: linear-gradient(135deg, rgba(44, 121, 191, 0.85) 0%, rgba(26, 53, 86, 0.85) 100%);
}

body.page-with-bg .site-footer {
  background: rgba(10, 22, 40, 0.72);
}

/* Home hero: same Recipe A as interiors — no local photo stack */
body.page-with-bg .hero {
  background: transparent;
}

body.page-with-bg .hero-bg,
body.page-with-bg .hero-overlay {
  display: none;
}

body.page-with-bg .hero h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 1.5rem;
  background: var(--navy-light);
  border-top: 1px solid rgba(44, 121, 191, 0.15);
  border-bottom: 1px solid rgba(44, 121, 191, 0.15);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  font-weight: 600;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(44, 121, 191, 0.1);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(44, 121, 191, 0.3);
  box-shadow: var(--shadow-lg);
}

.feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(44, 121, 191, 0.15);
  color: var(--blue-light);
  margin-bottom: 1.5rem;
}

.feature-card .icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== PROGRAM CARDS ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.program-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.program-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover img {
  transform: scale(1.08);
}

.program-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(10, 22, 40, 0.95));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.program-card-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.program-card-overlay p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0;
}

/* ===== GALLERY / CAROUSEL ===== */
.gallery-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.gallery-tab {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  background: var(--navy-light);
  color: var(--gray);
  border: 1px solid rgba(44, 121, 191, 0.15);
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-tab:hover {
  color: var(--off-white);
  border-color: var(--blue);
}

.gallery-tab.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid.hidden { display: none; }

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(10, 22, 40, 0.3);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 22, 40, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(44, 121, 191, 0.1);
  position: relative;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(44, 121, 191, 0.3);
  transform: translateY(-3px);
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card .quote {
  font-size: 0.95rem;
  color: var(--off-white);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.8;
}

.testimonial-card .author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--blue-light);
  font-size: 0.9rem;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(44, 121, 191, 0.1);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.pricing-card:hover {
  border-color: rgba(44, 121, 191, 0.3);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--blue);
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy-lighter) 100%);
  box-shadow: var(--shadow-blue);
  position: relative;
}

.pricing-card.featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.1em;
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-card-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.pricing-card-header .price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1;
}

.pricing-card-header .price-unit {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 400;
}

.pricing-card-header .price-note {
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 0.5rem;
}

.pricing-card ul {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pricing-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--off-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card ul li svg {
  width: 18px;
  height: 18px;
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn {
  margin-top: auto;
}

/* Pricing table style */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--navy-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-table th, .pricing-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table th {
  background: var(--navy-lighter);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-table td {
  color: var(--off-white);
  font-size: 0.95rem;
}

.pricing-table .price-cell {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--blue-light);
  font-size: 1.1rem;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:hover td {
  background: rgba(44, 121, 191, 0.05);
}

/* ===== BADGES ===== */
.badges-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: var(--navy-light);
  border: 1px solid rgba(44, 121, 191, 0.2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--off-white);
}

.badge svg {
  width: 16px;
  height: 16px;
  color: var(--blue-light);
}

.badge img {
  height: 24px;
  width: auto;
}

/* ===== INFO BOXES ===== */
.info-box {
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--blue);
  margin-bottom: 1.5rem;
}

.info-box h4 {
  margin-bottom: 0.5rem;
  color: var(--blue-light);
}

.info-box p {
  margin-bottom: 0;
  color: var(--off-white);
}

/* ===== SCHEDULE TABLE ===== */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--navy-light);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.85rem;
}

.schedule-table th, .schedule-table td {
  padding: 0.75rem 0.8rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-table th {
  background: var(--navy-lighter);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.schedule-table td {
  color: var(--off-white);
}

.schedule-table .class-name {
  color: var(--blue-light);
  font-weight: 600;
}

.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table th:last-child, .schedule-table td:last-child { border-right: none; }

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--off-white);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--navy);
  border: 1px solid rgba(44, 121, 191, 0.2);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-card {
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid rgba(44, 121, 191, 0.1);
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--navy-light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid rgba(44, 121, 191, 0.1);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
}

.faq-question:hover {
  background: var(--navy-lighter);
}

.faq-question .toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  transition: transform var(--transition);
  font-size: 1.5rem;
  margin-left: 1rem;
}

.faq-item.open .faq-question .toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--off-white);
  font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy-lighter) 100%);
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== YOUTUBE EMBED ===== */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(44, 121, 191, 0.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--off-white);
  margin-bottom: 1rem;
}

/* ===== MAP ===== */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(44, 121, 191, 0.2);
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.8);
}

/* ===== CONTACT INFO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(44, 121, 191, 0.15);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item .icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-info-item p {
  color: var(--off-white);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== HOURS TABLE ===== */
.hours-list {
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 2rem;
}

.hours-list h4 {
  margin-bottom: 1rem;
  color: var(--blue-light);
}

.hours-list .hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.hours-list .hours-row:last-child { border-bottom: none; }

.hours-list .hours-row .day {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
}

.hours-list .hours-row .time {
  color: var(--off-white);
}

/* ===== RULES LIST ===== */
.rules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.rule-card {
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(44, 121, 191, 0.1);
  transition: all var(--transition);
}

.rule-card:hover {
  border-color: rgba(44, 121, 191, 0.3);
}

.rule-card .number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--blue);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.rule-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.rule-card p {
  color: var(--off-white);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== TWO COLUMN ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ===== UTILITY ===== */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Floating Free Trial CTA removed from all HTML (collided with Coach B widget
   on mobile). Kept as a display:none guard in case markup is reintroduced. */
.floating-cta {
  display: none !important;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(44, 121, 191, 0.15);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--gray);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--blue-light);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.footer-logo img {
  height: 36px;
}

.footer-logo .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-light);
  color: var(--off-white);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--gray);
}

.footer-bottom a:hover {
  color: var(--blue-light);
}

/* ===== COACH B "COMING 2027" BANNER (coach-b.html only) ===== */
.coachb-coming-banner {
  /* full-bleed celebratory band under the fixed header */
  padding: calc(var(--header-height) + 2.5rem) 1.5rem 2.5rem;
  text-align: center;
  background: linear-gradient(135deg, #0a1628 0%, #1a3556 45%, #2c79bf 100%);
  border-bottom: 3px solid var(--gold);
}

.coachb-coming-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}

.coachb-coming-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
  margin: 0.4rem 0 1rem;
}

.coachb-coming-sub {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--off-white);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

/* Banner already clears the fixed header, so tighten the hero below it */
.coachb-coming-banner + .page-hero {
  padding-top: 3rem;
}

@media (max-width: 600px) {
  .coachb-coming-banner {
    padding-top: calc(var(--header-height) + 1.5rem);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .footer-grid .footer-col:nth-child(4) {
    grid-column: span 3;
  }
}

@media (max-width: 860px) {
  .nav, .header-social, .header-cta .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    gap: 0.5rem;
  }

  .about-grid, .two-col, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid .footer-col:nth-child(1) {
    grid-column: span 2;
  }

  .hero { min-height: 90vh; }
  .hero .tagline,
  .page-hero .tagline { font-size: 1.1rem; }

  /* Center hero content on mobile (desktop stays left-aligned) */
  .hero .container {
    display: flex;
    justify-content: center;
  }
  .hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }

  section { padding: 3.5rem 0; }
  .section-lg { padding: 4.5rem 0; }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid .footer-col:nth-child(1) {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stat-number { font-size: 2.2rem; }
  .pricing-card-header .price { font-size: 2.2rem; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===== FAQ ACCORDION ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--navy-light, #0f1f38);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  transition: border-color var(--transition-base, 250ms ease);
}
.faq-item:hover {
  border-color: rgba(44,121,191,0.3);
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--white, #fff);
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition-fast, 150ms ease);
}
.faq-question:hover {
  color: var(--blue-light, #4a9ae0);
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base, 250ms ease);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow, 400ms cubic-bezier(0.4,0,0.2,1));
}
.faq-item.active .faq-answer {
  max-height: 600px;
}
.faq-answer-inner, .faq-answer > p, .faq-answer > ul {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray, #94a3b8);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer ul {
  padding-left: 2rem;
  margin-top: 0.5rem;
}
.faq-answer ul li {
  margin-bottom: 0.35rem;
}
.faq-answer a {
  color: var(--blue-light, #4a9ae0);
  text-decoration: none;
}
.faq-answer a:hover {
  text-decoration: underline;
}

/* ===== RULES GRID ===== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.rule-card {
  background: var(--navy-light, #0f1f38);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md, 12px);
  padding: 1.75rem;
  transition: transform var(--transition-base, 250ms ease), border-color var(--transition-base, 250ms ease);
}
.rule-card:hover {
  transform: translateY(-3px);
  border-color: rgba(44,121,191,0.3);
}
.rule-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm, 6px);
  background: rgba(44,121,191,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--blue-light, #4a9ae0);
}
.rule-icon svg {
  width: 24px;
  height: 24px;
}
.rule-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white, #fff);
}
.rule-card p {
  color: var(--gray, #94a3b8);
  font-size: 0.9rem;
  line-height: 1.6;
}
.rule-card a {
  color: var(--blue-light, #4a9ae0);
  text-decoration: none;
}

/* ===== PRINT ===== */
@media print {
  .site-header, .floating-cta, .mobile-nav { display: none; }
  body { color: #000; background: #fff; }
  body.page-with-bg::before, body.page-with-bg::after { display: none; }
}
