:root {
  --ink: #15202b;
  --navy: #102338;
  --navy-2: #1b3c57;
  --paper: #f4f6f5;
  --white: #ffffff;
  --line: #d5dee3;
  --muted: #52616d;
  --link: #0a4f70;
  --brass: #8a6232;
  --sand: #e6eeea;
  --danger: #8d2b2b;
  --ok: #1d5c3a;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --wrap: 1140px;
  --header: 78px;
  --shadow: 0 16px 40px rgba(16, 35, 56, 0.08);
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--link); text-underline-offset: 0.16em; }

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

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-weight: 640;
  letter-spacing: -0.028em;
  line-height: 1.18;
  margin: 0 0 0.55em;
}

p { margin: 0 0 0.9em; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

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

.header-main {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.brand img { height: 58px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 4px;
}

.site-nav a[aria-current="page"] {
  color: var(--link);
  box-shadow: inset 0 -2px 0 var(--link);
}

.site-nav a:hover { background: var(--sand); }

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--navy);
  color: white !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-phone:hover { background: var(--navy-2); color: white !important; }

.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 12px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.nav-toggle-lines {
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--navy), var(--navy)) 0 0 / 100% 2px,
    linear-gradient(var(--navy), var(--navy)) 0 5px / 100% 2px,
    linear-gradient(var(--navy), var(--navy)) 0 10px / 100% 2px;
  background-repeat: no-repeat;
}

.hero { padding: 42px 0 18px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 48px;
  align-items: end;
}

.kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 16px;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
  max-width: 14ch;
  margin-bottom: 16px;
}

.lede { font-size: 1.08rem; max-width: 46ch; color: #243240; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-2); color: white; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: white; color: var(--navy); }
.btn-wa { background: #0f6b45; color: white; }
.btn-wa:hover { background: #0c5738; color: white; }

.hero-figure { margin: 0; }
.hero-figure img,
.frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--sand);
}
.figure-note,
figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.scope {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
}

.scope a {
  display: block;
  padding: 18px 16px 18px 0;
  text-decoration: none;
  color: inherit;
  border-left: 1px solid var(--line);
}
.scope a:first-child { border-left: 0; padding-left: 0; }
.scope small {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  margin-bottom: 4px;
}
.scope strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.scope span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

.section { padding: 64px 0; }
.section-alt { background: white; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); max-width: 20ch; margin: 0; }
.section-head p { max-width: 42ch; color: var(--muted); margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sand); }

.callout {
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 14px;
  color: #243240;
}

.directory { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.directory li { border-bottom: 1px solid var(--line); }
.directory a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
}
.directory a:hover { color: var(--link); }
.dir-no { font-family: var(--serif); color: var(--brass); font-size: 18px; }
.directory strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.directory em { display: block; font-style: normal; color: var(--muted); font-size: 15px; margin-top: 2px; }
.dir-go { color: var(--link); font-weight: 700; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: white; padding: 18px 16px 8px; border-top: 2px solid var(--navy); }
.step b { display: block; font-family: var(--serif); color: var(--brass); font-weight: 500; margin-bottom: 6px; }

.band { background: var(--navy); color: white; padding: 56px 0; }
.band h2 { color: white; font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 18ch; }
.band p { color: #d5e2ea; max-width: 48ch; }
.band a { color: white; }
.band-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.band .btn-ghost { color: white; border-color: rgba(255,255,255,0.55); }
.band .btn-ghost:hover { background: transparent; color: white; }
.band .btn-primary { background: white; color: var(--navy); }
.band .btn-primary:hover { background: var(--sand); color: var(--navy); }

.page-hero { padding: 34px 0 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 18ch; }
.page-hero .lede { max-width: 62ch; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  padding-bottom: 64px;
  align-items: start;
}
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.3em; }
.prose > :first-child { margin-top: 0; }

.aside {
  position: sticky;
  top: calc(var(--header) + 16px);
  background: white;
  border: 1px solid var(--line);
  padding: 16px;
}
.aside h2 { font-size: 1.15rem; }
.aside .btn { width: 100%; margin-bottom: 8px; }
.aside p { color: var(--muted); font-size: 14.5px; }

.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: white; }
th, td { border: 1px solid var(--line); text-align: left; vertical-align: top; padding: 10px 12px; }
th { background: var(--navy); color: white; font-weight: 650; }
caption { text-align: left; font-weight: 700; margin-bottom: 8px; }

.faq details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin-top: 8px; }

.quote-form { background: white; border: 1px solid var(--line); padding: 18px; margin: 12px 0 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field span { font-size: 14px; font-weight: 700; }
.req { color: var(--danger); }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b7c4cc;
  background: white;
  padding: 10px 12px;
  border-radius: 0;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--link);
  outline-offset: 1px;
  border-color: var(--link);
}
.field-error { color: var(--danger); font-size: 13.5px; min-height: 0; }
.form-status { min-height: 1.4em; font-size: 15px; }
.form-status.is-ok { color: var(--ok); }
.form-note { color: var(--muted); font-size: 14.5px; }

.facts { list-style: none; padding: 0; margin: 0 0 1.2em; }
.facts li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.facts b { font-size: 14px; }
.phone-row { display: flex; flex-direction: column; gap: 4px; }

.related { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1em; list-style: none; }
.related a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  background: white;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
  font-size: 14.5px;
}

.region { margin: 0 0 22px; }
.region h2 { font-size: 1.25rem; }
.province-index { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.province-index a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px;
  background: white;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
}
.province-index a:hover { border-color: var(--link); color: var(--link); }

.districts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; margin: 0 0 1em; list-style: none; }
.districts li { background: white; border-top: 2px solid var(--navy); padding: 12px 12px 4px; }
.districts h3 { font-size: 1rem; margin-bottom: 6px; }

.site-footer { background: var(--navy); color: #d5e2ea; padding: 42px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 28px; }
.site-footer h2 { color: white; font-size: 15px; letter-spacing: 0; }
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 6px; }
.legal { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 26px; padding-top: 14px; color: #b7c8d2; }

.mobile-contact { display: none; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

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

@media print {
  .site-header, .mobile-contact, .aside, .quote-form, .band { display: none !important; }
  body { background: white; }
  a { color: black; }
}
