html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  /* Offset in-page anchor jumps (#quote, #find, etc.) so targets land BELOW the sticky
     header instead of hiding under it. Applies to every anchor on every page. */
  scroll-padding-top: calc(var(--header-h, 64px) + 12px);
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============================================================
   Header — frosted-solid & sticky, stands out above the hero
   ============================================================ */
:root { --header-h: 64px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
          backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .06), 0 8px 24px -18px rgba(15, 23, 42, .55);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header .navbar { width: 100%; }
.site-header .navbar-brand { color: var(--brand-primary); font-size: 1.18rem; }
.site-header .nav-link { color: #334155; font-weight: 500; }
.site-header .nav-link:hover { color: var(--brand-primary); }
.site-header .header-cta { background: var(--brand-accent); color: #fff; border: 0; }
.site-header .navbar-toggler { border-color: rgba(15, 23, 42, .2); }
.site-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30,41,59,0.85)' stroke-linecap='round' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}

/* deepen the shadow slightly once the page scrolls under it */
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .08), 0 12px 30px -18px rgba(15, 23, 42, .6);
}

/* mobile: keep the bar off the screen edges + a solid dropdown panel when the menu opens */
@media (max-width: 767.98px) {
  .site-header .navbar { padding-left: 1rem; padding-right: 1rem; }
  .site-header .navbar-collapse.show, .site-header .navbar-collapse.collapsing {
    background: #fff;
    border-radius: 12px;
    padding: .5rem .85rem;
    margin-top: .5rem;
    box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .4);
  }
  /* the lead form stacks under the hero copy on mobile — give it a little breathing room */
  .hero #quote { margin-top: 1.5rem; }
}

/* ============================================================
   Iteration 1 — Hero
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 12% -20%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}
/* faint dotted texture, faded toward the bottom, for depth without noise */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
          mask-image: linear-gradient(to bottom, #000, transparent 75%);
  pointer-events: none;
}
/* Optional hero background photo: the brand gradient becomes a translucent overlay so text stays readable. */
.hero.has-image {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--brand-primary) 86%, transparent),
      color-mix(in srgb, var(--brand-accent) 72%, transparent)),
    var(--hero-img) center / cover no-repeat;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero .lead {
  color: rgba(255, 255, 255, .92);
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

/* Unsplash attribution — required but kept deliberately faint and small. */
.photo-credit { font-size: .66rem; opacity: .5; margin-top: .15rem; }

/* Disclosed-provider trust strip (sits directly under the hero on city/service pages) */
.provider-strip {
  background: color-mix(in srgb, var(--brand-primary) 6%, #fff);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  color: #334155;
  padding: .65rem 0;
  font-size: .95rem;
}
.provider-strip strong { color: var(--brand-primary); }
.provider-ico { display: inline-flex; color: var(--brand-accent); }
.provider-ico .ico { width: 20px; height: 20px; }
.provider-logo { height: 30px; width: auto; max-width: 150px; object-fit: contain; }

/* ============================================================
   Iteration 2 — Color rhythm + icons
   ============================================================ */
/* Section headings: consistent weight + a short accent underline so the brand color
   threads through a clean white canvas (instead of repeating the full gradient). */
main section.container > h2 {
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
main section.container > h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-accent);
  margin-top: .55rem;
}

/* Cards: softer, lifted; link-cards get a subtle hover. */
.card {
  border-color: rgba(15, 23, 42, .08);
  border-radius: 14px;
}
a.card {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-accent) 40%, transparent);
  box-shadow: 0 14px 28px -14px rgba(15, 23, 42, .28);
}

/* Panel = the boxed items in a "cards" section. */
.panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

/* Icons */
.ico { width: 24px; height: 24px; display: block; }
.ico-sm { width: 18px; height: 18px; }
.ico-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 12%, #fff);
}

/* Trust-signal strip — slim credibility band directly under the hero */
.trust-strip {
  background: color-mix(in srgb, var(--brand-primary) 5%, #fff);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  padding: .7rem 0;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #334155;
  font-size: .95rem;
  font-weight: 500;
}
.trust-item strong { color: var(--brand-primary); }
.trust-ico { display: inline-flex; color: var(--brand-accent); }
.trust-ico .ico { width: 18px; height: 18px; }

/* "How it works" — larger, circular step badges centered above each step */
.how-it-works .hiw-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}
.how-it-works .hiw-badge .ico { width: 28px; height: 28px; }
