/* [NEW] Homepage Hero Banner – see HERO_BANNER_README.md */

/* Hero Banner – new homepage banner component */

.hero-banner {
  position: relative;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  background-color: #fff;
}

.hero-banner.section {
  padding-top: 0;
}

.hero-banner__inner {
  position: relative;
}

/* Image track – full width up to 3440px, white sides beyond */
.hero-banner__media {
  position: relative;
  background-color: #fff;
}

.hero-banner__media-inner {
  width: 100%;
  max-width: 3440px;
  margin: 0 auto;
}

.hero-banner__swiper {
  overflow: hidden;
}

.hero-banner__swiper .swiper-wrapper {
  height: 100%;
}

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

.hero-banner__picture,
.hero-banner__picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-banner__picture {
  overflow: hidden;
}

.hero-banner__picture img {
  max-width: 3440px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
}

/* Desktop – 480px banner height */
@media screen and (min-width: 993px) {
  .hero-banner__inner {
    height: 480px;
    overflow: visible;
  }

  .hero-banner__media,
  .hero-banner__media-inner,
  .hero-banner__swiper {
    height: 480px;
  }
}

@media (min-width: 3441px) {
  .hero-banner__picture img {
    width: 3440px;
  }
}

/* Desktop overlay content */
.hero-banner__content-wrap {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 100%;
  pointer-events: none;
}

.hero-banner__content-wrap.container {
  overflow: visible;
}

.hero-banner__content-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  max-width: 459px;
  pointer-events: auto;
}

.hero-banner__content-panel.is-active {
  display: flex;
}

.hero-banner__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.hero-banner__label {
  margin: 0;
}

.hero-banner__content-panel .hero__content__title {
  margin: 0;
}

.hero-banner__content-panel .button {
  font-size: 17px;
}

@media screen and (min-width: 992px) {
  .hero-banner__content-panel .hero__content__title {
    font-size: 36px;
    line-height: 44px;
  }
}

@media screen and (min-width: 993px) {
  .hero-banner__label {
    font-size: 24px;
    line-height: 32px;
  }
}

/* Thumbnail navigation – scoped overrides for new hero banner (Figma) */
.hero-banner .hero__thumbnail,
.hero-banner .hero__thumbnail * {
  box-sizing: border-box;
}

.hero-banner .hero__thumbnail::after {
  display: none;
}

.hero-banner .hero__thumbnail__item {
  position: relative;
  /* Explicit z-index creates a stacking context so ::after cannot cover sibling thumbs */
  z-index: 1;
  display: block;
  float: none;
  flex: 0 0 auto;
  overflow: hidden;
  margin-left: -130px;
  padding: 0; /* reset legacy app.css mobile padding-top: 14% aspect-ratio hack */
  border: 8px solid #fff;
  border-radius: 67px;
  width: 210px;
  height: 118px;
  transition: width 200ms ease-in, box-shadow 200ms ease-in;
}

.hero-banner .hero__thumbnail__item:first-child {
  margin-left: 0;
}

/* Override legacy app.css nth-child(1–4) fixed stack; JS sets distance-based z-index. */
.hero-banner .hero__thumbnail__item:nth-child(n) {
  z-index: 1;
}

.hero-banner .hero__thumbnail__item::before {
  display: none;
}

.hero-banner .hero__thumbnail__item::after {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: inherit;
  opacity: 0.5;
  background-color: #000;
  transition: opacity 200ms ease-in;
  pointer-events: none;
  content: '';
}

.hero-banner .hero__thumbnail__item.active {
  z-index: 20 !important;
  width: 238px;
  height: 134px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.hero-banner .hero__thumbnail__item.active::after {
  width: 100%;
  height: 100%;
  opacity: 0;
  box-shadow: none;
}

.hero-banner .hero__thumbnail__item.prev-prev {
  z-index: 18 !important;
}

.hero-banner .hero__thumbnail__item.prev,
.hero-banner .hero__thumbnail__item.next {
  z-index: 19 !important;
}

.hero-banner .hero__thumbnail__item img {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: none;
  height: 100%;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: center;
  transition: none;
}

.hero-banner .hero__thumbnail__item.active img {
  width: 100%;
  box-shadow: none;
}

.hero-banner .hero__thumbnail__control {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin-left: 40px;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  overflow: visible;
}

.hero-banner .hero__thumbnail__control img {
  position: static;
  width: 100%;
  height: 100%;
  transform: none;
}

.hero-banner .hero__thumbnail__control span {
  display: block;
  width: 100%;
  height: 100%;
  text-indent: -9999px;
  overflow: hidden;
}

.hero-banner .hero__thumbnail__control .play,
.hero-banner .hero__thumbnail__control .pause {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-banner .hero__thumbnail__control .play img,
.hero-banner .hero__thumbnail__control .pause img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-banner .hero__thumbnail__control .play {
  display: none;
}

.hero-banner .hero__thumbnail__control .pause {
  display: block;
}

.hero-banner .hero__thumbnail__control.pause .play {
  display: block;
}

.hero-banner .hero__thumbnail__control.pause .pause {
  display: none;
}

@media screen and (min-width: 993px) {
  .hero-banner .hero__thumbnail {
    position: absolute;
    z-index: 6;
    right: auto;
    bottom: -67px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    white-space: nowrap;
    border-radius: 0;
    transform: translateX(-50%);
  }
}

/* Mobile layout – content below banner */
@media screen and (max-width: 992px) {
  .hero-banner__media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .hero-banner__media-inner,
  .hero-banner__swiper {
    height: 100%;
  }

  .hero-banner__content-wrap {
    position: relative;
    display: block;
    height: auto;
    padding-top: 24px;
    padding-right: 15px;
    padding-bottom: 32px;
    padding-left: 15px;
  }

  .hero-banner__content-panel {
    max-width: none;
    gap: 16px;
  }

  .hero-banner__label {
    font-size: 20px;
  }

  .hero-banner__content-panel .hero__content__title {
    font-size: 28px;
  }

  .hero-banner__content-panel .button {
    display: block;
    width: 100%;
  }

  .hero-banner .hero__thumbnail {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin-top: 0;
    margin-bottom: 32px;
    padding-right: 15px;
    padding-left: 15px;
    transform: none;
  }

  .hero-banner .hero__thumbnail__item {
    width: 100px;
    height: 56px;
    margin-left: -60px;
    padding: 0; /* keep fixed ratio; override app.css padding-top: 14% */
    border-width: 4px;
    border-radius: 28px;
  }

  .hero-banner .hero__thumbnail__item.active {
    width: 114px;
    height: 64px;
    padding: 0;
    border-radius: 32px;
  }

  .hero-banner .hero__thumbnail__control {
    width: 32px;
    height: 32px;
    margin-left: 8px;
  }
}

/* Extra top spacing after hero banner (desktop only – clears overlapping thumbnails) */
.bg-brightGray--after-hero {
  padding-top: 0;
}

@media screen and (min-width: 993px) {
  .bg-brightGray--after-hero {
    padding-top: 80px;
  }
}
