:root {
  --ink: #12202b;
  --muted: #51616e;
  --bg: #ffffff;
  --bg-alt: #f3f6f8;
  --navy: #0f2a3d;
  --teal: #1f7a80;
  --teal-dark: #155a5f;
  --line: #dbe3e8;
  --radius: 10px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid #f2b134; outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); font-size: 0.95rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--navy); text-decoration: none; }
nav { display: flex; gap: 20px; align-items: center; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--teal-dark); }
.nav-cta { color: var(--teal-dark) !important; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #17435c 60%, var(--teal) 130%); color: #fff; padding: 88px 0 96px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: #a9d6d9; }
.lede { font-size: 1.2rem; max-width: 640px; color: #dbe8ee; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  background: var(--teal); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--teal);
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Sections */
section { padding: 72px 0; }
/* Keep anchored sections from landing under the sticky header */
section[id] { scroll-margin-top: 64px; }
.services { background: var(--bg-alt); }
/* 6-column grid, cards span 2: equal widths and heights, and a short last row is centered */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 20px; margin-top: 24px; }
.card { grid-column: span 2; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
.card:nth-child(3n+1):last-child { grid-column: 3 / span 2; }
.group-title { margin-top: 40px; font-size: 1.25rem; color: var(--navy); }
.group-title:first-of-type { margin-top: 8px; }
.group-lede { color: var(--muted); max-width: 720px; margin-bottom: 0; }
.grid-essentials .card { border-top: 4px solid var(--teal); }
.card p { margin: 0; color: var(--muted); }
.card h3 { color: var(--navy); }

.contact { background: var(--bg-alt); text-align: center; }
.contact-line { margin: 24px 0; }
.contact .btn { font-size: 1.1rem; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .card, .card:nth-child(3n+1):nth-last-child(2) { grid-column: span 2; }
  .card:nth-child(odd):last-child { grid-column: 2 / span 2; }
}

@media (max-width: 560px) {
  .hero { padding: 56px 0 64px; }
  section { padding: 52px 0; }
  nav { gap: 12px; }
  nav a { font-size: 0.95rem; }
  .brand { font-size: 1rem; gap: 8px; }
  .site-header .wrap { flex-wrap: nowrap; gap: 8px; }
  .grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; margin-top: 16px; }
  .grid > .card:nth-child(n):nth-last-child(n) { grid-column: 1 / -1; padding: 18px 20px; }
  .card h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
  .card p { font-size: 0.95rem; line-height: 1.5; }
  .group-title { margin-top: 32px; }
}

@media (max-width: 380px) {
  .brand { white-space: nowrap; }
  .brand img { display: none; }
  nav { gap: 10px; }
  nav a { font-size: 0.9rem; }
}
