/* ==========================================================================
   Jia's Fitness Zone — design tokens
   Palette: Ink Plum / Coral Pulse / Marigold / Cream / Charcoal / Rose Soft
   Display: Bebas Neue · Body: Plus Jakarta Sans · Utility: Space Mono
   Signature: the "pulse line" — a continuous drawn line that threads the
   site, echoing both a heartbeat and the flowing, non-mechanical movement
   Jia's members describe in their sessions.
   ========================================================================== */

:root {
  --ink: #2a0e1f;
  --ink-soft: #3d1730;
  --coral: #ff4d6d;
  --coral-dim: #e03e5c;
  --marigold: #ffb629;
  --cream: #fbf3e7;
  --cream-dim: #f3e4d1;
  --charcoal: #241017;
  --rose-soft: #ffd9df;
  --line: rgba(42, 14, 31, 0.12);
  --line-on-dark: rgba(251, 243, 231, 0.16);

  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --mono: "Space Mono", "Courier New", monospace;

  --container: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.94;
  margin: 0;
  font-weight: 400;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

p { line-height: 1.65; margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--coral);
  display: inline-block;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--charcoal);
  opacity: 0.82;
  max-width: 46ch;
}

.stat-figure {
  font-family: var(--mono);
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }

.btn-primary {
  background: var(--coral);
  color: var(--cream);
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.32);
}
.btn-primary:hover { background: var(--coral-dim); box-shadow: 0 10px 26px rgba(255, 77, 109, 0.4); }

.btn-ghost-dark {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost-dark:hover { background: var(--ink); color: var(--cream); }

.btn-ghost-light {
  border-color: var(--line-on-dark);
  color: var(--cream);
  background: transparent;
}
.btn-ghost-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 243, 231, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-dot { color: var(--coral); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--coral);
  transition: right 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }

.nav-links a[aria-current="page"] { color: var(--coral-dim); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 66px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 28px;
    gap: 26px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { font-size: 1.4rem; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { padding: 11px 18px; font-size: 0.85rem; }
}

/* ---------- Pulse line (signature element) ---------- */

.pulse-line-svg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pulse-draw {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  animation: draw-pulse 2.6s ease forwards;
  animation-delay: 0.2s;
}

@keyframes draw-pulse {
  to { stroke-dashoffset: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 76px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--coral); }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-stat b {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--ink);
}
.hero-stat span {
  font-size: 0.78rem;
  color: var(--charcoal);
  opacity: 0.65;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 28px;
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-soft) 60%, var(--coral-dim) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.hero-visual .badge {
  position: absolute;
  top: 22px;
  left: 22px;
  background: var(--marigold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.hero-visual .rating-chip {
  position: absolute;
  bottom: 22px;
  right: 22px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Section rhythm ---------- */

.section { padding: 88px 0; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-tight { padding: 64px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-dark .lede { color: var(--cream); opacity: 0.72; }
.section-dark .eyebrow { color: var(--marigold); }
.section-dark .eyebrow::before { background: var(--marigold); }

/* ---------- Feature cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 880px) {
  .grid-3, .grid-2, .hero-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--cream-dim);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 12px; }
.card p { opacity: 0.75; font-size: 0.95rem; }

.card-dark {
  background: var(--ink-soft);
  border-color: var(--line-on-dark);
  color: var(--cream);
}
.card-dark p { color: var(--cream); }

/* ---------- Class strip ---------- */

.class-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.section-dark .class-row { border-bottom-color: var(--line-on-dark); }

.class-row:first-of-type { border-top: 1px solid var(--line); }
.section-dark .class-row:first-of-type { border-top-color: var(--line-on-dark); }

.class-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--coral);
  background: var(--rose-soft);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.class-row h3 { margin-bottom: 6px; }
.class-row p { opacity: 0.7; font-size: 0.92rem; max-width: 52ch; }

@media (max-width: 640px) {
  .class-row { grid-template-columns: 1fr; text-align: left; }
  .class-tag { width: fit-content; }
}

/* ---------- Testimonials ---------- */

.quote-card {
  background: var(--cream-dim);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.quote-mark {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--coral);
  line-height: 0.6;
}

.quote-card p.quote-text { font-size: 1.02rem; opacity: 0.9; }

.quote-attrib {
  font-family: var(--mono);
  font-size: 0.75rem;
  opacity: 0.6;
  letter-spacing: 0.03em;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  border-radius: 24px;
  background: linear-gradient(120deg, var(--coral) 0%, var(--coral-dim) 100%);
  color: var(--cream);
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 { max-width: 14ch; }
.cta-banner .btn-primary { background: var(--ink); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--charcoal); }

.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-on-dark);
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand { color: var(--cream); }
.footer-brand p { opacity: 0.65; margin-top: 14px; font-size: 0.9rem; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col p { font-size: 0.92rem; opacity: 0.8; }
.footer-col a:hover { opacity: 1; color: var(--coral); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  opacity: 0.55;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 56px 0 64px;
  position: relative;
}
.page-hero h1 { margin-top: 16px; }
.page-hero .lede { margin-top: 20px; }

/* ---------- Misc utility ---------- */

.mt-lg { margin-top: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--rose-soft);
  color: var(--coral-dim);
  padding: 7px 14px;
  border-radius: 999px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}
