/* =========================================================================
   CORRXFIT — Premium Fitness Theme
   ========================================================================= */

:root{
  --bg:        #07080a;
  --bg-alt:    #0d1013;
  --bg-alt-2:  #10161a;
  --surface:   rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.07);
  --border:    rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.18);

  --text:      #f2f4f5;
  --text-dim:  #9aa3a8;
  --text-faint:#61696e;

  /* Signature palette, tied to the brand concept (CorrX = correction):
     cyan = tracking / primary, red = flagged / incorrect, green = corrected. */
  --accent:      #29e0ff;
  --accent-2:    #06b6d4;
  --accent-soft: rgba(41,224,255,.13);
  --gold:        #34d399;
  --gold-soft:   rgba(52,211,153,.13);
  --danger:      #ff5c6c;
  --danger-soft: rgba(255,92,108,.13);
  --success:     #34d399;
  --star:        #f2b84e; /* rating stars only — kept warm/amber per convention */

  --font-display: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --radius-lg: 10px;
  --radius:    8px;
  --radius-sm: 6px;

  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.65);
  --shadow:    0 16px 40px -12px rgba(0,0,0,.5);

  --container: 1240px;
  --header-h: 84px;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{
  scroll-behavior:smooth; scroll-padding-top: var(--header-h);
  /* Guarantees full coverage: without this, a page shorter than the
     viewport leaves the browser's default (white) background showing
     below the footer, since body's own box only extends as tall as its
     content — this doesn't. */
  background: var(--bg); min-height:100%;
  /* overflow-x:hidden on body alone doesn't always contain a child that's
     wider than the viewport (fixed/absolutely-positioned elements aren't
     governed by an ancestor's overflow at all) — on some mobile browsers
     the horizontal scroll region is controlled by html, not body, leaving
     a visible gap of raw background on the side. Set on both. */
  overflow-x:hidden;
}
body{
  min-height:100vh;
  /* Soft edge vignette layered under the solid ground — plain background
     paint, no positioning/stacking tricks, so it can't affect z-index
     anywhere else on the page. */
  background: radial-gradient(ellipse 90% 70% at 50% 0%, transparent 55%, rgba(0,0,0,.35) 100%) var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; }

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

h1,h2,h3,h4{ font-family: var(--font-display); letter-spacing: -.02em; line-height:1.08; font-weight:700; }
h1{ font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2{ font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3{ font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight:600; }
p{ color: var(--text-dim); }

/* Mono, technical accents — used for eyebrows, HUD labels, data readouts */
.mono{ font-family: var(--font-mono); }
code, .mono-label{
  font-family: var(--font-mono); font-size:.78rem; letter-spacing:.06em; text-transform:uppercase;
}

::selection{ background: var(--accent); color:#08080b; }

/* Background ambience -------------------------------------------------- */
.noise-overlay{
  pointer-events:none; position:fixed; inset:0; z-index:1; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Page loader ------------------------------------------------------------ */
.page-loader{
  position:fixed; inset:0; z-index:9999; background:#07070a;
  display:flex; align-items:center; justify-content:center;
  transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.loaded{ opacity:0; visibility:hidden; }
.loader-mark{ font-family:var(--font-display); font-weight:700; font-size:1.8rem; letter-spacing:0; color:var(--text); }
.loader-mark em{ font-style:normal; color:var(--accent); }

/* Buttons ------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding: 15px 28px; border:1px solid transparent; border-radius: 12px;
  font-family: var(--font-body); font-weight:600; font-size:.92rem; letter-spacing:.2px; white-space:nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-accent{ background: var(--accent); color:#031014; box-shadow: 0 10px 30px -8px rgba(41,224,255,.5); }
.btn-accent:hover{ transform: translateY(-3px); box-shadow: 0 16px 36px -8px rgba(41,224,255,.65); }
.btn-outline{ border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-ghost{ color: var(--text-dim); }
.btn-ghost:hover{ color: var(--text); }
.btn-sm{ padding: 10px 20px; font-size:.82rem; border-radius: 10px; }
.btn-lg{ padding: 18px 38px; font-size:1.02rem; border-radius: 14px; }
.btn-block{ width:100%; }

/* Header / nav ---------------------------------------------------------- */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index:1000;
  height: var(--header-h);
  display:flex; align-items:center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, height .35s ease;
}
.site-header.scrolled{
  background: rgba(7,7,10,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  height: 72px;
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.brand{ font-family: var(--font-display); font-size:1.6rem; letter-spacing:1px; color:var(--text); }
.brand span{ color: var(--accent); }

.main-nav{ display:flex; gap: 2.2rem; }
.main-nav a{
  position:relative; font-size:.92rem; font-weight:500; color: var(--text-dim);
  padding: 6px 0; transition: color .25s ease;
}
.main-nav a::after{
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0;
  background: var(--accent); transition: width .3s ease;
}
.main-nav a:hover, .main-nav a.active{ color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:1.2rem; }
.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; padding:6px; }
.nav-toggle span{ width:24px; height:2px; background: var(--text); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Section basics ---------------------------------------------------------- */
section{ position:relative; padding: 120px 0; }
.section-tight{ padding: 80px 0; }
.section-tag{
  display:inline-flex; align-items:center; gap:.5em; font-family: var(--font-mono); font-size:.76rem; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; color: var(--accent);
  padding-left: 1.1em; position:relative; margin-bottom:1.4rem;
}
.section-tag::before{ content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); width:.7em; height:1px; background: var(--accent); }
.section-tag.gold{ color: var(--gold); }
.section-tag.gold::before{ background: var(--gold); }
.section-head{ max-width:680px; margin-bottom: 4rem; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ margin-top:1.1rem; font-size:1.08rem; }
.text-accent{ color: var(--accent); }
.text-gold{ color: var(--gold); }
.italic-serif{ font-style:italic; }

/* ============================ HERO ===================================== */
.hero{
  position:relative; height: 100vh; min-height:640px; overflow:hidden; background: var(--bg);
}

/* Full-bleed background carousel — simple, proven layering: image plane,
   scrim plane, content plane. No grid tracks, no aspect-ratio math, so it
   can't collapse differently across breakpoints. */
.hero-slider{ position:absolute; inset:0; z-index:0; }
.hero-slider, .hero-slider .swiper-wrapper, .hero-slider .swiper-slide{ width:100%; height:100%; }
.hero-slider .swiper-slide{ position:relative; overflow:hidden; }
.hero-slider .swiper-slide img{ width:100%; height:100%; object-fit:cover; transform:scale(1.001); transition: transform 8s linear; }
.hero-slider .swiper-slide-active img{ transform:scale(1.12); }

.hero-scrim{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(90deg, rgba(5,6,8,.92) 0%, rgba(5,6,8,.62) 45%, rgba(5,6,8,.25) 75%, rgba(5,6,8,.35) 100%),
    linear-gradient(180deg, rgba(5,6,8,.15) 0%, transparent 30%, rgba(5,6,8,.75) 100%);
}

.hero-content{
  /* Deliberately no max-width here: this element also carries .container,
     which centers via margin:auto based on its own max-width — adding a
     narrower max-width on top of that would re-center a smaller box in
     the middle of the screen instead of keeping it left-aligned with the
     rest of the site's container edge (nav logo, section headings, etc).
     Line-length is controlled per-child instead (.hero-sub has its own
     max-width; h1 uses manual <br> breaks). */
  position:relative; z-index:2; height:100%; display:flex; flex-direction:column; justify-content:center;
  padding-top: var(--header-h);
}
.hero-eyebrow{ display:flex; align-items:center; gap:.7em; color: var(--accent); font-family: var(--font-mono); font-weight:500; letter-spacing:.08em; text-transform:uppercase; font-size:.82rem; margin-bottom:1.6rem; }
.hero-eyebrow .dot{ width:7px; height:7px; background: var(--accent); box-shadow:0 0 10px var(--accent); animation: blink 1.6s ease infinite; }
@keyframes blink{ 0%,100%{ opacity:1 } 50%{ opacity:.3 } }
.hero h1{ color:var(--text); text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero h1 em{ font-style:normal; color: var(--accent); }
.hero-sub{ max-width:520px; margin-top:1.5rem; font-size:1.08rem; color: var(--text-dim); }
.hero-cta{ display:flex; flex-wrap:wrap; gap:1.2rem; margin-top:2.4rem; }

.hero-stats{ position:relative; z-index:2; display:flex; flex-wrap:wrap; gap:0; border-top:1px solid var(--border); padding-top:1.4rem; margin-top:3rem; max-width:640px; }
.hero-stats .stat{ padding: 0 1.6rem 0 0; margin-right:1.6rem; border-right:1px solid var(--border); }
.hero-stats .stat:last-child{ border-right:none; }
.hero-stats .stat .num{ font-family: var(--font-display); font-weight:700; font-size:1.7rem; color: var(--text); }
.hero-stats .stat .label{ font-family: var(--font-mono); font-size:.68rem; color: var(--text-faint); margin-top:.2rem; letter-spacing:.06em; text-transform:uppercase; }

/* "Super carousel" chrome — progress bar + labeled slide switcher, sits
   independently of the always-visible headline above so JS never gates
   critical content. */
.hero-carousel-ui{ position:absolute; z-index:3; left:0; right:0; bottom:0; padding: 0 24px 30px; }
.hero-carousel-ui-inner{ max-width: var(--container); margin:0 auto; }
.hero-progress{ height:2px; width:100%; background: rgba(255,255,255,.14); border-radius:2px; overflow:hidden; margin-bottom:1.1rem; }
.hero-progress-bar{ height:100%; width:0%; background: var(--accent); box-shadow:0 0 8px var(--accent); }
.hero-slide-labels{ display:flex; gap:2.2rem; flex-wrap:wrap; }
.hero-label{ background:none; border:none; padding:0 0 10px; color: var(--text-faint); font-family: var(--font-mono); font-size:.72rem; font-weight:500; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; border-bottom:2px solid transparent; transition: color .3s ease, border-color .3s ease; }
.hero-label:hover{ color: var(--text); }
.hero-label.active{ color: var(--accent); border-bottom-color: var(--accent); }
.hero-label .n{ color: var(--text-faint); margin-right:.5em; }
.hero-label.active .n{ color: var(--accent); }

/* Marquee — a data-ticker, not a color banner ----------------------------- */
.marquee-strip{ background: var(--bg-alt); overflow:hidden; padding: 14px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.marquee-track{ display:flex; width:max-content; gap:2.4rem; animation: marquee 30s linear infinite; }
.marquee-track span{ font-family: var(--font-mono); font-size:.85rem; font-weight:500; letter-spacing:.08em; color: var(--text-dim); display:flex; align-items:center; gap:1rem; text-transform:uppercase; }
.marquee-track span i{ color: var(--accent); font-size:.7rem; }
@keyframes marquee{ from{ transform: translateX(0) } to{ transform: translateX(-50%) } }

/* Cards -------------------------------------------------------------- */
.grid{ display:grid; gap: 1.8rem; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }

.card{
  position:relative; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem; overflow:hidden;
  transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
/* Premium hover: a soft accent glow lifts in from the top edge, plus a
   gentle overall accent-tinted shadow — no literal corner marks. */
.card::before{
  content:''; position:absolute; top:0; left:10%; right:10%; height:1px; transform:scaleX(0); transform-origin:center;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity:0; transition: transform .45s ease, opacity .45s ease;
}
.card:hover{
  transform: translateY(-6px); border-color: rgba(41,224,255,.3); background: var(--surface-2);
  box-shadow: var(--shadow), 0 20px 50px -18px rgba(41,224,255,.35);
}
.card:hover::before{ transform:scaleX(1); opacity:1; }

.feature-card .icon-badge, .stat-card .icon-badge{
  width:52px; height:52px; border-radius: var(--radius-sm); display:flex; align-items:center; justify-content:center;
  background: var(--accent-soft); color: var(--accent); font-size:1.3rem; margin-bottom:1.4rem;
}
.feature-card h3{ margin-bottom:.7rem; color:var(--text); }

/* Icon stat cards — used where a bare number/label grid needs more visual
   weight than plain centered text (e.g. Trainers page credentials strip). */
.stat-card{ text-align:center; }
.stat-card .icon-badge{ margin:0 auto 1.2rem; }
.stat-card .num{ font-family: var(--font-display); font-weight:700; font-size:2.3rem; color: var(--text); }
.stat-card .num span{ color: var(--accent); }
.stat-card .label{ color: var(--text-dim); margin-top:.4rem; font-size:.92rem; }

/* Correction comparison strip — the signature "before / after" motif -------- */
.compare-wrap{ display:grid; grid-template-columns: 1fr auto 1fr; gap:1.6rem; align-items:center; max-width:920px; margin:0 auto; }
.compare-card{ border-radius: var(--radius); padding: 1.8rem 2rem; border:1px solid; }
.compare-card.bad{ background: var(--danger-soft); border-color: rgba(255,92,108,.3); }
.compare-card.good{ background: var(--gold-soft); border-color: rgba(52,211,153,.3); }
.compare-card .compare-label{ display:flex; align-items:center; gap:.6em; font-family: var(--font-mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:1rem; }
.compare-card.bad .compare-label{ color: var(--danger); }
.compare-card.good .compare-label{ color: var(--gold); }
.compare-card ul li{ display:flex; align-items:flex-start; gap:.6rem; padding:.4rem 0; font-size:.92rem; color: var(--text-dim); }
.compare-card.bad ul li i{ color: var(--danger); margin-top:.2rem; }
.compare-card.good ul li i{ color: var(--gold); margin-top:.2rem; }
.compare-arrow{ width:44px; height:44px; border-radius:50%; background: var(--surface-2); border:1px solid var(--border-strong); display:flex; align-items:center; justify-content:center; color: var(--accent); flex:none; }

/* About / split sections ------------------------------------------------- */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items:center; }
.split-media{ position:relative; }
.split-media img{ border-radius: var(--radius-lg); width:100%; height:560px; object-fit:cover; }
.float-card{
  position:absolute; background: rgba(14,14,19,.9); border:1px solid var(--border);
  backdrop-filter: blur(14px); padding: 1.2rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display:flex; align-items:center; gap:1rem;
}
.float-card .fc-icon{ width:44px; height:44px; border-radius:12px; background:var(--accent); color:#08080b; display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex:none; }
.float-card strong{ display:block; font-size:1.3rem; color:var(--text); font-family:var(--font-display); }
.float-card span{ font-size:.8rem; color:var(--text-dim); }
.split-media .float-card{ bottom:-30px; left:-30px; }

.checklist li{ display:flex; align-items:flex-start; gap:.8rem; margin-top:1rem; color: var(--text-dim); }
.checklist li i{ color: var(--accent); margin-top:.25rem; }

/* Stats band --------------------------------------------------------- */
.stats-band{ background: var(--bg-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.stats-band .grid-4{ text-align:center; }
.stats-band .num{ font-family: var(--font-display); font-weight:700; font-size: 2.8rem; color: var(--text); }
.stats-band .num span{ color: var(--accent); }
.stats-band .label{ color: var(--text-dim); margin-top:.4rem; }

/* Timeline (About) ------------------------------------------------------- */
.timeline{ position:relative; padding-left: 2.5rem; border-left:1px solid var(--border); }
.timeline-item{ position:relative; padding-bottom: 2.8rem; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:''; position:absolute; left:-2.56rem; top:2px; width:12px; height:12px; border-radius:50%;
  background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft);
}
.timeline-item .year{ color: var(--accent); font-weight:700; letter-spacing:1px; font-size:.85rem; }
.timeline-item h4{ margin: .4rem 0 .5rem; font-family:var(--font-body); font-weight:600; color:var(--text); font-size:1.1rem; }

/* Values grid -------------------------------------------------------------*/
.value-card{ text-align:center; }
.value-card .icon-badge{ margin:0 auto 1.2rem; }

/* 404 page ------------------------------------------------------------- */
.error-404-hero{ overflow:hidden; }
.error-404-watermark{
  position:absolute; inset:0; z-index:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:min(40vw, 22rem); line-height:1;
  color: var(--accent); opacity:.05; pointer-events:none; user-select:none; white-space:nowrap;
}
.error-404-search{ display:flex; gap:1rem; }
.error-404-search input{
  flex:1; background: var(--bg-alt); border:1px solid var(--border); color: var(--text);
  padding: 15px 20px; border-radius: var(--radius-sm); font-size:.95rem;
}
.error-404-search input:focus{ outline:none; border-color: var(--accent); }
.error-404-link{ display:block; text-decoration:none; }
.error-404-link h3{ color: var(--text); margin:0; }

/* Search results — Post/Page badge. Normal inline flow (not the
   absolutely-positioned .p-tag, which is designed to float over a photo
   these cards don't have) so it always sits cleanly above the title
   instead of overlapping it. ------------------------------------------ */
.search-type-badge{
  display:inline-flex; align-items:center; gap:.55em; margin-bottom:1.1rem;
  font-family: var(--font-mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; font-weight:600;
}
.search-type-badge::before{ content:''; width:6px; height:6px; border-radius:50%; flex:none; }
.search-type-badge.type-post{ color: var(--accent); }
.search-type-badge.type-post::before{ background: var(--accent); box-shadow:0 0 8px var(--accent); }
.search-type-badge.type-page{ color: var(--gold); }
.search-type-badge.type-page::before{ background: var(--gold); box-shadow:0 0 8px var(--gold); }

/* Blog post content — typography for raw WordPress editor output, which
   none of the component classes above style on their own. ------------- */
.entry-meta{ display:flex; gap:1.5rem; margin-bottom:2rem; font-family: var(--font-mono); font-size:.8rem; color: var(--text-faint); }
.entry-meta i{ color: var(--accent); margin-right:.4em; }
.entry-content{ color: var(--text-dim); font-size:1.08rem; line-height:1.8; }
.entry-content > * + *{ margin-top:1.4rem; }
.entry-content h2, .entry-content h3, .entry-content h4{ color: var(--text); margin-top:2.4rem; margin-bottom:.5rem; }
.entry-content h2{ font-size:1.8rem; }
.entry-content h3{ font-size:1.4rem; }
.entry-content p{ color: var(--text-dim); }
.entry-content a{ color: var(--accent); text-decoration:underline; text-underline-offset:3px; }
.entry-content ul, .entry-content ol{ padding-left:1.4rem; color: var(--text-dim); }
.entry-content ul{ list-style:disc; }
.entry-content ol{ list-style:decimal; }
.entry-content li + li{ margin-top:.5rem; }
.entry-content img{ border-radius: var(--radius); max-width:100%; height:auto; }
.entry-content blockquote{
  border-left:3px solid var(--accent); padding: .5rem 0 .5rem 1.5rem; font-style:italic; color: var(--text);
}
.entry-content figcaption{ font-size:.85rem; color: var(--text-faint); margin-top:.5rem; }
.entry-content pre, .entry-content code{
  background: var(--bg-alt); border:1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-mono);
}
.entry-content code{ padding:.15em .4em; font-size:.9em; }
.entry-content pre{ padding:1.2rem; overflow-x:auto; }
.entry-content pre code{ background:none; border:none; padding:0; }
.entry-content hr{ border:none; border-top:1px solid var(--border); margin:2rem 0; }

/* Programs page --------------------------------------------------------- */
.program-card{ overflow:hidden; padding:0; display:flex; flex-direction:column; }
.program-card .p-media{ height:230px; position:relative; overflow:hidden; }
.program-card .p-media img{ width:100%; height:100%; object-fit:cover; transition: transform .6s ease; }
.program-card:hover .p-media img{ transform: scale(1.08); }
.program-card .p-tag{
  position:absolute; top:16px; left:16px; background: rgba(7,8,10,.8); backdrop-filter: blur(6px);
  color: var(--accent); font-family: var(--font-mono); font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; font-weight:600;
  padding: 6px 12px; border-radius:100px; border:1px solid rgba(41,224,255,.35);
}
.program-card .p-body{ padding: 1.8rem 1.8rem 2rem; flex:1; display:flex; flex-direction:column; }
.program-card h3{ color:var(--text); margin-bottom:.6rem; }
.program-card p{ flex:1; }
.program-card .p-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:1.4rem; padding-top:1.2rem; border-top:1px solid var(--border); }
.program-card .p-foot .link{ color:var(--accent); font-weight:600; font-size:.9rem; display:flex; align-items:center; gap:.4rem; }
.program-card .p-foot .meta{ font-size:.8rem; color:var(--text-faint); }

/* Pricing ------------------------------------------------------------ */
.pricing-toggle{ display:flex; align-items:center; justify-content:center; gap:1rem; margin: 0 auto 3.5rem; }
.pricing-toggle span{ font-weight:600; color: var(--text-dim); }
.pricing-toggle span.on{ color: var(--text); }
.switch{ position:relative; width:56px; height:30px; background: var(--surface-2); border:1px solid var(--border-strong); border-radius:100px; }
.switch input{ opacity:0; position:absolute; inset:0; cursor:pointer; margin:0; }
.switch .knob{ position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background: var(--accent); transition: transform .3s ease; }
.switch input:checked ~ .knob{ transform: translateX(26px); }
.save-badge{ background: var(--gold-soft); color: var(--gold); font-family: var(--font-mono); font-size:.68rem; font-weight:600; padding:3px 9px; border-radius:100px; margin-left:.3rem; }

.pricing-card{ display:flex; flex-direction:column; position:relative; }
.pricing-card.featured{ border-color: var(--accent); background: linear-gradient(180deg, rgba(41,224,255,.07), rgba(41,224,255,.015)); transform: scale(1.03); }
.pricing-card.featured:hover{ transform: scale(1.03) translateY(-8px); }
.pricing-card{ overflow:visible; } /* .card sets overflow:hidden for the hover glow line — this badge intentionally sits above the card's own top edge, so it needs to escape that clip */
.pricing-card .badge-pop{
  position:absolute; top:-13px; left:50%; transform:translateX(-50%); background: var(--accent); color:#031014;
  font-family: var(--font-mono); font-size:.68rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; padding: 5px 16px; border-radius:100px;
}
.pricing-card .tier-name{ font-family:var(--font-display); font-weight:700; font-size:1.5rem; color:var(--text); }
.pricing-card .tier-desc{ font-size:.9rem; margin-top:.4rem; min-height:2.6em; }
.pricing-card .price{ display:flex; align-items:flex-end; gap:.4rem; margin: 1.6rem 0; }
.pricing-card .price .amount{ display:inline-flex; align-items:flex-start; font-family:var(--font-display); font-weight:700; font-size:2.8rem; color: var(--text); }
.pricing-card .price .amount sup{ font-size:1.3rem; line-height:1; margin-top:.15em; }
.pricing-card .price .period{ color: var(--text-faint); padding-bottom:.6rem; }
.pricing-card .price .amount.yearly{ display:none; }
.pricing-card.show-yearly .price .amount.monthly{ display:none; }
.pricing-card.show-yearly .price .amount.yearly{ display:inline-flex; }
.pricing-card ul{ margin: 1.6rem 0 2rem; flex:1; }
.pricing-card ul li{ display:flex; align-items:center; gap:.7rem; padding:.55rem 0; color: var(--text-dim); font-size:.94rem; border-top:1px solid var(--border); }
.pricing-card ul li:first-child{ border-top:none; }
.pricing-card ul li i.fa-check{ color: var(--accent); }
.pricing-card ul li i.fa-xmark{ color: var(--text-faint); }
.pricing-card ul li.disabled{ color: var(--text-faint); }

/* Trainers ------------------------------------------------------------ */
.trainer-card{ padding:0; overflow:hidden; text-align:center; }
.trainer-card .t-media{ position:relative; height:340px; overflow:hidden; }
.trainer-card .t-media img{ width:100%; height:100%; object-fit:cover; transition: transform .6s ease, filter .6s ease; filter: grayscale(45%); }
.trainer-card:hover .t-media img{ transform: scale(1.06); filter: grayscale(0%); }
.trainer-card .t-social{
  position:absolute; bottom:-50px; left:0; right:0; display:flex; justify-content:center; gap:.7rem;
  padding:1rem; transition: bottom .3s ease; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
}
.trainer-card:hover .t-social{ bottom:0; }
.trainer-card .t-social a{ width:34px; height:34px; border-radius:50%; background: var(--accent); color:#08080b; display:flex; align-items:center; justify-content:center; font-size:.85rem; }
.trainer-card .t-body{ padding: 1.8rem 1.3rem 2.1rem; }
.trainer-card h3{ color: var(--text); font-family:var(--font-body); font-weight:700; font-size:1.32rem; letter-spacing:.2px; }
.trainer-card .t-role{
  color: var(--accent); font-size:.86rem; font-weight:600; letter-spacing:1.2px; text-transform:uppercase;
  margin-top:.55rem; padding-bottom:.7rem; display:inline-block; position:relative;
}
.trainer-card .t-role::after{
  content:''; position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:34px; height:2px; border-radius:2px; background: var(--star);
}
.trainer-card .t-tags{ display:flex; flex-wrap:wrap; gap:.4rem; justify-content:center; margin-top:1.1rem; }
.trainer-card .t-tags span{ font-family: var(--font-mono); font-size:.68rem; color:var(--text-faint); border:1px solid var(--border); padding:3px 9px; border-radius:100px; }

/* Generic avatar-icon placeholder — used until real trainer photos exist.
   Deliberately not a stock photo of a stranger (these are real named
   people) and not a text-initials avatar (reads as "missing image"
   rather than a photo placeholder). Sized well below the 340px photo
   height so the placeholder doesn't sit in a big empty box — the badge
   is the visual focus, not the space around it. */
.trainer-card .t-media.t-media-placeholder{ height:190px; }
.t-media-placeholder{
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(150deg, var(--bg-alt-2), var(--bg-alt));
}
.t-avatar-icon{
  width:92px; height:92px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:2.5rem; color: var(--accent);
  background: var(--accent-soft); border:1px solid rgba(41,224,255,.25);
  transition: transform .4s ease, border-color .4s ease;
}
.trainer-card:hover .t-avatar-icon{ transform: scale(1.06); border-color: rgba(41,224,255,.5); }
.trainer-card-bio .t-bio{ font-size:.88rem; margin-top:.8rem; color: var(--text-dim); }

/* Testimonials ------------------------------------------------------------ */
.testimonial-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding: 2.4rem; height:100%; }
.testimonial-card .stars{ color: var(--star); margin-bottom:1.2rem; letter-spacing:2px; }
.testimonial-card p{ color: var(--text); font-size:1.05rem; font-style:italic; }
.testimonial-card .t-person{ display:flex; align-items:center; gap:1rem; margin-top:1.6rem; }
.testimonial-card .t-person img{ width:52px; height:52px; border-radius:50%; object-fit:cover; }
.testimonial-card .t-person strong{ display:block; color:var(--text); font-size:.95rem; }
.testimonial-card .t-person span{ font-size:.78rem; color: var(--text-faint); }
.swiper-pagination-bullet{ background: var(--text-faint); opacity:1; }
.swiper-pagination-bullet-active{ background: var(--accent); }

/* App download / CTA band ------------------------------------------------ */
.cta-band{
  position:relative; border-radius: var(--radius-lg); overflow:hidden; padding: 4.5rem 3rem; text-align:center;
  background: radial-gradient(circle at 30% 20%, rgba(41,224,255,.10), transparent 60%), var(--bg-alt-2);
  border:1px solid var(--border);
}
.cta-band h2{ color:var(--text); max-width:700px; margin:0 auto; }
.cta-band p{ max-width:560px; margin: 1.2rem auto 2rem; }
.app-badges{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-top:2rem; }
.app-badges a{ display:flex; align-items:center; gap:.7rem; border:1px solid var(--border-strong); padding: 12px 22px; border-radius: 12px; }
.app-badges a i{ font-size:1.6rem; }
.app-badges a small{ display:block; font-size:.68rem; color:var(--text-faint); }
.app-badges a strong{ font-size:.95rem; color:var(--text); }

/* FAQ (pricing/contact) --------------------------------------------------- */
.faq-item{ border-bottom:1px solid var(--border); padding: 1.6rem 0; }
.faq-item summary{ cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; font-weight:600; color: var(--text); }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary i{ transition: transform .3s ease; color: var(--accent); }
.faq-item[open] summary i{ transform: rotate(45deg); }
.faq-item p{ margin-top:1rem; max-width:680px; }

/* Contact ------------------------------------------------------------- */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; }
.contact-info-card{ display:flex; gap:1.2rem; align-items:flex-start; padding: 1.6rem 0; border-bottom:1px solid var(--border); }
.contact-info-card:last-child{ border-bottom:none; }
.contact-info-card .icon-badge{ flex:none; margin-bottom:0; }
.contact-info-card h4{ font-family: var(--font-body); font-weight:600; color:var(--text); margin-bottom:.3rem; }
.map-frame{ border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--border); margin-top:2rem; filter: grayscale(1) invert(.92) contrast(.9); }
.map-frame iframe{ width:100%; height:260px; border:0; display:block; }

.form-card{ padding: 2.6rem; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
.field{ margin-bottom:1.3rem; }
.field label{ display:block; font-size:.85rem; font-weight:600; color: var(--text-dim); margin-bottom:.5rem; }
.field input, .field textarea, .field select{
  width:100%; background: var(--bg-alt); border:1px solid var(--border); color: var(--text);
  padding: 14px 16px; border-radius: var(--radius-sm); font-size:.95rem; transition: border-color .25s ease, background .25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color: var(--accent); background: var(--bg-alt-2); }
.field textarea{ resize:vertical; min-height:130px; }

.alert{ padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 1.6rem; font-size:.92rem; display:flex; align-items:center; gap:.7rem; }
.alert-success{ background: rgba(74,222,128,.12); border:1px solid rgba(74,222,128,.35); color: var(--success); }
.alert-error{ background: rgba(255,92,108,.12); border:1px solid rgba(255,92,108,.35); color: var(--danger); }

/* Newsletter (footer form) ------------------------------------------------ */
.newsletter-form{ display:flex; margin-top:1rem; border:1px solid var(--border-strong); border-radius:100px; overflow:hidden; }
.newsletter-form input{ flex:1; background:transparent; border:none; padding: 12px 18px; color: var(--text); font-size:.88rem; }
.newsletter-form input:focus{ outline:none; }
.newsletter-form button{ background: var(--accent); border:none; width:44px; color:#08080b; }

/* Footer ------------------------------------------------------------- */
.site-footer{ background: var(--bg-alt); border-top:1px solid var(--border); padding-top: 5rem; }
.footer-grid{ display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.3fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-col h4{ font-family: var(--font-body); font-size:.95rem; color: var(--text); margin-bottom:1.2rem; font-weight:600; letter-spacing:.4px; }
.footer-col a{ display:block; color: var(--text-dim); font-size:.9rem; margin-bottom:.85rem; transition: color .2s ease; }
.footer-col a:hover{ color: var(--accent); }
.footer-brand p{ margin: 1.2rem 0 1.4rem; font-size:.9rem; max-width:300px; }
.social-row{ display:flex; gap:.7rem; }
.social-row a{ width:38px; height:38px; border:1px solid var(--border-strong); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0; }
.social-row a:hover{ background: var(--accent); border-color: var(--accent); color:#08080b; }
.footer-bottom{ border-top:1px solid var(--border); padding: 1.6rem 0; }
.footer-bottom-inner{ display:flex; justify-content:space-between; font-size:.82rem; color: var(--text-faint); }

.back-to-top{
  position:fixed; right:26px; bottom:26px; width:48px; height:48px; border-radius:50%; z-index:900;
  background: var(--accent); color:#08080b; display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform: translateY(10px); transition: all .3s ease; box-shadow: var(--shadow);
}
.back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }

/* Page hero (inner pages) ------------------------------------------------- */
.page-hero{
  padding: calc(var(--header-h) + 70px) 0 90px; position:relative; overflow:hidden;
  background: radial-gradient(circle at 80% 0%, rgba(41,224,255,.09), transparent 55%), var(--bg);
  border-bottom:1px solid var(--border);
}
.page-hero::before{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(41,224,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,224,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 85% 10%, #000 40%, transparent 85%);
}
.page-hero .container{ position:relative; z-index:1; }
.page-hero .crumb{ color: var(--text-faint); font-family: var(--font-mono); font-size:.8rem; margin-top:1.2rem; }
.page-hero .crumb span{ color: var(--accent); }

/* Utility ------------------------------------------------------------- */
.mt-0{ margin-top:0 !important; }
.text-center{ text-align:center; }
.divider-v{ width:1px; align-self:stretch; background: var(--border); }

/* ============================ RESPONSIVE ================================ */
@media (max-width: 1080px){
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
  .split{ grid-template-columns: 1fr; gap:3rem; }
  .contact-grid{ grid-template-columns: 1fr; }
  .compare-wrap{ grid-template-columns: 1fr; }
  .compare-arrow{ margin:0 auto; transform:rotate(90deg); }
}

@media (max-width: 700px){
  .hero{ height:auto; min-height:100vh; padding-bottom:170px; }
  .hero-content{ padding-top: calc(var(--header-h) + 40px); padding-bottom: 2rem; }
  .hero-stats{ margin-top:2rem; }
  .hero-carousel-ui{ padding-bottom:20px; }
  .hero-slide-labels{ gap:1.2rem; overflow-x:auto; padding-bottom:4px; }
}

@media (max-width: 860px){
  .main-nav{
    position:fixed; inset: 0; background-color: #07080a; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    flex-direction:column; align-items:center; justify-content:center; gap:2.2rem;
    transform: translateY(-110%); transition: transform .4s ease; z-index:999; visibility:hidden;
  }
  .main-nav.open{ transform: translateY(0); visibility:visible; }
  .main-nav a{ font-size:1.3rem; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-sm{ display:none; }
  .hero-stats{ gap: .6rem 0; }
  .hero-stats .stat{ padding-right:1rem; margin-right:1rem; }
  .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns:1fr; }
  section{ padding: 80px 0; }
}

@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; }
  .split-media .float-card{ position:static; margin-top:1.2rem; }
  .split-media img{ height:340px; }
  .pricing-card.featured{ transform:none; }
}
