:root {
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --fg: #16202b;
  --muted: #566372;
  --brand: #0b4f7c;
  --brand-hover: #093f63;
  --brand-fg: #ffffff;
  --accent: #1a8f6b;
  --border: #dbe2e9;
  --error: #b42318;
  --card: #ffffff;
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151c;
    --bg-alt: #151d26;
    --fg: #e6ebf0;
    --muted: #9aa8b6;
    --brand: #5fb2e8;
    --brand-hover: #84c6f0;
    --brand-fg: #08131c;
    --accent: #4cc79e;
    --border: #26323e;
    --error: #f97066;
    --card: #17202a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; width: 100%; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--fg); white-space: nowrap; }
.brand-mark { color: var(--brand); }
nav { display: flex; align-items: center; gap: 4px; }
nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); background: var(--bg-alt); }
nav a.nav-cta { background: var(--brand); color: var(--brand-fg); }
nav a.nav-cta:hover, nav a.nav-cta[aria-current="page"] { background: var(--brand-hover); color: var(--brand-fg); }

/* Buttons */
.button {
  display: inline-block; padding: 12px 22px; border-radius: 8px; border: 0;
  background: var(--brand); color: var(--brand-fg); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--brand-hover); color: var(--brand-fg); }
.button-secondary { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.button-secondary:hover { background: var(--bg-alt); color: var(--brand-hover); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }

/* Sections */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero h1 { max-width: 18ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.page-head { padding: 3rem 0 1rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.prose { max-width: 70ch; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  display: block; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--fg); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--fg); }
.card h3 { color: var(--brand); }
.card p { color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.contact-info a { word-break: break-word; }
.cta-box { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }

/* Services page */
.service { padding: 2rem 0; border-bottom: 1px solid var(--border); scroll-margin-top: 16px; }
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: .4em; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 560px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--fg);
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.has-error input, .has-error textarea { border-color: var(--error); }
.error, .form-error { color: var(--error); margin: 6px 0 0; font-size: .95rem; }
.form-error { margin-bottom: 1rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 24px; border-radius: var(--radius); background: var(--bg-alt); border-left: 4px solid var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); color: var(--muted); font-size: .95rem; padding: 2rem 0; }
.site-footer strong { color: var(--fg); }
.site-footer p { margin: .25rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.copyright { grid-column: 1 / -1; font-size: .85rem; }

@media (max-width: 760px) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  nav a { padding: 6px 10px; }
}
