:root {
  --navy: #0b2a6b;
  --navy-deep: #06183f;
  --navy-mid: #163e8a;
  --navy-soft: #e8eef8;
  --green: #0b6b1f;
  --green-deep: #064a15;
  --green-mid: #14802a;
  --green-soft: #e7f5ea;
  --gray: #4f4f4f;
  --gray-mid: #808080;
  --gray-line: #d8dbe3;
  --bg: #f6f7fa;
  --white: #ffffff;
  --text: #1b1d23;
  --header-h: 4.5rem;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 107, 0.08);
  --font-head: "IBM Plex Sans", system-ui, sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "Lato", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--navy-mid); }

h1, h2, h3, .eyebrow, .wordmark, .btn, .step-num, .footer-name, .nav {
  font-family: var(--font-head);
}

h1, h2, h3 { color: var(--navy); margin: 0 0 0.6em; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.visually-hidden {
  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 {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(6, 24, 63, 0.08);
  border-bottom-color: var(--gray-line);
}
.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.wordmark {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.gov { color: var(--navy); }
.cons { color: var(--green); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.4rem;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}
.nav a:hover { color: var(--green); }
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-deep); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after { transition: transform 0.2s ease, background 0.2s ease, top 0.2s ease; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.site-header.is-open .nav-toggle-bars { background: transparent; }
.site-header.is-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(32rem, 88vh, 46rem);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("assets/hero.jpg") center 28% / cover no-repeat;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 16, 40, 0.28) 0%, rgba(6, 16, 40, 0.45) 38%, rgba(6, 12, 28, 0.78) 100%);
}
.hero-content {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 4.25rem;
}
.hero h1 {
  font-family: var(--font-cond);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(2.05rem, 5.4vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 100%;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-lead {
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Sections */
.section { padding: 5rem 0; }
.section-about { background: var(--white); }
.section-services { background: var(--bg); }
.section-steps { background: var(--white); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.7rem;
}
.eyebrow-light { color: #8ee0a0; }

.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-lead { color: var(--gray); font-size: 1.1rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem 4rem;
  align-items: start;
}
.prose { color: var(--gray); font-size: 1.12rem; }
.prose p { margin-bottom: 1.1em; }

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.service-card p { color: var(--gray); margin: 0; font-size: 0.98rem; }
.service-icon {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--navy);
  background: var(--navy-soft);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.service-icon svg { width: 1.4rem; height: 1.4rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}
.steps li {
  position: relative;
  padding-top: 0.2rem;
}
.step-num {
  display: block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 2rem;
  color: var(--green);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.7rem;
}
.steps p { color: var(--gray); margin: 0; }

/* Contact */
.section-contact {
  background: var(--navy-deep);
  color: #e8edf6;
  padding: 5rem 0;
}
.section-contact h2 { color: var(--white); }
.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
.contact-copy p { color: #c5cde0; }
.contact-details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.contact-item { margin-bottom: 1.15rem; }
.contact-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9db0d6;
  margin-bottom: 0.4rem;
}
.placeholder {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  color: #d7e0f2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
}
.contact-note {
  margin: 1.2rem 0 0;
  font-size: 0.88rem;
  color: #9aa6c2;
}

/* Footer */
.site-footer {
  background: #040c1e;
  color: #9aa6c2;
  padding: 1.8rem 0 2rem;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 0.75rem; align-items: center; }
.footer-brand img {
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: 8px;
  padding: 3px;
}
.footer-name { font-weight: 700; font-size: 1rem; margin: 0 0 0.15rem; line-height: 1; }
.footer-brand p { margin: 0; }
.footer-credit { max-width: 28rem; margin: 0; }

/* Focus */
:focus-visible {
  outline: 3px solid var(--green-mid);
  outline-offset: 3px;
}

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

/* Tablet */
@media (max-width: 900px) {
  .split,
  .contact-box { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .hero { min-height: 34rem; align-items: flex-end; }
  .hero h1 { max-width: 100%; }
  .section { padding: 3.6rem 0; }
}

/* Mobile / iPhone */
@media (max-width: 680px) {
  :root { --header-h: 4.15rem; }
  .container,
  .header-inner,
  .hero-content { width: min(var(--max), calc(100% - 1.5rem)); }

  .nav-toggle { display: grid; place-items: center; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1.1rem;
    gap: 0;
    box-shadow: 0 12px 24px rgba(6, 24, 63, 0.1);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--gray-line); }
  .nav-cta {
    margin-top: 0.7rem;
    text-align: center;
    border-bottom: 0 !important;
  }

  .brand-mark { width: 38px; height: 38px; }
  .wordmark { font-size: 1.05rem; }

  .hero {
    min-height: 100svh;
    min-height: calc(100svh - var(--header-h));
  }
  .hero-content { padding: 3rem 0 3.1rem; }
  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
    max-width: none;
  }
  .hero-lead { font-size: 1.02rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }

  .service-grid,
  .steps { grid-template-columns: 1fr; }
  .section { padding: 3.1rem 0; }
  .footer-inner { align-items: flex-start; }
}

@media (min-width: 681px) and (max-width: 900px) {
  .hero { min-height: 38rem; }
}

@media (max-width: 680px) {
  .footer-brand { align-items: flex-start; }
  .footer-brand p { max-width: 16rem; }
}
