/* Compact homepage hero carousel */
.hero-carousel {
  min-height: 620px;
}

.hero-carousel .hero-bg {
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 500ms ease, transform 3.5s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-slide:nth-child(2) img {
  object-position: center 58%;
}

.hero-slide:nth-child(3) img {
  object-position: center;
}

.hero-slide-label {
  position: absolute;
  right: 30px;
  bottom: 28px;
  z-index: 2;
  padding: 9px 12px;
  background: rgba(17, 17, 19, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.hero-carousel .hero-inner {
  padding-block: 68px 92px;
}

.hero-carousel h1 {
  font-size: clamp(56px, 7vw, 110px);
  margin-block: 24px 20px;
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 25px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(16, 16, 18, 0.35);
  font-size: 14px;
  transition: background 200ms ease, border-color 200ms ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  border-color: var(--red);
  background: var(--red);
  outline: none;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 24px;
  height: 4px;
  padding: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 200ms ease, background 200ms ease;
}

.hero-dot.is-active {
  width: 40px;
  background: var(--red);
}

.hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .hero-carousel {
    min-height: 580px;
  }

  .hero-carousel .hero-inner {
    padding-block: 56px 98px;
  }

  .hero-carousel h1 {
    font-size: clamp(52px, 11vw, 76px);
  }

  .hero-slide-label {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-carousel {
    min-height: 540px;
  }

  .hero-carousel .hero-inner {
    padding-block: 42px 105px;
  }

  .hero-carousel h1 {
    font-size: clamp(50px, 12vw, 68px);
    margin-block: 18px 16px;
  }

  .hero-carousel .hero-actions .button {
    flex: 1 1 145px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-controls {
    right: auto;
    left: 0;
    bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transform: none;
    transition: none;
  }
}
