/* =========================================================
   WLUSV MODULES PAGE LAYOUT REFINEMENT v2.9
   ========================================================= */

/* Hero: keep all content clear of the fixed navigation. */
.modules-photo-hero {
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 154px 0 92px !important;
}

.modules-photo-hero .page-hero-inner {
  width: min(calc(100% - 40px), 1240px);
  margin-inline: auto;
  padding: 0;
}

.modules-photo-hero .page-hero-inner .kicker {
  margin-bottom: 16px;
}

.modules-photo-hero .page-hero-inner h1 {
  max-width: 850px;
  margin: 0 0 26px;
  font-size: clamp(54px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.047em;
}

.modules-photo-hero .page-hero-inner > p:last-child {
  max-width: 790px;
  margin: 0;
  color: #d3e3ec;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.58;
}

/* Improve image framing and readability behind the text. */
.modules-photo-hero .page-hero-media::after {
  background:
    linear-gradient(
      90deg,
      rgba(3, 17, 28, 0.97) 0%,
      rgba(3, 17, 28, 0.82) 47%,
      rgba(3, 17, 28, 0.43) 78%,
      rgba(3, 17, 28, 0.62) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 17, 28, 0.38) 0%,
      rgba(3, 17, 28, 0.22) 45%,
      rgba(3, 17, 28, 0.82) 100%
    );
}

/* First modules section: balanced heading and CTA placement. */
.modules-photo-hero + .section {
  padding-top: 104px;
}

.modules-photo-hero + .section .section-heading.spread {
  display: grid;
  grid-template-columns: minmax(0, 880px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 54px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(158, 196, 220, 0.18);
}

.modules-photo-hero + .section .section-heading.spread > div {
  min-width: 0;
}

.modules-photo-hero + .section .section-heading.spread .kicker {
  margin-bottom: 18px;
}

.modules-photo-hero + .section .section-heading.spread h2 {
  max-width: 880px;
  font-size: clamp(44px, 5.1vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.043em;
}

.modules-photo-hero + .section .section-heading.spread .button {
  align-self: end;
  min-width: 190px;
  min-height: 50px;
  padding-inline: 22px;
  margin-bottom: 5px;
  white-space: nowrap;
  color: #d8efff;
  border-color: rgba(168, 206, 232, 0.42);
  background: rgba(168, 206, 232, 0.055);
}

.modules-photo-hero + .section .section-heading.spread .button::after {
  content: "→";
  margin-left: 10px;
  font-size: 15px;
  transition: transform 0.2s ease;
}

.modules-photo-hero + .section .section-heading.spread .button:hover::after {
  transform: translateX(4px);
}

/* Avoid a duplicated divider immediately below the refined heading. */
.modules-photo-hero + .section .product-list {
  border-top: 0;
}

/* Tablet and smaller desktop refinement. */
@media (max-width: 980px) {
  .modules-photo-hero {
    min-height: 500px;
    padding-top: 142px !important;
  }

  .modules-photo-hero + .section .section-heading.spread {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
  }

  .modules-photo-hero + .section .section-heading.spread .button {
    justify-self: start;
    margin-bottom: 0;
  }
}

/* Mobile refinement. */
@media (max-width: 780px) {
  .modules-photo-hero {
    min-height: 470px;
    padding: 118px 0 70px !important;
    align-items: flex-end;
  }

  .modules-photo-hero .page-hero-inner {
    width: min(calc(100% - 28px), 1240px);
  }

  .modules-photo-hero .page-hero-inner h1 {
    font-size: clamp(44px, 13vw, 64px);
    margin-bottom: 22px;
  }

  .modules-photo-hero .page-hero-inner > p:last-child {
    font-size: 17px;
  }

  .modules-photo-hero + .section {
    padding-top: 78px;
  }

  .modules-photo-hero + .section .section-heading.spread {
    margin-bottom: 36px;
    padding-bottom: 34px;
  }

  .modules-photo-hero + .section .section-heading.spread h2 {
    font-size: clamp(39px, 11vw, 56px);
  }

  .modules-photo-hero + .section .section-heading.spread .button {
    width: auto;
    min-width: 0;
  }
}
