/* ============================================================
   VARMODA — SHARED DESIGN SYSTEM
   Display: Barlow Semi Condensed (mission/operational tone)
   Body: Public Sans (the US Web Design System typeface — a
         deliberate nod to the government-services subject matter)
   Data/mono: IBM Plex Mono (stat callouts, figures)
   ============================================================ */

:root {
  --navy: #105697;
  --navy-deep: #0B3D6B;
  --navy-ink: #082B4D;
  --gold: #C8A415;
  --gold-light: #E8D28A;
  --ink: #12181F;
  --slate: #5B6672;
  --slate-light: #8A93A0;
  --mist: #F4F7FA;
  --line: #E2E7ED;
  --white: #FFFFFF;

  --font-display: 'Barlow Semi Condensed', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1200px;
  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--slate); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy p, .section-navy .eyebrow { color: #C9DAEA; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-block;
  margin-bottom: 14px;
}

/* Focus states */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-ink); }
.btn-primary:hover { background: #b8960f; }
.btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  font-family: var(--font-body); font-weight: 600; font-size: 0.94rem;
  color: var(--ink); background: none; border: none; cursor: pointer;
  padding: 10px 14px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 5px;
}
.nav-links > li > a:hover, .nav-links > li > button:hover { color: var(--navy); }
.nav-caret { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(8,43,77,0.12);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.nav-links > li:hover .dropdown,
.nav-links > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius); font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.dropdown a:hover { background: var(--mist); color: var(--navy); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 18px; overflow-y: auto; transform: translateX(100%); transition: transform 0.2s ease; gap: 0; }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { width: 100%; }
  .nav-links > li > a, .nav-links > li > button { width: 100%; justify-content: space-between; padding: 14px 10px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .nav-links > li.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding: 130px 0 96px;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold); }
.hero .lede { font-size: 1.2rem; color: #D7E4F1; max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--navy-deep); color: #fff; }
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px; padding: 34px 0;
}
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 500; color: var(--gold-light); }
.stat-label { font-size: 0.8rem; color: #B9CBDD; margin-top: 4px; letter-spacing: 0.3px; }

/* ---------- Data thread (signature element) ---------- */
.thread-wrap { position: relative; padding-top: 22px; }
.thread-line {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 100%);
}
.thread-line::before, .thread-line::after {
  content: ""; position: absolute; top: -3.5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
}
.thread-line::before { left: -2px; }
.thread-line::after { right: -2px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

.mission-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.mission-card:hover { box-shadow: 0 16px 32px rgba(8,43,77,0.10); transform: translateY(-3px); }
.mission-card .tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.6px;
  padding: 4px 9px; border-radius: 20px; text-transform: uppercase; font-weight: 500;
}
.tag-active { background: #E4F1E8; color: #1E6B3E; }
.tag-vision { background: #F2EEE3; color: #8A6D1E; }
.mission-card h3 { margin-bottom: 2px; }
.mission-card p { font-size: 0.93rem; margin-bottom: 6px; }
.mission-card .learn { font-weight: 600; color: var(--navy); font-size: 0.9rem; margin-top: auto; }

.serve-card {
  background: var(--mist); border-radius: var(--radius-lg); padding: 30px 26px;
}
.serve-card h3 { color: var(--navy-ink); }
.serve-card .learn { color: var(--navy); font-weight: 600; font-size: 0.9rem; }

.credential {
  padding: 24px 4px;
}
.credential h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; color: var(--navy-ink); }
.credential p { font-size: 0.9rem; margin: 0; }

/* ---------- Architecture teaser strip ---------- */
.arch-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.arch-step { background: #fff; padding: 22px 16px; text-align: center; }
.arch-step .n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); display:block; margin-bottom: 6px; }
.arch-step h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; margin: 0 0 4px; color: var(--navy-ink); }
.arch-step p { font-size: 0.8rem; margin: 0; }
@media (max-width: 900px) { .arch-strip { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .arch-strip { grid-template-columns: 1fr; } }

/* ---------- Partner strip ---------- */
.partner-grid {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.partner-pill {
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  border: 1px solid var(--line); border-radius: 30px; padding: 9px 18px; color: var(--slate);
  background: #fff;
}
.partner-pill.in-progress { border-style: dashed; color: var(--slate-light); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #D7E4F1; max-width: 600px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: #C9D6E3; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr 0.9fr; gap: 28px; margin-bottom: 40px; }
.footer-grid h5 { font-family: var(--font-body); font-weight: 700; color: #fff; font-size: 0.88rem; letter-spacing: 0.4px; margin-bottom: 14px; text-transform: uppercase; }
.footer-grid li { margin-bottom: 9px; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo img { height: 26px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: #8FA3B7; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Interior page support ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--slate-light); padding: 18px 0; }
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

.page-hero { background: var(--navy); color: #fff; padding: 56px 0 64px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lede { color: #D7E4F1; max-width: 680px; font-size: 1.08rem; }
.page-hero .tag-active, .page-hero .tag-vision { margin-bottom: 16px; }

.split { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.icon-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.96rem; color: var(--ink); align-items: flex-start; }
.icon-list .check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 2px; }

.sidebar-box { background: var(--mist); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px; }
.sidebar-box h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; color: var(--navy-ink); margin-bottom: 10px; }
.sidebar-box ul li { font-size: 0.88rem; margin-bottom: 8px; color: var(--slate); }
.sidebar-box a.btn { width: 100%; justify-content: center; margin-top: 6px; }

.table-simple { width: 100%; border-collapse: collapse; margin: 24px 0; }
.table-simple th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-size: 0.85rem; font-family: var(--font-body); }
.table-simple td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--ink); }
.table-simple tr:nth-child(even) td { background: var(--mist); }

.tag-inline { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; font-weight: 500; margin-right: 8px; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-pill { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; padding: 8px 16px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--slate); cursor: pointer; }
.filter-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.resource-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.resource-card .meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.resource-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.resource-card p { font-size: 0.9rem; }

.quote-block { border-left: 3px solid var(--gold); padding: 4px 0 4px 22px; font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-ink); font-weight: 600; margin: 30px 0; }

.two-col-list { columns: 2; column-gap: 40px; }
@media (max-width: 640px) { .two-col-list { columns: 1; } }
.two-col-list li { break-inside: avoid; margin-bottom: 10px; }
