/* ─── Container ────────────────────────────────────────── */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ─── Sections ─────────────────────────────────────────── */

.section {
  padding: var(--space-xl) 0;
}

.section--dark {
  background: var(--color-surface);
}

.section__header {
  margin-bottom: var(--space-lg);
}

.section__header--center {
  text-align: center;
}

/* ─── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  overflow: hidden;
  background-image: url('../images/hero/hero-main.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Bottom-to-top gradient so text stays readable */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 1)    0%,
    rgba(8, 8, 8, 0.75) 28%,
    rgba(8, 8, 8, 0.25) 60%,
    transparent         100%
  );
  z-index: 1;
}

/* Subtle top vignette so nav stays legible */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.55) 0%,
    transparent 22%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__cta-wrap {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-white-muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--color-red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── Features Grid ────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ─── About Split ──────────────────────────────────────── */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-split__image {
  position: relative;
}

.about-split__image::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--color-red);
  border-radius: 4px;
  z-index: -1;
}

.about-split__content .section-label {
  margin-bottom: var(--space-sm);
}

.about-split__content h2 {
  margin-bottom: var(--space-md);
}

.about-split__content p {
  margin-bottom: var(--space-lg);
  font-size: 16px;
  line-height: 1.75;
}

/* ─── Training Cards Grid ──────────────────────────────── */

.training-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* ─── CTA Banner ───────────────────────────────────────── */

.cta-banner {
  background: linear-gradient(135deg, #150000 0%, var(--color-surface) 100%);
  border: 1px solid rgba(245, 3, 6, 0.18);
  border-radius: 4px;
  padding: var(--space-2xl) var(--container-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--color-red);
}

.cta-banner h2 {
  margin-bottom: var(--space-md);
}

.cta-banner p {
  font-size: 18px;
  margin-bottom: var(--space-lg);
  color: var(--color-white-dim);
}

/* ─── Footer ───────────────────────────────────────────── */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer__logo span { color: var(--color-red); }

.footer__tagline {
  font-size: 13px;
  color: var(--color-white-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white-muted);
  transition: color var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.footer__social-link:hover {
  color: var(--color-white);
  border-color: var(--color-red);
  box-shadow: 0 0 12px rgba(245, 3, 6, 0.25);
}

.footer__col-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-red);
  margin-bottom: var(--space-md);
  display: block;
}

.footer__col p,
.footer__col address {
  font-size: 14px;
  color: var(--color-white-muted);
  line-height: 1.8;
  font-style: normal;
}

.footer__col a {
  color: var(--color-white-muted);
  transition: color var(--duration-fast) ease;
}

.footer__col a:hover { color: var(--color-white); }

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copyright {
  font-size: 12px;
  color: var(--color-white-muted);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal a {
  font-size: 12px;
  color: var(--color-white-muted);
  transition: color var(--duration-fast) ease;
}

.footer__legal a:hover { color: var(--color-white); }

.footer__madeby {
  font-size: 12px;
  color: var(--color-white-muted);
  width: 100%;
  text-align: center;
  padding-top: var(--space-sm);
}

.footer__madeby a {
  color: var(--color-white-muted);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.footer__madeby a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* ─── Responsive ───────────────────────────────────────── */

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

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

  .about-split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-split__image::after {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 767px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero__headline {
    font-size: clamp(32px, 8vw, 52px);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
