/* Zamax Website .92 — focused conversion hierarchy, contextual imagery and page-specific CTA polish. */

/* Commercial detail heroes: one reliable visual grammar — action, checklist, three compact proofs. */
body[data-zmx-route="/solutions/commercial-unit-income-upgrade/"] .hero-copy,
body[data-zmx-route="/solutions/rooflife/"] .hero-copy,
body[data-zmx-route="/solutions/solar-ready-roof-power/"] .hero-copy,
body[data-zmx-route="/solutions/commercial-property-protection-plan/"] .hero-copy,
body[data-zmx-route="/services/commercial-electrical/"] .hero-copy,
body[data-zmx-route="/services/commercial-roofing/"] .hero-copy,
body[data-zmx-route="/services/renewables-ev-charging/"] .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body[data-zmx-route] .hero-copy > .zmx92-checklist-line {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 650px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 820;
  line-height: 1.4;
}

body[data-zmx-route] .hero-copy > .zmx92-checklist-line::before {
  content: "✓";
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e4bd5c;
  color: #123b34;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3);
  font-size: .75rem;
  font-weight: 950;
}

body[data-zmx-route="/solutions/commercial-unit-income-upgrade/"] .hero-copy > .hero-pills,
body[data-zmx-route="/solutions/rooflife/"] .hero-copy > .hero-pills,
body[data-zmx-route="/solutions/solar-ready-roof-power/"] .hero-copy > .hero-pills,
body[data-zmx-route="/solutions/commercial-property-protection-plan/"] .hero-copy > .hero-pills,
body[data-zmx-route="/services/commercial-electrical/"] .hero-copy > .hero-pills,
body[data-zmx-route="/services/commercial-roofing/"] .hero-copy > .hero-pills,
body[data-zmx-route="/services/renewables-ev-charging/"] .hero-copy > .hero-pills {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 8px !important;
  width: min(100%,650px) !important;
  margin: 14px 0 0 !important;
}

body[data-zmx-route="/solutions/commercial-unit-income-upgrade/"] .hero-copy > .hero-pills > span,
body[data-zmx-route="/solutions/rooflife/"] .hero-copy > .hero-pills > span,
body[data-zmx-route="/solutions/solar-ready-roof-power/"] .hero-copy > .hero-pills > span,
body[data-zmx-route="/solutions/commercial-property-protection-plan/"] .hero-copy > .hero-pills > span,
body[data-zmx-route="/services/commercial-electrical/"] .hero-copy > .hero-pills > span,
body[data-zmx-route="/services/commercial-roofing/"] .hero-copy > .hero-pills > span,
body[data-zmx-route="/services/renewables-ev-charging/"] .hero-copy > .hero-pills > span {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.075) !important;
  color: rgba(255,255,255,.92) !important;
  font-size: .76rem !important;
  font-weight: 820 !important;
  line-height: 1.28 !important;
  text-align: left !important;
}

body[data-zmx-route="/solutions/commercial-unit-income-upgrade/"] .hero-copy > .hero-pills > span::before,
body[data-zmx-route="/solutions/rooflife/"] .hero-copy > .hero-pills > span::before,
body[data-zmx-route="/solutions/solar-ready-roof-power/"] .hero-copy > .hero-pills > span::before,
body[data-zmx-route="/solutions/commercial-property-protection-plan/"] .hero-copy > .hero-pills > span::before,
body[data-zmx-route="/services/commercial-electrical/"] .hero-copy > .hero-pills > span::before,
body[data-zmx-route="/services/commercial-roofing/"] .hero-copy > .hero-pills > span::before,
body[data-zmx-route="/services/renewables-ev-charging/"] .hero-copy > .hero-pills > span::before {
  content: "✓";
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: #e4bd5c;
  color: #123b34;
  font-size: .62rem;
  font-weight: 950;
}

/* Group related commercial decisions into a small number of meaningful visual clusters. */
.zmx92-scope-grid {
  display: grid !important;
  gap: 20px !important;
}
.zmx92-scope-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
.zmx92-scope-grid--four { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
.zmx92-scope-card {
  min-width: 0;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(16,41,37,.13) !important;
  border-radius: 24px !important;
  background: #fffdf8 !important;
  box-shadow: 0 18px 44px rgba(13,48,43,.08) !important;
}
.zmx92-scope-card__media {
  height: 210px;
  margin: 0;
  overflow: hidden;
  background: #dbe6e1;
}
.zmx92-scope-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.zmx92-scope-card:hover .zmx92-scope-card__media img { transform: scale(1.025); }
.zmx92-scope-card__body { padding: 24px 24px 26px; }
.zmx92-scope-card__body h3 { margin: 0; font-size: clamp(1.2rem,1.7vw,1.55rem); line-height: 1.08; }
.zmx92-scope-card__body ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.zmx92-scope-card__body li { display: flex; gap: 9px; color: #43534e; font-size: .91rem; line-height: 1.46; }
.zmx92-scope-card__body li::before { content: "✓"; color: #0e695d; font-weight: 950; }

/* Transformation comparison: two honest concepts, never fabricated job evidence. */
.zmx92-transformation-comparison { background: linear-gradient(145deg,#f7f0e2 0%,#edf4f0 100%); }
.zmx92-comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 34px; }
.zmx92-comparison-grid figure { margin: 0; overflow: hidden; border: 1px solid rgba(16,41,37,.14); border-radius: 26px; background: #fffdf8; box-shadow: 0 18px 44px rgba(13,48,43,.09); }
.zmx92-comparison-grid img { display: block; width: 100%; height: clamp(260px,31vw,400px); object-fit: cover; }
.zmx92-comparison-grid figcaption { display: grid; gap: 6px; padding: 20px 22px 22px; }
.zmx92-comparison-grid figcaption strong { color: #0d4f46; font-size: .79rem; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.zmx92-comparison-grid figcaption span { color: #4d5e58; font-size: .92rem; line-height: 1.5; }
.zmx92-comparison-disclosure { max-width: 920px; margin: 18px auto 0; padding: 13px 16px; border-radius: 14px; background: rgba(8,47,42,.08); color: #41534d; font-size: .82rem; line-height: 1.55; text-align: center; }

body[data-zmx-route^="/residential/transformations/"] .zmx92-transformation-benefits {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin-top: 24px;
}
body[data-zmx-route^="/residential/transformations/"] .zmx92-transformation-benefits li {
  width: 100% !important;
  min-height: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.075) !important;
  color: rgba(255,255,255,.9) !important;
  font-size: .88rem !important;
  line-height: 1.35 !important;
}
body[data-zmx-route^="/residential/transformations/"] .zmx92-transformation-benefits li > span { flex: 0 0 20px; color: #f0ce77 !important; }

/* Preserve ONS paths, simplify labels, and give geographic context a clear reading order. */
.zmx-res-coverage-map--official { border: 1px solid rgba(16,41,37,.12) !important; background: #fffdf8 !important; box-shadow: 0 18px 44px rgba(13,48,43,.08) !important; }
.zmx-res-coverage-map--official .zmx-res-coverage-map__place--base text { display: block !important; fill: #0b443c !important; font-size: 14px !important; font-weight: 900 !important; }
.zmx-res-coverage-map--official figcaption { color: #43534e !important; }
.zmx-res-coverage-map--official figcaption > strong { color: #0b443c !important; }
.zmx-res-coverage-map--official .zmx-res-coverage-map__places { display: none !important; }
.zmx-res-coverage-map--official .zmx92-map-context { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 3px; }
.zmx-res-coverage-map--official .zmx92-map-context > * { padding: 7px 11px; border-radius: 999px; font-size: .72rem; letter-spacing: .04em; }
.zmx-res-coverage-map--official .zmx92-map-context strong { background: #0d5047; color: #fffdf8; }
.zmx-res-coverage-map--official .zmx92-map-context b { background: #ead59c; color: #533d16; }
.zmx-res-coverage-map--official .zmx-res-coverage-map__source { margin-top: 4px !important; padding-top: 8px !important; border-top: 1px solid rgba(16,41,37,.09) !important; color: #697773 !important; font-size: .65rem !important; line-height: 1.45 !important; }
.zmx-res-coverage-map--official .zmx-res-coverage-map__source a { color: #516660 !important; }

/* Existing branded guide artwork: preserve the asset and keep the front cover inside the crop. */
body[data-zmx-route="/residential/guides/"] .zmx-res-hero::before { background-position: 42% 50% !important; }

@media (max-width: 920px) {
  .zmx92-scope-grid--three,
  .zmx92-scope-grid--four { grid-template-columns: 1fr 1fr !important; }
  .zmx92-scope-card__media { height: 190px; }
}

@media (max-width: 700px) {
  body[data-zmx-route="/solutions/commercial-unit-income-upgrade/"] .hero-copy > .hero-pills,
  body[data-zmx-route="/solutions/rooflife/"] .hero-copy > .hero-pills,
  body[data-zmx-route="/solutions/solar-ready-roof-power/"] .hero-copy > .hero-pills,
  body[data-zmx-route="/solutions/commercial-property-protection-plan/"] .hero-copy > .hero-pills,
  body[data-zmx-route="/services/commercial-electrical/"] .hero-copy > .hero-pills,
  body[data-zmx-route="/services/commercial-roofing/"] .hero-copy > .hero-pills,
  body[data-zmx-route="/services/renewables-ev-charging/"] .hero-copy > .hero-pills {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }
  body[data-zmx-route] .hero-copy > .zmx92-checklist-line { align-items: flex-start; font-size: .76rem; }
  .zmx92-scope-grid--three,
  .zmx92-scope-grid--four { grid-template-columns: 1fr !important; }
  .zmx92-scope-card__media { height: 220px; }
  .zmx92-comparison-grid { grid-template-columns: 1fr; }
  .zmx92-comparison-grid img { height: 245px; }
  body[data-zmx-route="/residential/guides/"] .zmx-res-hero::before { background-position: 75% 50% !important; }
}

@media (prefers-reduced-motion: reduce) {
  .zmx92-scope-card__media img { transition: none; }
}
