/*
  New Energy Commercial Intelligence
  Hero video — extended cinematic treatment.

  Visual-only change:
  - larger, more integrated hero video
  - longer detailed real-install footage
  - benefit cards restyled as a calm proof strip
*/

body.commercial-residential-part-one .hero {
  grid-template-columns:
    minmax(0, 0.78fr)
    minmax(620px, 1.22fr);
  gap: clamp(24px, 3vw, 46px);
  align-items: center;
  min-height: 590px;
}

body.commercial-residential-part-one .hero > div:first-child {
  max-width: 670px;
}

body.commercial-residential-part-one .hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

body.commercial-residential-part-one
.building.has-commercial-video {
  display: block;
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 840px;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(70, 112, 132, 0.16);
  border-radius: 32px;
  background: #dfe8ec;
  box-shadow:
    0 38px 85px rgba(38, 69, 84, 0.18),
    0 10px 28px rgba(38, 69, 84, 0.10);
  transform: translateY(-2px);
}

body.commercial-residential-part-one
.building.has-commercial-video::before,
body.commercial-residential-part-one
.building.has-commercial-video::after {
  content: none !important;
  display: none !important;
}

body.commercial-residential-part-one
.building.has-commercial-video span,
body.commercial-residential-part-one
.building.has-commercial-video
img.commercial-hero-photo {
  display: none !important;
}

body.commercial-residential-part-one
.building.has-commercial-video
video.commercial-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  border: 0;
  border-radius: inherit;
  background: #dfe8ec;
}

/*
  Replace the three detached-looking cards with one integrated proof strip.
*/
body.commercial-residential-part-one .commercial-benefits {
  display: flex;
  grid-template-columns: none;
  gap: 0;
  max-width: 670px;
  margin-top: 26px;
  padding: 16px 0;
  border-top: 1px solid rgba(76, 118, 136, 0.15);
  border-bottom: 1px solid rgba(76, 118, 136, 0.15);
}

body.commercial-residential-part-one .commercial-benefit {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.commercial-residential-part-one
.commercial-benefit:first-child {
  padding-left: 0;
}

body.commercial-residential-part-one
.commercial-benefit:last-child {
  padding-right: 0;
}

body.commercial-residential-part-one
.commercial-benefit + .commercial-benefit {
  border-left: 1px solid rgba(76, 118, 136, 0.15);
}

body.commercial-residential-part-one
.commercial-benefit strong {
  color: #385260;
  font-size: 13px;
  line-height: 1.3;
}

body.commercial-residential-part-one
.commercial-benefit span {
  margin-top: 6px;
  color: #687d87;
  font-size: 11.5px;
  line-height: 1.38;
}

@media (max-width: 1240px) {
  body.commercial-residential-part-one .hero {
    grid-template-columns:
      minmax(0, 0.88fr)
      minmax(560px, 1.12fr);
  }

  body.commercial-residential-part-one
  .building.has-commercial-video {
    max-width: 760px;
  }
}

@media (max-width: 1080px) {
  body.commercial-residential-part-one .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 30px;
  }

  body.commercial-residential-part-one .hero > div:first-child {
    max-width: none;
  }

  body.commercial-residential-part-one .hero-visual {
    justify-content: flex-start;
  }

  body.commercial-residential-part-one
  .building.has-commercial-video {
    max-width: 960px;
    margin: 0;
    transform: none;
  }
}

@media (max-width: 720px) {
  body.commercial-residential-part-one
  .building.has-commercial-video {
    aspect-ratio: 16 / 9;
    border-radius: 22px;
  }

  body.commercial-residential-part-one .commercial-benefits {
    display: block;
    padding: 8px 0;
  }

  body.commercial-residential-part-one .commercial-benefit {
    padding: 12px 0;
  }

  body.commercial-residential-part-one
  .commercial-benefit + .commercial-benefit {
    border-top: 1px solid rgba(76, 118, 136, 0.15);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.commercial-residential-part-one
  .building.has-commercial-video
  video.commercial-hero-video {
    object-fit: cover;
  }
}
