/* ==========================================================================
   The Veteran Solutions — v3 Design System
   Modern, data-forward, interactive. Indigo/coral on deep ink.
   ========================================================================== */

:root {
  --ink: #0B1220;
  --ink-soft: #141B2E;
  --ink-softer: #1C2540;
  --paper: #F6F7FB;
  --paper-dim: #ECEEF5;
  --white: #FFFFFF;
  --indigo: #5B5FEF;
  --indigo-soft: #8B8EF5;
  --coral: #FF6B4A;
  --mint: #22C6A0;
  --slate: #626C7A;
  --rule: rgba(11, 18, 32, 0.10);
  --rule-light: rgba(255, 255, 255, 0.14);

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1160px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  background: var(--coral);
  border-radius: 50%;
  display: inline-block;
}

.section-dark .eyebrow { color: var(--indigo-soft); }

.lede {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 48ch;
}
.section-dark .lede { color: rgba(255,255,255,0.68); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 50px; width: auto; display: block; border-radius: 10px; }

nav.primary-nav { display: flex; gap: 30px; font-size: 0.92rem; font-weight: 500; }

nav.primary-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--slate);
  transition: color 0.2s ease;
}
nav.primary-nav a:hover, nav.primary-nav a.active { color: var(--ink); }
nav.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 11px 22px;
  background: var(--indigo);
  color: var(--white);
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 18px rgba(91, 95, 239, 0.28);
}
.nav-cta:hover { background: #4B4FE0; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(91, 95, 239, 0.36); }

.menu-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, #161F38 0%, var(--ink) 55%);
  color: var(--white);
  padding: 120px 0 100px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow.g1 { width: 420px; height: 420px; background: rgba(91,95,239,0.35); top: -140px; right: -100px; }
.hero-glow.g2 { width: 320px; height: 320px; background: rgba(255,107,74,0.22); bottom: -120px; left: 10%; }

.hero .wrap { position: relative; }

.hero h1 { color: var(--white); margin-top: 22px; }
.hero h1 .hl { color: var(--coral); }
.hero .lede { color: rgba(255,255,255,0.7); margin-top: 20px; }

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

.btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--coral); color: var(--white); box-shadow: 0 8px 22px rgba(255,107,74,0.32); }
.btn-primary:hover { background: #FF5734; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,107,74,0.4); }

.btn-ghost-light { border-color: rgba(255,255,255,0.32); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-ghost-dark { border-color: var(--rule); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* ---------- Animated stat panel ---------- */

.stat-panel {
  position: relative;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-light);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-cell {
  background: rgba(255,255,255,0.03);
  padding: 26px 24px;
}

.stat-cell .num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-cell .num .suffix { color: var(--coral); font-size: 1.3rem; }
.stat-cell .label { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 6px; }

/* Light variant stat panel (used on inner pages) */
.stat-panel.light {
  background: var(--rule);
  border-color: var(--rule);
}
.stat-panel.light .stat-cell { background: var(--white); }
.stat-panel.light .stat-cell .num { color: var(--ink); }
.stat-panel.light .stat-cell .num .suffix { color: var(--indigo); }
.stat-panel.light .stat-cell .label { color: var(--slate); }

/* ---------- Sections ---------- */

.section { padding: 100px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-tint { background: var(--paper-dim); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.section-head h2 { margin-top: 14px; }

/* ---------- Cards ---------- */

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

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11,18,32,0.10);
  border-color: transparent;
}

.card .icon-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-soft));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon-badge svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin: 4px 0 12px; }
.card p { color: var(--slate); font-size: 0.95rem; }

.card.on-dark { background: var(--ink-soft); border-color: var(--rule-light); }
.card.on-dark:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.card.on-dark h3 { color: var(--white); }
.card.on-dark p { color: rgba(255,255,255,0.62); }
.card.on-dark .icon-badge { background: linear-gradient(135deg, var(--coral), #FF8A6B); }

/* ---------- Interactive tabs (services) ---------- */

.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover { border-color: var(--indigo); color: var(--ink); }
.tab-btn.is-active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}
.section-dark .tab-btn { background: var(--ink-soft); border-color: var(--rule-light); color: rgba(255,255,255,0.6); }
.section-dark .tab-btn:hover { border-color: var(--indigo-soft); color: var(--white); }
.section-dark .tab-btn.is-active { background: var(--indigo); border-color: var(--indigo); color: var(--white); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadein 0.35s ease; }

@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- List rows ---------- */

.row-list { border-top: 1px solid var(--rule); }
.section-dark .row-list { border-color: var(--rule-light); }

.row-item {
  display: grid;
  grid-template-columns: 52px 1fr 1.3fr;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.row-item:hover { background: rgba(91,95,239,0.04); }
.section-dark .row-item { border-color: var(--rule-light); }
.section-dark .row-item:hover { background: rgba(255,255,255,0.03); }

.row-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-soft));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.row-icon svg { width: 20px; height: 20px; stroke: var(--white); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.row-code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--indigo); display: block; margin-bottom: 4px; }
.section-dark .row-code { color: var(--indigo-soft); }
.row-item h3 { font-size: 1.05rem; }
.row-item p { color: var(--slate); font-size: 0.93rem; }
.section-dark .row-item p { color: rgba(255,255,255,0.6); }

/* ---------- Donut infographic ---------- */

.donut-wrap { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }

.donut {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    var(--indigo) 0% 30%,
    var(--coral) 30% 55%,
    var(--mint) 55% 78%,
    #A78BFA 78% 100%
  );
  position: relative;
  flex-shrink: 0;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 26px;
  background: var(--white);
  border-radius: 50%;
}
.section-dark .donut::after { background: var(--ink); }

.donut-center {
  position: absolute;
  inset: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--font-mono);
  z-index: 2;
}
.donut-center .n { font-size: 1.6rem; font-weight: 500; color: var(--ink); }
.section-dark .donut-center .n { color: var(--white); }
.donut-center .l { font-size: 0.65rem; color: var(--slate); letter-spacing: 0.06em; text-transform: uppercase; }

.donut-legend { display: grid; gap: 14px; }
.legend-row { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.legend-label { font-weight: 600; min-width: 130px; }
.legend-pct { font-family: var(--font-mono); color: var(--slate); font-size: 0.85rem; }
.section-dark .legend-pct { color: rgba(255,255,255,0.55); }

/* ---------- Process timeline ---------- */

.process-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.process-line::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--rule);
}
.section-dark .process-line::before { background: var(--rule-light); }

.process-step { position: relative; padding-top: 60px; }
.process-num {
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--indigo);
  z-index: 1;
}
.section-dark .process-num { background: var(--ink); }
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--slate); font-size: 0.93rem; }
.section-dark .process-step p { color: rgba(255,255,255,0.62); }

/* ---------- Job listings ---------- */

.job-list { border-top: 1px solid var(--rule); }
.job-row {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  gap: 22px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--rule);
  border-radius: 10px;
  transition: background 0.2s ease;
}
.job-row:hover { background: rgba(91,95,239,0.04); }
.job-row .req { font-family: var(--font-mono); font-size: 0.72rem; color: var(--indigo); font-weight: 500; }
.job-row h3 { font-size: 1.05rem; }
.job-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate); }
.job-row .btn { padding: 10px 20px; font-size: 0.82rem; }

/* ---------- Statement ---------- */

.statement { padding: 84px 0; text-align: center; }
.statement blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 24ch;
  margin: 0 auto;
}
.statement cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--indigo-soft);
  font-style: normal;
}

/* ---------- Form ---------- */

.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--slate); }
.form-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(34,198,160,0.12);
  color: #0F8A6C;
  border: 1px solid rgba(34,198,160,0.3);
  display: none;
}
.form-status.show { display: block; }

/* ---------- Team cards ---------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.team-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(11,18,32,0.08); }
.team-card .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--coral));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}
.team-card.lead .avatar { background: linear-gradient(135deg, var(--coral), #FF8A6B); }
.team-card .name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.team-card .role { font-family: var(--font-mono); font-size: 0.7rem; color: var(--slate); margin-top: 4px; }
.dept-block { margin-bottom: 60px; }
.dept-block:last-child { margin-bottom: 0; }
.dept-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.dept-head h3 { font-size: 1.3rem; }
.dept-count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate); }

/* ---------- Two column ---------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.two-col .sticky-col { position: sticky; top: 110px; }

/* ---------- Footer ---------- */

footer.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 60px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--rule-light); }
.footer-logo { height: 44px; width: auto; display: block; margin-bottom: 14px; border-radius: 8px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo-soft); margin-bottom: 14px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; margin-bottom: 9px; color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-family: var(--font-mono); font-size: 0.72rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  nav.primary-nav { display: none; }
  .menu-toggle { display: block; }
  .stat-panel { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 44px 1fr; }
  .row-item > p { grid-column: 2; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col .sticky-col { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .job-row { grid-template-columns: 1fr; text-align: left; gap: 8px; }
  .process-line { grid-template-columns: 1fr; }
  .process-line::before { display: none; }
  .donut-wrap { flex-direction: column; align-items: flex-start; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}
