/* Look and feel v1 (step 26). System fonts only; all images are self-hosted SVG. */
:root {
  --navy: #0b2545;
  --blue: #1f5fbf;
  --teal: #13a89e;
  --teal-strong: #0d7f78; /* white text on it: 4.86:1 (WCAG AA); #13a89e was 2.95 (Lighthouse, step 16) */
  --teal-text: #0d7f78;   /* teal text on the light background */
  --amber: #e8893b;
  --text: #1d2430;
  --muted: #55607a;
  --bg: #ffffff;
  --band: #f2f6fc;
  --card: #ffffff;
  --line: #d9e2f0;
  --error: #b3261e;
  --link: #1f5fbf;
  --shadow: 0 6px 24px rgba(11, 37, 69, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e9ef;
    --muted: #a8b3c7;
    --bg: #0d1420;
    --band: #121c2c;
    --card: #172338;
    --line: #2a3a55;
    --error: #ff8a80;
    --teal-text: #13a89e;  /* on the dark background the brighter teal reads well */
    --link: #8fb8ff;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--bg); padding: 0.5rem; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4.5rem 0; scroll-margin-top: 4.5rem; }
.band { background: var(--band); }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 0.5rem; }
h2::after { content: ""; display: block; width: 3rem; height: 4px; margin-top: 0.6rem; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--amber)); }
.section-lead { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.site-header ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--teal-text); } /* 4.86:1, not 2.95:1 (critic L-4) */
.site-header nav a.nav-cta { background: var(--teal-strong); color: #ffffff; padding: 0.35rem 0.9rem; border-radius: 999px; }
.site-footer { background: var(--navy); color: #c9d6ea; padding: 1.5rem 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; }
.footer-row p { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; }
.site-footer a { color: #ffffff; }

/* Hero */
.hero {
  color: #ffffff;
  background: url("/static/img/hero-bg.svg") center / cover no-repeat, linear-gradient(135deg, #0b2545 0%, #133b74 55%, #1f5fbf 100%);
  padding: 5rem 0 5.5rem;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: #7fd3cc; margin: 0 0 0.75rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: #dbe6f6; max-width: 34rem; }
.outcomes { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.pill { padding: 0.35rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; }
.pill::before { margin-right: 0.4rem; }
.pill-money { background: #f4a261; color: #3a1d00; }
.pill-money::before { content: "$"; }
.pill-save { background: var(--teal-strong); color: #ffffff; }
.pill-save::before { content: "↓"; }
.pill-risk { background: #ffffff; color: var(--navy); }
.pill-risk::before { content: "✓"; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.hero-art { justify-self: center; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25)); }

/* Buttons */
.button, button { display: inline-block; border: 0; border-radius: 0.5rem; padding: 0.7rem 1.3rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--blue); color: #ffffff; }
.button-accent { background: #f4a261; color: #2b1600; }
.button-accent:hover { background: #f7b47c; }
.button-ghost { background: transparent; color: #ffffff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.12); }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.6; cursor: wait; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 0.9rem; padding: 1.5rem; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:nth-child(3n + 2) { border-top-color: var(--blue); }
.card:nth-child(3n) { border-top-color: var(--amber); }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11, 37, 69, 0.14); }
.card h3 { margin: 1rem 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0 0 1rem; color: var(--muted); }
.icon { display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--band); color: var(--muted); border: 1px solid var(--line); }

/* How we work */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: none; }
.step { position: relative; padding: 1.5rem; border-radius: 0.9rem; background: linear-gradient(160deg, color-mix(in srgb, var(--teal) 10%, var(--card)), var(--card)); border: 1px solid var(--line); }
.step h3 { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 0.4rem; }
.step p { margin: 0; color: var(--muted); }
.step-no { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--navy); color: #ffffff; font-size: 0.95rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2.5rem; }
.about-art { justify-self: center; border-radius: 1rem; box-shadow: var(--shadow); }

/* Contact */
#contact { background: linear-gradient(180deg, var(--bg), var(--band)); }
.contact-wrap { max-width: 44rem; }
#contact-form, .success { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 1.75rem; box-shadow: var(--shadow); }
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.field input[type="checkbox"] + label { display: inline; font-weight: 400; }
input, select, textarea { width: 100%; padding: 0.6rem 0.7rem; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 0.5rem; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
input[type="checkbox"] { width: auto; accent-color: var(--teal); }
[aria-invalid="true"] { border-color: var(--error); }
.error { display: block; color: var(--error); min-height: 1.2em; font-size: 0.9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem; border-radius: 0.6rem; background: var(--band); border: 1px solid var(--line); }
.success { font-weight: 700; color: var(--teal-text); }
#form-status { min-height: 1.5em; font-weight: 600; }

/* Simple content pages (privacy, 404) */
.page { padding-top: 3rem; padding-bottom: 4rem; max-width: 46rem; }
.muted { color: var(--muted); font-size: 0.9rem; }

/* Small screens */
@media (max-width: 52rem) {
  section { scroll-margin-top: 8.5rem; } /* the wrapped sticky header is about 126 px tall (critic L-2) */
  .hero-grid, .about-grid { grid-template-columns: minmax(0, 1fr); } /* 1fr would grow to the widest image or word */
  .hero-art { max-width: min(22rem, 100%); }
  .about-art { max-width: min(24rem, 100%); }
  section { padding: 3rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
