:root {
  --ink: #132238;
  --muted: #5f6f83;
  --line: #dbe4ee;
  --bg: #f4f7fa;
  --panel: #ffffff;
  --blue: #123f63;
  --blue-2: #0e5b82;
  --green: #1c7c54;
  --amber: #d97926;
  --soft-blue: #eaf3f8;
  --shadow: 0 18px 50px rgba(19, 34, 56, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.topbar {
  background: #0f2d46;
  color: #d7e6f0;
  font-size: 14px;
  padding: 9px 24px;
}

.topbar-inner,
.nav-inner,
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.nav-inner {
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--blue);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #1f7a8c);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: var(--muted);
}

.nav-cta {
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 10px 14px;
  border-radius: 7px;
  font-weight: 700;
}

.hero {
  background:
    linear-gradient(90deg, rgba(15,45,70,.92), rgba(15,45,70,.78)),
    url("/assets/hero-real-estate.jpg");
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 24px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: 38px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  color: #cde7f6;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 18px;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  font-size: 50px;
  line-height: 1.04;
  margin: 0 0 18px;
  max-width: 790px;
}

h2 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
}

.hero p,
.page-hero p {
  color: #e5eef5;
  font-size: 19px;
  margin: 0 0 28px;
  max-width: 690px;
}

.search-panel {
  background: white;
  color: var(--ink);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.25fr .8fr auto;
  gap: 10px;
  max-width: 790px;
}

.field label,
.lead-form label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.field input,
.field select,
.lead-form input,
.lead-form select,
.lead-form textarea,
.filters input,
.filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 15px;
  background: white;
  color: var(--ink);
  font-family: inherit;
}

.primary,
.lead-form button {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  background: var(--amber);
  color: white;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

.primary.small {
  min-height: 42px;
}

.primary.inline {
  display: inline-grid;
}

.hero-card {
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 20px;
  margin: 0 0 14px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.check-list span {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dff3e8;
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
}

.stats {
  border-top: 1px solid rgba(255, 255, 255, .22);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats div { padding-top: 22px; }
.stats strong { display: block; color: white; font-size: 24px; }
.stats span { color: #cde7f6; font-size: 14px; }

.section {
  padding: 58px 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 650px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.category-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.category-tile > span {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue-2);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1;
  overflow: hidden;
}

.category-tile h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
}

aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.provider-list {
  display: grid;
  gap: 14px;
}

.provider-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  box-shadow: 0 8px 20px rgba(19,34,56,.04);
}

.provider-card.featured {
  border-color: #aac8da;
  box-shadow: 0 14px 36px rgba(19,34,56,.10);
}

.provider-card h3 {
  margin: 8px 0 5px;
  font-size: 20px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.badge {
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 999px;
  background: #fafcff;
}

.badge.verified {
  color: var(--green);
  background: #edf8f2;
  border-color: #b9e4ca;
}

.provider-card p {
  margin: 8px 0;
  color: var(--muted);
}

.actions {
  width: 160px;
  display: grid;
  gap: 8px;
  align-content: center;
}

.button,
.secondary {
  height: 40px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.button {
  background: var(--blue);
  color: white;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--blue);
  background: white;
}

.lead-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  gap: 10px;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.lead-form:focus-within,
.lead-form:hover {
  scrollbar-color: #9fb9ca transparent;
}

.lead-form h2 {
  font-size: 22px;
}

.lead-form p {
  color: var(--muted);
  margin: 0 0 6px;
  font-size: 14px;
}

.lead-form textarea {
  min-height: 112px;
}

.form-note {
  font-size: 12px !important;
}

.privacy-check {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35;
  text-transform: none !important;
  margin-top: 2px;
}

.privacy-check input {
  width: 18px !important;
  min-height: 18px !important;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--blue);
}

.privacy-check a {
  color: var(--blue);
  font-weight: 800;
}

.notice {
  padding: 12px 14px;
  background: #e9f9ef;
  border: 1px solid #a7e0b8;
  border-radius: 8px;
}

.selected-provider {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid #b9d8e8;
  border-left: 4px solid var(--blue-2);
  border-radius: 8px;
  background: #eef7fb;
}

.selected-provider[hidden] {
  display: none;
}

.selected-provider span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.selected-provider strong {
  color: var(--blue);
  font-size: 15px;
}

.selected-provider button {
  justify-self: start;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--blue-2);
  padding: 2px 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.lead-form-pulse {
  animation: leadPulse .9s ease-out;
}

@keyframes leadPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 91, 130, .28);
    border-color: #9ac6da;
  }
  100% {
    box-shadow: 0 0 0 14px rgba(14, 91, 130, 0);
    border-color: var(--line);
  }
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-cloud a {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.step > div {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 14px;
}

.page-hero {
  background: linear-gradient(120deg, #0f2d46 0%, #173f5f 52%, #23536a 100%);
  color: white;
  padding: 58px 24px;
}

.page-hero .eyebrow {
  margin-bottom: 10px;
}

.filters {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.empty-state,
.legal .section-inner {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.legal h1 {
  color: var(--ink);
  font-size: 38px;
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.legal p {
  color: var(--muted);
  max-width: 860px;
}

.legal a {
  color: var(--blue);
  font-weight: 800;
}

footer {
  background: #0f2d46;
  color: #cbdcea;
  padding: 34px 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

footer a {
  color: white;
  margin-left: 16px;
}

@media (max-width: 920px) {
  nav { display: none; }
  .hero-inner,
  .layout {
    grid-template-columns: 1fr;
  }
  .search-panel,
  .filters {
    grid-template-columns: 1fr;
  }
  .stats,
  .category-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .lead-form {
    position: static;
  }
}

@media (max-width: 620px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .stats,
  .category-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .provider-card {
    grid-template-columns: 1fr;
  }
  .actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .hero-inner {
    padding-top: 44px;
  }
}
