/* ==========================================================================
   THE BUNKER GYM — Stylesheet
   Type system: Oswald (display/headings) + Work Sans (body/UI text)
   Color system: near-black ground, off-white text, red accent
   ========================================================================== */

/* -------------------- Fonts (self-hosted, OFL licensed) ------------------ */
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------ Design tokens ----------------------------- */
:root {
  /* color */
  --color-bg: #131514;
  --color-bg-alt: #161616;
  --color-bg-raised: #1c1e1d;
  --color-text: #eff0ea;
  --color-text-muted: #9a9c96;
  --color-border: #333532;
  --color-accent: #e34f49;
  --color-accent-hover: #c73f3a;
  --color-accent-text: #131514;

  /* type families */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  /* type scale — fluid, one scale used everywhere */
  --fs-h1: clamp(2.75rem, 2rem + 3.6vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.6rem + 1.9vw, 3.25rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-h4: 0.8125rem; /* eyebrow / kicker labels */
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --lh-tight: 1.08;
  --lh-heading: 1.2;
  --lh-body: 1.65;

  --ls-tight: -0.01em;
  --ls-kicker: 0.16em;
  --ls-button: 0.06em;

  /* layout */
  --container: 1180px;
  --space-section: clamp(4.5rem, 4rem + 3vw, 8rem);
  --radius: 2px;
}

/* --------------------------------- Reset ---------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ------------------------------ Typography -------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  margin: 0;
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 1.1rem;
}

.kicker::before {
  content: "";
  width: 1.6em;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

p {
  margin: 0 0 1em;
  color: var(--color-text);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.text-muted {
  color: var(--color-text-muted);
}

/* -------------------------------- Layout ----------------------------------- */
.container {
  width: 100%;
  min-width: 0;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section {
  padding-block: var(--space-section);
}

.section-head {
  max-width: 56ch;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .lead {
  margin-inline: auto;
}
.section-head.center .kicker {
  justify-content: center;
}

.divider {
  height: 1px;
  background: var(--color-border);
  border: 0;
  margin: 0;
}

/* -------------------------------- Buttons ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-text);
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --------------------------------- Header ------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.25rem;
  background: linear-gradient(to bottom, rgba(19, 21, 20, 0.85), rgba(19, 21, 20, 0));
  transition: background-color 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(19, 21, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding-block: 0.85rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 78px;
  width: auto;
  transition: height 0.2s ease;
}

.site-header.is-scrolled .logo img {
  height: 60px;
}

.footer-brand .logo img {
  height: 96px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:not(.btn):hover,
.nav a:not(.btn).is-active {
  color: var(--color-text);
  border-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--color-text);
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------- Hero -------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 8rem;
  padding-bottom: clamp(3.5rem, 3rem + 3vw, 6rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-media img {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.hero-media video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-media.show-video img {
  opacity: 0;
}

.hero-media.show-video video {
  opacity: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--color-bg) 2%, rgba(19, 21, 20, 0.35) 45%, rgba(19, 21, 20, 0.55) 100%),
    linear-gradient(to right, rgba(19, 21, 20, 0.65), rgba(19, 21, 20, 0.15) 60%);
}

.hero-content {
  max-width: 44rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-media-toggle {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: 1.75rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: rgba(19, 21, 20, 0.35);
  border: 1px solid rgba(239, 240, 234, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.media-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(239, 240, 234, 0.6);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.media-dot:hover {
  border-color: var(--color-text);
  transform: scale(1.15);
}

.media-dot.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(var(--color-text-muted), transparent);
}

/* -------------------------------- Stats bar ----------------------------------- */
.stats {
  background: var(--color-bg-alt);
  border-block: 1px solid var(--color-border);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat {
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  text-align: center;
  border-left: 1px solid var(--color-border);
}

.stat:first-child {
  border-left: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* -------------------------------- Feature grid --------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.feature-card {
  background: var(--color-bg);
  padding: clamp(2rem, 1.7rem + 1.2vw, 2.75rem);
}

.feature-card .index {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--color-accent);
  letter-spacing: var(--ls-kicker);
  margin-bottom: 1.25rem;
  display: block;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-text-muted);
  margin: 0;
}

/* -------------------------------- Access / steps -------------------------------- */
.access {
  background: var(--color-bg-alt);
}

.access-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.steps .step:last-child {
  border-bottom: 1px solid var(--color-border);
}

.step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-border);
}

.step h3 {
  margin-bottom: 0.4rem;
  font-size: 1.125rem;
}

.step p {
  color: var(--color-text-muted);
  margin: 0;
}

.access-note {
  border: 1px solid var(--color-border);
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  background: var(--color-bg);
}

.access-note h3 {
  color: var(--color-accent);
  margin-bottom: 0.9rem;
  font-size: 1.125rem;
}

.access-note p {
  color: var(--color-text-muted);
}

.access-note p:last-child {
  margin-bottom: 0;
}

/* --------------------------------- Info / location -------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 1.6rem + 1.6vw, 3rem);
}

.info-item h4 {
  font-size: var(--fs-h4);
  letter-spacing: var(--ls-kicker);
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.info-item p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: none;
  margin: 0;
}

.info-item p + p {
  margin-top: 0.2rem;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

/* ---------------------------------- Contact ----------------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease;
}

.field input:hover,
.field textarea:hover {
  border-color: #555;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.form-note {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin: 0;
}

.form-status {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  display: none;
}

.form-status.is-success {
  display: block;
  color: #7fbf7a;
}

.form-status.is-error {
  display: block;
  color: var(--color-accent);
}

.contact-side .kicker {
  margin-bottom: 1rem;
}

.contact-side h2 {
  margin-bottom: 1.25rem;
}

.contact-side .lead {
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--color-border);
}

.contact-detail:last-of-type {
  border-bottom: 1px solid var(--color-border);
}

.contact-detail h4 {
  font-size: var(--fs-h4);
  letter-spacing: var(--ls-kicker);
  color: var(--color-text-muted);
  font-weight: 500;
  min-width: 8rem;
  margin: 0;
}

.contact-detail p,
.contact-detail a {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
}

.contact-detail a:hover {
  color: var(--color-accent);
}

/* ---------------------------------- CTA band ----------------------------------- */
.cta-band {
  text-align: center;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-band h2 {
  max-width: 30ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* ----------------------------------- Footer ------------------------------------- */
.site-footer {
  padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.footer-brand .logo {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  max-width: 32ch;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: var(--fs-h4);
  letter-spacing: var(--ls-kicker);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--color-text);
}

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

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* ------------------------------------ AGB page ----------------------------------- */
.page-hero {
  padding-top: 10rem;
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-bottom: 1px solid var(--color-border);
}

.page-hero .kicker {
  margin-bottom: 1rem;
}

.legal {
  max-width: 72ch;
}

.legal h2 {
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.legal h2 .num {
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

.legal p {
  color: var(--color-text-muted);
}

.legal p strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ------------------------------------ Utilities ----------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-accent-text);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ------------------------------------ Responsive ----------------------------------- */
/* Tablet: hamburger nav, grids go 2-up (odd item spans full width) */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 90;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding-block: 2rem;
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav a:not(.btn) {
    font-size: 1.375rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
  }

  .access-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }

  .info-item:last-child {
    grid-column: 1 / -1;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    gap: 3rem;
  }
}

/* Phone: everything single-column, hero buttons stack */
@media (max-width: 640px) {
  .stats .container {
    grid-template-columns: 1fr;
  }

  .stat {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .stat:first-child {
    border-top: 0;
  }

  .features-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-item:last-child,
  .feature-card:last-child {
    grid-column: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-scroll {
    display: none;
  }

  .hero {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-media-toggle {
    top: 5.5rem;
    bottom: auto;
    right: 1.25rem;
  }

  .site-header .logo img {
    height: 60px;
  }

  .footer-brand .logo img {
    height: 78px;
  }
}

@media (max-width: 480px) {
  .contact-detail {
    flex-direction: column;
    gap: 0.25rem;
  }

  .contact-detail h4 {
    min-width: 0;
  }

  .btn {
    padding: 0.9rem 1.5rem;
  }
}
