/*
 * Joint Reset — Custom CSS
 * Design: Raw Vitality / Sports Medicine Aesthetic
 * Tailwind CDN handles utilities; this file handles brand tokens, custom components, and overrides.
 * Fonts: Bebas Neue (display), Source Serif 4 (body)
 * Colors: --orange #E8500A, --charcoal #111111, --charcoal-light #1A1A1A, --white #F5F0E8
 */

:root {
  --orange:         #E8500A;
  --orange-dark:    #C44008;
  --orange-light:   #FF6B2B;
  --charcoal:       #111111;
  --charcoal-light: #1A1A1A;
  --charcoal-mid:   #222222;
  --charcoal-card:  #1E1E1E;
  --white:          #F5F0E8;
  --text-body:      #C8C0B0;
  --text-muted:     #7A7060;
  --border-subtle:  rgba(232,80,10,0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--charcoal);
  color: var(--text-body);
  font-family: 'Google Sans', 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─────────────────────────────── */
.font-display {
  font-family: 'Montserrat', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: #F5F0E8;
}

/* ─── COLORS ─────────────────────────────────── */
.text-orange   { color: var(--orange); }
.text-white-jr { color: var(--white); }
.text-body-jr  { color: var(--text-body); }
.text-muted-jr { color: var(--text-muted); }

.bg-charcoal       { background-color: var(--charcoal); }
.bg-charcoal-light { background-color: var(--charcoal-light); }
.bg-charcoal-mid   { background-color: var(--charcoal-mid); }

/* ─── BUTTONS ────────────────────────────────── */
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff !important;
  font-family: 'Montserrat', 'Bebas Neue', Impact, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  padding: 1rem 2.5rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 4px 20px rgba(232,80,10,0.45);
  text-align: center;
  line-height: 1.2;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,80,10,0.6);
  filter: brightness(1.08);
  color: #fff !important;
  text-decoration: none;
}
.btn-cta:active { transform: translateY(0); }

.btn-cta-lg { font-size: 1.8rem; padding: 1.2rem 3rem; }
.btn-cta-sm { font-size: 1.2rem; padding: 0.7rem 1.8rem; }

.btn-ghost {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem 0;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text-body); text-decoration: underline; }

/* ─── CARDS ──────────────────────────────────── */
.card-dark {
  background: var(--charcoal-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1.75rem;
}

.card-orange-border {
  background: rgba(232,80,10,0.06);
  border: 2px solid var(--orange);
  border-radius: 4px;
  padding: 2rem;
}

/* ─── LABELS ─────────────────────────────────── */
.label-orange {
  display: inline-block;
  font-family: 'Google Sans', 'Bebas Neue', Impact, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  text-transform: uppercase;
}

/* ─── CHECK LIST ─────────────────────────────── */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  color: var(--text-body);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ─── SECTION DIVIDER ────────────────────────── */
.section-divider {
  width: 56px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 2rem;
}

/* ─── TOP BARS ───────────────────────────────── */
.top-bar {
  background: var(--orange);
  color: #fff;
  text-align: center;
  font-family: 'Google Sans', 'Bebas Neue', Impact, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 1rem;
}

.checkout-header {
  background: #1a5c1a;
  color: #fff;
  text-align: center;
  font-family: 'Google Sans', 'Bebas Neue', Impact, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 1rem;
}

/* ─── STICKY COUNTDOWN ───────────────────────── */
.sticky-countdown {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal-mid);
  border-bottom: 2px solid var(--orange);
  padding: 0.65rem 1rem;
  text-align: center;
}

.countdown-digits {
  font-family: 'Google Sans', 'Bebas Neue', Impact, sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--orange);
  transition: color 0.3s;
}
.countdown-digits.urgent { color: #e53e3e; animation: pulse-red 1s infinite; }

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ─── ORDER BUMP ─────────────────────────────── */
.order-bump {
  background: rgba(232,80,10,0.08);
  border: 2px dashed var(--orange);
  border-radius: 4px;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.order-bump:hover { background: rgba(232,80,10,0.14); }

/* ─── FORM CONTROLS ──────────────────────────── */
.form-label-dark {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-family: 'Google Sans', 'Bebas Neue', Impact, sans-serif;
}

.form-control-dark {
  width: 100%;
  background: var(--charcoal-mid);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  color: var(--white);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: 'Source Serif 4', Georgia, serif;
  transition: border-color 0.2s;
  outline: none;
}
.form-control-dark:focus { border-color: var(--orange); }
.form-control-dark::placeholder { color: var(--text-muted); }

/* ─── TESTIMONIAL ────────────────────────────── */
.testimonial-card {
  background: var(--charcoal-card);
  border-left: 4px solid var(--orange);
  padding: 1.5rem 1.75rem;
  border-radius: 0 4px 4px 0;
}

/* ─── FAQ ACCORDION ──────────────────────────── */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Google Sans', 'Bebas Neue', Impact, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  padding: 1.1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--orange); }
.faq-icon {
  font-size: 1.4rem;
  color: var(--orange);
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer.open { max-height: 400px; padding-bottom: 1.2rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ─── FOOTER ─────────────────────────────────── */
.site-footer {
  background: #0A0A0A;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 1rem;
  text-align: center;
}
.site-footer .brand {
  font-family: 'Google Sans', 'Bebas Neue', Impact, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.site-footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.footer-links { margin-bottom: 0.75rem; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }
.footer-sep { color: var(--text-muted); font-size: 0.8rem; }
.copyright { font-size: 0.75rem; color: var(--text-muted); }

/* ─── LEGAL PAGES ────────────────────────────── */
.legal-header {
  background: var(--charcoal-light);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.legal-tabs {
  background: var(--charcoal-mid);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 2rem;
}
.legal-tabs a {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.legal-tabs a:hover { color: var(--white); }
.legal-tabs a.active { color: var(--orange); border-bottom-color: var(--orange); }

.legal-box {
  background: rgba(232,80,10,0.08);
  border-left: 4px solid var(--orange);
  padding: 1.25rem 1.5rem;
  border-radius: 0 4px 4px 0;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.65;
}

.legal-section { margin-bottom: 2.5rem; }
.legal-section h2 {
  font-family: 'Google Sans', 'Bebas Neue', Impact, sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.legal-section p, .legal-section li {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 0.6rem;
}
.legal-section ul { padding-left: 1.4rem; }
.legal-section a { color: var(--orange); }

/* ─── HERO ───────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/hero_joint_reset-h3c53HGaRvtA8hz7PkWqN3.webp');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.35);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(17,17,17,0.92) 45%, rgba(17,17,17,0.3) 100%);
}

/* ─── VSL BOX ────────────────────────────────── */
.vsl-box {
  background: #000;
  border: 2px solid rgba(232,80,10,0.4);
  border-radius: 4px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.vsl-play {
  width: 72px;
  height: 72px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(232,80,10,0.5);
}
.vsl-box:hover .vsl-play { transform: scale(1.1); box-shadow: 0 0 45px rgba(232,80,10,0.7); }

/* ─── PILLAR CARDS ───────────────────────────── */
.pillar-card {
  background: var(--charcoal-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid var(--orange);
  border-radius: 0 0 4px 4px;
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.pillar-number {
  font-family: 'Google Sans', 'Bebas Neue', Impact, sans-serif;
  font-size: 4rem;
  color: rgba(232,80,10,0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ─── STAT BLOCKS ────────────────────────────── */
.stat-block {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-number {
  font-family: 'Google Sans', 'Bebas Neue', Impact, sans-serif;
  font-size: 3.5rem;
  color: var(--orange);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ─── EXIT INTENT POPUP ──────────────────────── */
#exit-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#exit-popup-overlay.active { display: flex; }
#exit-popup {
  background: var(--charcoal-light);
  border: 2px solid var(--orange);
  border-radius: 6px;
  max-width: 520px;
  width: 100%;
  padding: 2.5rem 2rem;
  position: relative;
  animation: popup-in 0.3s ease;
}
@keyframes popup-in {
  from { transform: scale(0.9) translateY(-20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
#exit-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
#exit-popup-close:hover { color: var(--white); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { min-height: auto; padding: 4rem 0; }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(17,17,17,0.85) 0%, rgba(17,17,17,0.95) 100%);
  }
  .btn-cta { font-size: 1.3rem; padding: 0.9rem 1.5rem; }
  .btn-cta-lg { font-size: 1.5rem; padding: 1rem 2rem; }
  .countdown-digits { font-size: 1.6rem; }
}

/* ─── UTILITIES ──────────────────────────────── */
.section-pad    { padding: 5rem 1rem; }
.section-pad-sm { padding: 3rem 1rem; }
.max-w-content  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.max-w-narrow   { max-width: 720px; margin-left: auto; margin-right: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
