/* ============================================================
   HERO CAROUSEL - Clean, Full-Width, Centered
   ============================================================ */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 450px;
    max-height: 750px;
    overflow: hidden;
    background: var(--gray-100);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.carousel-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    padding: 2rem;
    color: var(--white);
}


/* Hero heading — fluid size (inherits the new clamp token),
   tight leading + tracking for a cinematic, premium look */
.carousel-content h1 {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Hero subtitle — relaxed, readable lead over the image */
.carousel-content p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}


.carousel-content .btn {
    font-size: var(--font-size-base);
    padding: 0.75rem 2rem;
}

/* Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: var(--font-size-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.5);
}

.carousel-btn.prev {
    left: 1.5rem;
}

.carousel-btn.next {
    right: 1.5rem;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots button.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .hero-carousel {
        height: 70vh;
        min-height: 400px;
    }
    .carousel-content h1 {
        font-size: var(--font-size-4xl);
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 60vh;
        min-height: 350px;
    }
    .carousel-content {
        padding: 1.5rem;
    }
    .carousel-content h1 {
        font-size: var(--font-size-3xl);
    }
    .carousel-content p {
        font-size: var(--font-size-base);
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-base);
    }
    .carousel-btn.prev {
        left: 0.75rem;
    }
    .carousel-btn.next {
        right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 50vh;
        min-height: 300px;
    }
    .carousel-content h1 {
        font-size: var(--font-size-2xl);
    }
    .carousel-content p {
        font-size: var(--font-size-sm);
        margin-bottom: 1rem;
    }
    .carousel-content .btn {
        font-size: var(--font-size-sm);
        padding: 0.5rem 1.25rem;
    }
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .carousel-dots button {
        width: 8px;
        height: 8px;
    }
}