/* ============================================================
   SOV Security Website v2.0
   Military, Federal & Municipal Focus
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ------------------------------------------------------------
   Variables
   ------------------------------------------------------------ */
:root {
  --navy-900:   #060e1a;
  --navy-800:   #0a1628;
  --navy-700:   #0f2040;
  --navy-600:   #162d58;
  --navy-500:   #1e3d70;
  --gold:       #FFEA00;
  --gold-light: #FFF27A;
  --gold-dim:   rgba(200, 164, 74, 0.15);
  --steel:      #4a6b8a;
  --steel-light:#6a8fab;
  --white:      #ffffff;
  --off-white:  #e8ecf1;
  --light-bg:   #f0f3f7;
  --text-muted: #8899aa;
  --border:     rgba(200, 164, 74, 0.25);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.15);
  --shadow:     0 4px 24px rgba(0,0,0,0.25);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.35);
  --radius:     6px;
  --transition: all 0.3s ease;
}

/* ------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--light-bg);
  color: var(--navy-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy-800);
  margin-bottom: 1.25rem;
}

.section-title span { color: var(--gold); }

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--steel);
  max-width: 640px;
  line-height: 1.7;
}

.section-subtitle--light {
  color: var(--off-white);
  opacity: 0.85;
}

/* ------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 3rem 0; }
.section--dark { background: var(--navy-800); }
.section--navy { background: var(--navy-700); }
.section--light { background: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 2rem;
}

.gold-line--center { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  min-height: 44px; /* WCAG touch target */
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-800);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-800); transform: translateY(-2px); }

/* Navy-fill variant: for light/white sections where the gold outline
   has no contrast. Hover matches the outline-gold convention. */
.btn-navy {
  background: var(--navy-700);
  color: var(--gold);
  border: 2px solid var(--navy-700);
}
.btn-navy:hover { background: var(--gold); color: var(--navy-800); border-color: var(--gold); transform: translateY(-2px); }

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy-900);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo img {
  height: 38px;
  width: auto;
  background: #fff;
  padding: 1px 6px;
  border-radius: 6px;
}

.nav__logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--white);
  letter-spacing: 0.08em;
}

.nav__logo-text span { color: var(--gold); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

/* On pages without a header CTA button (e.g. the shared Contact page),
   space-between would shove the whole menu flush to the far-right edge,
   leaving a large empty gap after the logo. Anchor the menu next to the
   logo instead so the header stays balanced. */
.nav__inner:not(:has(.nav__cta)) .nav__links {
  margin-right: auto;
  margin-left: 2.5rem;
}

.nav__link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--gold);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  margin-left: 1rem;
  padding: 0.4rem 1.25rem;
  min-height: 0;
  font-size: 0.9rem;
}

.nav__divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.2);
  margin: 0 0.25rem;
}

.nav__link--portal {
  font-size: 0.82rem;
  color: var(--steel) !important;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.nav__link--portal:hover {
  color: var(--gold) !important;
  opacity: 1;
}

.nav__link--portal::after {
  display: none;
}

.nav__link--portal i {
  font-size: 0.75rem;
}

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ------------------------------------------------------------
   Hero Sections
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #060e1a; /* fallback color only — image is in .hero__bg */
  padding-top: 44px;
  overflow: hidden;
}

/* Animated background layer (Ken Burns pan/zoom) */
.hero__bg {
  position: absolute;
  top: -6%;
  left: -6%;
  right: -6%;
  bottom: -6%;
  background-size: cover;
  background-position: center;
  animation: heroPan 14s ease-in-out infinite alternate;
  z-index: 0;
  will-change: transform;
}

@keyframes heroPan {
  from { transform: scale(1.06) translateX(-2.5%); }
  to   { transform: scale(1.12) translateX(2.5%);  }
}

/* ---- Hero Slideshow — three images cross-fading with Ken Burns ---- */
.hero__slide {
  position: absolute;
  top: -6%; left: -6%; right: -6%; bottom: -6%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform, opacity;
  opacity: 0;
}

/* First slide: starts fully visible, then fades out and loops */
.hero__slide:nth-child(1) {
  animation: heroPan 14s ease-in-out infinite alternate,
             heroFadeFirst 18s ease-in-out infinite;
  animation-delay: 0s, 0s;
}
/* Second and third slides: fade in, hold, fade out, wait */
.hero__slide:nth-child(2) {
  animation: heroPan 14s ease-in-out infinite alternate,
             heroFade 18s ease-in-out infinite;
  animation-delay: 0s, 6s;
}
.hero__slide:nth-child(3) {
  animation: heroPan 14s ease-in-out infinite alternate,
             heroFade 18s ease-in-out infinite;
  animation-delay: 0s, 12s;
}

@keyframes heroFadeFirst {
  0%     { opacity: 1; }    /* visible immediately */
  25%    { opacity: 1; }    /* hold until 4.5 s */
  33.33% { opacity: 0; }    /* fade out by 6 s */
  100%   { opacity: 0; }    /* off for remainder of cycle */
}

@keyframes heroFade {
  0%     { opacity: 0; }    /* invisible during wait */
  8.33%  { opacity: 1; }    /* fade in over 1.5 s */
  25%    { opacity: 1; }    /* hold */
  33.33% { opacity: 0; }    /* fade out */
  100%   { opacity: 0; }
}

/* Dark gradient overlay via pseudo-element — reliable in all browsers */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 14, 26, 0.55) 0%,
    rgba(6, 14, 26, 0.40) 40%,
    rgba(6, 14, 26, 0.72) 100%
  );
  z-index: 2;
}

/* Page-level hero (shorter) */
.hero--page {
  min-height: 45vh;
  align-items: flex-end;
  padding-bottom: 4rem;
  background-size: cover;
  background-position: center;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 820px;
}

.hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.hero__title {
  font-size: clamp(1.4rem, 3vw, 2.75rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero__title .gold { color: var(--gold); }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--off-white);
  opacity: 0.88;
  margin-bottom: 2.5rem;
  max-width: 580px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 3;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ------------------------------------------------------------
   Credentials Bar
   ------------------------------------------------------------ */
.creds-bar {
  background: var(--gold);
  padding: 0;
  overflow: hidden;
}

.creds-bar__inner {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.creds-bar__item {
  flex: 1;
  min-width: 120px;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
  border-right: 1px solid rgba(10, 22, 40, 0.2);
}

.creds-bar__item:last-child { border-right: none; }
.creds-bar__item i { font-size: 0.65rem; }

/* ------------------------------------------------------------
   Services Cards
   ------------------------------------------------------------ */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid #dde4ee;
  border-top: 3px solid var(--gold);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-top-color: var(--gold-light);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  color: var(--navy-700);
}
.service-card--dark .service-card__icon { color: var(--gold); }

.service-card__title {
  font-size: 1.25rem;
  color: var(--navy-800);
  margin-bottom: 0.75rem;
}

.service-card__text {
  font-size: 0.92rem;
  color: var(--steel);
  line-height: 1.65;
}

.service-card__bullets {
  list-style: none;
  margin-top: 1rem;
}
.service-card__bullets li {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.55;
  padding: 0.2rem 0 0.2rem 1.3rem;
  position: relative;
}
.service-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.service-card--dark .service-card__bullets li { color: var(--steel-light); }

/* Dark variant */
.service-card--dark {
  background: var(--navy-600);
  border-color: var(--border);
  border-top-color: var(--gold);
}

.service-card--dark .service-card__title { color: var(--white); }
.service-card--dark .service-card__text  { color: var(--steel-light); }

/* ------------------------------------------------------------
   Partners Strip
   ------------------------------------------------------------ */
.partners {
  background: var(--navy-900);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.partners__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.partner-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  opacity: 0.6;
  transition: var(--transition);
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
}

.partner-badge:hover { opacity: 1; border-color: var(--gold); color: var(--gold); }

/* Tech partner badges (smaller) */
.tech-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.6rem 1.25rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--steel-light);
  transition: var(--transition);
}
.tech-badge:hover { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }

/* ------------------------------------------------------------
   Past Performance Cards
   ------------------------------------------------------------ */
.perf-card {
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.perf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}

.perf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.perf-card__branch {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.perf-card__title {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.perf-card__dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.perf-card__text {
  font-size: 0.9rem;
  color: var(--steel-light);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Certifications Grid
   ------------------------------------------------------------ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cert-item {
  background: var(--white);
  border: 1px solid #dde4ee;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cert-item--dark {
  background: var(--navy-600);
  border-color: var(--border);
}

.cert-item__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.cert-item__value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-800);
}

.cert-item--dark .cert-item__value { color: var(--white); }

/* About-page "Certifications & Company Data" lives in a dark section, but
   the global gold-on-white contrast plaques (--navy-700 #0f2040) end up
   sitting on darker surfaces and read as mismatched blue rectangles that
   are offset from the value text. Inside a dark section, blend each plaque
   into the surface it sits on and center the label above its value. */
.section--dark .cert-item {
  align-items: center;
  text-align: center;
}
.section--dark .cert-item__label {
  background: var(--navy-600); /* match the cert-item--dark box fill */
}
.section--dark .section-label,
.section--dark .section-title span {
  background: var(--navy-800); /* match the section--dark background */
}

/* ------------------------------------------------------------
   Leadership Cards
   ------------------------------------------------------------ */
.leadership-team {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.leadership-team > .leader-card { grid-column: span 2; }
.leadership-team > .leader-card:nth-child(4) { grid-column: 2 / span 2; }
.leadership-team > .leader-card:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 768px) {
  .leadership-team { grid-template-columns: 1fr; }
  .leadership-team > .leader-card,
  .leadership-team > .leader-card:nth-child(4),
  .leadership-team > .leader-card:nth-child(5) { grid-column: 1 / -1; }
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #dde4ee;
  transition: var(--transition);
}

.leader-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.leader-card__header {
  background: var(--navy-700);
  padding: 2rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.leader-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--navy-600);
  border: 3px solid var(--gold);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.leader-card__name {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.leader-card__title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.leader-card__body {
  padding: 1.5rem 2rem;
}

.leader-card__contact a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--steel);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.leader-card__contact a:hover { color: var(--navy-600); }
.leader-card__contact i { color: var(--gold); width: 16px; }

/* ------------------------------------------------------------
   CTA Banner
   ------------------------------------------------------------ */
.cta-banner {
  position: relative;
  background-image: linear-gradient(135deg, #060e1a, #162d58); /* overridden by inline style on each page */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,14,26,0.88), rgba(22,45,88,0.82));
  z-index: 1;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner__sub {
  font-size: 1.05rem;
  color: var(--off-white);
  opacity: 0.8;
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Contact Section
   ------------------------------------------------------------ */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--light-bg);
  border: 1px solid #ccd4e0;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--navy-800);
  transition: var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 164, 74, 0.12);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ------------------------------------------------------------
   NAICS Table
   ------------------------------------------------------------ */
.naics-table {
  width: 100%;
  border-collapse: collapse;
}

.naics-table th {
  background: var(--navy-700);
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  text-align: left;
}

.naics-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #dde4ee;
  font-size: 0.92rem;
  color: var(--navy-800);
}

.naics-table tr:last-child td { border-bottom: none; }
.naics-table tr:hover td { background: var(--light-bg); }

.naics-table td:first-child {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-600);
}

/* ------------------------------------------------------------
   Stats Row
   ------------------------------------------------------------ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--navy-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat__number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--border);
  padding: 0.2rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr 1.3fr;
  gap: 3rem;
  margin-bottom: 0.2rem;
}

.footer__brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.footer__brand-name span { color: var(--gold); }

.footer__tagline {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.2rem;
}

.footer__heading {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }

.footer__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__link:hover { color: var(--gold); padding-left: 4px; }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer__contact-item i {
  color: var(--gold);
  margin-top: 3px;
  width: 14px;
  flex-shrink: 0;
}

.footer__cert-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer__cert {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid var(--gold);
  border-radius: 0 3px 3px 0;
  white-space: nowrap;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.2rem 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__legal a:hover { color: var(--gold); }

/* ------------------------------------------------------------
   Page Intro Block
   ------------------------------------------------------------ */
.page-intro {
  background: var(--white);
  padding: 4rem 0;
  border-bottom: 1px solid #dde4ee;
}

/* ------------------------------------------------------------
   Differentiator List
   ------------------------------------------------------------ */
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.diff-item--dark {
  background: var(--navy-600);
}

.diff-item__icon {
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.diff-item__title {
  font-size: 1.05rem;
  color: var(--navy-800);
  margin-bottom: 0.2rem;
}

.diff-item--dark .diff-item__title { color: var(--white); }

.diff-item__text {
  font-size: 0.88rem;
  color: var(--steel);
}

.diff-item--dark .diff-item__text { color: var(--steel-light); }

/* ------------------------------------------------------------
   Parallax Strip
   ------------------------------------------------------------ */
.parallax-strip {
  position: relative;
  padding: 6rem 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.parallax-strip__inner {
  position: relative;
  z-index: 2;
}

.parallax-strip__quote {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.parallax-strip__sub {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ------------------------------------------------------------
   Aircraft Divider Strip (thinner, full-bleed image break)
   ------------------------------------------------------------ */
.aircraft-strip {
  height: 340px;
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.aircraft-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(6,14,26,0.9)  0%,
    rgba(6,14,26,0.25) 45%,
    rgba(6,14,26,0.25) 55%,
    rgba(6,14,26,0.9)  100%
  );
  z-index: 1;
}

/* Top + bottom fade */
.aircraft-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,14,26,0.55) 0%,
    transparent        30%,
    transparent        70%,
    rgba(6,14,26,0.55) 100%
  );
  z-index: 1;
}


/* ------------------------------------------------------------
   Feature Image (inline content image)
   ------------------------------------------------------------ */
.img-feature {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}

.img-feature img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.img-feature:hover img {
  transform: scale(1.03);
}

.img-feature__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,14,26,0.7) 0%, transparent 50%);
  pointer-events: none;
}


/* ------------------------------------------------------------
   Counter-UAV Feature Block (services page)
   ------------------------------------------------------------ */
.cuav-feature {
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.cuav-feature__icon {
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  animation: pulse-gold 3s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% { opacity: 1; text-shadow: 0 0 0px var(--gold); }
  50% { opacity: 0.85; text-shadow: 0 0 20px var(--gold); }
}

.cuav-feature__title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}

.cuav-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.cuav-spec {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: left;
}

.cuav-spec__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 110px;
}

.cuav-spec__value {
  font-size: 0.88rem;
  color: var(--steel-light);
  text-align: right;
}

/* ------------------------------------------------------------
   Product Cards (services page)
   ------------------------------------------------------------ */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #dde4ee;
  border-top: 3px solid var(--navy-600);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-top-color: var(--gold);
}

.product-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.product-card__brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.product-card__icon {
  font-size: 1.4rem;
  color: var(--gold);
}

.product-card__name {
  font-size: 1.2rem;
  color: var(--navy-800);
  margin-bottom: 0.2rem;
}

.product-card__type {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #eee;
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.product-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Prime Contractor Cards (customers page)
   ------------------------------------------------------------ */
.prime-card {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid #dde4ee;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.prime-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.prime-card__logo-area {
  flex-shrink: 0;
}

.prime-card__initial {
  width: 68px;
  height: 68px;
  background: var(--navy-700);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  border: 2px solid var(--border);
}

.prime-card__name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.prime-card__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.prime-card__desc {
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.prime-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.2rem 0.55rem;
}

/* Light variant perf-card (federal/municipal sections on white bg) */
.perf-card--light {
  background: var(--white);
  border-color: #dde4ee;
}
.perf-card--light::before { background: var(--navy-600); }

/* Bullet lists inside perf cards */
.perf-card__bullets {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.perf-card__bullets li {
  font-size: 0.85rem;
  color: var(--steel-light);
  padding-left: 1.1rem;
  position: relative;
}
.perf-card__bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.perf-card__bullets--light li { color: var(--steel); }

/* Military branch cards */
.branch-card {
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.branch-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }

.branch-card__icon {
  font-size: 2.25rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.branch-card__name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.branch-card__desc {
  font-size: 0.85rem;
  color: var(--steel-light);
  line-height: 1.6;
}

/* Municipal client cards */
.muni-card {
  background: var(--navy-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.muni-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }

.muni-card__icon {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.muni-card__name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.muni-card__state {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.muni-card__services {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row .stat:nth-child(2) { border-right: none; }
  .nav__links { gap: 1.75rem; }
}

@media (max-width: 768px) {
  /* Parallax doesn't work on iOS/mobile — switch to scroll */
  .parallax-strip,
  .aircraft-strip { background-attachment: scroll; }
  .aircraft-strip { height: 220px; }

  /* ---- Mobile nav ---- */
  .nav__links {
    display: none;
    position: fixed;
    top: 44px; left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav__links.open { display: flex; }
  .nav__link {
    padding: 0.9rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1.05rem;
    min-height: 44px; /* touch target */
    display: flex;
    align-items: center;
  }
  .nav__link::after { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__hamburger span { transition: transform 0.3s ease, opacity 0.3s ease; }

  /* ---- Layout ---- */
  .hero__title { font-size: 1.4rem; }
  .hero__eyebrow { font-size: 0.72rem; white-space: normal; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }

  /* ---- Credentials bar — 2-up wrap instead of full column stack ---- */
  .creds-bar__inner { flex-wrap: wrap; }
  .creds-bar__item {
    flex: 1 1 50%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid rgba(10,22,40,0.2);
    font-size: 0.8rem;
    padding: 0.85rem 1rem;
  }

  /* ---- Component sizing ---- */
  .img-feature img { height: 280px; }
  .partners__grid { gap: 0.75rem 1.5rem; }
  .partner-badge { font-size: 0.95rem; padding: 0.4rem 0.9rem; }
  .naics-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .contact-form { padding: 1.75rem; }
  .leader-card__body { padding: 1.25rem 1.5rem; }
  .diff-item { padding: 1rem 1.25rem; }
  .perf-card { padding: 1.5rem; }
  .cta-banner { background-attachment: scroll; }

  /* ---- Footer ---- */
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 768px) {
  .prime-card { flex-direction: column; gap: 1rem; }
  .cuav-spec { flex-direction: column; gap: 0.25rem; }
  .cuav-spec__value { text-align: left; }
  .cuav-spec__label { min-width: 0; }
}

@media (max-width: 480px) {
  .hero__bg { animation: none; }
  .hero__slide { animation: none !important; opacity: 0 !important; }
  .hero__slide:first-child { opacity: 1 !important; }
  .hero__title { font-size: 1.2rem; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .grid-4 { grid-template-columns: 1fr; }
  .creds-bar__item { flex: 1 1 100%; }
  .img-feature img { height: 220px; }
  .contact-form { padding: 1.25rem; }
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .parallax-strip { padding: 4rem 0; }
  .parallax-strip__quote { font-size: 1.4rem; }
  .footer__grid { gap: 1.75rem; }
}

/* Cross-Sector Footer Links */
.footer-xsector {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(200, 164, 74, 0.15);
  padding: 0.75rem 0;
}
.footer-xsector__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-xsector__label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 164, 74, 0.6);
}
.footer-xsector__link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(232, 236, 241, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-xsector__link:hover { color: #FFEA00; }
.footer-xsector__link--active { color: #FFEA00; cursor: default; }

/* ============================================================
   HERO ROAM — Ken Burns zoom/pan + dark gradient tint
   Apply alongside any page-specific hero class (.c-hero,
   .e-hero, .m-hero, .res-hero) so sector pages match the
   federal.html hero treatment without editing their custom
   hero typography or button rules.

   Usage:
     <section class="c-hero hero-roam">
       <div class="hero-roam__bg" style="background-image:url('...')"></div>
       <div class="c-hero__inner container"> ...existing content... </div>
     </section>
============================================================ */
.hero-roam {
  position: relative;
  overflow: hidden;
  background: #060e1a !important;
}
.hero-roam > * {
  position: relative;
  z-index: 2;
}
.hero-roam > .hero-roam__bg {
  position: absolute;
  top: -6%; left: -6%; right: -6%; bottom: -6%;
  background-size: cover;
  background-position: center;
  animation: heroPan 14s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}
.hero-roam::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 14, 26, 0.55) 0%,
    rgba(6, 14, 26, 0.40) 40%,
    rgba(6, 14, 26, 0.72) 100%
  );
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 480px) {
  .hero-roam > .hero-roam__bg { animation: none; }
}

/* ------------------------------------------------------------
   Yellow-on-white contrast fixes: gold text that sat on white
   now gets the navy plaque background (#0f2040 = --navy-700,
   same hex as the about-page leader plaques).
   ------------------------------------------------------------ */
.section-label,
.section-title span,
.cert-item__label,
.product-card__type,
.muni-card__services,
.tag {
  background: #0f2040;
  padding: 0.12em 0.5em;
  border-radius: 3px;
  display: inline-block;
}
.muni-card__services { opacity: 1; }

/* Scoped overrides: inside dark containers the #0f2040 plaque
   matches (or nearly matches) the container background and
   disappears. Chips there get the darker navy-800 fill so they
   still read as chips. Light-section behavior above is untouched. */
.section--navy .section-label,
.section--navy .tag,
.featured-highlight .tag {
  background: #0a1628;
}

/* Service chips inside muni-cards: match the card's navy (#0f2040) so the
   gold text sits directly on the blue instead of in a darker plaque. */
.muni-card .muni-card__services {
  background: transparent;
}
