:root {
  --blue: #1f47d1;
  --blue-deep: #15369f;
  --steel: #161a21;
  --ink: #11141a;
  --muted: #5f6878;
  --warm: #f5f3ee;
  --white: #ffffff;
  --line: #d7deea;
  --soft-blue: #edf2ff;
  --shadow: 0 18px 48px rgba(17, 35, 84, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

h1 {
  margin-bottom: 16px;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 300px 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 72px;
  padding: 8px clamp(16px, 5vw, 64px);
  background: rgba(245, 243, 238, 0.96);
  border-bottom: 1px solid rgba(17, 20, 26, 0.1);
  backdrop-filter: blur(16px);
}

.brand,
.nav a,
.phone-link,
.button,
.service-choice {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-deep);
  font-weight: 900;
  line-height: 1.04;
  text-transform: uppercase;
}

.brand img {
  width: 58px;
  border-radius: 50%;
}

.brand span {
  max-width: 210px;
  font-size: 15px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #3f4654;
  font-size: 14px;
  font-weight: 900;
}

.phone-link,
.button,
.quote-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
}

.phone-link,
.button-primary,
.quote-form button {
  color: var(--white);
  background: var(--blue);
}

.phone-link,
.button {
  padding: 0 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(420px, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(22px, 4vw, 46px) clamp(16px, 6vw, 80px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f5fb 100%);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.assurance-panel p,
.proof-panel div,
.contact-copy p,
.contact-list {
  color: var(--muted);
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-panel {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.panel-heading p:last-child {
  max-width: 185px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: center 45%;
}

.visit-card {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(260px, calc(100% - 28px));
  padding: 14px;
  color: var(--white);
  background: rgba(22, 26, 33, 0.92);
  border-radius: 8px;
}

.visit-card strong {
  display: block;
  margin-bottom: 4px;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--steel);
}

.quick-strip div {
  min-height: 76px;
  padding: 16px clamp(16px, 4vw, 34px);
  color: #d7deee;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.quick-strip strong {
  display: block;
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
}

.services-section,
.info-band,
.quote-section {
  padding: clamp(28px, 5vw, 52px) clamp(16px, 6vw, 80px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.45fr);
  gap: clamp(20px, 5vw, 60px);
  align-items: end;
  margin-bottom: 18px;
}

.service-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-panel .service-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-choice {
  display: grid;
  min-height: 102px;
  align-content: start;
  gap: 7px;
  padding: 16px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(17, 35, 84, 0.08);
}

.service-choice:hover,
.service-choice:focus {
  outline: 3px solid rgba(31, 71, 209, 0.18);
  border-color: var(--blue);
}

.service-choice span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
}

.info-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 18px;
  background: var(--soft-blue);
}

.assurance-panel,
.proof-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.assurance-panel {
  padding: clamp(22px, 4vw, 34px);
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.assurance-grid div {
  min-height: 112px;
  padding: 16px;
  color: var(--muted);
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.assurance-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.proof-panel {
  overflow: hidden;
}

.proof-panel img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.proof-panel div {
  padding: 18px;
}

.proof-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 1fr);
  gap: clamp(20px, 5vw, 58px);
  align-items: start;
}

.contact-copy a {
  color: var(--blue);
  font-weight: 900;
}

.contact-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-status {
  display: none;
  grid-column: 1 / -1;
  padding: 12px;
  color: var(--muted);
  background: #f2f6ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.form-status:not(:empty) {
  display: block;
}

.form-status[data-tone="success"] {
  color: #0e6245;
  background: #e7f7ef;
  border-color: #a9dec3;
}

.form-status[data-tone="error"] {
  color: #8f1f1f;
  background: #fff0f0;
  border-color: #f0b3b3;
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px;
  color: var(--ink);
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form .full,
.quote-form button {
  grid-column: 1 / -1;
}

.quote-form button {
  min-height: 50px;
  border: 0;
  cursor: pointer;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(16px, 6vw, 80px);
  color: #cbd3e2;
  background: var(--steel);
}

.site-footer img {
  width: 78px;
  border-radius: 50%;
  background: var(--white);
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.footer-note {
  color: #9fa9bb;
  font-size: 12px;
}

.site-footer a {
  color: var(--white);
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 13px;
}

.service-page {
  background: #ffffff;
}

.subhero {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(320px, 0.48fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 6vw, 80px);
  background: linear-gradient(180deg, #ffffff 0%, #f3f5fb 100%);
}

.subhero p {
  color: var(--muted);
  font-size: 18px;
}

.subhero img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-photo-furnace {
  object-position: center 54%;
}

.service-photo-outdoor {
  object-position: center 62%;
}

.service-photo-raised-heat-pump {
  object-position: center 62%;
}

.service-photo-mini-split {
  object-position: center 42%;
}

.service-photo-water-heater {
  object-position: center 48%;
}

.service-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(20px, 5vw, 56px);
  padding: clamp(28px, 5vw, 56px) clamp(16px, 6vw, 80px);
}

.detail-list,
.service-cta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-list {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 4vw, 34px);
}

.detail-list h2 {
  margin-bottom: 2px;
}

.detail-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.service-cta {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 20px;
}

.service-cta p {
  color: var(--muted);
}

.service-cta .button {
  width: 100%;
  margin-top: 8px;
}

.tuneup-hero {
  align-items: stretch;
}

.offer-photo {
  position: relative;
}

.offer-photo img {
  height: 100%;
  min-height: 330px;
}

.offer-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(220px, calc(100% - 32px));
  padding: 16px;
  color: var(--white);
  background: rgba(22, 26, 33, 0.94);
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-badge span {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.tuneup-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tuneup-card h2 {
  color: var(--blue-deep);
}

.tuneup-band {
  padding-top: 0;
}

.proof-panel a {
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 980px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .site-header {
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
  }

  .brand img {
    width: 54px;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .phone-link {
    justify-self: end;
  }

  .hero,
  .section-heading,
  .info-band,
  .quote-section,
  .subhero,
  .service-details {
    grid-template-columns: 1fr;
  }

  .quick-strip,
  .service-picker,
  .tuneup-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assurance-grid {
    grid-template-columns: 1fr;
  }

  .service-panel .service-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-cta {
    position: static;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 30px;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 29px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) 132px;
    min-height: 68px;
    padding: 8px 12px;
  }

  .brand img {
    width: 46px;
  }

  .brand span {
    max-width: 160px;
    font-size: 12px;
  }

  .nav {
    display: none;
  }

  .phone-link {
    justify-self: stretch;
    min-height: 40px;
    padding: 0 10px;
    font-size: 11px;
    text-align: center;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
  }

  .hero-card img {
    height: 215px;
  }

  .button {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    font-size: 14px;
  }

  .quick-strip,
  .service-picker,
  .service-panel .service-picker,
  .tuneup-strip,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .offer-photo img {
    min-height: 260px;
  }

  .service-panel {
    padding: 14px;
  }

  .panel-heading {
    grid-template-columns: 1fr;
  }

  .panel-heading h2 {
    font-size: 25px;
  }

  .panel-heading p:last-child {
    max-width: none;
  }

  .service-choice {
    min-height: 82px;
  }

  .quick-strip div {
    min-height: 0;
  }

  .site-footer,
  .site-footer p {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .subhero img {
    height: 230px;
  }
}
