/* =========================================================
   SPARK FITNESS ZONE — Demo 2
   Base design system, navigation, footer and shared UI
   ========================================================= */

:root {
  --black: #050607;
  --black-2: #0a0b0d;
  --black-3: #101113;
  --card: #151619;
  --card-glass: rgba(21, 22, 25, 0.72);
  --gold: #D4AF37;
  --gold-bright: #FFBD45;
  --gold-light: #FFD27A;
  --gold-dark: #8a6514;
  --cream: #F5F1E8;
  --muted: #A6A6A6;
  --muted-2: #737373;
  --line: rgba(212, 175, 55, 0.22);
  --line-strong: rgba(255, 189, 69, 0.46);
  --wa: #25d366;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  --gold-gradient: linear-gradient(100deg, #F5B53F 0%, #FFD27A 46%, #D4AF37 100%);
  --gold-text: linear-gradient(100deg, #FFD27A 0%, #FFBD45 45%, #D4AF37 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1480px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open, body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: #171006; }
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  border-radius: 4px;
}
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: #1a1205;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; color: var(--muted); max-width: 620px; }
.section-head.center p { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.gold { color: var(--gold-bright); }
.gold-text {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.display {
  font-size: clamp(2.4rem, 5.4vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}
.h2 { font-size: clamp(2rem, 3.4vw, 3.7rem); line-height: 1; }
.h3 { font-size: clamp(1.35rem, 2vw, 2rem); }
.lead { font-size: clamp(1rem, 1.25vw, 1.16rem); line-height: 1.75; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }

/* Buttons */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-gold {
  background: var(--gold-gradient);
  color: #1a1205;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.btn-gold:hover { box-shadow: 0 16px 42px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-outline { border-color: rgba(212, 175, 55, 0.5); color: var(--gold-bright); background: rgba(212, 175, 55, 0.04); }
.btn-outline:hover { border-color: var(--gold-bright); background: rgba(212, 175, 55, 0.09); }
.btn-dark { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.btn-wa { background: var(--wa); color: #04130a; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.18); }
.btn-wa:hover { box-shadow: 0 16px 42px rgba(37, 211, 102, 0.28); }
.btn-sm { min-height: 40px; padding: 9px 17px; font-size: 0.78rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.88rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Announcement + header */
.announcement {
  position: relative;
  z-index: 90;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  background: #08090b;
  color: var(--gold-light);
  text-align: center;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.announcement p { max-width: 1200px; margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { padding: 8px 0; }
.nav-shell {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--container), calc(100% - 48px));
  min-height: 70px;
  margin-inline: auto;
  padding: 9px 12px 9px 18px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.66);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled .nav-shell { background: rgba(5, 6, 7, 0.93); border-color: rgba(212, 175, 55, 0.3); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255, 189, 69, 0.35)); }
.brand-copy { display: grid; line-height: 1; }
.brand-name {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.brand-sub {
  margin-top: 5px;
  color: var(--gold);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #cfcfcf;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--cream); background: rgba(255, 255, 255, 0.04); }
.nav-link.is-active { color: var(--gold-bright); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-gradient);
  transform: translateX(-50%);
}
.nav-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(212, 175, 55, 0.04);
}
.phone-pill svg { width: 15px; height: 15px; }
.nav-cta { min-height: 42px; padding: 10px 18px; font-size: 0.78rem; }
.mobile-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.05);
  cursor: pointer;
}
.mobile-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--gold-light);
  transition: transform 0.3s var(--ease), opacity 0.3s, top 0.3s;
}
.mobile-toggle span:nth-child(1) { top: 15px; }
.mobile-toggle span:nth-child(2) { top: 21px; }
.mobile-toggle span:nth-child(3) { top: 27px; }
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.nav-mobile-cta, .nav-mobile-meta { display: none; }

/* Footer */
.site-footer { margin-top: 80px; border-top: 1px solid rgba(212, 175, 55, 0.18); background: #07080a; }
.footer-inner { display: grid; grid-template-columns: 1.35fr 0.8fr 0.9fr 1fr; gap: 36px; padding: 62px 0 40px; }
.footer-brand p { margin-top: 15px; max-width: 300px; color: #8e8e8e; font-size: 0.78rem; }
.footer-brand .brand { margin-bottom: 6px; }
.footer-col h3 { margin-bottom: 15px; color: var(--gold-light); font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a, .footer-links p { color: #979797; font-size: 0.78rem; }
.footer-links a:hover { color: var(--gold-light); }
.social-row { display: flex; gap: 9px; margin-top: 18px; }
.social-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(212, 175, 55, 0.25); border-radius: 50%; color: var(--gold-light); transition: background 0.25s, border-color 0.25s; }
.social-btn:hover { background: rgba(212, 175, 55, 0.1); border-color: var(--gold-bright); }
.social-btn svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 26px; border-top: 1px solid rgba(212, 175, 55, 0.12); color: #6f6f6f; font-size: 0.68rem; }

/* Luxury Mobile App Dock */
.app-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 8px 14px max(14px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.app-dock-shell {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  max-width: 440px;
  margin: 0 auto;
  padding: 6px 8px;
  background: rgba(14, 12, 11, 0.94);
  border: 1px solid rgba(255, 210, 122, 0.3);
  border-radius: 36px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.82), 0 0 22px rgba(255, 190, 70, 0.15), inset 0 1px 0 rgba(255, 210, 122, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.app-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1 1 0;
  min-width: 52px;
  height: 48px;
  border-radius: 20px;
  color: #9c9c9c;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.app-dock-item:active { transform: scale(0.92); }
.app-dock-item.is-active {
  color: #ffbe45;
  background: rgba(255, 190, 70, 0.1);
}
.app-dock-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  position: relative;
}
.app-dock-icon svg { width: 20px; height: 20px; }
.app-dock-item.is-active .app-dock-icon svg {
  stroke: #ffbe45;
  filter: drop-shadow(0 0 6px rgba(255, 190, 70, 0.65));
}
.app-dock-icon.has-badge { position: relative; }
.app-dock-badge {
  position: absolute;
  top: -4px;
  right: -9px;
  padding: 1px 4px;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1;
  color: #1a1205;
  background: #ffbe45;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(255, 190, 70, 0.7);
}
.app-dock-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.app-dock-cta {
  flex: 0 0 auto;
  text-decoration: none;
  pointer-events: auto;
  margin-left: 2px;
}
.app-dock-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 15px;
  background: linear-gradient(135deg, #f6b73c 0%, #e59a18 100%);
  color: #140d04;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 24px;
  box-shadow: 0 4px 18px rgba(246, 183, 60, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.app-dock-cta-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(246, 183, 60, 0.3);
}
.app-dock-cta-btn svg { width: 17px; height: 17px; }

/* Sticky mobile legacy fallback */
.mobile-bar { display: none; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 280; display: none; place-items: center; padding: 20px; background: rgba(3, 4, 5, 0.92); backdrop-filter: blur(14px); }
.modal.is-open { display: grid; }
.modal-card { position: relative; width: min(900px, 94vw); overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.36); border-radius: 24px; background: #0a0b0d; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 4; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 210, 122, 0.36); border-radius: 50%; background: rgba(5, 6, 7, 0.7); color: var(--gold-light); cursor: pointer; }
.modal-close svg { width: 17px; height: 17px; }
.tour-slides { position: relative; aspect-ratio: 16 / 9; background: #050607; }
.tour-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s; filter: saturate(0.8) contrast(1.08); }
.tour-slides img.is-active { opacity: 1; }
.tour-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 6, 7, 0.88)); }
.tour-modal-copy { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 20px; }
.tour-modal-copy h3 { font-size: 1.4rem; }
.tour-modal-copy p { margin-top: 5px; color: #b0b0b0; font-size: 0.75rem; }
.tour-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #4b4b4b; cursor: pointer; }
.tour-dots button.is-active { width: 22px; border-radius: 999px; background: var(--gold-bright); }

/* Reveal + motion */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-delay-1 { transition-delay: 0.08s; } .reveal-delay-2 { transition-delay: 0.16s; } .reveal-delay-3 { transition-delay: 0.24s; }
.hero-copy > * { animation: heroIn 0.95s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; } .hero-copy > :nth-child(3) { animation-delay: 0.16s; } .hero-copy > :nth-child(4) { animation-delay: 0.24s; } .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero-athlete-wrap { animation: athleteIn 1.2s var(--ease) 0.12s both; }
@keyframes athleteIn { from { opacity: 0; transform: translateY(26px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hero-cards { animation: cardsIn 1s var(--ease) 0.3s both; }
@keyframes cardsIn { from { opacity: 0; transform: perspective(1100px) rotateY(-4deg) rotateX(2deg) translateX(20px); } to { opacity: 1; transform: perspective(1100px) rotateY(-4deg) rotateX(2deg) translateX(0); } }

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