/* ============================================
   Horizon Fit — Design Tokens
   ============================================ */
:root {
  --ink: #0B0B0C;
  --charcoal: #17181B;
  --mist: #FAFAF9;
  --mist-dim: #E9E8E6;
  --gold: #D6402C;
  --teal: #5C1714;
  --text-dark: #101112;
  --text-muted: #6B6B6B;
  --text-on-dark: #F5F3F1;
  --text-on-dark-muted: #A8A6A3;

  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text-on-dark);
  background: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }

p { max-width: 62ch; }

.eyebrow-time {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold);
}

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-on-dark-muted);
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text-on-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: #E8695A; }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--text-on-dark);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-on-dark);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { max-height: 380px; }
  .nav-links li { width: 100%; padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,0.06); }
  .nav-links li:first-child { border-top: none; }
  .nav-cta { padding: 1rem 0 1.2rem; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================
   Horizon line motif
   ============================================ */
.horizon-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(217,164,65,0.15) 40%, transparent 70%);
  width: 100%;
}
.horizon-rule.dark { background: linear-gradient(90deg, var(--gold) 0%, rgba(217,164,65,0.2) 40%, transparent 70%); }

.horizon-mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  color: var(--text-on-dark);
  min-height: calc(100vh - 76px);
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 16s infinite;
}
.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: -4s; }
.hero-slideshow img:nth-child(3) { animation-delay: -8s; }
.hero-slideshow img:nth-child(4) { animation-delay: -12s; }

@keyframes heroFade {
  0% { opacity: 0; }
  3% { opacity: 1; }
  22% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.65) 55%, rgba(11,11,12,0.9) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  margin-top: 36vh;
  padding: 0 0 2.5rem;
}

.hero-copy { max-width: 640px; }

.hero-copy p {
  color: rgba(237,239,236,0.9);
  font-size: 1.2rem;
  margin: 1.5rem 0 2.2rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-schedule {
  position: relative;
  z-index: 2;
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-schedule ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.hero-schedule li {
  display: block;
  color: var(--text-on-dark-muted);
  font-size: 0.98rem;
}

.hero-schedule strong { color: var(--text-on-dark); font-weight: 600; margin-right: 0.4rem; }

@media (max-width: 780px) {
  .hero { min-height: 90vh; }
  .hero-inner { margin-top: 16vh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-schedule ul { gap: 1.2rem; }
}

/* ============================================
   Programs section
   ============================================ */
.programs { padding: 6rem 0; background: var(--charcoal); color: var(--text-on-dark); }
.programs .program-tag { color: var(--gold); }
.programs .program-link { color: var(--text-on-dark); }
.programs .program-row { border-top-color: rgba(255,255,255,0.12); }
.programs .program-row:last-child { border-bottom-color: rgba(255,255,255,0.12); }

.section-head {
  max-width: 620px;
  margin-bottom: 3.5rem;
}
.section-head p { color: var(--text-on-dark-muted); font-size: 1.1rem; margin-top: 1rem; }

.program-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.program-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.program-row.reverse { grid-template-columns: 1.1fr 0.9fr; }
.program-row.reverse .program-media { order: 2; }

.program-media {
  aspect-ratio: 5/4;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.program-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.program-tag {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.6rem;
  display: block;
}

.program-copy p { color: var(--text-on-dark-muted); margin: 1rem 0 1.6rem; }

.program-link {
  font-weight: 600;
  color: var(--text-on-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

@media (max-width: 780px) {
  .program-row, .program-row.reverse { grid-template-columns: 1fr; }
  .program-row.reverse .program-media { order: 0; }
}

/* ============================================
   Community strip
   ============================================ */
.community {
  background: var(--teal);
  color: var(--text-on-dark);
  padding: 4.5rem 0;
}
.community-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.community-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}
.community-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.community blockquote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
  font-weight: 400;
}
.community cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: var(--body);
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}
@media (max-width: 780px) { .community-inner { grid-template-columns: 1fr; } }

/* ============================================
   CTA band
   ============================================ */
.cta-band {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 5.5rem 0;
  text-align: left;
}
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band p { color: var(--text-on-dark-muted); margin-top: 0.8rem; }

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--charcoal);
  color: var(--text-on-dark-muted);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.6rem;
}
.footer-inner a:hover { color: var(--text-on-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ============================================
   Inner page hero (Bootcamp / PT / Women's / About / Contact)
   ============================================ */
.page-hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 4rem 0 3.5rem;
}
.page-hero p {
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  margin-top: 1.2rem;
  max-width: 56ch;
}

.content-section { padding: 5rem 0; background: var(--charcoal); }
.content-section:nth-of-type(odd) { background: var(--ink); }
.content-section + .content-section { border-top: 1px solid rgba(255,255,255,0.08); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; } }

.info-list { list-style: none; margin-top: 1.5rem; }
.info-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-on-dark-muted);
}
.info-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.info-list strong { color: var(--text-on-dark); min-width: 130px; flex-shrink: 0; }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.schedule-table th, .schedule-table td {
  text-align: left;
  padding: 0.9rem 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.98rem;
}
.schedule-table th {
  font-weight: 600;
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
}
.schedule-table tr:last-child td { border-bottom: 1px solid rgba(255,255,255,0.1); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 480px; }
.contact-form label { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.4rem; display: block; color: var(--text-on-dark); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--body);
  font-size: 0.98rem;
  border-radius: 2px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

/* Team / about photo grid */
.headshot {
  aspect-ratio: 3/4;
  background: var(--charcoal);
  position: relative;
  overflow: visible;
}
.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.headshot-duo {
  position: relative;
  aspect-ratio: 3/4;
}
.headshot-duo .primary {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.headshot-duo .secondary {
  position: absolute;
  width: 46%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 4px solid var(--ink);
  box-shadow: 0 10px 24px rgba(0,0,0,0.5);
  bottom: -16px;
}
.headshot-duo .secondary.right { right: -16px; }
.headshot-duo .secondary.left { left: -16px; }
@media (max-width: 480px) {
  .headshot-duo .secondary { width: 40%; }
}

.section-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}

/* ============================================
   Testimonial quote
   ============================================ */
.testimonial {
  border-left: 3px solid var(--gold);
  padding-left: 1.3rem;
  margin: 2.2rem 0;
  max-width: 60ch;
}
.testimonial p {
  font-style: italic;
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.testimonial cite {
  display: block;
  margin-top: 0.7rem;
  color: var(--text-on-dark);
  font-weight: 600;
  font-style: normal;
  font-size: 0.9rem;
}
