/* Homepage styles (moved from the inline <style> of the static index.html). */
:root {
  --navy: #082e52;
  --navy-dark: #06223d;
  --gold: #d4aa3d;
  --gold-text: #7a5c10;
  --cream: #f4eddb;
  --cream-soft: #faf7ef;
  --white: #ffffff;
  --text: #1c2a36;
  --muted: #64707a;
  --border: rgba(8, 46, 82, 0.15);
  --shadow: 0 24px 80px rgba(2, 21, 38, 0.22);
  --header-h: 96px;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--cream-soft);
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(244, 237, 219, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  width: min(calc(100% - 72px), var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-width: 160px;
}

.brand img {
  width: auto;
  height: 74px;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a,
.nav-contact-button {
  position: relative;
  appearance: none;
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
}

.main-nav a::after,
.nav-contact-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 2px;
  background: var(--gold);
  transition: right 180ms ease;
}

.main-nav a:hover::after,
.nav-contact-button:hover::after {
  right: 0;
}

.emergency {
  flex: 0 0 auto;
  padding-left: 28px;
  border-left: 1px solid rgba(8, 46, 82, 0.2);
  color: var(--navy);
  line-height: 1.15;
}

.emergency small {
  display: block;
  color: var(--gold-text);
  font-weight: 900;
  letter-spacing: 0.09em;
  font-size: 11px;
  margin-bottom: 5px;
}

.emergency strong {
  font-size: 16px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 28px;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    linear-gradient(rgba(4, 28, 50, 0.55), rgba(4, 28, 50, 0.72)),
    url("/assets/hero.jpg") center / cover fixed;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--gold);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), 1180px);
  padding: 100px 0;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1,
.section-title {
  margin: 0;
  color: inherit;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(54px, 7vw, 106px);
}

.hero p {
  max-width: 740px;
  font-size: clamp(18px, 2vw, 22px);
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.92);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--navy-dark);
  color: var(--gold);
}

.button--sos {
  border-color: #c62d2d;
  background: #c62d2d;
  color: #fff;
}

.button--ghost {
  border-color: rgba(255,255,255,.6);
  background: transparent;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- STORM ALERT BAR ---------- */
.alert-bar {
  display: block;
  padding: 10px 24px;
  background: var(--navy-dark);
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.alert-bar strong {
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  margin-right: 8px;
}

.alert-detail {
  font-style: normal;
}

.alert-bar span {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--navy);
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}

/* ---------- SECTIONS ---------- */
section {
  position: relative;
}

.section-shell {
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  padding: 92px 0;
}

.section-title {
  color: var(--navy);
  font-size: clamp(38px, 5vw, 72px);
  margin-bottom: 20px;
}

.section-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 30px;
  min-height: 250px;
  box-shadow: 0 8px 36px rgba(8, 46, 82, 0.05);
}

.card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card ul {
  margin: 0;
  padding-left: 20px;
}

.card li + li {
  margin-top: 8px;
}

.capabilities {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.capabilities .section-title {
  color: var(--white);
}

.capabilities .section-intro {
  color: rgba(255,255,255,.75);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: stretch;
}

.project-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-left: 4px solid var(--gold);
  background: #062b4b;
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
}

.project-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 800ms ease, transform 5200ms ease;
  pointer-events: none;
}

.project-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.project-slide img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.project-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,22,39,.76) 0%, rgba(2,22,39,.08) 52%, rgba(2,22,39,.04) 100%);
}

.project-caption {
  position: absolute;
  left: 28px;
  right: 90px;
  bottom: 24px;
  z-index: 3;
  color: #fff;
  padding-left: 15px;
  border-left: 3px solid var(--gold);
}

.project-caption strong {
  display: block;
  font-size: 20px;
  margin-bottom: 3px;
}

.project-caption span {
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

.slider-control {
  position: absolute;
  z-index: 6;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(3,24,43,.68);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.slider-control:hover {
  background: rgba(212,170,61,.95);
  color: var(--navy);
}

.slider-control.prev { left: 18px; }
.slider-control.next { right: 18px; }

.slider-dots {
  position: absolute;
  z-index: 7;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  padding: 0;
  cursor: pointer;
}

.slider-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--gold);
}

.capability-copy {
  align-self: center;
  padding: 34px 0;
}

.capability-copy p {
  color: rgba(255,255,255,.84);
  font-size: 17px;
}

.facilities {
  background: var(--cream);
}

.facility-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 50px;
  padding-top: 22px;
  border-top: 2px solid var(--gold);
}

.facility-item {
  position: relative;
  padding-left: 22px;
  font-size: 17px;
}

.facility-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 25px;
  line-height: 1;
}

.coverage {
  background: #fff;
}

.coverage-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.coverage-map {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #173d61;
  box-shadow: 0 18px 50px rgba(8,46,82,.12);
}

.coverage-map img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: contain;
  display: block;
  background: var(--cream);
}

.coverage-map-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 28px;
  color: #fff;
  background: linear-gradient(to top, rgba(3,27,48,.92), rgba(3,27,48,0));
}

.coverage-map-overlay strong {
  display: block;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.coverage-states {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coverage-states span {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid rgba(8,46,82,.15);
  background: var(--cream);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 104px; /* sits above the Oly launcher */
  z-index: 900;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--navy);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1120px) {
  .header-inner {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .main-nav {
    gap: 20px;
  }

  .emergency {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 82px;
  }

  .brand img {
    height: 62px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    background: var(--cream);
    border-bottom: 2px solid var(--gold);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .nav-contact-button {
    width: 100%;
    padding: 15px 4px;
    text-align: left;
  }

  .services-grid,
  .capabilities-grid,
  .coverage-box {
    grid-template-columns: 1fr;
  }

  .project-slider,
  .project-slide img {
    min-height: 390px;
  }

  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(calc(100% - 32px), 1280px);
    padding: 66px 0;
  }

  .hero-content {
    width: min(calc(100% - 32px), 1180px);
    padding: 76px 0;
  }

  .facility-list {
    grid-template-columns: 1fr;
  }

  .alert-bar {
    padding: 9px 16px;
    font-size: 13px;
  }

  .alert-bar strong {
    display: block;
    margin: 0 0 3px;
  }

  .alert-detail {
    display: none;
  }

  .back-to-top {
    right: 22px;
    bottom: 88px;
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero {
    background-attachment: scroll;
  }
}
  
/* ---------- HERO SLIDER (panel: Home slider) ---------- */
/* Each slide carries its own photo; the section itself no longer loads hero.jpg. */
.hero {
  background: var(--navy-dark);
}

.hero-slide {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(4, 28, 50, 0.55), rgba(4, 28, 50, 0.72)),
    var(--hero-bg) var(--hero-focus, 50% 50%) / cover fixed;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide--strong {
  background:
    linear-gradient(rgba(4, 28, 50, 0.74), rgba(4, 28, 50, 0.88)),
    var(--hero-bg) var(--hero-focus, 50% 50%) / cover fixed;
}

.hero-slide--storm {
  background:
    linear-gradient(105deg, rgba(90, 12, 12, 0.88), rgba(6, 34, 61, 0.82)),
    var(--hero-bg) var(--hero-focus, 50% 50%) / cover fixed;
}

/* Titles of slides after the first: same look as the h1 (one h1 per page). */
.hero .hero-title {
  max-width: 900px;
  margin: 0;
  color: inherit;
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero .hero-areas {
  margin: -14px 0 30px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow--sos {
  padding: 6px 12px;
  background: #c62d2d;
  color: #fff;
}

.hero-nav {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(6, 34, 61, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-dot[aria-current="true"] { background: var(--gold); border-color: var(--gold); }

@media (max-width: 1024px) {
  .hero-slide,
  .hero-slide--strong,
  .hero-slide--storm { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Storm headlines are sentences — smaller than the regular slide titles. */
.hero-slide--storm .hero-title {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.02;
}
