:root {
  --ink: #18212f;
  --muted: #5a6472;
  --line: #d8dde5;
  --paper: #ffffff;
  --mist: #f4f7f9;
  --warm: #fff7eb;
  --navy: #12314a;
  --blue: #256f9f;
  --orange: #f59b23;
  --orange-dark: #b76005;
  --green: #1d6b5c;
  --shadow: 0 24px 60px rgba(18, 49, 74, 0.14);
  --deep-shadow: 0 32px 90px rgba(18, 49, 74, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

.gtm-frame {
  display: none;
  visibility: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  background: var(--navy);
  color: #f7fbff;
  font-size: 0.92rem;
}

.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar p {
  margin: 0;
}

.topbar a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 221, 229, 0.8);
  backdrop-filter: blur(16px);
}

.header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.05;
}

.brand img {
  width: 62px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
  border-radius: 7px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--mist);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(244, 247, 249, 0.98), rgba(255, 247, 235, 0.62)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 0.78fr);
  gap: 50px;
  align-items: center;
  padding: 72px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 5vw, 4.65rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.22rem;
}

.hero__lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: #364457;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button--primary {
  background: var(--orange);
  color: #231503;
  box-shadow: 0 12px 24px rgba(245, 155, 35, 0.26);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #ffae3a;
}

.button--secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-top: 34px;
}

.proof-strip div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 221, 229, 0.85);
  border-radius: 8px;
}

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

.proof-strip strong {
  font-size: 1.05rem;
}

.proof-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(216, 221, 229, 0.9);
  border-radius: 8px;
  box-shadow: var(--deep-shadow);
}

.hero-card__photo {
  min-height: 285px;
  background:
    linear-gradient(180deg, rgba(18, 49, 74, 0.02), rgba(18, 49, 74, 0.28)),
    url("./assets/mdl-hero-electrical-hvac.webp") center/cover;
}

.hero-card__body {
  padding: 24px;
}

.card-kicker {
  margin: 0 0 6px;
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card h2 {
  font-size: 1.55rem;
}

.hero-card__intro {
  margin: 14px 0 0;
  color: var(--muted);
}

.request-options {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.request-options .button {
  width: 100%;
}

.text-link,
.all-areas-link a,
.area-grid a {
  color: var(--blue);
  font-weight: 850;
}

.text-link {
  text-align: center;
}

.section {
  padding: 86px 0;
}

.section--contrast {
  color: #f8fbff;
  background:
    linear-gradient(135deg, rgba(18, 49, 74, 0.98), rgba(24, 33, 47, 0.94)),
    url("./assets/mdl-hvac-service.webp") center/cover;
}

.section--contrast .eyebrow {
  color: #ffc269;
}

.section--contrast p {
  color: #d7e2ed;
}

.section--soft {
  background: var(--mist);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading--left {
  margin-left: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.visual-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  margin: 40px 0 24px;
}

.visual-card {
  overflow: hidden;
  display: grid;
  align-content: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(18, 49, 74, 0.1);
}

.visual-card--wide {
  grid-template-columns: minmax(280px, 0.95fr) minmax(250px, 0.72fr);
}

.visual-card--wide img {
  min-height: 100%;
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.visual-card div {
  padding: 28px;
}

.visual-card span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 6px 9px;
  color: var(--orange-dark);
  background: var(--warm);
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

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

.service-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(18, 49, 74, 0.07);
}

.service-card--urgent {
  background: var(--warm);
  border-color: rgba(245, 155, 35, 0.38);
}

.service-card span {
  width: max-content;
  max-width: 100%;
  padding: 6px 9px;
  color: var(--navy);
  background: var(--mist);
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card--urgent span {
  background: #ffe3b8;
}

.service-card h3 {
  margin-top: 18px;
}

.service-card p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.service-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  gap: 54px;
  align-items: start;
}

.split h2 {
  max-width: 690px;
}

.split p {
  max-width: 660px;
  margin: 20px 0 0;
  font-size: 1.05rem;
}

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

.trust-list div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

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

.trust-list strong {
  color: #fff;
  font-size: 1.05rem;
}

.trust-list span {
  margin-top: 8px;
  color: #d7e2ed;
}

.areas {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.area-grid {
  display: grid;
  gap: 14px;
}

.area-grid article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
}

.area-grid article:nth-child(2) {
  border-left-color: var(--orange);
}

.area-grid article:nth-child(3) {
  border-left-color: var(--green);
}

.area-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.all-areas-link {
  margin: 18px 0 0;
}

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

.process-grid div {
  min-height: 205px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-grid span {
  color: var(--orange-dark);
  font-weight: 950;
}

.process-grid h3 {
  margin-top: 32px;
}

.process-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

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

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.contact-section {
  padding-top: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #1d3d35);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-card p {
  max-width: 670px;
  color: #dce7ee;
}

.contact-card .eyebrow {
  color: #ffc269;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact-actions .button--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.contact-actions p {
  width: 100%;
  margin: 0;
  color: #cbd8df;
  font-size: 0.88rem;
  text-align: right;
}

.site-footer {
  padding: 28px 0 98px;
  color: #d7e2ed;
  background: #101823;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer__inner p {
  max-width: 620px;
  margin: 0;
  font-size: 0.9rem;
}

.mobile-cta {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 30;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(16, 24, 35, 0.2);
  backdrop-filter: blur(16px);
}

.mobile-cta a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 900;
  text-decoration: none;
}

.mobile-cta a:first-child {
  background: var(--orange);
  color: #231503;
}

.mobile-cta a:last-child {
  color: var(--navy);
  background: var(--mist);
}

@media (max-width: 980px) {
  .hero__grid,
  .split,
  .areas,
  .faq__grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    padding-top: 54px;
  }

  .visual-showcase,
  .visual-card--wide {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 640px;
  }

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

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

  .contact-actions {
    justify-content: flex-start;
  }

  .contact-actions p {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, 1160px);
  }

  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 9px 0;
    gap: 4px;
  }

  .header__inner {
    min-height: 70px;
  }

  .brand img {
    width: 54px;
    height: 40px;
  }

  .brand span {
    font-size: 0.88rem;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 112px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 42px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .hero__lede {
    font-size: 1rem;
  }

  .hero__actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .visual-showcase,
  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    text-align: left;
  }

  .service-card {
    min-height: 0;
  }

  .hero-card__photo {
    min-height: 245px;
  }

  .visual-card img {
    min-height: 230px;
  }

  .visual-card div {
    padding: 22px;
  }

  .contact-card {
    padding: 24px;
  }

  .footer__inner {
    display: grid;
  }

  .mobile-cta {
    display: grid;
  }
}

@media (max-width: 420px) {
  .topbar {
    font-size: 0.86rem;
  }

  .brand span {
    max-width: 165px;
  }

  .hero-card__body,
  .visual-card div,
  .service-card,
  .area-grid article,
  .process-grid div {
    padding: 20px;
  }

  .button {
    width: 100%;
  }
}
