/* ==========================================================================
   FORGE FITNESS CLUB
   Design tokens: near-black concrete base + ember-orange primary accent + volt-green secondary
   ========================================================================== */

:root {
  --ink: #0a0a0c;
  --surface: #17171b;
  --surface-2: #1f2024;
  --paper: #eef0ef;
  --paper-dim: #e2e5e3;
  --white: #ffffff;

  --text-onpaper: #14161a;
  --text-onpaper-70: rgba(20, 22, 26, 0.7);
  --text-onpaper-50: rgba(20, 22, 26, 0.5);
  --text-onink: #eef0ef;
  --text-onink-70: rgba(238, 240, 239, 0.68);
  --text-onink-50: rgba(238, 240, 239, 0.46);

  --ember: #ff4b2b;
  --ember-deep: #e63a1b;
  --volt: #c6ff3d;
  --steel: #9ba0a6;

  --edge-onpaper: rgba(20, 22, 26, 0.1);
  --edge-onpaper-strong: rgba(20, 22, 26, 0.18);
  --edge-onink: rgba(238, 240, 239, 0.12);
  --edge-onink-strong: rgba(238, 240, 239, 0.22);

  --font-display: "Anton", sans-serif;
  --font-body: "Inter", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-onink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

section[id] { scroll-margin-top: 84px; }

::selection { background: var(--ember); color: var(--white); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.03;
  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");
}

/* ========================= reveal-on-scroll ========================= */

.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

.split-words span,
.split-lines .line {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(4px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.split-lines .line { display: block; overflow: hidden; }
.split-words.is-revealed span,
.split-lines.is-revealed .line {
  opacity: 1; transform: translateY(0); filter: blur(0);
}

/* ========================= header ========================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--edge-onink);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; color: var(--ember); flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-word-sub { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body); color: var(--steel); }

.main-nav { display: flex; gap: 32px; }
.main-nav a { font-size: 0.9rem; font-weight: 600; color: var(--text-onink-70); transition: color 0.25s; }
.main-nav a:hover { color: var(--ember); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn-primary { background: var(--ember); color: var(--white); }
.btn-primary:hover {
  background: var(--ember-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(255, 75, 43, 0.55);
}
.btn-outline { border: 1.5px solid var(--edge-onpaper-strong); color: var(--text-onpaper); }
.btn-outline:hover { border-color: var(--ember); color: var(--ember); transform: translateY(-2px); }
.btn-outline-dark { border: 1.5px solid var(--edge-onink-strong); color: var(--text-onink); }
.btn-outline-dark:hover { border-color: var(--volt); color: var(--volt); transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 0.95rem; }

.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 1.8px; background: var(--text-onink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 0; right: 0;
  width: min(320px, 82vw); height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--edge-onink);
  z-index: 99;
  display: flex; flex-direction: column; gap: 4px;
  padding: 100px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { padding: 15px 0; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.02em; border-bottom: 1px solid var(--edge-onink); color: var(--text-onink); }
.mobile-nav .mobile-cta {
  margin-top: 20px; border-bottom: none; text-align: center; border-radius: 6px;
  background: var(--ember); color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 1rem;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 901px) { .mobile-nav { display: none; } }

/* ========================= shared section head ========================= */

.section-head { max-width: 680px; margin: 0 auto 48px; padding: 0 28px; text-align: center; }
.section-kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ember); margin: 0 0 14px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text-onink);
}
.section-sub { color: var(--text-onink-70); font-size: 0.95rem; margin: 14px auto 0; max-width: 520px; }

/* sections on light paper background need dark text; base color above is for dark hero/CTA sections */
.packages .section-title, .locations .section-title, .programs .section-title, .reviews .section-title {
  color: var(--text-onpaper);
}
.packages .section-sub, .locations .section-sub, .programs .section-sub, .reviews .section-sub {
  color: var(--text-onpaper-70);
}

/* ========================= hero ========================= */

.hero { position: relative; padding: 150px 28px 70px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -15%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,75,43,0.22), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 60px; align-items: center;
}

.hero-kicker { font-size: 0.85rem; font-weight: 700; color: var(--volt); margin: 0 0 20px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
}
.hero-accent { color: var(--ember); }

.hero-sub { max-width: 460px; font-size: 1.06rem; color: var(--text-onink-70); margin: 0 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num { font-family: var(--font-display); font-size: 1.9rem; color: var(--text-onink); }
.stat-label { font-size: 0.78rem; color: var(--text-onink-50); }

.hero-visual { position: relative; }
.hero-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4/4.7; box-shadow: 0 50px 90px -40px rgba(0,0,0,0.6); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute; left: -18px; bottom: 32px;
  background: var(--ember); color: var(--white);
  border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 20px 40px -18px rgba(255,75,43,0.5);
  animation: float-badge 6s ease-in-out infinite;
  display: flex; align-items: center; gap: 10px;
  max-width: 190px;
}
.hero-badge-num { font-family: var(--font-display); font-size: 1.5rem; flex-shrink: 0; }
.hero-badge span:last-child { font-size: 0.76rem; line-height: 1.3; }
@keyframes float-badge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .hero { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }

/* ========================= ticker ========================= */

.ticker-section { background: var(--ember); padding: 16px 0; overflow: hidden; transform: skewY(-1.4deg); margin: -1px 0; }
.ticker-track {
  display: flex; gap: 20px; width: max-content; white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track .dot { color: rgba(10,10,12,0.4); font-size: 0.8rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ========================= flowing marquee ========================= */

.photo-marquee { padding: 60px 0 50px; background: var(--ink); overflow: hidden; }
.marquee-label { text-align: center; color: var(--text-onink-50); font-size: 0.85rem; letter-spacing: 0.04em; margin: 0 0 26px; text-transform: uppercase; }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll-left 46s linear infinite; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
.marquee-track figure { flex: none; width: 230px; height: 290px; margin: 0; border-radius: 12px; overflow: hidden; }
.marquee-track img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.4s; filter: saturate(0.95); }
.marquee-track figure:hover img { transform: scale(1.08); filter: saturate(1.1); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .marquee-track figure { width: 170px; height: 220px; } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ========================= programs ========================= */

.programs { padding: 100px 0; background: var(--paper); }
.programs-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--edge-onpaper);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.program-card:hover { transform: translateY(-6px); box-shadow: 0 30px 55px -35px rgba(20,22,26,0.25); border-color: var(--ember); }
.program-icon { width: 30px; height: 30px; color: var(--ember); margin-bottom: 16px; flex-shrink: 0; }
.program-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; margin: 0 0 8px; color: var(--text-onpaper); }
.program-card p { font-size: 0.87rem; color: var(--text-onpaper-70); margin: 0; line-height: 1.5; }

@media (max-width: 1000px) { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .programs-grid { grid-template-columns: 1fr; } }

/* ========================= packages / pricing ========================= */

.packages { padding: 100px 0; background: var(--paper-dim); }
.packages-grid {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
.package-card {
  background: var(--white);
  border: 1px solid var(--edge-onpaper);
  border-radius: 18px;
  padding: 36px 30px;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.package-card:hover { transform: translateY(-6px); box-shadow: 0 30px 55px -35px rgba(20,22,26,0.25); }
.package-featured {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.04);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,0.4);
}
.package-featured:hover { transform: scale(1.04) translateY(-6px); }
.package-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--volt); color: var(--ink);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 6px 16px; border-radius: 100px; white-space: nowrap;
}
.package-name { font-family: var(--font-display); font-size: 1.5rem; margin: 6px 0 6px; color: var(--text-onpaper); }
.package-featured .package-name { color: var(--text-onink); }
.package-tag { font-size: 0.85rem; color: var(--text-onpaper-70); margin: 0 0 22px; min-height: 40px; }
.package-featured .package-tag { color: var(--text-onink-70); }
.package-price { font-family: var(--font-display); font-size: 1rem; color: var(--text-onpaper); margin: 0 0 26px; }
.package-featured .package-price { color: var(--text-onink); }
.package-price span { font-size: 2.4rem; margin-right: 4px; }
.package-features { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.package-features li {
  font-size: 0.88rem; color: var(--text-onpaper-70); padding-left: 24px; position: relative;
}
.package-featured .package-features li { color: var(--text-onink-70); }
.package-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ember); font-weight: 800;
}
.package-featured .package-features li::before { color: var(--volt); }
.package-card .btn { width: 100%; }

@media (max-width: 900px) {
  .packages-grid { grid-template-columns: 1fr; max-width: 440px; }
  .package-featured { transform: scale(1); }
  .package-featured:hover { transform: translateY(-6px); }
}

/* ========================= locations ========================= */

.locations { padding: 100px 0; background: var(--paper); }
.locations-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.location-card {
  background: var(--white);
  border: 1px solid var(--edge-onpaper);
  border-radius: 14px;
  padding: 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.location-card:hover { transform: translateY(-6px); box-shadow: 0 30px 55px -35px rgba(20,22,26,0.25); border-color: var(--ember); }
.location-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; margin: 0 0 10px; color: var(--text-onpaper); }
.location-address { font-size: 0.86rem; color: var(--text-onpaper-70); margin: 0 0 8px; line-height: 1.5; }
.location-hours { font-size: 0.82rem; color: var(--text-onpaper-50); margin: 0 0 14px; }
.location-phone { font-size: 0.86rem; font-weight: 700; color: var(--ember); }
.location-soon { background: var(--ink); border-color: var(--ink); }
.location-soon h3, .location-soon .location-address { color: var(--text-onink); }
.location-soon .location-hours { color: var(--text-onink-50); }
.location-soon .location-phone { color: var(--volt); }
.location-soon-badge {
  display: inline-block; background: var(--volt); color: var(--ink);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}

@media (max-width: 1000px) { .locations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .locations-grid { grid-template-columns: 1fr; } }

/* ========================= why choose us ========================= */

.why { padding: 90px 28px; background: var(--ink); }
.why-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.why-item { max-width: 260px; }
.why-icon { width: 34px; height: 34px; color: var(--ember); margin-bottom: 16px; flex-shrink: 0; }
.why-item h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 8px; color: var(--text-onink); letter-spacing: 0.01em; }
.why-item p { font-size: 0.87rem; color: var(--text-onink-70); margin: 0; line-height: 1.55; }

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ========================= reviews ========================= */

.reviews { padding: 100px 0; background: var(--paper-dim); }
.reviews-grid { max-width: 1280px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review-card { background: var(--white); border: 1px solid var(--edge-onpaper); border-radius: 14px; padding: 26px; }
.review-quote { font-size: 0.94rem; line-height: 1.55; margin: 0 0 18px; color: var(--text-onpaper); }
.review-name { font-size: 0.8rem; font-weight: 700; color: var(--ember); margin: 0; }

@media (max-width: 1000px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ========================= final CTA ========================= */

.final-cta { position: relative; background: var(--ink); padding: 120px 28px; text-align: center; overflow: hidden; }
.final-glow {
  position: absolute; top: 50%; left: 50%;
  width: 800px; height: 800px; margin: -400px 0 0 -400px;
  background: radial-gradient(circle, rgba(198,255,61,0.1), rgba(255,75,43,0.14) 45%, transparent 70%);
  filter: blur(60px);
}
.final-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.final-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 10px 0 20px; color: var(--text-onink); }
.final-sub { color: var(--text-onink-70); font-size: 1.05rem; margin: 0 0 40px; }
.final-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ========================= footer ========================= */

.site-footer { background: var(--surface); color: var(--text-onink-70); padding: 70px 28px 28px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--edge-onink); }
.footer-brand .brand { color: var(--text-onink); margin-bottom: 14px; }
.footer-tag { font-size: 0.87rem; max-width: 260px; line-height: 1.5; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 0.9rem; transition: color 0.25s; }
.footer-nav a:hover { color: var(--text-onink); }
.footer-locations-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ember); margin: 0 0 12px; }
.footer-locations p { margin: 0 0 6px; font-size: 0.88rem; line-height: 1.5; }

.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { margin: 0; font-size: 0.78rem; max-width: 560px; }
.footer-social { display: flex; gap: 18px; }
.footer-social a { font-size: 0.85rem; transition: color 0.25s; }
.footer-social a:hover { color: var(--text-onink); }

@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ========================= reduced motion ========================= */

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