:root {
  --charcoal: #17191c;
  --ink: #25282d;
  --muted: #646b75;
  --line: #dfe3e6;
  --surface: #ffffff;
  --soft: #f4f7f6;
  --ember: #e94f2f;
  --amber: #ffb238;
  --mint: #6fc6ad;
  --forest: #123c3b;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(23, 25, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 227, 230, 0.82);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  display: block;
  width: clamp(170px, 20vw, 245px);
  height: 54px;
  object-fit: cover;
  object-position: center center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover,
.header-phone:hover,
.footer a:hover {
  color: var(--ember);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.mini-logo {
  color: #00518f;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
}

.mini-logo::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: -1px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00518f, #59b33f);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  min-height: 48px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 25, 28, 0.08);
}

.header-phone:hover {
  border-color: rgba(233, 79, 47, 0.35);
  color: inherit;
}

.phone-text small,
.phone-text strong {
  display: block;
}

.phone-text small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.phone-text strong {
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.15;
}

.phone-icon {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--forest);
}

.phone-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 9px;
  height: 13px;
  border: 2px solid #fff;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 7px 0;
  transform: rotate(32deg);
}

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: end;
  padding: clamp(80px, 10vw, 128px) clamp(18px, 5vw, 72px) clamp(56px, 8vw, 84px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 60, 59, 0.88), rgba(18, 60, 59, 0.52) 45%, rgba(23, 25, 28, 0.18));
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("assets/hero-commercial-hvac.png")
    center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ember);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

h1 {
  margin-bottom: 20px;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--charcoal);
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--charcoal);
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--ember);
}

.button.primary:hover {
  background: #c94227;
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 26px clamp(18px, 4vw, 56px);
  background: #fff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.project-feature {
  background: #fff;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  padding-top: 18px;
}

.project-showcase + .project-showcase {
  margin-top: clamp(48px, 7vw, 82px);
  padding-top: clamp(48px, 7vw, 82px);
  border-top: 1px solid var(--line);
}

.project-showcase-alt .project-copy {
  order: 2;
}

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

.project-copy h3 {
  font-size: clamp(28px, 3vw, 42px);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.project-facts div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.project-facts strong,
.project-facts span {
  display: block;
}

.project-facts strong {
  color: var(--forest);
  font-size: 24px;
  line-height: 1.12;
}

.project-facts span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(170px, 1fr));
  gap: 12px;
}

.project-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
}

.project-gallery img:first-child {
  grid-row: 1 / -1;
}

.project-gallery.compact {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(270px, 420px);
}

.project-gallery.compact img:first-child {
  grid-row: auto;
}

.project-gallery.four-up {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, minmax(180px, 1fr));
}

.project-gallery.four-up img:first-child {
  grid-row: auto;
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  background: var(--soft);
}

.section-copy p,
.system-copy p,
.cta p {
  color: var(--muted);
  font-size: 18px;
}

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

.rebate-card {
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.rebate-card:nth-child(3) {
  grid-column: 1 / -1;
}

.rebate-card span {
  color: var(--muted);
  font-weight: 800;
}

.rebate-card strong {
  display: block;
  margin: 4px 0 12px;
  color: var(--forest);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
}

.rebate-card p {
  color: var(--muted);
}

.rebate-card.accent {
  background: #fff6e4;
}

.rebate-card.dark {
  color: #fff;
  background: var(--forest);
}

.rebate-card.dark strong,
.rebate-card.dark p,
.rebate-card.dark span {
  color: #fff;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

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

.benefit-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.benefit-grid p,
.steps p,
.system-list span {
  color: var(--muted);
}

.process {
  background: #f9faf8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps li {
  min-height: 260px;
  padding: 28px;
  background: #fff;
}

.steps span {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--ember);
  font-weight: 950;
}

.systems {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.system-list {
  display: grid;
  gap: 12px;
}

.system-list div {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-left: 5px solid var(--mint);
  background: var(--soft);
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--forest);
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--charcoal);
}

.footer span,
.footer a {
  display: block;
}

.footer-logo {
  display: block;
  width: min(230px, 58vw);
  height: 68px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center center;
  background: #fff;
}

.footer span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
}

.footer a + a {
  margin-top: 7px;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .trust-strip,
  .project-showcase,
  .two-column,
  .benefit-grid,
  .steps,
  .systems,
  .cta {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: auto;
  }

  .steps span {
    margin-bottom: 22px;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .project-gallery img:first-child {
    grid-row: auto;
  }

  .project-showcase-alt .project-copy {
    order: initial;
  }

  .project-gallery.compact {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .project-gallery.four-up {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
  }

  .brand-logo {
    width: 152px;
    height: 42px;
  }

  .phone-icon,
  .phone-text small {
    display: none;
  }

  .mini-logo {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, #004f8d 0%, #0d6b9d 45%, #59b33f 100%);
    font-size: 0;
  }

  .mini-logo::before {
    content: "HF";
    font-size: 12px;
    font-weight: 950;
  }

  .mini-logo::after {
    display: none;
  }

  .header-phone {
    min-height: 42px;
    padding: 7px 10px;
  }

  .header-phone {
    font-size: 14px;
  }

  .hero {
    min-height: 720px;
  }

  h1 {
    font-size: 42px;
  }

  .rebate-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .rebate-card:nth-child(3) {
    grid-column: auto;
  }

  .footer {
    display: grid;
  }
}
