:root {
  --ink: #17211d;
  --muted: #53625d;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #d8dfd6;
  --forest: #285b47;
  --mint: #d7efe3;
  --copper: #b8653a;
  --amber: #f3bd4f;
  --sky: #cfe9f2;
  --charcoal: #202824;
  --soft: #edf4ee;
  --shadow: rgba(23, 33, 29, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(23, 33, 29, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: var(--forest);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.footer a:hover,
.footer a:focus-visible {
  color: var(--white);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.nav-cta {
  padding: 0 18px;
  color: var(--ink);
  background: var(--amber);
}

.button {
  padding: 0 22px;
  border: 1px solid transparent;
}

.button:hover,
.nav-cta:hover,
.button:focus-visible,
.nav-cta:focus-visible {
  transform: translateY(-1px);
}

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

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("./assets/heat-pump-hero.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.92) 0%, rgba(23, 33, 29, 0.74) 44%, rgba(23, 33, 29, 0.22) 100%),
    linear-gradient(0deg, rgba(23, 33, 29, 0.68) 0%, rgba(23, 33, 29, 0.06) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 126px 0 34px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(960px, 100%);
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 6vw, 6.1rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.08rem, 4vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.16;
}

.hero-copy {
  width: min(690px, 100%);
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.04rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats div {
  min-height: 112px;
  padding: 17px;
  background: rgba(23, 33, 29, 0.46);
}

.hero-stats dt {
  margin-bottom: 8px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.45;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.signal-item {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.signal-item:last-child {
  border-right: 0;
}

.signal-item span,
.card-code,
.process-steps span {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
}

.signal-item span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  color: var(--forest);
  font-size: 0.8rem;
}

.signal-item p {
  margin: 0;
  font-weight: 800;
  line-height: 1.35;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.agent-brief,
.handoff-section,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.agent-brief p,
.section-header p,
.handoff-copy p,
.contact-copy p,
.service-card p,
.service-card li,
.proof-grid p,
.trust-grid p,
.handoff-steps,
.form-note,
.checker-result span {
  color: var(--muted);
  line-height: 1.62;
}

.data-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.data-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
}

.agent-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.agent-facts article,
.proof-grid article,
.trust-grid div {
  background: var(--white);
}

.agent-facts article {
  min-height: 168px;
  padding: 20px;
}

.agent-facts strong,
.proof-grid strong,
.trust-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--forest);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.checker,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px var(--shadow);
}

.service-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  padding: 22px;
}

.card-code,
.process-steps span {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--ink);
  background: var(--mint);
  font-size: 0.84rem;
}

.service-card:nth-child(2) .card-code {
  background: var(--sky);
}

.service-card:nth-child(3) .card-code {
  background: #f8dfc4;
}

.service-card:nth-child(4) .card-code {
  background: #efddd2;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
  padding-left: 18px;
}

.service-card a {
  margin-top: auto;
  color: var(--forest);
  font-weight: 900;
}

.handoff-section {
  width: 100%;
  max-width: none;
  padding: 88px clamp(18px, 4vw, 56px);
  background: var(--charcoal);
  color: var(--white);
}

.handoff-section .handoff-copy {
  width: min(510px, 100%);
  justify-self: end;
}

.handoff-copy p,
.handoff-steps {
  color: rgba(255, 255, 255, 0.74);
}

.handoff-steps {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding-left: 21px;
}

.checker,
.lead-form {
  display: grid;
  gap: 16px;
  width: min(570px, 100%);
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid #cdd5cc;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

select,
input {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

.checker-result {
  display: grid;
  min-height: 118px;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--ink);
  line-height: 1.5;
}

.checker .button,
.lead-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.proof-grid article {
  min-height: 210px;
  padding: 22px;
}

.trust {
  width: 100%;
  max-width: none;
  padding: 0;
}

.trust-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  padding: 88px clamp(18px, 4vw, 56px);
  background: var(--soft);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #cfdccf;
  background: #cfdccf;
}

.trust-grid div {
  min-height: 166px;
  padding: 22px;
}

.contact {
  align-items: stretch;
}

.contact-copy {
  display: flex;
  flex-direction: column;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.contact-methods a {
  width: fit-content;
  color: var(--forest);
  font-weight: 900;
}

.lead-form {
  width: 100%;
}

.form-note {
  min-height: 44px;
  margin: 0;
  font-size: 0.92rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--ink);
}

.footer p {
  margin: 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 1080px) {
  .card-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 330px;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding-top: 118px;
  }

  .hero-stats,
  .signal-band,
  .agent-brief,
  .section-header,
  .handoff-section,
  .trust-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .handoff-section .handoff-copy {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
    padding: 12px 14px;
  }

  .brand small,
  .nav-cta {
    display: none;
  }

  .hero-bg {
    background-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(23, 33, 29, 0.94) 0%, rgba(23, 33, 29, 0.78) 58%, rgba(23, 33, 29, 0.35) 100%),
      linear-gradient(0deg, rgba(23, 33, 29, 0.72) 0%, rgba(23, 33, 29, 0.1) 46%);
  }

  .hero-content {
    width: min(100% - 28px, 1120px);
    padding-bottom: 22px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.05rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-stats {
    display: none;
  }

  .signal-item {
    min-height: 74px;
    padding: 16px 14px;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 64px 0;
  }

  .agent-facts,
  .card-grid,
  .proof-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .handoff-section,
  .trust-panel {
    padding: 64px 14px;
  }

  .service-card,
  .proof-grid article {
    min-height: auto;
  }
}
