/* =========================================================
   ClearPath Cyber — Design Tokens
   Concept: a plotted route/waypoint line — precision navigation,
   not decoration. Flat, hairline-bordered blocks instead of soft
   shadow cards. Veteran-owned trust signals treated as credentials.
   ========================================================= */
:root {
  /* Color */
  --ink:        #1B2430; /* deep slate - primary text & dark sections */
  --ink-soft:   #414B58; /* secondary text on light */
  --paper:      #ECE7DD; /* warm stone paper - light sections */
  --paper-dim:  #DFD9CC; /* recessed panels on paper */
  --line:       #C9C2B2; /* hairline borders on paper */
  --line-dark:  #34404F; /* hairline borders on ink */
  --brass:      #B08D57; /* primary accent - CTAs, waypoints */
  --brass-dark: #8C6E3F;
  --steel:      #5C7A99; /* secondary accent - links on dark */
  --white:      #FFFFFF;

  /* Type */
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  /* Layout */
  --wrap: 1120px;
  --gap: 1.5rem;
  --radius: 3px; /* deliberately small - flat, not bubbly */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.6em; font-weight: 600; }
p { margin: 0 0 1.1em; max-width: 62ch; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link a {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 0.75em 1.2em; z-index: 200;
}
.skip-link a:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.85em 1.6em; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--brass); color: var(--ink); }
.btn--primary:hover { background: var(--brass-dark); }
.btn--outline { background: transparent; border-color: var(--line-dark); color: var(--paper); }
.btn--outline:hover { background: var(--line-dark); }
.btn--outline-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: var(--paper); }
.btn--nav { background: var(--ink); color: var(--paper); padding: 0.6em 1.3em; font-size: 0.9rem; }
.btn--nav:hover { background: var(--brass-dark); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--paper);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line-dark);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--paper); }
.brand__text { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav a:not(.btn) {
  text-decoration: none; color: var(--paper); font-size: 0.95rem; font-weight: 500;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: 1px solid var(--line-dark);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: var(--paper);
  padding: 4.5rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero__eyebrow { font-family: var(--font-mono); font-size: 0.85rem; color: var(--brass); margin-bottom: 1.1em; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); max-width: 14ch; }
.hero p.lede { font-size: 1.15rem; color: #C9CFD8; max-width: 46ch; }
.hero__ctas { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero__credentials { display: flex; gap: 1.6rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero__credentials div { font-family: var(--font-mono); font-size: 0.8rem; color: #9AA4B2; border-left: 2px solid var(--brass); padding-left: 0.7rem; }
.hero__credentials strong { display: block; color: var(--paper); font-family: var(--font-body); font-size: 1rem; font-weight: 600; }

.route-svg { width: 100%; height: auto; }
.route-svg .route-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s ease forwards 0.3s; }
.route-svg .waypoint { opacity: 0; animation: pop 0.4s ease forwards; }
.route-svg .waypoint:nth-of-type(1) { animation-delay: 0.5s; }
.route-svg .waypoint:nth-of-type(2) { animation-delay: 0.9s; }
.route-svg .waypoint:nth-of-type(3) { animation-delay: 1.3s; }
.route-svg .waypoint:nth-of-type(4) { animation-delay: 1.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .route-svg .route-line { stroke-dashoffset: 0; animation: none; }
  .route-svg .waypoint { opacity: 1; animation: none; }
}

/* ---------- Sections (generic) ---------- */
section { padding: 4.5rem 0; }
.section--dim { background: var(--paper-dim); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink p { color: #C9CFD8; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head .kicker { font-family: var(--font-mono); font-size: 0.8rem; color: var(--brass-dark); margin-bottom: 0.6em; display: block; }
.section--ink .section-head .kicker { color: var(--brass); }

/* ---------- Process (the "path") ---------- */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative; counter-reset: step;
}
.process::before {
  content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 2px;
  background: repeating-linear-gradient(to right, var(--brass) 0 10px, transparent 10px 18px);
}
.process__step { position: relative; padding: 0 1.2rem; }
.process__step:first-child { padding-left: 0; }
.process__step:last-child { padding-right: 0; }
.process__num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--brass);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono);
  font-size: 0.95rem; margin-bottom: 1.3rem; position: relative; z-index: 2; border: 2px solid var(--brass);
}
.process__step h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.process__step p { font-size: 0.95rem; color: var(--ink-soft); max-width: 28ch; }

/* ---------- Service grid ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--paper); padding: 2rem; }
.service-card__tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--brass-dark); display: block; margin-bottom: 0.8em; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.service-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.2em; }
.service-card a { font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--brass); padding-bottom: 2px; }
.service-card a:hover { color: var(--brass-dark); }

/* ---------- Two column feature blocks ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.feature + .feature { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.feature__list { border-top: 1px solid var(--line); }
.feature__list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.9rem; font-size: 0.97rem; }
.feature__list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.5em; background: var(--brass); border-radius: 1px; }
.section--ink .feature__list, .section--ink .feature__list li { border-color: var(--line-dark); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: left; }
.stats dt { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--brass); }
.stats dd { margin: 0.3em 0 0; font-size: 0.9rem; color: #C9CFD8; }

/* ---------- Testimonial / quote block ---------- */
.quote-block { border-left: 3px solid var(--brass); padding-left: 1.8rem; max-width: 60ch; }
.quote-block p { font-size: 1.2rem; font-family: var(--font-head); font-weight: 500; }
.quote-block cite { font-style: normal; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Credential / badge strip ---------- */
.badge-strip { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.badge {
  font-family: var(--font-mono); font-size: 0.8rem; padding: 0.5em 0.9em;
  border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--paper);
}
.section:not(.section--ink) .badge { border-color: var(--line); color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brass); color: var(--ink); text-align: left; padding: 3.5rem 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 0.2em; }
.cta-band .btn--primary { background: var(--ink); color: var(--paper); }
.cta-band .btn--primary:hover { background: var(--line-dark); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.form-field--full { grid-column: 1 / -1; }
label { font-size: 0.9rem; font-weight: 600; }
input, select, textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 0.8em 0.9em;
  border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--brass); }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert--success { background: #E4EBDF; border: 1px solid #96AF8B; color: #2F4229; }
.alert--error { background: #F3E0DA; border: 1px solid #C98B78; color: #5A2C1E; }

/* ---------- Compliance table ---------- */
.framework-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.framework-table th, .framework-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.framework-table th { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CFD8; padding: 3.5rem 0 0; margin-top: 4rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.brand--footer { display: flex; align-items: center; gap: 0.6rem; color: var(--paper); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.9rem; }
.site-footer__tagline { font-size: 0.92rem; max-width: 32ch; }
.veteran-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--brass);
  border: 1px solid var(--brass); padding: 0.35em 0.7em; border-radius: var(--radius);
}
.site-footer h3 { font-size: 0.85rem; font-family: var(--font-mono); color: #8A93A2; margin-bottom: 1rem; font-weight: 500; }
.site-footer ul li { margin-bottom: 0.7rem; }
.site-footer a { text-decoration: none; color: #C9CFD8; font-size: 0.92rem; }
.site-footer a:hover { color: var(--brass); }
.site-footer__bottom { border-top: 1px solid var(--line-dark); padding: 1.3rem 0; font-size: 0.85rem; color: #7C8697; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.max-prose { max-width: 68ch; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__grid .hero__visual { order: -1; max-width: 320px; margin: 0 auto 1rem; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .process::before { display: none; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--ink);
    flex-direction: column; align-items: stretch; padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line-dark); display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line-dark); }
  .site-nav a:not(.btn) { display: block; padding: 0.9rem 0; }
  .site-nav .btn--nav { margin-top: 1rem; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
