/* ============================================
   HERO BANNER COMPONENT - Simple + Carousel
   ============================================ */

.hero-banner-section {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-banner-slide {
    position: relative;
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-banner-slide.has-bg-color {
    background: linear-gradient(
        135deg,
        var(--hero-banner-bg-color, var(--primary, #886ab5)) 0%,
        var(--hero-banner-bg-color-dark, var(--primary-dark, #6d5591)) 100%
    );
}

.hero-banner-slide.has-bg-color.is-light-bg {
    background: var(--hero-banner-bg-color, #FFFFFF);
}

.hero-banner-slide.has-background {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--hero-banner-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-banner-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero-banner-slide.has-background .hero-banner-title {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-banner-slide.has-bg-color.is-dark-bg .hero-banner-title {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-banner-slide.has-bg-color.is-light-bg .hero-banner-title {
    color: var(--gray-900);
    text-shadow: none;
}

.hero-banner-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-700);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-banner-slide.has-background .hero-banner-subtitle {
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-banner-slide.has-bg-color.is-dark-bg .hero-banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.28);
}

.hero-banner-slide.has-bg-color.is-light-bg .hero-banner-subtitle {
    color: var(--gray-700);
    text-shadow: none;
}

.hero-banner-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.hero-banner-actions .btn,
.hero-banner-actions .btn-success-outlined {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all 0.3s ease;
}

.hero-banner-slide .btn-hero-white {
    background: #FFFFFF !important;
    color: var(--primary-700, var(--primary, #886ab5)) !important;
    border: 2px solid color-mix(in srgb, var(--primary, #886ab5) 25%, var(--gray-200)) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--primary, #886ab5) 14%, transparent) !important;
    backdrop-filter: blur(4px);
}

.hero-banner-slide.has-background .btn-hero-white,
.hero-banner-slide.has-bg-color.is-dark-bg .btn-hero-white {
    border-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
}

.hero-banner-slide .btn-hero-white:hover {
    background: var(--white) !important;
    color: var(--primary, #886ab5) !important;
    border-color: var(--primary, #886ab5) !important;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary, #886ab5) 22%, transparent) !important;
    transform: translateY(-2px) !important;
}

.hero-banner-slide.has-background .btn-hero-white:hover,
.hero-banner-slide.has-bg-color.is-dark-bg .btn-hero-white:hover {
    border-color: rgba(255, 255, 255, 0.95) !important;
}

.hero-banner-slide .btn-hero-complementary {
    background: var(--hero-secondary-complementary, var(--secondary, #97b56a)) !important;
    color: var(--hero-secondary-text, var(--text-on-secondary, var(--white))) !important;
    border: 2px solid var(--hero-secondary-complementary, var(--secondary, #97b56a)) !important;
    border-radius: 12px !important;
    box-shadow:
        0 2px 10px color-mix(in srgb, var(--hero-secondary-complementary, var(--secondary, #97b56a)) 24%, transparent),
        inset 0 1px 0 color-mix(in srgb, #ffffff 18%, transparent) !important;
}

.hero-banner-slide .btn-hero-complementary:hover {
    background: color-mix(in srgb, var(--hero-secondary-complementary, var(--secondary, #97b56a)) 88%, #000000 12%) !important;
    color: var(--hero-secondary-text, var(--text-on-secondary, var(--white))) !important;
    border-color: color-mix(in srgb, var(--hero-secondary-complementary, var(--secondary, #97b56a)) 88%, #000000 12%) !important;
    box-shadow:
        0 4px 16px color-mix(in srgb, var(--hero-secondary-complementary, var(--secondary, #97b56a)) 42%, transparent),
        0 0 20px color-mix(in srgb, var(--hero-secondary-complementary, var(--secondary, #97b56a)) 20%, transparent) !important;
    transform: translateY(-2px) !important;
}

.hero-banner-actions .btn i,
.hero-banner-actions .btn-success-outlined i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.hero-banner-actions .btn:hover i {
    transform: translateX(4px);
}

.hero-banner-actions .btn-success-outlined:hover i {
    transform: scale(1.1);
}

/* Carousel mode */
.hero-banner-carousel-section {
    min-height: 600px;
}

.hero-banner-carousel-track {
    position: relative;
    min-height: 600px;
}

.hero-banner-carousel-track .hero-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(12%);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.52s ease, transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.52s ease;
}

.hero-banner-carousel-track .hero-banner-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.hero-banner-carousel-track .hero-banner-slide.is-prev {
    opacity: 0;
    transform: translateX(-10%);
}

.hero-banner-carousel-track .hero-banner-slide.is-active.is-backward {
    transform: translateX(-12%);
    animation: heroSlideInBackward 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-banner-carousel-track .hero-banner-slide.is-active.is-forward {
    transform: translateX(12%);
    animation: heroSlideInForward 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 1px solid color-mix(in srgb, var(--primary, #886ab5) 28%, #ffffff 72%);
    background: color-mix(in srgb, #ffffff 84%, var(--primary, #886ab5) 16%);
    color: var(--primary, #886ab5);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    z-index: 4;
    opacity: 0.98;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary, #886ab5) 24%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hero-carousel-nav.prev {
    left: 1rem;
}

.hero-carousel-nav.next {
    right: 1rem;
}

.hero-carousel-nav:hover {
    color: #ffffff;
    background: var(--primary, #886ab5);
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--primary, #886ab5) 36%, transparent);
}

.hero-carousel-nav:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary, #886ab5) 45%, #ffffff 55%);
    outline-offset: 2px;
}

.hero-carousel-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.25rem;
    display: flex;
    gap: 0.55rem;
    z-index: 4;
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 24, 39, 0.15);
    padding: 0;
}

.hero-carousel-dot.is-active {
    background: var(--primary, #886ab5);
    width: 24px;
    border-color: var(--primary, #886ab5);
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSlideInForward {
    from {
        transform: translateX(12%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes heroSlideInBackward {
    from {
        transform: translateX(-12%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-banner-section {
        min-height: 460px;
    }

    .hero-banner-slide {
        padding: clamp(2.2rem, 8vw, 3.2rem) 0;
    }

    .hero-banner-slide.has-background,
    .hero-banner-carousel-track {
        min-height: 460px;
    }

    .hero-banner-content {
        max-width: 720px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-banner-title {
        font-size: clamp(1.55rem, 6.2vw, 2.1rem);
        margin-bottom: 0.75rem;
        line-height: 1.22;
        letter-spacing: -0.01em;
    }

    .hero-banner-subtitle {
        font-size: clamp(0.98rem, 3.2vw, 1.12rem);
        margin: 0 auto 1.25rem;
        line-height: 1.5;
        max-width: 62ch;
    }

    .hero-banner-actions {
        width: 100%;
        gap: 0.75rem;
    }

    .hero-banner-actions .btn,
    .hero-banner-actions .btn-success-outlined {
        width: auto;
        max-width: 100%;
        justify-content: center;
    }

    .hero-carousel-nav {
        width: 44px;
        height: 44px;
        top: auto;
        bottom: 0.75rem;
        transform: none;
    }

    .hero-carousel-nav:hover {
        transform: scale(1.04);
    }

    .hero-carousel-nav.prev {
        left: 0.75rem;
    }

    .hero-carousel-nav.next {
        right: 0.75rem;
    }

    .hero-carousel-nav-icon {
        font-size: 0.9rem;
    }

    .hero-carousel-dots {
        bottom: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-banner-title {
        font-size: clamp(1.35rem, 6.3vw, 1.7rem);
        line-height: 1.24;
    }

    .hero-banner-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .hero-banner-actions .btn,
    .hero-banner-actions .btn-success-outlined {
        min-height: 42px;
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .hero-carousel-nav {
        width: 40px;
        height: 40px;
    }
}
