/* ================= ROOT / VARIABLES ================= */
:root{
  --bps-blue:#0b5aa6;
  --ink:#0f172a;

  --header-border:#e5e7eb;

  --footer-bg:#1f2933;
  --footer-text:#d1d5db;
  --footer-border:#374151;

  --section-bg:#ffffff;
  --section-border:#eef2f7;
  --card-border:#eef2f7;

  --muted:#475569;
}

/* ================= RESET ================= */
*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:#000;
  color:#f9fafb;
  overflow-x:hidden;
}

body.menu-open{ overflow:hidden; }

/* ================= HEADER ================= */
header{
  background:#ffffff;
  border-bottom:1px solid var(--header-border);
}

.header-inner{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:9px 32px 9px 20px;
}

.logo img{
  height:75px;
  width:auto;
  display:block;
}

/* Desktop nav */
nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:36px;
  align-items:center;
}

nav a{
  position:relative;
  text-decoration:none;
  font-weight:600;
  color:var(--ink);
  letter-spacing:.02em;
  padding-bottom:4px;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0%;
  height:2px;
  background:var(--bps-blue);
  transition:width .25s ease;
}

nav a:hover::after,
nav a[aria-current="page"]::after{
  width:100%;
}

/* Mobile menu toggle */
.menu-toggle{
  display:none;
  padding:10px 12px;
  border:1px solid var(--header-border);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}

.hamburger{
  width:18px;
  height:12px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.hamburger span{
  height:2px;
  width:100%;
  background:var(--ink);
  border-radius:2px;
}

/* ================= MOBILE MENU ================= */
.mobile-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.55);
  z-index:9999;
}

.mobile-overlay.is-open{ display:block; }

.mobile-panel{
  background:var(--footer-bg);
  color:var(--footer-text);
  width:100%;
  height:100%;
  padding:18px;
  display:flex;
  flex-direction:column;
}

.mobile-topbar{
  display:flex;
  justify-content:flex-end;
  padding-bottom:16px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.mobile-btn{
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:var(--footer-text);
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
}

.mobile-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:18px;
}

.mobile-links a{
  text-decoration:none;
  color:#ffffff;
  font-weight:900;
  font-size:22px;
  padding:16px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

/* ================= HERO (INDEX ONLY) ================= */
/* 1) Keep the shared hero styles */
.hero{
  position:relative;
  min-height:calc(100vh - 200px);
  display:flex;
  justify-content:center;
  padding:40px 20px;
  background-size:cover;
  background-position:center;
  text-align:center;
}

/* 2) Apply the background image ONLY when the hero has .home-hero */
.hero.home-hero{
  background-image:url("hero-military-dashboard.jpg");
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.72);
}

.hero-content{
  position:relative;
  max-width:980px;
  margin-top:14vh;
}

.hero-lead{
  font-size:clamp(22px, 3.2vw, 36px);
  font-weight:800;
  line-height:1.15;
  color:#ffffff;
}

.hero-lead .emph{
  font-weight:900;
}

/* Animation */
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}

.hero-animate{
  opacity:0;
  animation:fadeUp .85s ease forwards;
}

.hero-animate.delay-1{ animation-delay:.06s; }
.hero-animate.delay-2{ animation-delay:.18s; }
.hero-animate.delay-3{ animation-delay:.30s; }

.mission-text{
  font-size:clamp(15px, 2vw, 18px);
  line-height:1.75;
  color:#e5e7eb;
}

.highlight{
  color:var(--bps-blue);
  font-weight:700;
}

.spacer-2{ margin-top:30px; }
.spacer-3{ margin-top:42px; }
.spacer-4{ margin-top:56px; }

/* ================= CAPABILITIES ================= */
.capability-section{
  background:var(--section-bg);
  border-top:1px solid var(--section-border);
  border-bottom:1px solid var(--section-border);
  color:var(--ink);
}

.capability-row{
  padding:20px 32px;
  display:flex;
  gap:32px;
}

.capability-row + .capability-row{
  border-top:1px solid var(--section-border);
}

.image-card{
  width:32%;
  text-align:center;
  background:#ffffff;
  border:1px solid var(--card-border);
  border-radius:18px;
  padding:18px 14px;
  opacity:0;
  transform:translateY(14px);
  transition:opacity .6s ease, transform .6s ease, box-shadow .25s ease;
}

.image-card.is-visible{
  opacity:1;
  transform:translateY(0);
}

.image-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 30px rgba(15,23,42,.12);
}

.image-card img{
  width:50%;
  height:auto;
  margin:0 auto;
}

.image-card h3{
  margin:14px 0 6px;
  font-size:17px;
  font-weight:700;
  color:var(--bps-blue);
}

.image-card p{
  font-size:14.5px;
  color:var(--muted);
}

/* ================= FOOTER ================= */
footer{
  background:var(--footer-bg);
  border-top:1px solid var(--footer-border);
  height:90px;
  display:flex;
  align-items:center;
}

.footer-inner{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 32px 0 20px;
  color:var(--footer-text);
  font-size:14px;
}

.footer-left{
  display:flex;
  flex-direction:column;
}

.footer-right a{
  color:var(--footer-text);
  text-decoration:none;
  font-weight:600;
}

/* ================= RESPONSIVE ================= */
@media (max-width:768px){
  .logo img{ height:62px; }

  nav{ display:none; }
  .menu-toggle{ display:flex; }

  .capability-row{
    flex-direction:column;
    padding:18px;
  }

  .image-card{ width:100%; }
  .image-card img{ width:45%; }

  .footer-inner{
    flex-direction:column;
    gap:10px;
    text-align:center;
  }

  .hero{
    min-height:calc(100vh - 220px);
  }

  .hero-content{
    margin-top:10vh;
  }
}
