/* IM S5 Hero (`im-s5-hero`, `.section--s5-hero-module`). Matches widget PHP constants. Loaded via root-widgets.css. */

.section--s5-hero-module {
  padding-top: 30px;
  .s5-hero-module__outer {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .s5-hero-module__inner {
    position: relative;
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 680px;
    background: #111;
    border-radius: 20px;
    padding: 64px;
    overflow: hidden;
  }

  .s5-hero-module__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.25;
  }

  .s5-hero-module__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(315deg, rgba(251, 199, 47, 0.5) 0%, rgba(251, 199, 47, 0) 50%);
    z-index: 1;
  }

  .s5-hero-module__grid {
    display: flex;
    gap: 32px;
    align-items: stretch;
    flex-wrap: nowrap;
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100%;
  }

  .s5-hero-module__copy {
    order: 1;
    flex: 0 0 55%;
    max-width: 55%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .s5-hero-module__copy-inner {
    width: 100%;
    max-width: 550px;
  }

  .s5-hero-module__spotlight {
    order: 2;
    flex: 0 0 45%;
    max-width: 45%;
    align-self: stretch;
  }

  .s5-hero-module__headline {
    margin: 0 0 16px;
    color: #fff;
    font-size: 56px;
    line-height: 1.05;
    text-wrap: balance;
    font-weight: 400;

    strong,
    b {
      color: var(--s5-color-yellow, #fbc72f);
      font-weight: 700;
    }
  }

  .s5-hero-module__body {
    margin: 0 0 24px;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    max-width: 60ch;
    text-wrap: balance;

    p,
    li,
    span,
    a {
      color: #fff;
    }
  }

  .s5-hero-module__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .s5-hero-module__product-slider {
    position: relative;
    height: 100%;

    .swiper-wrapper {
      height: 100%;
    }

    .swiper-slide {
      height: 100%;
    }
  }

  .s5-hero-module__product-card {
    position: relative;
    background: #111;
    color: #111;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
  }

  .s5-hero-module__slide-bg {
    position: relative;
    height: 100%;
    min-height: 550px;
    padding: 20px 40px 92px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .s5-hero-module__slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .s5-hero-module__slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 20%, rgba(0, 0, 0, 0.7) 100%);
  }

  .s5-hero-module__slide-content {
    position: relative;
    z-index: 1;
  }

  .s5-hero-module__slide-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
  }

  .s5-hero-module__slide-title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.1;
    color: #fff;
  }

  .s5-hero-module__slide-cta {
    display: inline-block;
  }

  .s5-hero-module__spotlight-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
  }

  .s5-hero-module__slider-controls {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 30px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .s5-hero-module__slider-nav {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;

    &:hover {
      color: var(--s5-color-yellow, #fbc72f);
      opacity: 1;
    }

    &.swiper-button-disabled {
      opacity: 0.5;
      cursor: default;
      pointer-events: none;
    }

    i {
      font-size: 16px;
      line-height: 1;
    }
  }

  .s5-hero-module__slider-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    .swiper-pagination-bullet {
      width: 10px;
      height: 10px;
      margin: 0 !important;
      border-radius: 999px;
      background: var(--s5-color-gray-600, #4b5563);
      opacity: 1;
      transition: all 0.2s ease;
    }

    .swiper-pagination-bullet-active {
      width: 28px;
      height: 10px;
      border-radius: 999px;
      background: var(--s5-color-yellow, #fbc72f);
    }
  }

  @media (max-width: 1200px) {
    .s5-hero-module__inner {
      padding: 48px 40px;
    }

    .s5-hero-module__headline {
      font-size: 46px;
    }
  }

  @media (max-width: 1024px) {
    .s5-hero-module__outer {
      padding: 0 18px;
    }

    .s5-hero-module__inner {
      min-height: auto;
      padding: 40px 28px;
      display: block;
    }

    .s5-hero-module__grid {
      gap: 24px;
      flex-wrap: wrap;
    }

    .s5-hero-module__copy,
    .s5-hero-module__spotlight {
      flex: 0 0 100%;
      max-width: 100%;
    }

    .s5-hero-module__headline {
      font-size: 40px;
    }

    .s5-hero-module__body {
      font-size: 17px;
    }
  }

  @media (max-width: 767px) {
    .s5-hero-module__outer {
      padding: 0 14px;
    }

    .s5-hero-module__inner {
      padding: 28px 18px;
      border-radius: 20px;
    }

    .s5-hero-module__eyebrow {
      font-size: 12px;
    }

    .s5-hero-module__headline {
      font-size: 32px;
      line-height: 1.08;
    }

    .s5-hero-module__body {
      font-size: 16px;
      margin-bottom: 18px;
    }

    .s5-hero-module__ctas {
      flex-direction: column;
      align-items: stretch;

      .btn {
        width: 100%;
        text-align: center;
      }
    }
  }
}
