:root {
  --navy: #061A3B;
  --navy-deep: #04142d;
  --red: #9A0F2E;
  --slate: #5B646B;
  --ink: #2D343A;
  --muted: #5B646B;
  --line: #dfe4e8;
  --paper: #ffffff;
  --soft: #f4f6f7;
  --max: 1180px;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(6, 26, 59, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 1000;
  background: #fff;
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: 92px 0; }
.section-label,
.eyebrow,
.panel-kicker,
.contact-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--navy); line-height: 1.1; margin-top: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -.045em; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); letter-spacing: -.035em; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6,26,59,.09);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 255px; height: auto; max-height: 62px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 26px; font-size: .94rem; font-weight: 700; }
.primary-nav > a:not(.btn) { text-decoration: none; color: #344450; }
.primary-nav > a:not(.btn):hover { color: var(--red); }
.menu-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .94rem;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--navy-deep); border-color: var(--navy-deep); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(154,15,46,.34); outline-offset: 3px; }
.btn-small { min-height: 42px; padding-inline: 18px; }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { color: #fff; }
.btn.full { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 86px;
  background:
    linear-gradient(135deg, rgba(6,26,59,.035), transparent 46%),
    #fff;
}
.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(6,26,59,.08);
  transform: rotate(22deg);
  pointer-events: none;
}
.hero-shield {
  position: absolute;
  right: clamp(-40px, 2vw, 40px);
  top: 28px;
  width: min(38vw, 470px);
  opacity: .028;
  pointer-events: none;
  user-select: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .72fr); gap: 72px; align-items: center; }
.hero-lead { max-width: 760px; color: #4f5d67; font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 38px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 12px 22px; color: var(--slate); font-size: .86rem; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.trust-strip span { position: relative; }
.trust-strip span:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -13px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); transform: translateY(-50%); }
.hero-panel { position: relative; z-index: 1; background: var(--navy); color: #fff; padding: 38px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-panel h2 { color: #fff; font-size: 2rem; }
.panel-kicker { color: #dca5aa; }
.check-list { margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 15px 0 15px 30px; border-top: 1px solid rgba(255,255,255,.14); }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: #fff; font-weight: 900; }

.intro-band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.intro-band h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
.intro-band p:last-child { color: var(--muted); font-size: 1.08rem; }

.section-heading { display: grid; grid-template-columns: 1.1fr .8fr; gap: 70px; align-items: end; margin-bottom: 42px; }
.section-heading > p { color: var(--muted); margin-bottom: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cap-card { min-height: 245px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background .2s ease, transform .2s ease; }
.cap-card:hover { background: #fbfcfc; transform: translateY(-2px); }
.card-no { display: inline-block; margin-bottom: 46px; color: var(--red); font-weight: 800; font-size: .76rem; letter-spacing: .12em; }
.cap-card p { margin: 0; color: var(--muted); font-size: .96rem; }

.dark-section { background: var(--navy-deep); color: rgba(255,255,255,.84); }
.dark-section h2, .dark-section h3 { color: #fff; }
.light-label { color: #e4aeb3; }
.dark-lead { max-width: 620px; font-size: 1.12rem; }
.government-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.credential-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 46px; border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.credential-grid > div { padding: 22px; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.credential-grid strong, .credential-grid span { display: block; }
.credential-grid strong { color: #fff; font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.credential-grid span { color: #bdc8d0; margin-top: 4px; }
.process-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 34px; }
.process-card h3 { font-size: 1.55rem; }
.process-list { list-style: none; margin: 22px 0 0; padding: 0; }
.process-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.process-list > li > span { color: var(--red); font-size: .76rem; font-weight: 900; letter-spacing: .08em; }
.process-list strong { color: var(--navy); }
.process-list p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.about-copy { color: var(--muted); font-size: 1.07rem; }
.code-blocks { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.code-panel { padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--navy); }
.code-panel h3 { margin-bottom: 18px; }
.code-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.code-list.compact { grid-template-columns: 1fr 1fr; }
.code-list span { color: var(--muted); font-size: .89rem; line-height: 1.45; }
.code-list b { color: var(--navy); }
.fine-print { margin: 18px 0 0; color: #7a858e; font-size: .78rem; }

.contact-section { background: var(--soft); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: center; }
.contact-grid > div:first-child > p:last-child { color: var(--muted); max-width: 680px; }
.contact-card { background: #fff; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.6rem; }
.contact-links { display: grid; gap: 7px; margin: 2px 0 26px; }
.email-link, .phone-link { display: inline-block; color: var(--navy); font-weight: 800; word-break: break-word; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-note { margin: 20px 0 0; color: var(--muted); font-size: .83rem; }

.site-footer { background: #0a2233; color: #bcc7cf; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; }
.footer-logo { width: 270px; filter: brightness(0) invert(1); opacity: .96; margin-bottom: 18px; }
.footer-grid p { max-width: 480px; margin: 0; font-size: .9rem; }
.footer-meta { display: grid; gap: 7px; justify-items: end; font-size: .87rem; }
.footer-meta a { color: #fff; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .77rem; }
.footer-bottom a { color: #fff; }

@media (max-width: 940px) {
  .brand img { width: 214px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--navy); font-weight: 800; }
  .primary-nav { position: absolute; top: 82px; left: 0; right: 0; display: none; padding: 22px 20px 26px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(6,26,59,.08); flex-direction: column; align-items: stretch; gap: 4px; }
  .primary-nav.open { display: flex; }
  .primary-nav > a:not(.btn) { padding: 11px 0; }
  .primary-nav .btn { margin-top: 10px; }
  .hero-grid, .government-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero { padding-top: 70px; }
  .section-heading, .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p { max-width: 760px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .code-blocks { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 68px 0; }
  .nav-wrap { min-height: 72px; }
  .brand img { width: 185px; }
  .primary-nav { top: 72px; }
  .hero { padding: 62px 0 64px; }
  h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-panel { padding: 28px 24px; }
  .trust-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .trust-strip span::after { display: none; }

  .contact-actions { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .cap-card { min-height: 220px; }
  .card-no { margin-bottom: 32px; }
  .credential-grid { grid-template-columns: 1fr 1fr; }
  .process-card { padding: 26px 22px; }
  .code-list, .code-list.compact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { justify-items: start; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* v1.4 capability statement and public-location additions */
.government-actions { margin-top: 28px; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: var(--soft); border-color: var(--soft); color: var(--navy-deep); }
.location-line { color: var(--muted); font-weight: 700; }
.capability-download { grid-column: 1 / -1; }
