/* Hero Carousel - Full-width carousel with overlay content */

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: none;
  background: #1a1a1a;
  overflow: hidden;
}

.hero-carousel__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 280px;
  max-height: 60vh;
}

@media (min-width: 768px) {
  .hero-carousel__inner {
    min-height: 350px;
  }
}

@media (min-width: 1024px) {
  .hero-carousel__inner {
    min-height: 420px;
    max-height: 63vh;
  }
}

.hero-carousel .carousel-items {
  position: absolute;
  inset: 0;
  padding: 0;
}

.hero-carousel .carousel-item {
  position: absolute;
  inset: 0;
  max-height: none;
  max-width: none;
}

.hero-carousel .carousel-item .carousel-image,
.hero-carousel .carousel-item .carousel-image a,
.hero-carousel .carousel-item .carousel-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-carousel .carousel-item .carousel-image a {
  text-decoration: none;
}

/* Overlay */
.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.hero-carousel__overlay .hero-carousel__content {
  pointer-events: auto;
}

.hero-carousel__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.15) 70%,
    transparent 100%
  );
  z-index: -1;
}

.hero-carousel__content {
  width: 100%;
  padding: 2rem 1.5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-carousel__content {
    padding: 3rem 2rem 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-carousel__content {
    padding: 4rem 2rem 5rem;
  }
}

/* Typography */
.hero-carousel__headline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-carousel__headline-main {
  display: block;
}

.hero-carousel__headline-accent {
  display: block;
  font-size: 0.75em;
  font-weight: 600;
  color: #FED03D;
  margin-top: 0.25em;
}

.hero-carousel__description {
  margin: 0 0 1.5rem;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  max-width: 640px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
  .hero-carousel__description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* CTA Buttons */
.hero-carousel__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-carousel__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.hero-carousel__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.hero-carousel__btn--primary {
  background: #16BB28;
  color: #fff;
}

.hero-carousel__btn--primary:hover {
  background: #14a824;
}

.hero-carousel__btn--secondary {
  background: #FED03D;
  color: #1a1a1a;
}

.hero-carousel__btn--secondary:hover {
  background: #e8bc2a;
}

.hero-carousel__btn-icon {
  flex-shrink: 0;
}

/* Controls - repositioned for hero */
.hero-carousel .controls {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  top: auto;
  padding: 0 1rem;
  width: 100%;
  z-index: 10;
}

.hero-carousel .controls button {
  margin-left: 0.5rem;
}

.hero-carousel .controls button.previous {
  right: 70px;
}

.hero-carousel .controls button.next {
  right: 18px;
}

@media (min-width: 768px) {
  .hero-carousel .controls {
    bottom: 2rem;
    right: 2rem;
  }
}

/* Dot indicators */
.hero-carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-carousel__dots {
    bottom: 2rem;
  }
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-carousel__dot--active {
  background: #fff;
  transform: scale(1.2);
}

/* Fade transition for slides */
.hero-carousel .carousel-item {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.hero-carousel .carousel-item.active {
  opacity: 1;
  z-index: 1;
}
