/*
  New Energy Commercial Intelligence
  Unified hero treatment

  Presentation only:
  - one shared hero surface
  - integrated video
  - one proof strip instead of detached benefit cards
  - tighter connection to the journey below
*/

body.commercial-residential-part-one .hero {
  position: relative;
  display: grid !important;
  grid-template-columns:
    minmax(0, 0.82fr)
    minmax(540px, 1.18fr) !important;
  grid-template-rows:
    auto
    auto
    minmax(0, 1fr)
    auto;
  column-gap: clamp(30px, 3.2vw, 50px);
  row-gap: 0;
  align-items: start;
  min-height: 0 !important;
  margin: 18px 0 24px !important;
  padding: clamp(34px, 3.5vw, 50px)
           clamp(34px, 3.5vw, 50px)
           0 !important;
  overflow: hidden;
  border: 1px solid rgba(79, 119, 136, 0.14);
  border-radius: 40px;
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(219, 239, 213, 0.58),
      transparent 34%
    ),
    radial-gradient(
      circle at 4% 12%,
      rgba(214, 242, 252, 0.62),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(246, 251, 251, 0.91)
    );
  box-shadow:
    0 26px 70px rgba(47, 78, 92, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

/*
  The copy wrapper becomes transparent to the grid so the proof strip can
  span beneath both the wording and the video without changing the HTML.
*/
body.commercial-residential-part-one .hero > .hero-copy {
  display: contents !important;
}

body.commercial-residential-part-one
.hero > .hero-copy > .eyebrow {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin: 4px 0 12px !important;
}

body.commercial-residential-part-one
.hero > .hero-copy > h1 {
  grid-column: 1;
  grid-row: 2;
  max-width: 650px;
  margin: 0 !important;
  text-wrap: balance;
}

body.commercial-residential-part-one
.hero > .hero-copy > p {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  max-width: 610px;
  margin: 22px 0 0 !important;
}

/* Video becomes part of the shared hero surface rather than a floating card. */
body.commercial-residential-part-one .hero > .hero-visual {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: stretch;
  display: flex;
  width: calc(100% + 18px);
  min-width: 0;
  min-height: 440px;
  margin: -18px -18px 0 0 !important;
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
}

body.commercial-residential-part-one
.hero .building.has-commercial-video {
  width: 100% !important;
  max-width: none !important;
  min-height: 440px !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 28px 28px 0 28px !important;
  background: #dfe8ec;
  box-shadow: none !important;
  transform: none !important;
}

body.commercial-residential-part-one
.hero .building.has-commercial-video
video.commercial-hero-video {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
}

/*
  One integrated proof strip across the whole hero.
  The former individual cards lose their floating-card treatment.
*/
body.commercial-residential-part-one
.hero .commercial-benefits {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  width: auto;
  max-width: none !important;
  margin:
    clamp(28px, 3vw, 40px)
    calc(clamp(34px, 3.5vw, 50px) * -1)
    0 !important;
  padding:
    19px
    clamp(34px, 3.5vw, 50px)
    22px !important;
  border-top: 1px solid rgba(78, 119, 136, 0.14);
  border-bottom: 0 !important;
  background: rgba(235, 246, 247, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.commercial-residential-part-one
.hero .commercial-benefit {
  min-width: 0;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 1px 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

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

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

body.commercial-residential-part-one
.hero .commercial-benefit + .commercial-benefit {
  border-left: 1px solid rgba(78, 119, 136, 0.16) !important;
}

body.commercial-residential-part-one
.hero .commercial-benefit strong {
  display: block;
  margin: 0;
  color: #314d5b;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

body.commercial-residential-part-one
.hero .commercial-benefit span {
  display: block;
  margin-top: 6px;
  color: #667d87;
  font-size: 11.5px;
  line-height: 1.42;
}

/* Pull the next stage closer so the page reads as one continuous journey. */
body.commercial-residential-part-one
.hero + .progress.three-step-progress {
  margin-top: 18px !important;
}

body.commercial-residential-part-one
.progress.three-step-progress
+ .journey-panel {
  margin-top: 14px !important;
}

@media (max-width: 1180px) {
  body.commercial-residential-part-one .hero {
    grid-template-columns:
      minmax(0, 0.9fr)
      minmax(500px, 1.1fr) !important;
  }

  body.commercial-residential-part-one
  .hero > .hero-visual,
  body.commercial-residential-part-one
  .hero .building.has-commercial-video,
  body.commercial-residential-part-one
  .hero .building.has-commercial-video
  video.commercial-hero-video {
    min-height: 410px !important;
  }
}

@media (max-width: 980px) {
  body.commercial-residential-part-one .hero {
    grid-template-columns: 1fr !important;
    grid-template-rows:
      auto
      auto
      auto
      auto
      auto;
    padding:
      32px
      32px
      0 !important;
  }

  body.commercial-residential-part-one
  .hero > .hero-copy > .eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  body.commercial-residential-part-one
  .hero > .hero-copy > h1 {
    grid-column: 1;
    grid-row: 2;
    max-width: 760px;
  }

  body.commercial-residential-part-one
  .hero > .hero-copy > p {
    grid-column: 1;
    grid-row: 3;
    max-width: 720px;
  }

  body.commercial-residential-part-one
  .hero > .hero-visual {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    min-height: 0;
    margin: 28px 0 0 !important;
  }

  body.commercial-residential-part-one
  .hero .building.has-commercial-video {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 26px !important;
  }

  body.commercial-residential-part-one
  .hero .building.has-commercial-video
  video.commercial-hero-video {
    min-height: 0 !important;
    height: 100%;
  }

  body.commercial-residential-part-one
  .hero .commercial-benefits {
    grid-column: 1;
    grid-row: 5;
    margin: 28px -32px 0 !important;
    padding: 18px 32px 21px !important;
  }
}

@media (max-width: 680px) {
  body.commercial-residential-part-one .hero {
    padding:
      26px
      22px
      0 !important;
    border-radius: 28px;
  }

  body.commercial-residential-part-one
  .hero .commercial-benefits {
    display: block !important;
    margin: 24px -22px 0 !important;
    padding: 8px 22px 12px !important;
  }

  body.commercial-residential-part-one
  .hero .commercial-benefit {
    padding: 13px 0 !important;
  }

  body.commercial-residential-part-one
  .hero .commercial-benefit + .commercial-benefit {
    border-top: 1px solid rgba(78, 119, 136, 0.16) !important;
    border-left: 0 !important;
  }

  body.commercial-residential-part-one
  .hero .building.has-commercial-video {
    border-radius: 20px !important;
  }
}
