/* CSS Variables */
:root {
  --primary-color: #202025;
  --accent-color: red;
  --text-color: #fff;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: 'Roboto Condensed', sans-serif;
  color: #fff;
}

/* Global Typography */
p {
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.6;
  letter-spacing: 1px;
}

/* Global Hero Typography */
.hero p,
.about-hero p,
.training-hero p {
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.6;
}

.hero h1,
.about-hero h1,
.training-hero h1 {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 400;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 55px;
  width: 100%;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
}

nav {
  width: 100%;
  max-width: 930px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-links {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 20px;
  letter-spacing: 1px;
  position: relative;
}

/* Active link styling */
nav a.home-link,
nav a.about-link,
nav a.history-link,
nav a.plans-link {
  color: var(--accent-color);
}

nav a.home-link::after,
nav a.about-link::after,
nav a.history-link::after,
nav a.plans-link::after {
  display: none;
}

/* Hover effect for non-active links */
nav a:not(.home-link):not(.about-link):not(.history-link):not(.plans-link)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  opacity: 0;
  transition: opacity .2s ease;
}

nav a:not(.home-link):not(.about-link):not(.history-link):not(.plans-link):hover::after {
  opacity: 1;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
}

/* Animated toggle for hamburger */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer */
footer {
  height: 200px;
  background: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

footer .footer-center {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 80%;
  max-width: 910px;
  margin-bottom: 40px;
}

footer .footer-bar {
  flex: 1;
  height: 2px;
  background-color: #fff;
}

footer .footer-center span {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

footer .footer-copyright {
  color: #fff;
  font-size: 12px;
  text-align: center;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Split Section Layout */
.split-section {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
  background: #fff;
  color: var(--primary-color);
}

.split-inner {
  display: flex;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
  align-items: center;
}

.split-image,
.split-text {
  flex: 1 1 0;
  max-width: 500px;
}

.split-image img {
  width: 100%;
  display: block;
}

.split-text {
  text-transform: uppercase;
}

/* Responsive content box headers (all secondary boxes) */
.split-text h2,
.content-box h2 {
  font-weight: 400;
  font-size: clamp(28px, 6vw, 70px);
  margin-bottom: 20px;
}

.split-text p,
.content-box p {
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: 1px;
  line-height: 1.6;
}

.reverse {
  flex-direction: row-reverse;
}

/* Tablet and Mobile Navigation */
@media (max-width: 768px) {
  nav {
    padding: 0 10px;
  }

  .hamburger {
    display: flex !important;
  }

  .nav-links {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    background: var(--primary-color);
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  }

  .nav-links.show {
    display: flex !important;
  }

  .nav-links a {
    padding: 14px 20px;
    text-align: center;
    font-size: 18px;
    color: var(--text-color);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a:hover {
    background: var(--accent-color);
    color: #fff;
  }

  .split-text h2,
  .content-box h2 {
    font-size: clamp(26px, 8vw, 65px);
    margin-bottom: 16px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .split-inner {
    flex-direction: column;
    gap: 14px;
  }

  .split-text {
    order: 1;
    text-align: center;
  }

  .split-image {
    order: 2;
    margin-top: 4px;
  }

  .split-text h2,
  .content-box h2 {
    font-size: clamp(24px, 10vw, 60px);
    margin-bottom: 12px;
  }

  .split-image,
  .split-text {
    max-width: 100%;
    flex: 1 1 100%;
  }
}