:root {
  --navy: #0e2744;
  --navy-2: #16365c;
  --ink: #17232c;
  --anthracite: #24313a;
  --muted: #3e4e58;
  --line: #d5e0e2;
  --paper: #f5f7f7;
  --white: #ffffff;
  --teal: #0c6570;
  --teal-2: #12808c;
  --focus: #0a7f86;
  --header: 64px;
  --wrap: 1160px;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 0.18em; }

a:hover { color: var(--navy); }

p { margin: 0 0 1rem; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.7rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 100;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.wrap-wide {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 39, 68, 0.96);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-bar {
  height: var(--header);
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  flex: 0 0 auto;
  order: 1;
  height: 34px;
  max-width: 120px;
}

.logo img {
  height: 34px;
  width: auto;
  max-height: 34px;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.logo-mark { flex: none; }

.logo strong,
.logo small {
  display: block;
  font-family: var(--sans);
  letter-spacing: 0.08em;
}

.logo strong {
  font-size: 0.98rem;
  font-weight: 650;
  text-transform: uppercase;
}

.logo small {
  color: #b7d7db;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-toggle,
.sub-toggle,
.faq-item button,
.header-call,
.btn {
  font-family: inherit;
}

.nav-toggle {
  order: 3;
  margin-left: 0.45rem;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: white;
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  order: 4;
  display: none;
  position: absolute;
  inset: var(--header) 0 auto 0;
  background: var(--navy);
  max-height: calc(100vh - var(--header));
  overflow: auto;
  padding: 0.4rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav.is-open { display: block; }

.site-nav a,
.sub-toggle {
  color: white;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  cursor: pointer;
}

.site-nav a[aria-current="page"] { color: #9fd7de; }

.site-nav li { list-style: none; }

.site-nav ul { margin: 0; padding: 0; }

.sub-menu {
  display: none;
  background: #0b2038;
  padding-bottom: 0.4rem;
}

.has-sub.is-open .sub-menu { display: block; }

.sub-menu a {
  padding-left: 1.6rem;
  color: #d5e6ea;
  font-size: 0.96rem;
}

.header-call {
  order: 2;
  display: inline-flex;
  margin-left: auto;
  color: white;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
}

.header-call:hover { color: white; background: rgba(255, 255, 255, 0.08); }

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: end;
  color: white;
  background: var(--navy);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 34, 0.88) 0%, rgba(8, 20, 34, 0.55) 48%, rgba(8, 20, 34, 0.15) 100%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.15), rgba(8, 20, 34, 0.35));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0 7.6rem;
  width: min(760px, calc(100% - 2rem));
  margin-left: max(1rem, calc((100% - var(--wrap)) / 2));
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #9fd7de;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero h1 { color: white; max-width: 14ch; }

.lede, .hero .lede { font-size: 1.12rem; max-width: 42rem; }

.hero .lede { color: #e6eef0; }

.actions, .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: #094f57; color: white; }
.btn-ghost { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: white; color: var(--navy); }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: #09192d; color: white; }
.btn-line { background: white; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }

.callout {
  background: var(--navy);
  color: white;
}

.callout-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.3rem 0;
}

.callout a { color: white; font-weight: 650; text-decoration: none; font-size: 1.35rem; }
.callout p { margin: 0; color: #d5e4e8; }
.callout-nums { display: grid; gap: 0.15rem; }
.callout-nums .backup { font-size: 0.95rem; font-weight: 500; color: #d5e4e8; }

.section { padding: 4.2rem 0; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: #e7eef1; }
.section-navy h2, .section-navy h3 { color: white; }

.kicker {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.service-feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.service-feature img { width: 100%; object-fit: cover; }

.service-list {
  display: grid;
  gap: 0;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list a {
  display: grid;
  gap: 0.2rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.service-list a:hover h3 { color: var(--teal); }
.service-list h3 { margin: 0; font-size: 1.28rem; }
.service-list p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.figure-frame {
  background: white;
  border: 1px solid var(--line);
  padding: 0.6rem;
}

.figure-frame svg, .figure-frame img { width: 100%; height: auto; }

figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  display: grid;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.steps b {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--teal);
  line-height: 1;
}

.gallery {
  display: grid;
  gap: 0.8rem;
}

.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 240px; object-fit: cover; }
.gallery figcaption {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.05rem;
  margin-top: 0.45rem;
}

.refs {
  display: grid;
  gap: 1.6rem;
}

.refs ul { margin: 0; padding-left: 1.1rem; }
.refs li { margin: 0.25rem 0; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1rem 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item button span[aria-hidden] { color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq-item .faq-a { display: none; padding: 0 0 1rem; color: var(--anthracite); }
.faq-item.is-open .faq-a { display: block; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }

.page-hero {
  background:
    radial-gradient(900px 280px at 90% -10%, rgba(18, 128, 140, 0.18), transparent 60%),
    var(--navy);
  color: white;
  padding: 2.4rem 0 2.6rem;
}

.page-hero h1 { color: white; max-width: 18ch; }
.page-hero p { color: #d7e4e8; max-width: 40rem; }

.crumb-bar { background: var(--navy); padding: 1rem 0 0; }
.crumbs { font-size: 0.92rem; margin: 0; color: #b7c9d0; }
.crumbs a { color: #d5eef1; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.98rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

th { color: var(--navy); font-weight: 650; background: #eef4f4; }

.table-wrap { overflow-x: auto; }

.contact-panel {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 0 0;
}

.contact-panel a.big-link {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
}

.note-list { padding-left: 1.1rem; }

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin-top: 0.6rem;
}

.related a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
}

.site-footer {
  background: #101920;
  color: #d5e0e4;
  padding: 3rem 0 6.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

.site-footer a { color: #e7f2f4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 {
  color: white;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.legal { margin-top: 2rem; color: #9aadb4; font-size: 0.92rem; }

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-top: 1px solid var(--line);
}

.mobile-bar a {
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 0.4rem calc(0.85rem + env(safe-area-inset-bottom));
  font-weight: 650;
  color: var(--navy);
}

.mobile-bar a + a { background: var(--teal); color: white; }
.mobile-bar a:hover { color: inherit; }

.province-grid {
  display: grid;
  gap: 0.4rem 1rem;
}

.province-grid a { text-decoration: none; color: var(--navy); }
.province-grid a:hover { color: var(--teal); }

@media (min-width: 720px) {
  .callout-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .service-feature, .split { grid-template-columns: 1.1fr 0.9fr; }
  .gallery { grid-template-columns: 1.4fr 1fr; }
  .gallery figure:first-child { grid-row: span 2; }
  .gallery figure:first-child img { height: 100%; min-height: 420px; }
  .refs { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .province-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer { padding-bottom: 3rem; }
  .mobile-bar { display: none; }
}

@media (max-width: 420px) {
  .header-call { font-size: 0.68rem; padding: 0.32rem 0.42rem; }
}

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .header-call { order: 3; margin-left: 0.4rem; font-size: 1rem; padding: 0.55rem 0.9rem; }
  .site-nav { order: 2; }
  .hero { min-height: 78vh; }
  .hero-content { padding: 7.5rem 0 3.2rem; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    margin-left: auto;
  }
  .site-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }
  .site-nav a,
  .sub-toggle {
    width: auto;
    padding: 0.45rem 0.65rem;
  }
  .has-sub { position: relative; }
  .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    padding: 0.4rem 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  }
  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu,
  .has-sub.is-open .sub-menu { display: block; }
  .sub-menu a { padding: 0.55rem 1rem; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .service-list a { padding-right: 1.4rem; }
  .service-list a:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1.5rem; }
  .service-list a:nth-child(even) { padding-left: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
