/* Home Pro Connection */
:root {
  --hpc-bg: #f4f6f8;
  --hpc-surface: #ffffff;
  --hpc-text: #1a2332;
  --hpc-muted: #5c6b7a;
  --hpc-accent: #0d6efd;
  --hpc-accent-hover: #0b5ed7;
  --hpc-accent-soft: #e7f1ff;
  --hpc-border: #e2e8f0;
  --hpc-success: #0f766e;
  --hpc-radius: 12px;
  --hpc-shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --hpc-max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--hpc-text);
  background: var(--hpc-bg);
}

/* Max-width + horizontal padding shared with header so logo, body copy, and footer line up. */
.hpc-container {
  width: 100%;
  max-width: var(--hpc-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

a {
  color: var(--hpc-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.hpc-skip {
  position: absolute;
  left: -9999px;
}
.hpc-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--hpc-surface);
  box-shadow: var(--hpc-shadow);
}

.hpc-header {
  background: var(--hpc-surface);
  border-bottom: 1px solid var(--hpc-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.hpc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.hpc-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--hpc-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.hpc-logo__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.hpc-logo:hover {
  text-decoration: none;
  color: var(--hpc-accent);
}

.hpc-logo:hover .hpc-logo__icon {
  opacity: 0.92;
}

.hpc-header__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hpc-phone {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--hpc-success);
  text-decoration: none;
  white-space: nowrap;
}
.hpc-phone:hover {
  text-decoration: underline;
}

.hpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.hpc-btn--primary {
  background: var(--hpc-accent);
  color: #fff;
}
.hpc-btn--primary:hover {
  background: var(--hpc-accent-hover);
  color: #fff;
  text-decoration: none;
}

.hpc-btn--ghost {
  background: transparent;
  color: var(--hpc-accent);
  border: 2px solid var(--hpc-accent);
}
.hpc-btn--ghost:hover {
  background: var(--hpc-accent-soft);
  text-decoration: none;
}

.hpc-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #0f2744 0%, #1a4a6e 45%, #0d6efd 120%);
  color: #fff;
  padding: 2.5rem 0 3rem;
}

.hpc-hero__map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #1a3350;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hpc-hero--map .hpc-hero__map {
  opacity: 1;
}

.hpc-hero__map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #1a3350;
  font-family: inherit;
}

.hpc-hero__map .leaflet-control-attribution {
  font-size: 10px;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #334155;
}

.hpc-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(15, 39, 68, 0.58) 0%,
    rgba(26, 74, 110, 0.52) 45%,
    rgba(13, 110, 253, 0.48) 120%
  );
}

.hpc-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hpc-hero__inner {
    grid-template-columns: 1fr 400px;
    align-items: center;
  }
}

.hpc-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hpc-hero__lead {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 36ch;
}

.hpc-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hpc-trust li {
  margin: 0;
  padding: 0;
}

.hpc-trust__btn {
  appearance: none;
  margin: 0;
  border: none;
  cursor: default;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background: #15803d;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.hpc-trust__btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hpc-trust__btn:focus:not(:focus-visible) {
  outline: none;
}

.hpc-panel {
  background: var(--hpc-surface);
  color: var(--hpc-text);
  border-radius: var(--hpc-radius);
  padding: 1.5rem;
  box-shadow: var(--hpc-shadow);
}

.hpc-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.hpc-panel h2.hpc-hvac-quote-title {
  text-align: center;
  font-size: clamp(1.55rem, 3.8vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hpc-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #fff8e6;
  border: 1px solid #f5d67a;
  border-radius: 8px;
  color: #7a5c00;
  font-size: 0.9rem;
}

.hpc-quote-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.hpc-subheading {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hpc-text);
  border-bottom: 1px solid var(--hpc-border);
  padding-bottom: 0.35rem;
}

.hpc-subheading:first-of-type {
  margin-top: 0;
}

.hpc-fieldset-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hpc-muted);
  margin-bottom: 0.5rem;
}

.hpc-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hpc-radio-label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--hpc-text);
  cursor: pointer;
}

.hpc-errors {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 0.9rem;
}

.hpc-errors p {
  margin: 0.25rem 0;
}

.hpc-quote-main {
  min-height: 40vh;
}

/* Quote details: form + provider sidebar (Neighborly-style companion column) */
.hpc-quote-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: stretch;
}

.hpc-quote-layout__primary {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 42rem;
  width: 100%;
}

.hpc-quote-layout__aside {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 960px) {
  .hpc-quote-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .hpc-quote-layout__aside {
    flex: 0 0 min(22rem, 34vw);
    max-width: 24rem;
    position: sticky;
    top: 5.5rem;
  }
}

.hpc-provider-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hpc-provider-panel__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hpc-text);
}

.hpc-provider-panel__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 4.5rem;
}

.hpc-provider-panel__logo-img {
  max-width: 100%;
  height: auto;
  max-height: 5rem;
  width: auto;
  object-fit: contain;
}

.hpc-provider-panel__logo-placeholder {
  width: 100%;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--hpc-border);
  border-radius: 10px;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
}

.hpc-provider-panel__logo-placeholder-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hpc-muted);
  letter-spacing: 0.02em;
}

.hpc-provider-promo {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--hpc-accent-soft) 0%, #f0f7ff 100%);
  border: 1px solid rgba(13, 110, 253, 0.2);
}

.hpc-provider-promo__headline {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hpc-text);
}

.hpc-provider-promo__body {
  margin: 0;
  font-size: 0.875rem;
  color: var(--hpc-muted);
  line-height: 1.45;
}

.hpc-provider-usps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hpc-provider-usps__item {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--hpc-text);
  line-height: 1.4;
}

.hpc-provider-usps__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--hpc-success);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
}

.hpc-provider-reviews__heading {
  margin: 0.25rem 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hpc-muted);
}

.hpc-provider-reviews__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hpc-provider-review {
  padding: 0.75rem 0.85rem;
  background: var(--hpc-bg);
  border: 1px solid var(--hpc-border);
  border-radius: 10px;
}

.hpc-provider-review__quote {
  margin: 0.4rem 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--hpc-text);
  font-style: italic;
}

.hpc-provider-review__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--hpc-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
}

.hpc-provider-review__author {
  font-weight: 600;
  color: var(--hpc-text);
}

.hpc-provider-review__subtitle {
  font-size: 0.75rem;
}

.hpc-stars {
  display: inline-flex;
  gap: 0.1rem;
  line-height: 1;
  font-size: 0.95rem;
}

.hpc-stars__star {
  color: #cbd5e1;
}

.hpc-stars__star--on {
  color: #eab308;
}

.hpc-form-grid {
  display: grid;
  gap: 0.85rem;
}

.hpc-field label,
.hpc-field .hpc-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hpc-muted);
  margin-bottom: 0.35rem;
}

.hpc-field--prefill .hpc-prefill__locked {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.hpc-field--prefill .hpc-field-label {
  margin-bottom: 0;
}

.hpc-prefill__answer-line {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.hpc-prefill__value {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hpc-text);
  line-height: 1.45;
  max-width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.hpc-prefill__value--multiline {
  font-weight: 500;
  white-space: pre-wrap;
  word-break: break-word;
  width: auto;
}

.hpc-prefill__edit {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.7em;
  line-height: 1.2;
  padding: 0.35em 0.65em;
  border-radius: 6px;
}

.hpc-prefill__field {
  width: 100%;
}

.hpc-prefill__field[hidden] {
  display: none !important;
}

.hpc-label-optional {
  font-weight: 400;
  text-transform: none;
}

.hpc-field input,
.hpc-field select,
.hpc-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--hpc-border);
  border-radius: 8px;
  font: inherit;
  color: var(--hpc-text);
}

.hpc-field textarea {
  min-height: 88px;
  resize: vertical;
}

.hpc-form-actions {
  margin-top: 0.5rem;
}

.hpc-form-actions .hpc-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.hpc-form-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--hpc-muted);
  text-align: center;
}

.hpc-thanks {
  padding: 1.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--hpc-radius);
  color: #065f46;
}

.hpc-thanks h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.hpc-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.hpc-section__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.hpc-section__intro {
  margin: 0 0 1.5rem;
  color: var(--hpc-muted);
  max-width: 50ch;
}

.hpc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hpc-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: var(--hpc-surface);
  border: 1px solid var(--hpc-border);
  border-radius: var(--hpc-radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hpc-card:hover {
  border-color: var(--hpc-accent);
  box-shadow: var(--hpc-shadow);
  text-decoration: none;
}

.hpc-card__name {
  font-weight: 700;
  font-size: 1rem;
}

.hpc-card__blurb {
  font-size: 0.85rem;
  color: var(--hpc-muted);
}

.hpc-callout {
  background: var(--hpc-accent-soft);
  border: 1px solid #b6d4fe;
  border-radius: var(--hpc-radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.hpc-callout p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.hpc-callout .hpc-btn--ghost {
  background: #fff;
  color: var(--hpc-accent);
  border-color: #fff;
}
.hpc-callout .hpc-btn--ghost:hover {
  background: var(--hpc-accent-soft);
}

.hpc-footer {
  background: var(--hpc-text);
  color: #cbd5e1;
  padding: 2rem 0;
  margin-top: 2rem;
}

.hpc-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.hpc-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

.hpc-footer__sep {
  color: #94a3b8;
  user-select: none;
}

.hpc-footer a {
  color: #e2e8f0;
}

.hpc-legal {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  color: var(--hpc-text);
}

.hpc-legal h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.hpc-legal__meta {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--hpc-muted);
}

.hpc-legal h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hpc-text);
}

.hpc-legal p {
  margin: 0.65rem 0;
  line-height: 1.65;
  font-size: 0.95rem;
}

.hpc-legal a {
  word-break: break-word;
}

.hpc-legal__back {
  margin-top: 2.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--hpc-border);
}

/* Service landing pages: article + sticky quote sidebar */
.hpc-service-page__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

@media (min-width: 960px) {
  .hpc-service-page__layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 2.5rem;
  }
}

.hpc-service-page__article {
  max-width: 52rem;
}

.hpc-service-page__article h1 {
  margin-top: 0;
}

.hpc-service-page__aside {
  position: sticky;
  top: 5.5rem;
}

.hpc-service-page__panel h2 {
  font-size: 1.1rem;
}

.hpc-breadcrumb {
  font-size: 0.9rem;
  color: var(--hpc-muted);
  margin-bottom: 1rem;
}

.hpc-breadcrumb a {
  color: var(--hpc-muted);
}

.hpc-breadcrumb a:hover {
  color: var(--hpc-accent);
}

.hpc-breadcrumb__sep {
  margin: 0 0.35rem;
  color: var(--hpc-border);
}

.hpc-service-page__main {
  min-height: 50vh;
}
