:root {
  --blue: #006fb9;
  --blue-hover: #005a96;
  --teal: #51bca8;
  --white: #ffffff;
  --black: #000000;
  --text: #54595f;
  --muted: #7a7a7a;
  --gray: #f5f5f5;
  --line: #dddddd;
  --danger: #b42318;
  --ok: #1f7a4d;
  --max: 1140px;
  --font: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--blue);
  padding: 8px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* Header — full-bleed brand blue bar */
.site-header {
  background: var(--blue);
  color: var(--white);
  padding: 10px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}
.logo-word {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}
.logo-tag {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.9;
  text-transform: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav a {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { text-decoration: underline; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--white);
  width: 44px;
  height: 44px;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Buttons — Safe Haven treatment: 15x35, 16/500, sharp corners, invert on hover */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  padding: 15px 35px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.btn:hover, .btn:focus {
  background: var(--white);
  color: var(--blue);
  text-decoration: none;
  outline: 2px solid var(--white);
  outline-offset: 0;
}
.btn-light {
  background: var(--white);
  color: var(--blue);
}
.btn-light:hover, .btn-light:focus {
  background: var(--white);
  color: var(--blue);
  outline: 2px solid var(--white);
}
.btn-block { width: 100%; }
.hero .btn:hover, .hero .btn:focus { outline-color: var(--white); }
.band .btn-light:hover, .band .btn-light:focus { outline-color: rgba(255,255,255,0.7); }

/* Hero with original dusk street scene + 45% black overlay */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(180deg, #0b2744 0%, #163a5c 38%, #2a4458 62%, #1a2e28 100%);
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.45;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  max-width: 760px;
}
.hero h1 {
  font-size: 55px;
  font-weight: 900;
  line-height: 3.5rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.01em;
}
.hero .lede {
  margin: 1rem 0 1.5rem;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
  max-width: 36rem;
}

/* Search bar */
.search-card {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr auto;
  gap: 8px;
  background: var(--white);
  padding: 10px;
  align-items: end;
}
.search-card label {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.search-card .field { min-width: 0; }
.search-card input,
.search-card select,
.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  padding: 12px 10px;
  min-height: 48px;
}
.search-card input:focus,
.search-card select:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}
.search-card .btn { min-height: 48px; }

/* Full-bleed color bands */
.band {
  background: var(--blue);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.band h2 {
  font-size: 40px;
  font-weight: 900;
  line-height: 2.5rem;
  text-transform: uppercase;
  color: var(--white);
}
.band p {
  margin: 1rem auto 0;
  max-width: 46rem;
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}
.band .actions { margin-top: 1.5rem; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.band-teal {
  background: var(--teal);
  color: var(--black);
  padding: 1.25rem 0;
  text-align: center;
}
.band-teal p {
  margin: 0 auto;
  max-width: 50rem;
  font-size: 18px;
  font-weight: 500;
}

/* Standard sections */
.section { padding: 3rem 0; }
.section-gray { background: var(--gray); }
.section h2,
.heading-xl,
.heading-lg {
  font-weight: 900;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
}
.heading-xl {
  font-size: 50px;
  line-height: 2.7rem;
}
.heading-italic {
  font-size: 65px;
  font-weight: 900;
  font-style: italic;
  line-height: 4rem;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
}
.heading-lg {
  font-size: 40px;
  line-height: 2.6rem;
}
.section .intro {
  text-align: center;
  max-width: 42rem;
  margin: 1rem auto 2rem;
  font-size: 18px;
  color: var(--black);
}
.kicker {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--black);
  text-decoration: none;
  min-height: 56px;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cat-card:hover, .cat-card:focus {
  border-color: var(--blue);
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--blue);
}
.cat-card svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cat-card span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: capitalize;
}

/* Directory / empty state */
.directory-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}
.directory-panel h3 {
  font-size: 28px;
  font-weight: 900;
  line-height: 2.2rem;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
}
.directory-panel .empty-copy {
  text-align: center;
  margin: 0.75rem 0 1.5rem;
  font-size: 16px;
  color: var(--black);
}
.meta-line {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* How it works */
.split {
  display: grid;
  gap: 1.5rem;
}
.step-card h3 {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.step-card ol {
  margin: 0;
  padding-left: 1.2rem;
}
.step-card li { margin: 0.5rem 0; color: var(--black); }
.step-card .btn { margin-top: 1.25rem; }

/* Trust */
.trust-grid {
  display: grid;
  gap: 1rem;
}
.trust-item {
  background: var(--white);
  border-top: 4px solid var(--blue);
  padding: 1.25rem 1rem;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.trust-item p { font-size: 15px; color: var(--black); }

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 1rem 0.25rem;
  color: var(--blue);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  font-size: 1.2rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 0.25rem 1rem;
  color: var(--black);
}

/* Forms */
.form label, .form .label {
  display: block;
  font-size: 16px;
  line-height: 20px;
  color: var(--blue);
  font-weight: 500;
  margin: 0 0 6px;
}
.form .row { margin-bottom: 14px; }
.form textarea { min-height: 120px; resize: vertical; }
.form .hint { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 12px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--white);
}
.checks label {
  color: var(--black);
  font-size: 14px;
  font-weight: 400;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  cursor: pointer;
}
.checks input { margin-top: 3px; flex: 0 0 auto; }
.yesno {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.yesno label {
  color: var(--black);
  font-weight: 400;
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.form-msg {
  margin-top: 12px;
  font-weight: 500;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }

/* Benefits on pro page */
.benefits {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.benefit h3 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

/* Legal */
.legal { max-width: 760px; }
.legal h1 {
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 2.6rem;
  margin-bottom: 0.75rem;
}
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 1.5rem; }
.legal h2 {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--blue);
  margin: 1.5rem 0 0.5rem;
  text-align: left;
}
.notice {
  background: var(--gray);
  border-left: 4px solid var(--blue);
  padding: 12px 14px;
  margin-bottom: 1.5rem;
  font-size: 15px;
}

/* Footer */
.site-footer {
  background: var(--blue);
  color: var(--white);
  padding: 2rem 0;
  font-size: 16px;
}
.site-footer a { color: var(--white); }
.foot-grid {
  display: grid;
  gap: 1.5rem;
}
.site-footer .logo-word { font-size: 1rem; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 14px;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .checks { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .directory-panel { padding: 2.5rem 2rem; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 50px; }
  .heading-italic { font-size: 50px; line-height: 3.2rem; }
  .heading-xl { font-size: 45px; }
}

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--blue);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
    z-index: 20;
  }
  .site-header { position: relative; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-top: 1px solid rgba(255,255,255,0.2); }
  .hero { min-height: 0; }
  .hero-inner { padding: 2.25rem 0; text-align: center; max-width: none; }
  .hero h1 { font-size: 35px; line-height: 2.5rem; }
  .hero .lede { font-size: 16px; margin-left: auto; margin-right: auto; }
  .search-card { grid-template-columns: 1fr; }
  .band { padding: 2.25rem 0; }
  .band h2 { font-size: 35px; line-height: 2.5rem; }
  .band p { font-size: 16px; }
  .heading-italic { font-size: 32px; line-height: 2.4rem; }
  .heading-xl, .heading-lg, .legal h1 { font-size: 30px; line-height: 2.2rem; }
  .section { padding: 2.25rem 0; }
  .section .intro { font-size: 16px; }
}

/* Two-path split: businesses | homeowners */
.split-paths {
  display: grid;
  grid-template-columns: 1fr;
}
.path {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.path img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.path-pro img { object-position: 50% 30%; }
.path-home img { object-position: 50% 40%; }
.path-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.4) 48%, rgba(0,0,0,0.28) 100%);
}
.path-copy {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 2.25rem;
  max-width: 34rem;
}
.path .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.path h2 {
  font-size: 36px;
  font-weight: 900;
  line-height: 2.35rem;
  text-transform: uppercase;
  color: var(--white);
}
.path .pitch {
  margin: 0.85rem 0 1.25rem;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
  max-width: 28rem;
}
.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

@media (min-width: 768px) {
  .split-paths { grid-template-columns: 1fr 1fr; }
  .path { min-height: 560px; }
  .path h2 { font-size: 40px; line-height: 2.55rem; }
  .path-copy { padding: 3rem 2.25rem; }
}

@media (max-width: 767px) {
  .path { min-height: 420px; }
  .path h2 { font-size: 30px; line-height: 2.15rem; }
}
