:root {
  --navy: #102033;
  --navy-2: #1b3348;
  --ink: #1b2c34;
  --muted: #4a5d66;
  --line: #d5e1dc;
  --paper: #f4f7f5;
  --white: #ffffff;
  --teal: #0e6b5c;
  --teal-dark: #0a5247;
  --teal-soft: #e5f3ef;
  --sand: #8d6b32;
  --shadow: 0 16px 40px rgba(16, 32, 51, 0.08);
  --max: 1140px;
  --header: 92px;
  --radius: 16px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.0625rem;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

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

h1, h2, h3, h4 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2rem, 4vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus { top: 0.6rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  background: var(--navy);
  color: #d7e4ea;
  font-size: 0.92rem;
}

.topbar-inner,
.header-inner,
.footer-grid,
.hero-grid,
.split,
.card-grid,
.stat-grid,
.step-grid,
.link-grid {
  display: grid;
  gap: 1rem;
}

.topbar-inner {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 42px;
}

.topbar p { margin: 0; }

.topbar a { color: white; text-decoration: none; font-weight: 650; }

.topbar-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; justify-content: flex-end; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header);
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  display: block;
  height: 78px;
  width: auto;
  max-width: min(340px, 46vw);
  object-fit: contain;
}

.nav-toggle,
.sub-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  min-height: 44px;
  padding: 0 0.9rem;
  font: inherit;
  color: var(--navy);
}

nav ul { list-style: none; margin: 0; padding: 0; }

#site-nav > ul {
  display: flex;
  justify-content: flex-end;
  gap: 0.2rem;
  align-items: center;
}

#site-nav a {
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  border-radius: 999px;
}

#site-nav a[aria-current="page"],
#site-nav a:hover { background: var(--teal-soft); }

.has-sub { position: relative; }

.has-sub > ul {
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 0;
  min-width: 280px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  display: none;
}

.has-sub:hover > ul,
.has-sub:focus-within > ul,
.has-sub.open > ul { display: block; }

.has-sub > ul a { width: 100%; border-radius: 10px; }

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.btn-navy { background: var(--navy); color: white; }
.btn-teal { background: var(--teal); color: white; }
.btn-line { background: transparent; color: var(--navy); border-color: #b7c9c2; }
.btn-white { background: white; color: var(--navy); }
.btn-navy:hover, .btn-teal:hover, .btn-white:hover { color: var(--navy); filter: brightness(1.08); }
.btn-white:hover { background: var(--teal-soft); }

.cta-row, .hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0; }

.hero { padding: 3.2rem 0 2.4rem; }

.hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2.5rem; }

.eyebrow {
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.lede { font-size: 1.15rem; color: var(--muted); }

.figure-card, .panel, .card, .note, .faq, .form, .table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.figure-card { overflow: hidden; }
.figure-card img { width: 100%; object-fit: cover; }
.figure-card figcaption, .caption { padding: 0.8rem 1rem 1rem; color: var(--muted); font-size: 0.92rem; }

.section { padding: 4.2rem 0; }
.section-head { max-width: 720px; margin-bottom: 1.6rem; }
.section-head p:last-child { color: var(--muted); }

.band {
  background:
    radial-gradient(circle at 10% 20%, rgba(14, 107, 92, 0.16), transparent 28%),
    linear-gradient(160deg, #102033, #1a3d46 70%);
  color: white;
}

.band h2, .band h3 { color: white; }
.band p { color: #d5e3e8; }

.card-grid { grid-template-columns: repeat(3, 1fr); }
.card { overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card p { color: var(--muted); margin: 0; }
.card a.more { margin-top: auto; font-weight: 700; }

.stat-grid { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 1.2rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; }
.stat strong { display: block; font-size: 1.2rem; margin-bottom: 0.3rem; }

.split { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }

.step-grid { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.step { background: white; border-radius: 14px; padding: 1rem; border: 1px solid var(--line); }
.step span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-weight: 750; margin-bottom: 0.5rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; color: var(--muted); font-size: 0.92rem; margin: 1.2rem 0; }
.crumbs a { color: var(--muted); }

.prose { max-width: 760px; }
.prose > * + * { margin-top: 0; }
.wide { max-width: none; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--line); }
th { background: #f7fbfa; color: var(--navy); }

.table-wrap { overflow-x: auto; }

.faq details { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq { padding: 0.4rem 1.2rem; }

.form { padding: 1.2rem; display: grid; gap: 0.85rem; }
label { display: grid; gap: 0.35rem; font-weight: 650; color: var(--navy); }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid #c5d4ce;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  background: white;
  min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
.hint, .form-status { color: var(--muted); font-weight: 450; font-size: 0.95rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 450; }
.check input { width: auto; min-height: 1.1rem; margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.note { padding: 1rem 1.1rem; background: #f8f4ea; border-color: #eadcbf; }
.note strong { color: var(--navy); }

.link-grid { grid-template-columns: repeat(3, 1fr); }
.city-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; }
.city-list a, .pill-list a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  text-decoration: none;
  color: var(--navy);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.city-list a:hover, .pill-list a:hover { border-color: var(--teal); background: var(--teal-soft); }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-list a { border-radius: 999px; }

.site-footer { background: var(--navy); color: #d5e2e8; padding: 3rem 0 1.4rem; margin-top: 2rem; }
.site-footer h2, .site-footer h3 { color: white; font-family: "Segoe UI", sans-serif; font-size: 1rem; }
.site-footer a { color: white; text-decoration: none; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; }
.site-footer ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 0.35rem; }
.legal { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); color: #b7c8d0; font-size: 0.92rem; }

.dock {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 12;
  background: white;
  border-top: 1px solid var(--line);
  padding: 0.55rem;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.dock a { text-decoration: none; }

.cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(420px, calc(100% - 2rem));
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
  z-index: 13;
}
.cookie[hidden] { display: none; }

.contour {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='80' viewBox='0 0 180 80'><path d='M0 50c20-16 35-16 50 0s30 16 45 0 25-16 45 0 20 16 40 0' fill='none' stroke='%230e6b5c' stroke-opacity='0.13' stroke-width='1.4'/><path d='M0 28c20-12 35-12 50 0s30 12 45 0 25-12 45 0 20 12 40 0' fill='none' stroke='%23102033' stroke-opacity='0.08' stroke-width='1.2'/></svg>");
}

:focus-visible { outline: 3px solid #0e6b5c; outline-offset: 2px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-call { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 64px; max-width: 68vw; }
  #site-nav {
    display: none;
    position: fixed;
    z-index: 30;
    top: var(--header-stack, 118px);
    right: 0;
    bottom: 0;
    left: 0;
    background: white;
    overflow: auto;
    padding: 0.6rem 1rem 6rem;
    border-top: 1px solid var(--line);
  }
  #site-nav.open { display: block; }
  #site-nav > ul, .has-sub > ul { display: grid; position: static; min-width: 0; box-shadow: none; border: 0; padding: 0; }
  .has-sub > ul { display: none; padding-left: 0.6rem; }
  .has-sub.open > ul { display: grid; }
  .sub-toggle { display: inline-flex; margin-left: 0.4rem; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > a { flex: 1; }
  .hero-grid, .split, .card-grid, .stat-grid, .step-grid, .footer-grid, .link-grid, .form-row { grid-template-columns: 1fr; }
  .city-list { grid-template-columns: 1fr 1fr; }
  .topbar-inner { grid-template-columns: 1fr; padding: 0.45rem 0; }
  .card img { height: 210px; }
  .dock { display: grid; }
  body { padding-bottom: 76px; }
  .cookie { bottom: 84px; }
}

@media (max-width: 720px) {
  .topbar-links a[href^="mailto:"] { display: none; }
}

@media (max-width: 640px) {
  .city-list { grid-template-columns: 1fr; }
  .wrap { width: min(var(--max), calc(100% - 1.25rem)); }
  .section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
