/* ============================================
   HERO CAROUSEL — Premium Enhanced
   ============================================ */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
  z-index: 0;
}

.hero-bg.is-active {
  opacity: 0.7;
}

.hero-carousel {
  position: relative;
  min-height: 320px;
}

/* ---------- Slides ---------- */
.hero-slide {
  opacity: 0;
  transition: opacity 800ms cubic-bezier(.4, 0, .2, 1);
  position: absolute;
  inset: 0;
  pointer-events: none;
  text-align: left;
}

.hero-slide.is-active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

/* Staggered text reveal animations */
.hero-slide h1,
.hero-slide p {
  opacity: 0;
  transform: translateX(-100px);
  will-change: transform, opacity;
  transition: opacity 800ms cubic-bezier(.4, 0, .2, 1),
              transform 800ms cubic-bezier(.4, 0, .2, 1);
}

.hero-slide.is-active h1,
.hero-slide.is-active p {
  opacity: 1;
  transform: translateX(0);
}

.hero-slide.is-active h1 {
  transition-delay: 150ms;
}

.hero-slide.is-active p {
  transition-delay: 350ms;
}

/* ---------- Carousel Controls Row ---------- */
.hero-carousel-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  justify-content: center;
}

/* ---------- Navigation Arrows ---------- */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 280ms cubic-bezier(.4, 0, .2, 1);
  flex-shrink: 0;
}

.hero-nav:hover {
  background: #C8102E;
  border-color: #C8102E;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(200, 16, 46, 0.4);
}

.hero-nav:active {
  transform: scale(0.95);
}

.hero-nav svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  fill: none;
  stroke: currentColor;
}

/* ---------- Dots ---------- */
.hero-carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.hero-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 350ms cubic-bezier(.4, 0, .2, 1);
  overflow: visible;
  /* changed from hidden, so click area extends */
}

.hero-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #C8102E;
  transform: scale(0);
  transition: transform 350ms cubic-bezier(.4, 0, .2, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.15);
}

.hero-dot.is-active {
  width: 36px;
  background: rgba(200, 16, 46, 0.25);
}

.hero-dot.is-active::after {
  transform: scale(1);
  animation: dotProgress 4000ms linear forwards;
}

@keyframes dotProgress {
  from {
    transform: scaleX(0);
    transform-origin: left center;
  }

  to {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

/* ---------- Slide Counter ---------- */
.hero-slide-counter {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  user-select: none;
}

.hero-slide-counter .current-slide {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
}

.hero-slide-counter .separator {
  margin: 0 0.25rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ---------- Progress Bar ---------- */
.hero-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 3;
  overflow: hidden;
}

.hero-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #C8102E, #E8384F);
  width: 0%;
  animation: progressFill 4000ms linear forwards;
  border-radius: 0 3px 3px 0;
}

@keyframes progressFill {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero-carousel {
    min-height: 260px;
  }

  .hero-carousel-controls {
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .hero-nav {
    width: 38px;
    height: 38px;
  }

  .hero-nav svg {
    width: 18px;
    height: 18px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .hero-dot.is-active {
    width: 28px;
  }

  .hero-slide-counter {
    font-size: 0.75rem;
  }

  .hero-slide-counter .current-slide {
    font-size: 1rem;
  }
}

/* ============================================
   FORM TOAST
   ============================================ */
.form-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10050;
  min-width: 260px;
  max-width: 90vw;
  background: #0f172a;
  color: #fff;
  border-left: 4px solid #10B981;
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  padding: 0.9rem 1rem;
  transform: translateY(18px);
  opacity: 0;
  transition: all 220ms ease;
}

.form-toast.show {
  transform: translateY(0);
  opacity: 1;
}