:root {
  --navy: #1b2a44;
  --navy-2: #233c61;
  --orange: #ad5616;
  --orange-dark: #8f4410;
  --ink: #1d2433;
  --muted: #5a6478;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand img { height: 52px; width: auto; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem;
}
.site-nav a:hover { background: var(--bg-soft); }
.site-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.site-nav a.nav-cta { background: var(--orange); color: #fff; }
.site-nav a.nav-cta:hover { background: var(--orange-dark); }
.site-nav a.nav-cta[aria-current="page"] { background: var(--navy); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(196,98,26,.35), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 88px 0 96px;
}
.hero h1, .hero h2 { color: #fff; }
.hero .eyebrow { color: #f3b384; }
.hero p.lead { color: #d9e1ee; font-size: 1.15rem; max-width: 640px; }
.hero.page-hero { padding: 64px 0 64px; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Sections */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split + .split { margin-top: 72px; }
.split.reverse .split-media { order: 2; }
.split-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 18px 40px rgba(27,42,68,.18);
}
.split-body p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(27,42,68,.05);
}
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 24px; }
.card-body p { color: var(--muted); margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.2 4.8 10l-1.4 1.4L8 16l9-9-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Steps */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 14px;
}

/* Callout */
.callout {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; border-radius: 20px; padding: 48px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.callout h2 { color: #fff; margin-bottom: .3em; }
.callout p { color: #d9e1ee; margin: 0; max-width: 620px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info {
  background: var(--bg-soft); border-radius: var(--radius); padding: 32px;
}
.contact-info a { font-weight: 700; word-break: break-word; }
form.contact-form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1.5px solid #c9d0db; border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--orange); }
.form-note { font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #c8d2e2; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer-tag { color: #f3b384; font-style: italic; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px;
  font-size: .9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .hero.page-hero { padding: 44px 0; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .split + .split { margin-top: 56px; }
  .cards, .footer-grid { grid-template-columns: 1fr; }
  .callout { padding: 32px 24px; }
  .site-header { position: static; }
  .site-header .container { justify-content: center; }
  .site-nav ul { justify-content: center; }
  .site-nav ul { gap: 2px; flex-wrap: nowrap; }
  .site-nav a { padding: 6px 10px; font-size: .85rem; white-space: nowrap; }
  .brand img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Logo */
.brand img { height: 44px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 12px; }
@media (max-width: 760px) { .brand img { height: 40px; } }

/* Steps strip and two-up cards */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.split-media img { background: var(--bg-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .steps, .cards-2 { grid-template-columns: 1fr; } }
.split-media img, .card img { height: auto; }

/* Contact form states */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { margin: 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.form-status.ok { background: #e6f4ea; color: #1e6b34; }
.form-status.err { background: #fdecea; color: #a12a1c; }
.contact-form button:disabled { opacity: .7; cursor: wait; }

/* ---------- Inter (self-hosted, SIL OFL; see fonts/LICENSE-Inter.txt) ---------- */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
body { font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-weight: 800; }

/* ---------- Home hero with illustration ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-art img { width: 100%; height: auto; }
.hero-home { padding: 72px 0 80px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* ---------- Motion & hover polish ---------- */
.btn, .site-nav a, .card, .steps li, .split-media img, .faq details {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(196,98,26,.28); }
.btn-ghost:hover { box-shadow: none; }
.card:hover, .steps li:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(27,42,68,.12); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .steps li:hover { transform: none; }
}

/* ---------- Footer legal row ---------- */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #c8d2e2; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq details[open] { border-color: #cdd5e1; box-shadow: 0 6px 18px rgba(27,42,68,.06); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 12px; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- Legal pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: #3a4458; }
.prose ul { padding-left: 1.2em; }
.prose .updated { color: var(--muted); font-size: .95rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0 110px; }
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; color: var(--orange); letter-spacing: -0.04em; margin: 0 auto 8px; }
.notfound p { color: var(--muted); max-width: 520px; margin: 0 auto 8px; }
.notfound .btn-row { justify-content: center; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; box-shadow: none; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { min-height: 65px; }
