/* Hero banner — homepage redesign.
   Full-bleed image hero with offer headline, left gradient, CTAs,
   dot indicators and slide counter. See design_handoff_homepage/README.md §3. */

.hero-banner {
  position: relative;
}

.hero-banner__slideshow {
  display: block;
  position: relative;
}

.hero-banner__track {
  position: relative;
  height: var(--hero-height-m, 560px);
  overflow: hidden;
}

.hero-banner__track--empty {
  background: #ece6d7;
}

/* Slides — stacked, crossfading */
.hero-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.02, 0.01, 0, 0.95), visibility 0s linear 0.8s;
}

.hero-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.02, 0.01, 0, 0.95);
}

/* Media */
.hero-banner__media,
.hero-banner__img,
.hero-banner__placeholder,
.hero-banner__overlay {
  position: absolute;
  inset: 0;
}

.hero-banner__img,
.hero-banner__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner__img--desktop {
  display: none;
}

.hero-banner__overlay {
  background: linear-gradient(
    90deg,
    rgba(20, 18, 14, var(--hero-overlay, 0.55)) 0%,
    rgba(20, 18, 14, var(--hero-overlay-mid, 0.25)) 50%,
    rgba(20, 18, 14, 0) 80%
  );
}

/* Content */
.hero-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 960px;
  padding: 0 20px;
  color: #f2efe8;
}

.hero-banner__eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c98b6f;
}

.hero-banner__heading {
  margin: 0;
  max-width: 860px;
  font-family: "Urbanist", sans-serif;
  font-size: clamp(28px, 7vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Line 1 italic, line 2 bold */
.hero-banner__heading-line {
  display: block;
}

.hero-banner__heading-line:first-child {
  font-style: italic;
}

.hero-banner__heading-line:nth-child(2) {
  font-weight: 700;
}

.hero-banner__text {
  margin: 24px 0 0;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* Buttons */
.hero-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 32px;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-banner__btn--primary {
  background: #f2efe8;
  color: #242424;
}

.hero-banner__btn--primary:hover {
  background: #ffffff;
}

.hero-banner__btn--secondary {
  background: transparent;
  color: #f2efe8;
  box-shadow: inset 0 0 0 1px #f2efe8;
}

.hero-banner__btn--secondary:hover {
  background: #f2efe8;
  color: #242424;
}

/* Dot indicators */
.hero-banner__dots {
  position: absolute;
  bottom: 32px;
  left: 24px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-banner__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2efe8;
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.hero-banner__dot:hover,
.hero-banner__dot.is-active {
  opacity: 1;
}

/* Slide counter */
.hero-banner__counter {
  position: absolute;
  bottom: 30px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f2efe8;
  opacity: 0.85;
}

.hero-banner__counter-sep {
  opacity: 0.5;
}

/* Desktop */
@media screen and (min-width: 768px) {
  .hero-banner__track {
    height: var(--hero-height-d, 720px);
  }

  .hero-banner__content {
    padding: 0 96px;
  }

  .hero-banner__dots {
    left: 96px;
  }

  .hero-banner__counter {
    right: 96px;
  }

  .hero-banner__img--desktop {
    display: block;
  }

  .hero-banner__img--mobile {
    display: none;
  }
}

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