/* ===== HOMEPAGE HERO CAROUSEL ===== */

.hero-carousel {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.hero-carousel .hero-bg {
  padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
  .hero-carousel .hero-bg {
    padding-bottom: 5rem;
  }
}

.hero-carousel__content {
  padding-top: 6rem;
}

@media (min-width: 768px) {
  .hero-carousel__content {
    padding-top: 6.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-carousel__content {
    padding-top: 7.25rem;
  }
}

.hero-carousel__content h1 {
  margin-bottom: 1rem;
}

.hero-carousel__content .hero-badge {
  margin-bottom: 1rem;
}

.hero-carousel__content > p {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-carousel__content > p {
    margin-bottom: 1.75rem;
  }
}

.hero-carousel__content .channel-pill,
.hero-carousel__content .flex.flex-wrap {
  margin-bottom: 1.75rem !important;
}

@media (min-width: 768px) {
  .hero-carousel__content .flex.flex-wrap {
    margin-bottom: 2rem !important;
  }
}

.hero-carousel__content .hero-cta-row {
  margin-top: 1.5rem;
}

.hero-carousel__content .hero-animate--d5 {
  padding: 1.25rem 1rem;
}

@media (min-width: 768px) {
  .hero-carousel__content .hero-animate--d5 {
    padding: 1.5rem 1.75rem;
  }
}

/* Funnel strip: 4 steps across on desktop; 2×2 on mobile */
.hero-funnel {
  width: 100%;
}

@media (max-width: 767px) {
  .hero-funnel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.5rem;
    align-items: stretch;
    justify-items: stretch;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-funnel > .funnel-arrow {
    display: none;
  }

  .hero-funnel__step {
    width: 100%;
    justify-content: center;
    padding: 0.35rem 0.25rem;
    border-radius: 0.5rem;
    background: rgba(19, 26, 36, 0.65);
  }

  .hero-funnel__step .funnel-step {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    line-height: 1.35;
  }

  .hero-carousel__content .hero-animate--d5 {
    padding: 1rem 0.85rem;
  }

  .hero-carousel__content .channel-pill {
    font-size: 0.8125rem;
  }

  .hero-carousel__controls {
    bottom: 0.85rem;
  }

  .hero-carousel__content .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
  }

  .hero-carousel__content .hero-cta-btn {
    width: 100%;
  }
}

.hero-carousel__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  touch-action: pan-y;
}

.hero-carousel__track {
  display: flex;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero-bg.hero-bg--expo::before {
  background-image: url('../../assets/images/expo-agent/hero-expo-booth.jpg');
  background-position: center 25%;
  filter: blur(3px) brightness(0.62) saturate(0.95);
  transform: scale(1.06);
}

.hero-bg.hero-bg--expo::after {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(26, 35, 50, 0.68) 0%, rgba(10, 14, 20, 0.42) 55%, rgba(10, 14, 20, 0.18) 100%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.28) 0%, rgba(10, 14, 20, 0.65) 75%, #0a0e14 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(195, 166, 105, 0.42);
  background: #0a0e14;
  color: rgba(195, 166, 105, 0.78);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation:
    hero-badge-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    hero-badge-pulse 2.4s ease-in-out 0.75s infinite;
}

.hero-badge i {
  color: inherit;
  font-size: 0.625rem;
}

@keyframes hero-badge-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-badge-pulse {
  0%,
  100% {
    border-color: rgba(195, 166, 105, 0.38);
    color: rgba(195, 166, 105, 0.72);
    background-color: #0a0e14;
    box-shadow: none;
  }

  50% {
    border-color: rgba(255, 242, 220, 0.95);
    color: rgba(255, 248, 235, 1);
    background-color: #10161f;
    box-shadow:
      0 0 16px rgba(224, 202, 150, 0.42),
      0 0 32px rgba(195, 166, 105, 0.22),
      inset 0 0 10px rgba(255, 236, 190, 0.12);
  }
}

.hero-title-serif {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-carousel__controls {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.45);
  transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.hero-carousel__dot:hover {
  background: rgba(224, 202, 150, 0.7);
}

.hero-carousel__dot--active {
  width: 1.5rem;
  background: var(--brand-gold);
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(195, 166, 105, 0.35);
  background: rgba(10, 14, 20, 0.55);
  backdrop-filter: blur(8px);
  color: var(--brand-gold-light);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-carousel__arrow:hover {
  background: rgba(195, 166, 105, 0.15);
  border-color: var(--brand-gold);
  color: #fff;
}

.hero-carousel__arrow--prev { left: 1rem; }
.hero-carousel__arrow--next { right: 1rem; }

@media (min-width: 768px) {
  .hero-carousel__arrow {
    display: inline-flex;
  }

  .hero-carousel__controls {
    bottom: 1.75rem;
  }
}

/* Replay entrance animations when a slide becomes active */
.hero-carousel__slide:not(.hero-carousel__slide--active) .hero-animate,
.hero-carousel__slide:not(.hero-carousel__slide--active) .channel-pill,
.hero-carousel__slide:not(.hero-carousel__slide--active) .hero-badge {
  opacity: 0;
  animation: none;
  visibility: hidden;
}

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

  .hero-badge {
    opacity: 1;
    animation: none;
    border-color: rgba(195, 166, 105, 0.55);
    color: var(--brand-gold-light);
  }

  .hero-carousel__slide:not(.hero-carousel__slide--active) .hero-animate,
  .hero-carousel__slide:not(.hero-carousel__slide--active) .channel-pill {
    opacity: 1;
  }
}
