/* EnerXCo homepage video hero and duct-sizing feature — v97 */
.home-video-hero {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding:
    clamp(54px, 6vw, 88px)
    0
    clamp(54px, 6vw, 88px)
    max(var(--ex-right), calc((100vw - 1480px) / 2)) !important;
  grid-template-columns: minmax(620px, 0.95fr) minmax(500px, 1.05fr) !important;
  gap: clamp(40px, 4vw, 64px) !important;
  align-items: center !important;
  overflow: hidden;
  background: #f7f8fb;
}

.home-video-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1480px, calc(100% - 2 * var(--ex-right)));
  height: 1px;
  background: #e4e7ec;
  transform: translateX(-50%);
}

.home-video-hero .ex-hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 610px;
  padding-right: 0;
}

.home-video-hero h1 {
  max-width: 610px !important;
  margin: 0 !important;
  font-size: clamp(34px, 4vw, 56px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.05em !important;
}

.home-video-hero .hero-step-count {
  max-width: 570px;
  margin: 20px 0 0;
  color: #475467;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
}

.home-video-hero .hero-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 28px !important;
}

.home-video-hero .hero-actions .btn,
.home-video-hero .hero-actions .trust-button {
  min-height: 44px;
  padding: 0 15px !important;
  white-space: nowrap;
  font-size: 14.5px !important;
  font-weight: 680 !important;
}

.home-video-hero .hero-actions .trust-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.home-video-hero .ex-hero-visual {
  position: relative !important;
  width: calc(100% + 52px) !important;
  margin-left: -52px;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  isolation: isolate;
}

.home-video-hero .ex-hero-visual video {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
}

.duct-service-section {
  width: min(1480px, calc(100% - 2 * var(--ex-right)));
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(54px, 6vw, 88px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 5vw, 84px);
  border-bottom: 1px solid #e4e7ec;
}

.duct-service-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.duct-service-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.duct-service-copy {
  max-width: 610px;
}

.duct-service-copy h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.duct-service-copy p {
  margin: 20px 0 28px;
  max-width: 570px;
  color: #475467;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
}

@media (max-width: 1260px) {
  .home-video-hero {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding-right: var(--ex-right) !important;
    padding-left: var(--ex-right) !important;
  }

  .home-video-hero .ex-hero-copy {
    max-width: 680px;
    padding-right: 0;
  }

  .home-video-hero h1 {
    max-width: 820px !important;
  }

  .home-video-hero .ex-hero-visual {
    order: 0 !important;
    width: 100% !important;
    margin-left: 0;
  }

  .duct-service-section {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
    gap: 42px;
  }
}

@media (max-width: 820px) {
  .duct-service-section {
    grid-template-columns: 1fr;
  }

  .duct-service-copy {
    order: 1;
  }

  .duct-service-image {
    order: 2;
  }

  .duct-service-copy {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .home-video-hero {
    gap: 24px !important;
    padding-top: 34px !important;
    padding-left: 16px !important;
  }

  .home-video-hero .ex-hero-copy {
    padding-right: 16px;
  }

  .home-video-hero h1 {
    font-size: clamp(32px, 9.2vw, 44px) !important;
    line-height: 1.04 !important;
  }

  .home-video-hero .hero-actions {
    flex-wrap: wrap !important;
    margin-top: 28px !important;
  }

  .home-video-hero .ex-hero-visual {
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
  }

  .duct-service-section {
    width: calc(100% - 32px);
    padding: 48px 0;
  }

  .duct-service-copy h2 {
    font-size: clamp(32px, 9.2vw, 44px);
  }
}

@media (max-width: 560px) {
  .home-video-hero .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .home-video-hero .hero-actions .btn,
  .home-video-hero .hero-actions .trust-button {
    width: 100%;
  }

  .duct-service-copy .btn {
    width: 100%;
  }
}
