/* Hero Carousel — full-bleed image slides with gradient overlay */

.carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    touch-action: pan-y;  /* let vertical scroll pass through to body */
}

.carousel__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.8s ease;
    position: absolute;
    inset: 0;
}

.carousel__slide--active {
    opacity: 1;
    position: relative;
}

.carousel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        transparent 70%
    );
    z-index: 1;
}

.carousel__content {
    position: relative;
    z-index: 2;
    padding: var(--space-10) var(--space-8);
    max-width: 720px;
    color: var(--white);
}

.carousel__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--white);
    line-height: 1.15;
    margin: 0 0 var(--space-3);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.carousel__desc {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Dots */
.carousel__dots {
    position: absolute;
    bottom: var(--space-5);
    right: var(--space-8);
    z-index: 3;
    display: flex;
    gap: var(--space-2);
}

.carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel__dot--active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
}

/* Compact variant — below hero, shorter */
.carousel--compact {
    height: 50vh;
    max-height: 500px;
}

/* Mobile */
@media (max-width: 640px) {
    .carousel {
        height: 50vh;
        min-height: 280px;
    }
    .carousel--compact {
        height: 40vh;
        min-height: 240px;
        max-height: 360px;
    }
    .carousel__content {
        padding: var(--space-6) var(--space-4);
    }
    .carousel__dots {
        right: var(--space-4);
    }
}
