/* Global styles & layout — government / defense-contractor theme.
   Load order: reset.css → variables.css → main.css */

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--fs-base);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 85%;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.prose {
  max-width: 120ch;
}

.section {
  padding-block: var(--space-2xl);
}

.section--alt {
  background: var(--color-bg-alt);
  border-block: 1px solid var(--color-border);
}

.section--tight {
  padding-block: var(--space-xl);
}

main {
  flex: 1;
}

/* Section heading block with an accent kicker rule */
.section__head {
  max-width: 62ch;
  margin-bottom: var(--space-xl);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head h2 {
  margin-top: var(--space-xs);
}

.section__head .lead {
  margin-top: var(--space-md);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  color: var(--color-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3vw, var(--fs-3xl));
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, var(--fs-2xl));
}

h3 {
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 64ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-slate);
  margin-bottom: var(--space-md);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-slate);
  opacity: 0.7;
}

.section__head--center .eyebrow {
  justify-content: center;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-bright);
}

p {
  color: var(--color-text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn--ghost {
  border-color: var(--color-border-strong);
  color: var(--color-heading);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-bright);
}

/* ---------- Header / Nav ---------- */
.site-header {
  border-top: 2px solid var(--color-slate);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border), 0 6px 20px rgba(12, 28, 51, 0.05);
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.9rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
}

.nav__logo {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__links a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding-block: 0.25rem;
  position: relative;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--color-heading);
}

.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--color-accent);
}

.nav__cta {
  padding: 0.5rem 1.1rem !important;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-heading) !important;
}

.nav__cta:hover {
  border-color: var(--color-accent);
}

.nav__cta::after {
  display: none !important;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--color-heading);
  font-size: var(--fs-xl);
  line-height: 1;
}

/* ---------- Footer ---------- */
/* Dark navy island on the light page — redefine the theme tokens in this scope so
   every child (text, links, borders, hovers) flips to light values automatically.
   This is also where the white logo (logo-white.svg) belongs. */
.site-footer {
  --color-heading: #f4f7fb;
  --color-text: #d4dded;
  --color-text-muted: #9fb1cc;
  --color-border: rgba(255, 255, 255, 0.14);
  --color-accent-bright: #93b5f8;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-deep);
  padding-block: var(--space-xl) var(--space-lg);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer__brand p {
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  max-width: 42ch;
  line-height: 1.7;
}

.footer__logo {
  height: 30px;
  width: auto;
}

.footer__col h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer__col a {
  color: var(--color-text);
}

.footer__col a:hover {
  color: var(--color-accent-bright);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: var(--space-2xl);
  background: linear-gradient(180deg, #eaf0fa 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero::before {
  /* subtle topographic-style radial, very restrained */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 82% -20%,
      rgba(33, 81, 168, 0.1),
      transparent 65%);
  pointer-events: none;
}

.hero::after {
  /* On-brand network/comms motif, right-aligned and faded toward the headline */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  background: url("/assets/images/hero-motif.svg") no-repeat right center;
  background-size: contain;
  opacity: 0.85;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 92%);
  mask-image: linear-gradient(to left, #000 55%, transparent 92%);
}

.hero .container {
  position: relative;
}

.hero h1 {
  max-width: 26ch;
}

/* Full-bleed media hero: photo background with light text overlaid (home page) */
.hero--media {
  display: grid;
  align-items: center;
  min-height: min(78vh, 620px);
  overflow: hidden;
  isolation: isolate;
  /* light text tokens for the dark cinematic image */
  --color-heading: #ffffff;
  --color-text: #e8eef8;
  --color-text-muted: #d7e0ef;
  --color-slate: #9ab6f6;
  --color-accent: #7ea8f7;
  --color-accent-bright: #aac7fb;
  --color-border-strong: rgba(255, 255, 255, 0.45);
}

.hero--media .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero--media::before {
  /* dark scrim so the headline reads — stronger on the left where the text sits */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
      rgba(8, 18, 33, 0.9) 0%,
      rgba(8, 18, 33, 0.62) 48%,
      rgba(8, 18, 33, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 18, 33, 0.25), rgba(8, 18, 33, 0.55));
}

.hero--media::after {
  /* no abstract motif on the photo hero */
  content: none;
}

.hero .lead {
  margin-top: var(--space-lg);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: var(--space-lg);
  align-items: stretch;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}

.grid--2x2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
  .grid--2x2 {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.card .checklist {
  font-size: 0.9375rem;
}

/* Photo cover, flush to the card's top edges (the card's overflow:hidden clips the
   corners cleanly, so the cover needs no radius of its own). */
.card__cover {
  display: block;
  width: calc(100% + 2 * var(--space-lg));
  max-width: none;
  /* override the reset's img{max-width:100%} so the cover can bleed */
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  transition: transform 450ms ease;
}

/* Link cards: top accent rule on hover, lift border */
.card--link {
  transition: border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.card--link:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Subtle photo zoom on hover (clipped by the card's overflow:hidden) */
.card--link:hover .card__cover {
  transform: scale(1.05);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  border: 1px solid rgba(33, 81, 168, 0.22);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-md);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent-bright);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__more {
  display: inline-block;
  margin-top: auto;
  padding-top: var(--space-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: var(--color-accent);
}

.card__more::after {
  content: "\203a";
  /* › chevron — supplied here so it stays consistent and isn't read aloud */
  margin-left: 0.4em;
  display: inline-block;
  transition: transform var(--transition);
}

.card--link:hover .card__more {
  color: var(--color-accent-bright);
}

.card--link:hover .card__more::after {
  transform: translateX(3px);
}

/* ---------- Stats band ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--space-md) var(--space-lg);
  text-align: center;
}

.stat {
  padding-inline: var(--space-md);
}

.stat+.stat {
  border-left: 1px solid var(--color-border);
}

.stat__num {
  font-size: clamp(1.75rem, 1.1rem + 1.8vw, 2.5rem);
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stat__num span {
  color: var(--color-accent);
}

.stat__label {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Feature rows (text + panel) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.feature+.feature {
  margin-top: var(--space-2xl);
}

.feature--reverse .feature__media {
  order: -1;
}

.feature__media {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow);
}

.feature__media .eyebrow {
  margin-top: 0;
}

/* ---------- Lists ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--color-text);
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

/* Pill columns (verticals, expertise tags) */
.pill-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-list li {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: var(--fs-sm);
  color: var(--color-text);
  background: var(--color-bg-alt);
  transition: border-color var(--transition), color var(--transition);
}

.pill-list li:hover {
  border-color: var(--color-accent);
  color: var(--color-heading);
}

/* Fact rows (designations, certifications, codes) */
.facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.facts div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-lg);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.facts dt {
  font-weight: 600;
  color: var(--color-heading);
}

.facts dd {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---------- Leadership ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.person {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  border-top: 2px solid var(--color-accent);
}

.person__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border-strong);
  color: var(--color-heading);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
}

.person__name {
  color: var(--color-heading);
  font-weight: 600;
}

.person__role {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-top: 0.15rem;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.85rem var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

table.data thead th {
  background: var(--color-bg-alt);
  color: var(--color-accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

table.data tbody tr:last-child td {
  border-bottom: 0;
}

table.data tbody tr:hover {
  background: var(--color-bg-alt);
}

table.data td:first-child {
  color: var(--color-heading);
  font-weight: 500;
}

/* ---------- Numbered sequence ---------- */
.sequence {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: grid;
  gap: var(--space-md);
}

.sequence li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-md);
  align-items: center;
  color: var(--color-text);
}

.sequence li::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  border: 1px solid rgba(33, 81, 168, 0.22);
  color: var(--color-accent-bright);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

/* ---------- CTA band ---------- */
/* Light, focal callout on the light page — a soft blue-tinted card with a
   brand-blue top accent and a solid blue button. The footer is the page's
   only blue block, so the two no longer compete. */
.cta-band {
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-band .lead {
  margin: var(--space-md) auto 0;
}

.cta-band .btn {
  margin-top: var(--space-lg);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: var(--space-md);
  max-width: 560px;
}

.form label {
  font-weight: 600;
  font-size: var(--fs-sm);
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-heading);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-heading);
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--color-text-muted);
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: transparent;
}

.form__status {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.form__status[data-state="success"] {
  color: #1f8a4c;
}

.form__status[data-state="error"] {
  color: #c0392b;
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.muted {
  color: var(--color-text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .container {
    max-width: 100%;
  }

  .hero--media {
    min-height: 420px;
  }

  .section {
    padding-block: var(--space-lg);
  }

  .feature,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature__media {
    order: 0;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .stat+.stat {
    border-left: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --space-2xl: 3.5rem;
  }

  .hero::after {
    /* Don't let the motif sit behind full-width text on small screens */
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-lg);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links li {
    padding-block: var(--space-xs);
    width: 100%;
  }
}