/* ============ HERO SLIDESHOW ============ */
.hero-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slideshow .swiper {
    width: 100%;
    height: 85vh;
    min-height: 520px;
    max-height: 800px;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 6s ease-out;
}

/* Reverse Ken Burns: starts zoomed in, slowly zooms out */
.swiper-slide-active .hero-slide-image {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(30, 45, 36, 0.75) 0%,
        rgba(30, 45, 36, 0.45) 50%,
        rgba(30, 45, 36, 0.15) 100%
    );
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 15%;
    z-index: 2;
}

.hero-slide-content .container {
    width: 100%;
}

.hero-slide-text {
    max-width: 600px;
    color: var(--color-white);
    margin: 0 auto;
    text-align: center;
}

.hero-slide-text.text-center {
    margin: 0 auto;
    text-align: center;
}

.hero-slide-text.text-right {
    margin-left: auto;
    text-align: right;
}

.hero-slide-text h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-slide-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

/* Staggered entrance per slide change */
.swiper-slide-active .hero-slide-text h1 {
    animation: heroFadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.swiper-slide-active .hero-slide-text p {
    animation: heroFadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.swiper-slide-active .hero-slide-text .btn {
    animation: heroFadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Navigation */
.hero-slideshow .swiper-button-next,
.hero-slideshow .swiper-button-prev {
    color: var(--color-white);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.hero-slideshow .swiper-button-next:hover,
.hero-slideshow .swiper-button-prev:hover {
    background: var(--color-accent);
    transform: scale(1.05);
}

.hero-slideshow .swiper-button-next::after,
.hero-slideshow .swiper-button-prev::after {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Pagination */
.hero-slideshow .swiper-pagination {
    bottom: 28px !important;
}

.hero-slideshow .swiper-pagination-bullet {
    width: 32px;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--color-white);
    opacity: 0.4;
    transition: all var(--transition-base);
}

.hero-slideshow .swiper-pagination-bullet-active {
    opacity: 1;
    width: 48px;
    background: var(--color-accent);
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-slideshow .swiper {
        height: 60vh;
        min-height: 400px;
    }

    .hero-slide-text {
        max-width: 100%;
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 var(--space-md);
    }

    .hero-slideshow .swiper-button-next,
    .hero-slideshow .swiper-button-prev {
        display: none;
    }

    .hero-slideshow .swiper-pagination-bullet {
        width: 24px;
        height: 3px;
    }

    .hero-slideshow .swiper-pagination-bullet-active {
        width: 36px;
    }
}

@media (max-width: 480px) {
    .hero-slideshow .swiper {
        height: 50vh;
        min-height: 320px;
        max-height: 440px;
    }

    .hero-slide-content {
        padding-bottom: 20%;
    }

    .hero-slide-text {
        padding: 0 var(--space-sm);
    }

    .hero-slide-text p {
        font-size: 0.82rem;
        margin-bottom: var(--space-md);
    }

    .hero-slide-text .btn {
        font-size: 0.82rem;
        padding: 10px 20px;
    }

    .hero-slideshow .swiper-pagination {
        bottom: 16px !important;
    }
}
