/* ---------- Tokens ---------- */
:root {
  --navy: #0b2545;
  --navy-deep: #061a36;
  --slate: #334e68;
  --slate-soft: #5a738e;
  --accent: #1d7874;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 37, 69, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --pad-x: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef2f7; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9375rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-name { font-size: 1.0625rem; }
.brand-mark svg { display: block; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav ul a {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.9375rem;
}
.primary-nav ul a:hover { color: var(--navy); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy);
  margin: 4px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem var(--pad-x) 1.25rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .primary-nav ul li { border-bottom: 1px solid var(--border); }
  .primary-nav ul a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
  }
  .primary-nav .btn { margin-top: 0.875rem; align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero h1 { margin-bottom: 1rem; }
.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--slate);
  max-width: 640px;
  margin: 0 0 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) 0;
}
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 0.5rem; }
.section-sub {
  font-size: 1.0625rem;
  color: var(--slate-soft);
  margin: 0;
}

.prose { max-width: 760px; }
.prose p:last-child { margin-bottom: 0; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  display: grid;
  gap: 0.625rem;
}
.check-list li {
  position: relative;
  padding-left: 1.875rem;
  color: var(--slate);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--accent);
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.section-soft .card { background: #fff; }
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cdd6e0;
}

/* Approach steps */
.step-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.step { position: relative; padding-top: 2.25rem; }
.step-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { margin: 0; }

/* Services */
.service-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.service h3 { margin-bottom: 0.5rem; }
.service p { margin: 0; color: var(--slate); }

/* Why */
.why-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}
@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.emphasis {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}
.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.pillar-list li {
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--slate);
}
.pillar-list strong { color: var(--navy); }

/* CTA band */
.cta-band {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-inner { max-width: 720px; text-align: center; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.75rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 3rem 0 2.25rem;
}
.footer-inner {
  display: grid;
  gap: 0.75rem;
  text-align: center;
}
.footer-name { color: #fff; font-weight: 700; font-size: 1.0625rem; margin: 0; }
.footer-tag { margin: 0; }
.footer-contact a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
}
.footer-contact a:hover { border-bottom-color: #fff; text-decoration: none; }
.footer-copy {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Request page ---------- */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 var(--section-y); }
.request-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .request-grid { grid-template-columns: minmax(0, 1fr); }
}
.request-intro { padding-top: 0.5rem; }
.request-intro h1 { font-size: clamp(2rem, 3.6vw, 2.875rem); margin-bottom: 1rem; }
.request-intro .lede { margin-bottom: 2.5rem; }
.next-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate-soft);
  margin: 0 0 1.25rem;
}
.next-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.next-steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
}
.next-steps .num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.next-steps h3 { font-size: 1rem; margin: 0.45rem 0 0.2rem; }
.next-steps p { margin: 0; font-size: 0.975rem; color: var(--slate-soft); }

.form-card { padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow-md); }
.form-card:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow-md); }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  align-items: start;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  margin: 0 0 1.125rem;
  min-width: 0;
}
fieldset.field { border: 0; padding: 0; }
.field label,
.field legend {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}
.field legend { padding: 0; margin-bottom: 0.4rem; }
.opt { font-weight: 400; color: var(--slate-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--navy);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23334e68' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
}
.field textarea { min-height: 132px; resize: vertical; }
.field textarea::placeholder { color: #94a3b8; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 120, 116, 0.18);
}
.field.has-error input,
.field.has-error textarea { border-color: #b42318; }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15); }
.error { margin: 0; font-size: 0.875rem; color: #b42318; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 420px) {
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
}
.field .choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field .choice:hover { border-color: #cbd5e1; }
.choice input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}
.field .choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(29, 120, 116, 0.06);
  color: var(--navy);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}
.form-note { margin: 0; font-size: 0.875rem; color: var(--slate-soft); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.form-status {
  margin: 1.25rem 0 0;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.form-status.is-error { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }
.form-status a { color: #912018; text-decoration: underline; }

.form-success { text-align: center; padding: clamp(1.5rem, 4vw, 3rem) 0.5rem; outline: none; }
.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(29, 120, 116, 0.1);
}
.form-success h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.form-success p { max-width: 420px; margin: 0 auto 1.75rem; }
[hidden] { display: none !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}
