/* ============================= */
/* GLOBAL RESET SAFETY */
/* ============================= */

body {
  padding-top: 72px; /* reserve space for fixed header */
}

/* ============================= */
/* GLOBAL CONTAINER */
/* ============================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ============================= */
/* HEADER (FIXED — RELIABLE) */
/* ============================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 60px;
  width: auto;
}

/* ============================= */
/* SECTIONS — SINGLE SOURCE */
/* ============================= */

section {
  padding: 4rem 0;
  background: #ffffff;
}

/* alternating backgrounds */
section:nth-of-type(even):not(.hero-slider) {
  background: #f7f8fa;
}

/* mobile spacing */
@media (max-width: 767px) {
  body {
    padding-top: 64px;
  }

  .header-inner {
    height: 64px;
  }

  section {
    padding: 3rem 0;
  }
}

/* ============================= */
/* HERO SLIDER */
/* ============================= */

.hero-slider {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.65);
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 4rem 1.5rem;
  color: #ffffff;
}

.slide-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.slide-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #e5e7eb;
}

/* ============================= */
/* SLIDER DOTS */
/* ============================= */

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slider-controls .dot {
  width: 12px;
  height: 12px;
  background: #ffffff;
  opacity: 0.4;
  border-radius: 50%;
  cursor: pointer;
}

.slider-controls .dot.active {
  opacity: 1;
}

/* ============================= */
/* STATS SECTION */
/* ============================= */

.stats-section {
  background: #f8fafc;
}

.stats-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================= */
/* FOOTER */
/* ============================= */

.site-footer {
  background: #0b1f3a;
  color: #cbd5e1;
  padding: 3.5rem 0;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
  }
}
