:root {
  --navy: #00297a;
  --navy-deep: #0a1b4a;
  --royal: #051aae;
  --royal-soft: #3a56d4;
  --periwinkle: #8fa5f5;
  --ink: #1c2333;
  --slate: #3e4a66;
  --mist: #f4f7fc;
  --mist-2: #e8eef8;
  --line: #dbe4f0;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(10, 27, 74, 0.08);
  --shadow-md: 0 6px 24px rgba(10, 27, 74, 0.10);
  --shadow-lg: 0 16px 48px rgba(10, 27, 74, 0.16);
  --font-head: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Otherwise anchor jumps land under the sticky header. */
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--royal); transition: color 0.15s ease; }

:focus-visible {
  outline: 3px solid rgba(5, 26, 174, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(10, 27, 74, 0.10); }

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand-text {
  font-family: var(--font-head); font-size: 1.28rem; font-weight: 500;
  color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; line-height: 1;
}
.brand-text strong { font-weight: 800; color: var(--royal); }
.brand-text small { font-size: 0.72em; font-weight: 600; color: var(--slate); letter-spacing: 0; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 0.95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover { color: var(--royal); }
.main-nav a.active { color: var(--royal); border-bottom-color: var(--royal); }

/* Ugh, the nav link colors used to turn this dark-on-blue. */
.main-nav a.btn-primary,
.main-nav a.btn-primary:hover,
.main-nav a.btn-primary.active {
  color: var(--white);
  border-bottom: 0;
}
.main-nav .btn-sm {
  padding: 9px 15px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-radius: 8px;
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px; color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; border: 0;
  border-radius: 10px;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease,
              background 0.2s ease, color 0.2s ease;
  font-size: 0.85rem; padding: 14px 26px; text-transform: uppercase;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.06s; }

.btn-primary { background: var(--royal); color: var(--white); box-shadow: 0 4px 14px rgba(5, 26, 174, 0.30); }
.btn-primary:hover { background: #0620c9; box-shadow: 0 6px 20px rgba(5, 26, 174, 0.38); }

.btn-outline {
  background: transparent; color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-light { background: var(--white); color: var(--navy); box-shadow: var(--shadow-md); }
.btn-light:hover { background: var(--mist); }

.btn-sm { padding: 10px 18px; font-size: 0.78rem; }

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #f7faff 0%, var(--mist) 55%, var(--mist-2) 100%);
  padding: 96px 0 140px;
}

.hero-inner { max-width: 720px; position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--royal); }

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--royal); }

.hero p.lede { font-size: 1.15rem; color: var(--slate); max-width: 58ch; margin-bottom: 34px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 0.88rem; color: var(--slate); margin-top: 18px; }
.hero-note strong { color: var(--navy); }

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > *, .page-hero .container > * {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-inner > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
  .hero-inner > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: 0.16s; }
  .hero-inner > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: 0.24s; }
  .hero-inner > :nth-child(5), .page-hero .container > :nth-child(5) { animation-delay: 0.32s; }
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

.hero-waves { position: absolute; right: 0; bottom: -2px; left: 0; z-index: 1; pointer-events: none; }
.hero-waves svg { display: block; width: 100%; height: auto; }

.trust-bar { background: var(--navy-deep); color: var(--white); padding: 36px 0; }
.trust-bar .container {
  display: flex; flex-wrap: wrap; gap: 18px 48px;
  align-items: center; justify-content: center;
}
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; font-weight: 500; }
.trust-item svg { width: 22px; height: 22px; color: var(--periwinkle); flex: none; }

.section { padding: 88px 0; }
.section.alt { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
.section-head p { color: var(--slate); font-size: 1.05rem; }

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: #c8d6ec; }

/* Badged cards need top alignment or the icon hangs awkwardly between two lines. */
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-head:has(.badge) { align-items: flex-start; }
.card-head .icon { margin-bottom: 0; flex: none; }
.card-head h3 { margin-bottom: 0; }

.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--royal) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .icon { transform: scale(1.07) rotate(-3deg); }
.card .icon svg { width: 28px; height: 28px; color: var(--white); }

.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.95rem; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }

.card.featured { border-top: 4px solid var(--royal); }

.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--royal); background: rgba(5, 26, 174, 0.08);
  border-radius: 999px; padding: 4px 12px; margin: 0 0 6px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin-bottom: 16px; }
.split p { color: var(--slate); margin-bottom: 14px; }

.check-list { list-style: none; margin: 22px 0; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 8px 0; color: var(--ink); font-size: 0.98rem;
}
.check-list svg { width: 21px; height: 21px; color: var(--royal); flex: none; margin-top: 3px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative; box-shadow: var(--shadow-sm);
}
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.step-head .step-num { margin-bottom: 0; flex: none; }
.step-head h3 { margin-bottom: 0; }

.step-num {
  font-family: var(--font-head); font-weight: 800; font-size: 0.8rem;
  color: var(--white); background: var(--royal);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--slate); font-size: 0.93rem; }
.step .step-meta { font-size: 0.75rem; font-weight: 700; color: var(--royal); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }

.stats-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--royal) 100%);
  color: var(--white); padding: 64px 0;
}
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat h3 { color: var(--white); font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.stat p { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; }

.cta-band {
  position: relative; overflow: hidden;
  background: var(--navy-deep); color: var(--white);
  padding: 88px 0; text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.80); max-width: 54ch; margin: 0 auto 32px; }
.cta-band .container { position: relative; z-index: 2; }
.cta-waves { position: absolute; left: 0; right: 0; bottom: -2px; opacity: 0.5; z-index: 1; }

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.82); padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer img.footer-logo { height: 72px; width: auto; margin-bottom: 18px; }
.site-footer h4 {
  color: var(--white); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 0.93rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer p { font-size: 0.93rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--periwinkle); flex: none; margin-top: 3px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 22px 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.68);
}

.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #f7faff 0%, var(--mist-2) 100%);
  padding: 72px 0 88px; border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: var(--slate); font-size: 1.08rem; max-width: 62ch; }

.service-block { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--royal) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
}
.service-block .icon svg { width: 28px; height: 28px; color: var(--white); }
.service-block h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service-block p { color: var(--slate); max-width: 70ch; }
.service-block .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 0.78rem; font-weight: 600; color: var(--navy);
  background: var(--mist-2); border-radius: 999px; padding: 4px 12px;
}

.form-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: flex-start; }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 40px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }

label.field-label {
  display: block; font-weight: 600; font-size: 0.88rem;
  color: var(--navy); margin-bottom: 6px;
}
label .req { color: #d33; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 0.95rem;
  border: 1.5px solid var(--line); border-radius: 9px; background: var(--white);
  color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(5, 26, 174, 0.12);
}
textarea { resize: vertical; min-height: 110px; }

.seg-toggle { display: flex; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg-toggle label {
  flex: 1; text-align: center; padding: 11px 8px; cursor: pointer;
  font-weight: 600; font-size: 0.9rem; color: var(--slate);
  transition: background 0.15s, color 0.15s;
}
.seg-toggle input { display: none; }
.seg-toggle input:checked + label,
.seg-toggle label:has(input:checked) { background: var(--royal); color: var(--white); }

.svc-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-checks label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px;
  font-size: 0.9rem; transition: border-color 0.15s, background 0.15s;
}
.svc-checks label:has(input:checked) { border-color: var(--royal); background: rgba(5, 26, 174, 0.05); }
.svc-checks input { accent-color: var(--royal); width: 16px; height: 16px; }

.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 9px; font-size: 0.93rem; display: none; }
.form-status.ok { display: block; background: #e8f7ee; color: #14562d; border: 1px solid #b9e6c9; }
.form-status.err { display: block; background: #fdecec; color: #7c1c1c; border: 1px solid #f3c1c1; }

.aside-card { background: var(--navy-deep); color: var(--white); border-radius: var(--radius); padding: 34px 32px; }
.aside-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 16px; }
.aside-card ul { list-style: none; }
.aside-card li { display: flex; gap: 12px; padding: 9px 0; font-size: 0.94rem; color: rgba(255,255,255,0.85); align-items: flex-start; }
.aside-card svg { width: 20px; height: 20px; color: var(--periwinkle); flex: none; margin-top: 2px; }
.aside-card .divider { height: 1px; background: rgba(255,255,255,0.14); margin: 20px 0; }
.aside-card a { color: var(--white); font-weight: 600; }

details.faq {
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  padding: 0; margin-bottom: 14px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 1.3rem; color: var(--royal); flex: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
details.faq:hover { border-color: #c8d6ec; }
details.faq[open] { box-shadow: var(--shadow-sm); }
details.faq .faq-body { padding: 0 24px 20px; color: var(--slate); font-size: 0.96rem; }
@media (prefers-reduced-motion: no-preference) {
  details.faq[open] .faq-body { animation: faqOpen 0.3s ease; }
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.in { opacity: 1; transform: none; }
}

.card .card-link { transition: gap 0.2s ease; }
.card .card-link:hover { gap: 10px; }

.service-block { transition: background 0.25s ease; }
.service-block .icon { transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.service-block:hover .icon { transform: scale(1.07) rotate(-3deg); }

.step { transition: box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.site-footer a { transition: color 0.15s ease; }
.tag { transition: background 0.2s ease, color 0.2s ease; }
.service-block:hover .tag { background: #dbe6f7; }

.brand img { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.brand:hover img { transform: scale(1.04); }

.center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }

.error-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.error-page { text-align: center; padding: 120px 24px 52px; flex: none; }
.error-page h1 { font-size: 5rem; color: var(--royal); }
.error-waves { position: relative; inset: auto; flex: 1; min-height: 220px; display: flex; flex-direction: column; pointer-events: auto; }
.error-waves svg { width: 100%; height: auto; flex: none; }
/* Three layers bobbing slightly out of phase with each other reads as actual
   water instead of a static image — the offset timings are what sell it,
   not the motion amount, which stays small on purpose. */
@media (prefers-reduced-motion: no-preference) {
  .error-waves svg path:nth-of-type(1) { animation: wave-bob 7s ease-in-out infinite; }
  .error-waves svg path:nth-of-type(2) { animation: wave-bob 5.5s ease-in-out infinite -1.5s; }
  .error-waves svg path:nth-of-type(3) { animation: wave-bob 6.5s ease-in-out infinite -3s; }
}
@keyframes wave-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.error-wave-footer { flex: 1; background: var(--navy-deep); display: flex; align-items: flex-start; justify-content: center; padding: 32px 24px; }
.error-home-btn { color: var(--navy-deep); }

@media (max-width: 960px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .split, .form-layout { grid-template-columns: 1fr; gap: 40px; }
  .stats-band .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .grid-3, .grid-2, .steps, .form-grid, .svc-checks { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 24px; gap: 4px; align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 0; }
  .main-nav .btn { margin-top: 10px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding: 64px 0 110px; }
  .section { padding: 64px 0; }
  .form-card { padding: 26px 20px; }
}
