:root {
  --white: #FFFFFF;
  --black: #000000;

  /* BRAND COLORS */
  --blue: #2F5DDE;
  --red: #D64545;
  --yellow: #FFE638;

  --font-main: 'Inter', sans-serif;

  /* LIGHT MODE (tinted institutional background) */
  --bg: #E9EEF5;
  --surface: #FFFFFF;
  --text: #1A1A1A;

  --accent: var(--blue);
  --accent1: var(--red);
  --highlight: var(--yellow);
}

/* DARK MODE (navy charcoal, not black) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B2230;
    --surface: #232B3A;
    --text: #F0F0F0;

    --accent: #6C8CFF;
    --accent1: #FF6B6B;
    --highlight: #FFDE59;
  }
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BODY */
body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
}

/* ACCESSIBILITY */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--highlight);
  color: var(--text);
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* FOCUS STATES (ADA) */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

/* HEADER */
header {
  background-color: var(--bg);
  color: var(--text);
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
}

/* NAV */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent1);
  transform: translateY(-1px);
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* HERO TEXT */
.hero {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
}

/* ACCENT */
.blue-accent {
  color: var(--accent);
}

/* ABOUT SECTION */
.about-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 2rem;
}

.about-section h2 {
  color: var(--accent);
  margin-top: 2rem;
}

.spaced-paragraph {
  margin: 1.5rem 0;
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent1);
  transform: translateY(-2px);
}

/* CONTACT FORM */
.contact-form {
  max-width: 600px;
  margin: 1rem auto;
  padding: 2rem;
  background-color: var(--surface);
  border-radius: 8px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea,
select {
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.15);
  background: var(--bg);
  color: var(--text);
}

/* FOOTER */
footer {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  color: var(--text);
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
}

.nav-menu {
  display: flex;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg);
    padding: 1rem;
    width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* =========================
   HERO CAROUSEL (NEW)
========================= */

.hero-carousel {
  width: 100%;
  max-width: 1000px;
  margin: 1.5rem auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.hero-carousel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease-in-out;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* =========================
   HERO + CAROUSEL SPACING FIX
   (tightens vertical layout)
========================= */

.hero {
  margin-bottom: 0.75rem;
}

.hero-carousel {
  margin: 0.5rem auto;
  padding: 0;
}

.carousel-container {
  margin: 0 auto;
}

/* Reduce gap before training section */
.about-section {
  margin-top: 1rem; /* was likely 2rem or default stacking */
}

/* Tighten heading spacing inside content */
.about-section h2 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Reduce paragraph spacing slightly */
.spaced-paragraph {
  margin-top: 1rem;
  margin-bottom: 1rem;
}