:root {
  --ink: #1b2430;
  --ink-soft: #4a5565;
  --muted: #6b7584;
  --line: #dde2e8;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --accent: #1f3a5f;
  --accent-hover: #162b47;
  --ok: #1e6b46;
  --err: #a33a2b;
  --ok-bg: #e8f3ec;
  --err-bg: #f8e9e6;
  --on-accent: #ffffff;
  --input-bg: #ffffff;
  --input-border: #c4ccd6;
  --max: 1080px;
  --radius: 6px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e9ee;
    --ink-soft: #b4bcc8;
    --muted: #8a94a3;
    --line: #2b333e;
    --bg: #12161c;
    --bg-alt: #181d25;
    --accent: #8fb3e0;
    --accent-hover: #b3cbeb;
    --on-accent: #0f1620;
    --ok: #7fd1a3;
    --err: #f0a597;
    --ok-bg: #16291f;
    --err-bg: #2e1a17;
    --input-bg: #0f1318;
    --input-border: #3a4350;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin: 1.8em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand span { color: var(--muted); font-weight: 400; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Sections */
main { display: block; }

.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 0 28px;
}

.page-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 36px;
}
.page-head h1 { margin-bottom: 0.3em; }
.page-head p { color: var(--ink-soft); margin: 0; max-width: 680px; }

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2:first-child { margin-top: 0; }

/* Keep text at a readable width, but left-aligned with the page header */
.prose > * { max-width: 760px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--bg);
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--ink-soft); }

.service {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.service:last-child { border-bottom: 0; }
.service h2 { margin-top: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 0;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  margin-left: 10px;
}
.btn-secondary:hover { background: var(--bg); color: var(--accent-hover); }

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
}
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.form-row .optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--input-bg);
}
input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.cf-turnstile { min-height: 65px; margin-bottom: 16px; }
.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  display: none;
}
.form-status.ok { display: block; background: var(--ok-bg); color: var(--ok); }
.form-status.err { display: block; background: var(--err-bg); color: var(--err); }

.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.contact-card h2 { font-size: 1.25rem; margin-top: 0; }
.contact-card p { margin: 0 0 14px; }
.contact-card .label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 36px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.site-footer p { margin: 0 0 4px; }
.site-footer .copyright { margin-top: 14px; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-footer a { color: var(--ink-soft); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 40px 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .btn-secondary { margin-left: 0; margin-top: 10px; }
}
