:root {
  --teal: #006d77;
  --deep-teal: #00545c;
  --light-teal: #eaf5f4;
  --charcoal: #20282c;
  --muted: #495a5f;
  --paper: #fff;
  --line: #d4e1e0;
  --gutter: clamp(20px, 5vw, 64px);
  --section-space: clamp(52px, 7vw, 96px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font: 18px/1.65 "Avenir Next", system-ui, sans-serif;
}

a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.btn:focus-visible, button:focus-visible { outline-color: var(--teal); }
.hero .btn:focus-visible { outline-color: var(--paper); }

h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(40px, 4.9vw, 66px); line-height: 1.04; letter-spacing: -.055em; }
h2 { font-size: clamp(32px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 20px; }
h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.02em; }
p:last-child { margin-bottom: 0; }

nav, .wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--gutter); }
section > .wrap { padding-block: var(--section-space); }

.preview { padding: 4px 8px; background: var(--light-teal); color: var(--muted); font-size: 16px; text-align: center; }

header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

[id] { scroll-margin-top: 140px; }

nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 2.8vw, 42px);
  padding-block: 4px;
}

.brand { display: block; }
.brand-logo { display: block; width: 166px; height: auto; aspect-ratio: 500 / 353; object-fit: contain; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(22px, 3vw, 42px); }
.links a { font-size: 18px; font-weight: 600; text-decoration: none; padding-block: 6px; }
.links a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 5px; }

.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--teal);
  color: var(--paper);
  font: 650 18px/1.25 "Avenir Next", system-ui, sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.btn:hover, button:hover { background: var(--deep-teal); }
.nav-quote { min-height: 54px; padding-inline: 26px; }

.eyebrow { margin-bottom: 10px; color: var(--teal); font-size: 16px; letter-spacing: .085em; font-weight: 700; text-transform: uppercase; }
.hero { position: relative; isolation: isolate; background: var(--teal); color: var(--paper); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 55%; }
.hero p { max-width: 43ch; text-wrap: pretty; }
.keep-together { white-space: nowrap; }
.hero .eyebrow { color: #dcf3f1; }
.hero .btn { background: var(--paper); color: var(--deep-teal); }
.hero .btn:hover { background: var(--light-teal); }
.hero .outline { background: transparent; color: var(--paper); border-color: #b6dfe0; }
.hero .outline:hover { background: var(--paper); color: var(--deep-teal); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-photo { position: absolute; inset: 0 0 0 auto; width: 51%; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), transparent 23%); pointer-events: none; }

.service-area { background: var(--light-teal); border-bottom: 1px solid var(--line); }
.service-area .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 24px; padding-block: 22px; }
.service-area .eyebrow { margin: 0; }
.state-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .46em; margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.35; letter-spacing: -.02em; font-weight: 700; text-align: center; }
.state-list span { white-space: nowrap; }
.state-list span[aria-hidden] { color: var(--teal); }

.cards { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; margin-top: 28px; }
.tile { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tile-primary { border-top: 4px solid var(--teal); }
.service-photo { display: block; width: 100%; height: clamp(186px, 17vw, 220px); object-fit: cover; background: var(--light-teal); }
.bond-photo { object-position: center top; }
.tile-primary .service-photo { height: calc(clamp(186px, 17vw, 220px) - 3px); }
.tile-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(20px, 2.4vw, 28px); }
.tile-body h3, .tile-body p { margin: 0; }
.coverage-list { margin: 0; padding-left: 1.15em; }
.coverage-list li::marker { color: var(--teal); }
.text-link { color: var(--deep-teal); font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.text-link:hover { text-decoration-thickness: 2px; }
.tile-body .text-link { margin-top: auto; }

.commercial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  margin-top: 22px;
  padding: clamp(20px, 3vw, 32px);
  border-left: 4px solid var(--teal);
  background: var(--light-teal);
}

.commercial h3 { margin-bottom: 6px; }
.commercial p { max-width: 66ch; }

.tint, #faq, footer { background: var(--light-teal); }
.split, .broker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.video-embed { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--charcoal); }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 26px; }
.steps div { border-top: 2px solid var(--teal); padding-top: 18px; }
.steps h3 { margin-bottom: 8px; }
.broker-section { border-top: 1px solid var(--line); }
.broker-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.broker-portrait { width: 100%; max-width: 360px; height: auto; display: block; border-radius: 8px; }
.broker-name { display: block; font-size: 20px; }
.broker-role { color: var(--muted); font-size: 16px; }

details { max-width: 80ch; border-bottom: 1px solid #b8cecd; padding: 16px 0; }
summary { cursor: pointer; font-weight: 650; }
summary::marker { color: var(--teal); }
details p { margin: 10px 0 0; }

#quote .split { align-items: start; }
.note { font-size: 16px; color: var(--muted); }
#quote .note { max-width: 48ch; }

form { display: grid; gap: 14px; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 8px; background: var(--light-teal); }
label { font-size: 16px; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; margin-top: 4px; border: 1px solid #82999b; border-radius: 4px; background: var(--paper); color: var(--charcoal); font: inherit; font-size: 18px; font-weight: 400; line-height: 1.35; }

footer .wrap { padding-block: 27px; }
footer p { margin-bottom: 6px; font-size: 16px; }

@media (max-width: 920px) {
  header { position: static; }
  [id] { scroll-margin-top: 20px; }
  nav { grid-template-columns: 1fr auto; row-gap: 0; padding-block: 4px 10px; }
  .brand-logo { width: 146px; }
  .links { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 6px; }
  .nav-quote { grid-column: 2; grid-row: 1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-primary { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .tile-primary .service-photo { height: 100%; min-height: 220px; }
}

@media (max-width: 680px) {
  h1 { font-size: clamp(36px, 9.7vw, 48px); }
  .links { justify-content: space-between; gap: 6px; }
  .nav-quote { padding-inline: 14px; }
  .hero > .wrap { padding-block: 44px 32px; }
  .hero-copy { max-width: none; }
  .hero-photo { position: relative; inset: auto; width: 100%; aspect-ratio: 930 / 661; max-height: 380px; }
  .hero-photo::after { background: linear-gradient(var(--teal), transparent 17%); }
  .service-area .wrap { flex-direction: column; align-items: center; }
  .state-list { font-size: clamp(18px, 5vw, 28px); }
  .cards, .split, .broker-grid, .steps, .commercial, .tile-primary { grid-template-columns: minmax(0, 1fr); }
  .tile-primary { grid-column: auto; }
  .tile-primary .service-photo, .service-photo { height: min(56vw, 280px); min-height: 0; }
}

@media (max-width: 420px) {
  .brand-logo { width: 128px; }
  nav { column-gap: 10px; }
}

@media (max-width: 380px) {
  .brand-logo { width: 116px; }
  .nav-quote { padding-inline: 10px; }
  .state-list { column-gap: .32em; }
}

@media (max-width: 350px) {
  .links a { font-size: 16px; letter-spacing: -.015em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, button { transition: none; }
}
