/* APEX FITNESS — Stat-Heavy Bold Blocks
   Pure typography. Zero images. Hand-written CSS. */

:root {
  --ink: #0A0A0A;
  --surface: #161616;
  --cream: #F5F5F0;
  --orange: #FF4500;
  --dim: #555;

  --display: 'Oswald', 'Impact', sans-serif;
  --body: 'Barlow', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* Reset */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-weight: 400;
  color: var(--cream);
  background: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

/* Utilities */

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

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

/* ========== NAV ========== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 245, 240, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.6);
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--orange);
}

.nav__links a.active {
  color: var(--cream);
}

/* Hamburger */

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    border-bottom: 1px solid rgba(245, 245, 240, 0.06);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    font-size: 0.875rem;
  }
}

/* ========== STATS HERO ========== */

.stats {
  padding: 120px 0 80px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat__number {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.stat__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1rem;
  }

  .stat__number {
    font-size: clamp(3rem, 15vw, 5rem);
  }
}

/* ========== TAGLINE ========== */

.tagline {
  padding: 2rem 0 5rem;
  text-align: center;
}

.tagline p {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(245, 245, 240, 0.5);
  max-width: 500px;
  margin: 0 auto;
}

/* ========== HERO ========== */

.hero {
  padding: 4rem 0 2rem;
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin-bottom: 1.75rem;
  max-width: 16ch;
}

.hero__intro {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.7;
  color: rgba(245, 245, 240, 0.6);
  max-width: 60ch;
  margin-bottom: 1.25rem;
}

.hero__intro:last-child {
  margin-bottom: 0;
}

/* ========== SECTION DIVIDER ========== */

.divider {
  width: 100%;
  height: 1px;
  background: rgba(245, 245, 240, 0.06);
  border: none;
}

/* ========== CLASSES SECTION (homepage) ========== */

.classes-section {
  padding: 5rem 0;
}

.classes-section__heading {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 3rem;
}

.class-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(245, 245, 240, 0.06);
}

.class-block:first-of-type {
  border-top: 1px solid rgba(245, 245, 240, 0.06);
}

.class-block__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.class-block__schedule {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.class-block__desc {
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(245, 245, 240, 0.6);
  max-width: 480px;
}

/* ========== PRICING ========== */

.pricing {
  padding: 5rem 0;
}

.pricing__heading {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 3rem;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.price-col {
  background: var(--surface);
  padding: 2.5rem 2rem;
  text-align: center;
}

.price-col__amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--orange);
  line-height: 1;
}

.price-col__period {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-top: 0.25rem;
}

.price-col__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1.5rem;
}

.price-col__diff {
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(245, 245, 240, 0.5);
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ========== CONTACT BAR ========== */

.contact-bar {
  padding: 3rem 0;
  text-align: center;
}

.contact-bar p {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--dim);
  line-height: 2;
}

.contact-bar a {
  color: rgba(245, 245, 240, 0.6);
  transition: color 0.2s ease;
}

.contact-bar a:hover {
  color: var(--orange);
}

/* ========== CLASSES PAGE (detail) ========== */

.classes-detail {
  padding: 120px 0 5rem;
}

.classes-detail__heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
}

.class-detail {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(245, 245, 240, 0.06);
}

.class-detail:first-of-type {
  border-top: 1px solid rgba(245, 245, 240, 0.06);
}

.class-detail__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.class-detail__meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--orange);
  margin-bottom: 1rem;
}

.class-detail__body {
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(245, 245, 240, 0.65);
  max-width: 560px;
  line-height: 1.7;
}

.class-detail__body p + p {
  margin-top: 0.5rem;
}

.classes-cta {
  padding: 4rem 0 5rem;
  text-align: center;
}

.classes-cta p {
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.125rem;
  color: rgba(245, 245, 240, 0.5);
}

.classes-cta a {
  color: var(--orange);
  border-bottom: 1px solid rgba(255, 69, 0, 0.3);
  transition: border-color 0.2s ease;
}

.classes-cta a:hover {
  border-color: var(--orange);
}

/* ========== CONTACT PAGE ========== */

.contact-page {
  padding: 120px 0 3rem;
}

.contact-page__heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.contact-page__intro {
  font-weight: 300;
  font-size: 1.125rem;
  color: rgba(245, 245, 240, 0.5);
  margin-bottom: 3rem;
  max-width: 480px;
}

.contact-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(245, 245, 240, 0.06);
}

.contact-section:first-of-type {
  border-top: 1px solid rgba(245, 245, 240, 0.06);
}

.contact-section__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}

.contact-section__body {
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(245, 245, 240, 0.65);
  line-height: 1.8;
  max-width: 480px;
}

.contact-section__body a {
  color: rgba(245, 245, 240, 0.8);
  transition: color 0.2s ease;
}

.contact-section__body a:hover {
  color: var(--orange);
}

.contact-offer {
  padding: 4rem 0 5rem;
  text-align: center;
}

.contact-offer p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.contact-offer .sub {
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dim);
  margin-top: 0.5rem;
}

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

.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(245, 245, 240, 0.06);
  text-align: center;
}

.footer p {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer a {
  color: rgba(245, 245, 240, 0.4);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--orange);
}

/* ========== MOTION ========== */

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

/* ========== FOCUS ========== */

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
