/* =============================================================
   Rush Hour Fitness — Design Tokens
   Industrial Athletic system
   ============================================================= */

:root {
  /* Brand */
  --brand-red: #E4002B;
  --brand-red-deep: #B20020;
  --brand-red-glow: rgba(228, 0, 43, 0.35);

  /* Dark mode (default) */
  --bg: #0A0A0B;
  --bg-elev-1: #121214;
  --bg-elev-2: #1A1A1D;
  --bg-elev-3: #232327;
  --ink: #F4F1EC;        /* bone white */
  --ink-muted: #A3A0A0;
  --ink-faint: #5E5B5B;
  --rule: #27272A;
  --rule-strong: #3A3A3F;
  --placeholder: #1F1F22;
  --placeholder-stripe: #17171A;

  /* Type scale */
  --ff-display: "Oswald", "Arial Narrow", sans-serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Sizes — mobile-first; bump in media queries as needed */
  --fs-mono: 11px;
  --fs-eyebrow: 12px;
  --fs-body: 16px;
  --fs-lead: 19px;
  --fs-h3: 28px;
  --fs-h2: 44px;
  --fs-h1: clamp(56px, 9vw, 140px);
  --fs-mega: clamp(88px, 16vw, 260px);

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1440px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html[data-theme="light"] {
  --bg: #F4F1EC;
  --bg-elev-1: #EAE6DF;
  --bg-elev-2: #E0DCD4;
  --bg-elev-3: #D6D1C8;
  --ink: #0A0A0B;
  --ink-muted: #4A4744;
  --ink-faint: #8A8680;
  --rule: #D0CBC2;
  --rule-strong: #B8B2A7;
  --placeholder: #E0DCD4;
  --placeholder-stripe: #D0CBC2;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.mono { font-family: var(--ff-mono); letter-spacing: 0.02em; }
.mono-micro { font-family: var(--ff-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 56ch;
}

/* Red accent utility */
.red { color: var(--brand-red); }
.red-underline {
  background-image: linear-gradient(var(--brand-red), var(--brand-red));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 8px;
  padding-bottom: 0.18em;
  display: inline-block;
  line-height: 1;
}
h1 .red-underline, h2 .red-underline { line-height: 0.92; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding-block: var(--sp-9); }
.section-tight { padding-block: var(--sp-8); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-strong { border: 0; border-top: 1px solid var(--rule-strong); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 16px 22px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 140ms var(--ease-out), background 140ms var(--ease-out), color 140ms var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 10px 40px -12px var(--brand-red-glow);
}
.btn-primary:hover { background: var(--brand-red-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow::after {
  content: "→";
  font-family: var(--ff-body);
  font-weight: 500;
  letter-spacing: 0;
  transition: transform 140ms var(--ease-out);
}
.btn:hover .btn-arrow::after,
.btn.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Placeholder imagery ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--placeholder) 0 14px,
      var(--placeholder-stripe) 14px 28px
    );
  overflow: hidden;
  border: 1px solid var(--rule);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: linear-gradient(to top, rgba(10,10,11,0.85), transparent);
}
html[data-theme="light"] .ph::after {
  background: linear-gradient(to top, rgba(244,241,236,0.92), transparent);
}
.ph-corner-tl,
.ph-corner-tr,
.ph-corner-bl,
.ph-corner-br {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--ink-faint);
}
.ph-corner-tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.ph-corner-tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.ph-corner-bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.ph-corner-br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 72px;
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.brand img { width: 36px; height: 36px; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-text span:first-child { font-size: 16px; white-space: nowrap; }
.brand-text span:last-child { font-family: var(--ff-mono); font-weight: 500; font-size: 9.5px; letter-spacing: 0.22em; color: var(--ink-muted); margin-top: 4px; white-space: nowrap; }
@media (max-width: 1040px) { .brand-text span:last-child { display: none; } }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.site-nav a {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); border-bottom-color: var(--brand-red); }
.header-cta { display: flex; align-items: center; gap: var(--sp-4); }
.header-phone {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.header-phone::before {
  content: "●";
  color: var(--brand-red);
  margin-right: 8px;
  font-size: 10px;
  vertical-align: 1px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
html.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
html.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
html.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .site-nav, .header-phone, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
html.nav-open .mobile-nav {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.mobile-nav-inner {
  padding: calc(72px + var(--sp-6)) var(--gutter) var(--sp-7);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mobile-nav-inner nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.mobile-nav-link {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--ff-display);
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--ink);
  line-height: 1;
}
.mobile-nav-link .mono-micro {
  color: var(--brand-red);
  font-size: 11px;
}
.mobile-nav-link.active { color: var(--brand-red); }
.mobile-nav-foot {
  margin-top: auto;
  padding-top: var(--sp-6);
}
.mobile-nav-phone {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 40px);
  color: var(--brand-red);
  letter-spacing: 0.005em;
}

/* Sticky mobile call bar */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 48;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--rule-strong);
  padding: 10px max(var(--sp-4), env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(var(--sp-4), env(safe-area-inset-right));
  gap: var(--sp-2);
}
@media (max-width: 720px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 64px; }
}
.mobile-cta-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
.mobile-cta-call, .mobile-cta-visit { background: transparent; }
.mobile-cta-join {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}
html.nav-open .mobile-cta-bar { display: none; }

/* Push content below fixed header */
main { padding-top: 72px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elev-1);
  border-top: 1px solid var(--rule);
  padding: var(--sp-9) 0 var(--sp-6);
  margin-top: var(--sp-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-7);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-size: 13px;
  font-family: var(--ff-mono);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-4);
}
.footer-col > a, .footer-col > p {
  display: block;
  color: var(--ink);
  padding: 4px 0;
  font-size: 14px;
}
.footer-col > a:hover { color: var(--brand-red); }
.footer-socials {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.footer-social {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  transition: color 140ms var(--ease-out), border-color 140ms var(--ease-out), background 140ms var(--ease-out);
}
.footer-social:hover {
  color: #fff;
  background: var(--brand-red);
  border-color: var(--brand-red);
}
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Utility ---------- */
.grid { display: grid; gap: var(--sp-5); }
.flex { display: flex; }
.stack > * + * { margin-top: var(--sp-4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Scroll marquee reveal */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--rule);
  background: var(--bg-elev-1);
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  gap: var(--sp-8);
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee-item {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-6);
  color: var(--ink);
}
.marquee-item .dot {
  width: 10px; height: 10px; background: var(--brand-red); border-radius: 50%;
  display: inline-block;
}
