:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --paper: #f7f4ef;
  --paper-2: #efe9df;
  --card: #ffffff;
  --navy: #1e3a5f;
  --navy-deep: #12263f;
  --gold: #b0892b;
  --gold-soft: #d4b56a;
  --sage: #4a6b58;
  --line: #d9d1c3;
  --danger: #8b2e2e;
  --ok: #2f6b4f;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(18, 38, 63, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: var(--navy); }
img { max-width: 100%; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em;
}
.mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(145deg, var(--navy), var(--navy-deep));
  color: var(--gold-soft); display: grid; place-items: center;
  font-family: var(--display); font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(212,181,106,.35);
}
.nav-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
/* Container link rules must never repaint a button label: `.nav-links a` is
   (0,1,1) and out-specifies the single-class `.btn-*` colors (0,1,0). Exclude
   buttons here, and see the a.btn guards below for containers defined elsewhere. */
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 999px; padding: .7rem 1.15rem;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-gold { background: var(--gold); color: #1a1508; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }

/* Anchor-as-button color guards.
   Any ancestor-scoped link rule (`.nav-links a`, `.sidebar a`, `.admin-cats a`,
   `footer.site a`, …) has specificity (0,1,1) and would otherwise beat the
   (0,1,0) `.btn-*` colors and make the label unreadable on the button fill.
   These two-class element-qualified selectors are (0,2,1), so the button's own
   color wins regardless of source order (app.css @imports this file, so a tie
   would go to app.css). */
a.btn.btn-primary, a.btn.btn-primary:hover { color: #fff; }
a.btn.btn-gold, a.btn.btn-gold:hover { color: #1a1508; }
a.btn.btn-ghost, a.btn.btn-ghost:hover { color: var(--navy); }
a.btn.btn-ghost-light, a.btn.btn-ghost-light:hover { color: #fff; }
a.btn { text-decoration: none; }

.hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem;
  padding: 2.5rem 0 3rem; align-items: center;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: .75rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; margin: 0 0 1rem; color: var(--navy-deep);
}
.lede { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 1rem; max-width: 38rem; }
.hero-points {
  margin: 0 0 1.35rem; padding: 0 0 0 1.15rem; color: var(--ink-soft); max-width: 38rem;
}
.hero-points li { margin: 0.35rem 0; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow); padding: 1.25rem;
}
.panel h3 { margin: 0 0 .5rem; font-family: var(--display); color: var(--navy); }
.panel-lead { margin: 0 0 1rem; color: var(--ink-soft); font-size: .92rem; }
.quote-panel { align-self: stretch; }

.quote-form label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: .75rem;
}
.quote-form label .opt { font-weight: 500; color: #8a93a0; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  display: block; width: 100%; margin-top: .3rem;
  border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem .7rem; font: inherit; color: var(--ink); background: #fff;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(30, 58, 95, 0.25); border-color: var(--navy);
}
.quote-form textarea { resize: vertical; min-height: 4.5rem; }
.qf-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: .65rem;
}
@media (max-width: 520px) { .qf-row { grid-template-columns: 1fr; } }
.btn-block { width: 100%; margin-top: .15rem; }
.form-note { margin: .65rem 0 0; font-size: .88rem; min-height: 1.2em; }
.form-note.ok { color: var(--ok); font-weight: 600; }
.form-note.err { color: var(--danger); font-weight: 600; }
.form-fine { margin: .55rem 0 0; font-size: .75rem; color: #8a93a0; line-height: 1.4; }
.form-fine a { color: var(--navy); }
.hp {
  position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
}

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.stat {
  background: var(--paper-2); border-radius: 10px; padding: .85rem;
}
.stat b { display: block; font-size: 1.35rem; color: var(--navy-deep); }
.stat span { font-size: .8rem; color: var(--ink-soft); }

.section { padding: 2.5rem 0; }
.section h2 {
  font-family: var(--display); font-size: 1.85rem; color: var(--navy-deep); margin: 0 0 .5rem;
}
.section .sub { color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 40rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: 0 4px 16px rgba(18,38,63,.04);
}
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--navy); font-weight: 700; margin-bottom: .75rem;
}
.card h3 { margin: 0 0 .4rem; font-size: 1.1rem; color: var(--navy-deep); }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.band {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #eef3f8; padding: 2.5rem 0; margin-top: 1rem;
}
.band h2 { color: #fff; margin: 0 0 .5rem; font-family: var(--display); }
.band p { color: #c9d6e6; margin: 0 0 1rem; max-width: 36rem; }
.band-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.band-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.btn-ghost-light {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; }

footer.site {
  border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; color: var(--ink-soft); font-size: .9rem;
}
footer.site .row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer.site a { color: var(--ink-soft); }

.legal { padding: 2rem 0 3rem; max-width: 720px; }
.legal h1 { font-family: var(--display); color: var(--navy-deep); }
.legal h2 { font-size: 1.15rem; margin-top: 1.5rem; }
