:root {
  --ink: #09202f;
  --muted: #557083;
  --brand: #014364;
  --brand-2: #0a739e;
  --sky: #dff4fb;
  --line: #d7e4eb;
  --panel: #ffffff;
  --wash: #f4f9fb;
  --good: #16865f;
  --warn: #af6f07;
  --bad: #b93636;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  z-index: 20;
}
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 76px;
  padding: 12px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 245px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.brand small { display: block; color: var(--muted); font-size: 12px; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 9px;
  border-radius: 6px;
  font-weight: 650;
  font-size: 14px;
}
.nav a:hover, .nav a.active { color: var(--brand); background: var(--sky); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.text-link { color: var(--brand); font-weight: 750; text-decoration: none; white-space: nowrap; }
.button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  min-height: 46px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button.small { min-height: 38px; padding: 8px 12px; font-size: 14px; }
.button.secondary { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.button.ghost { background: var(--wash); color: var(--brand); border: 1px solid var(--line); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.nav-toggle {
  display: none;
  appearance: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  align-items: center;
  justify-content: center;
  font-size: 0;
  cursor: pointer;
}
.nav-toggle::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.hero {
  min-height: 620px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 20px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  align-items: center;
}
.hero-copy,
.hero-panel,
.metric {
  min-width: 0;
}
.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: 64px;
  line-height: .98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
.hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
  overflow-wrap: break-word;
}
.eyebrow {
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 850;
  margin: 0 0 10px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--wash));
  border-radius: 8px;
}
.metric {
  padding: 18px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--line);
}
.metric strong { display: block; color: var(--brand); font-size: 30px; line-height: 1; }
.metric span { color: var(--muted); font-weight: 650; overflow-wrap: break-word; }

.band, .split, .form-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 20px;
}
.band.light {
  max-width: none;
  padding-left: max(20px, calc((100vw - 1180px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1180px) / 2 + 20px));
  background: var(--wash);
  border-block: 1px solid var(--line);
}
.section-heading { max-width: 760px; margin-bottom: 28px; }
h2 { font-size: 38px; line-height: 1.08; margin: 0 0 12px; letter-spacing: 0; }
h3 { font-size: 22px; line-height: 1.12; margin: 0 0 10px; letter-spacing: 0; }
p { margin: 0 0 14px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.card p { color: var(--muted); }
.card h3 a { text-decoration: none; }
.inline-action {
  color: var(--brand);
  font-weight: 800;
  margin-top: auto;
  text-decoration: none;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: start;
}
.callout, .contact-card {
  border-left: 4px solid var(--brand-2);
  padding: 18px;
  background: var(--wash);
  border-radius: 0 8px 8px 0;
}
.contact-card a { display: block; color: var(--brand); font-weight: 800; margin-bottom: 8px; }

.intake-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(1, 67, 100, .08);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
label { display: grid; gap: 7px; color: var(--ink); font-weight: 750; font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #c9d9e1;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 130px; resize: vertical; }
.consent-grid { display: grid; gap: 8px; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-weight: 650;
}
.checkbox input { width: auto; margin-top: 4px; }
.form-status { min-height: 24px; font-weight: 750; color: var(--brand); }
.form-status.error { color: var(--bad); }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
blockquote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}
blockquote p { font-size: 19px; color: var(--ink); }
cite { font-style: normal; font-weight: 850; color: var(--brand); }
cite span { display: block; font-size: 13px; color: var(--muted); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.value-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.footer {
  background: var(--ink);
  color: #d7eaf2;
  margin-top: 40px;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer h2, .footer h3 { color: #fff; margin-bottom: 12px; }
.footer a { display: block; color: #d7eaf2; text-decoration: none; margin-bottom: 8px; }
.fine-print { font-size: 12px; color: #a9c4d0; }

.admin-body { background: #f2f7fa; }
.admin-shell { max-width: 1280px; margin: 0 auto; padding: 28px 18px 60px; }
.admin-hero {
  border-radius: 8px;
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #062436);
}
.admin-hero p { max-width: 700px; color: #d7eaf2; }
.admin-app { margin-top: 18px; display: grid; gap: 18px; }
.admin-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 18px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--wash);
}
.stat strong { display: block; font-size: 28px; color: var(--brand); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}
.pill.warn { background: #fff5df; color: var(--warn); }
.pill.good { background: #e8f7f0; color: var(--good); }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    display: none;
    flex-basis: 100%;
    order: 5;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .nav.open { display: flex; }
  .header-actions { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 46px; }
  .hero-copy h1 { font-size: 46px; }
  .card-grid, .quote-grid, .value-grid, .footer-grid, .admin-grid { grid-template-columns: 1fr; }
  .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .header-inner { gap: 10px; }
  .brand { min-width: 0; }
  .brand strong { font-size: 16px; }
  .brand small { display: none; }
  .hero {
    display: block;
    width: 100%;
    max-width: 100vw;
    padding: 42px 20px 30px;
    overflow: hidden;
  }
  .hero-copy,
  .hero-panel,
  .hero-actions {
    width: 100%;
    max-width: calc(100vw - 40px);
  }
  .hero-copy h1 { max-width: 100%; font-size: 34px; line-height: 1.04; }
  .hero-copy p { max-width: 100%; font-size: 18px; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .hero-actions .button { min-width: 0; padding-inline: 10px; text-align: center; }
  .hero-panel { margin-top: 28px; padding: 16px; }
  .metric { padding: 16px; }
  .metric strong { font-size: 29px; }
  h2 { font-size: 30px; }
  .compact-grid, .stats-grid { grid-template-columns: 1fr; }
  .intake-form { padding: 16px; }
}
