/* ============================================
   ZEUS FITNESS STUDIO — Design System
   Theme: Thunder, marble, divine power
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Color tokens */
  --void: #0a0a0a;
  --void-soft: #131313;
  --char: #1c1c1e;
  --steel: #4a4d52;
  --steel-light: #8a8d92;
  --bone: #f2f0ea;
  --bone-dim: #d8d4c8;
  --zeus-red: #d81f26;
  --zeus-red-dark: #9c1318;
  --thunder-gold: #e8a33d;
  --thunder-gold-bright: #ffc566;

  /* Type */
  --font-display: 'Sora', sans-serif;
  --font-accent: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container-w: 1240px;
  --edge: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease-power: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-strike: cubic-bezier(0.7, 0, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--void);
}

@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;
  }
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.wrap {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* ---------- Marble crack texture overlay ---------- */
.crack-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 1;
  mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 2px, rgba(255,255,255,0.4) 2px 3px, transparent 3px 140px),
    repeating-linear-gradient(25deg, transparent 0 2px, rgba(255,255,255,0.3) 2px 3px, transparent 3px 180px);
}

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--zeus-red);
  color: var(--bone);
  padding: 12px 20px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--thunder-gold);
  outline-offset: 3px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.eyebrow {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--thunder-gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--thunder-gold);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: none;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 600; }

/* Stat numbers, prices, and large figures use the display font and
   should default to a confident weight even where not explicitly set */
.hero-stat .num, .review-score, .tier-price, .rstat .n,
.pillar-num, .testi-avatar, .program-num, .tier-name,
.trainer-avatar, .initials {
  font-weight: 700;
}

p { color: var(--bone-dim); font-size: 1.02rem; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--bone-dim);
  max-width: 540px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 34px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  isolation: isolate;
  overflow: hidden;
  --magnet-x: 0px;
  --magnet-y: 0px;
  transform: translate(var(--magnet-x), var(--magnet-y));
  transition: transform 0.35s var(--ease-power);
}
.btn.is-magnetic { transition: transform 0.15s ease-out; }

.btn-primary {
  background: var(--zeus-red);
  color: var(--bone);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%);
  padding: 17px 38px 17px 30px;
  animation: btn-pulse 3.2s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 31, 38, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(216, 31, 38, 0); }
}
.btn-primary:hover { animation-play-state: paused; }
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--thunder-gold);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-strike);
  z-index: -1;
}
.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  transform: translateX(0);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--void);
  transform: translate(var(--magnet-x), var(--magnet-y)) translateY(-2px) scale(1.02);
}
.btn-primary:active {
  transform: translate(var(--magnet-x), var(--magnet-y)) translateY(0) scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 2px solid var(--steel);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%);
  padding: 15px 36px 15px 28px;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--thunder-gold);
  color: var(--thunder-gold);
  transform: translate(var(--magnet-x), var(--magnet-y)) translateY(-2px);
}

/* ============================================
   NAVBAR
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-power), padding 0.4s var(--ease-power), border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  padding: 14px var(--edge);
  border-bottom-color: rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}
.nav-logo .bolt-mark { width: 26px; height: 26px; flex-shrink: 0; }
.nav-logo .bolt-mark path { fill: var(--thunder-gold); }
.nav-logo span { color: var(--zeus-red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-links a {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--thunder-gold);
  transition: width 0.3s var(--ease-power);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}
.nav-links a[aria-current="page"] { color: var(--thunder-gold); }

.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav .btn-primary { padding: 12px 28px 12px 22px; font-size: 0.95rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 110;
}
.nav-burger span {
  width: 26px; height: 2px;
  background: var(--bone);
  transition: transform 0.3s var(--ease-power), opacity 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-strike);
}
.mobile-panel.open { transform: translateY(0); }
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 2.4rem;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav-burger { display: flex; }
}

/* ============================================
   SECTION SCAFFOLDING
   ============================================ */

section { position: relative; z-index: 2; }

.section-pad { padding: clamp(70px, 12vw, 140px) 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.diagonal-divider {
  height: 90px;
  background: var(--zeus-red);
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 100%);
  margin-top: -2px;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-power), transform 0.8s var(--ease-power);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--void-soft);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 70px 0 30px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.footer-logo span { color: var(--zeus-red); }
.footer-logo svg path { fill: var(--thunder-gold); }
.footer-col h4 {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--thunder-gold);
  font-size: 1.05rem;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--steel-light);
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--bone); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.85rem;
  color: var(--steel-light);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--steel);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.footer-social a:hover { border-color: var(--thunder-gold); color: var(--thunder-gold); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  background: var(--zeus-red);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0% 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--thunder-gold); }
.to-top svg { width: 20px; height: 20px; }
.to-top svg path { fill: var(--void); }
