/* ==========================================
   HERO BANNER
========================================== */

#heroBanner {
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    min-height: 580px;
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
}

/* ==========================================
   SLIDES
========================================== */

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    z-index: 1;
    background: #000;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.hero-slide.leaving {
    opacity: 0;
    z-index: 2;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ==========================================
   SPLIT LAYOUT ALTERNATIVE
========================================== */

.hero-split-layout {
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    /* padding-bottom: 5rem; */
}

/* Abstract Background Pattern & Animated Blobs */
.hero-split-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.hero-split-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    border-radius: 50%;
    animation: blobFloat 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(15, 76, 129, 0.15);
    /* Primary */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: rgba(212, 160, 23, 0.15);
    /* Secondary gold */
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.blob-3 {
    top: 40%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.1);
    /* Light blue */
    animation-delay: -10s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero-split-slider {
    position: relative;
    width: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.split-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: visible;
    z-index: 1;
    background: transparent;
    display: flex;
    flex-direction: row;
    transition: none;
}

.hero-slide.split-slide.active {
    z-index: 5;
}

.hero-slide.split-slide.leaving {
    z-index: 2;
}

.hero-split-left {
    flex: 0 0 30%;
    max-width: 30%;
    /* flex: 0 0 30%;
    max-width: 30%; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2rem 2rem 6%;
    z-index: 20;
    background: transparent;
}

.hero-split-right {
    /* flex: 0 0 55%;
    max-width: 55%; */
    flex: 0 0 70%;
    max-width: 70%;
    max-height: 100%;
    position: relative;
    padding: 20px 20px 20px 0;
    display: flex;
    align-items: center;
}

@media (max-width: 1440px) {
    .hero-split-left {
        flex: 0 0 35%;
        max-width: 35%;
        padding-left: 5%;
    }

    .hero-split-right {
        flex: 0 0 65%;
        max-width: 65%;
    }
}

@media (max-width: 1280px) {
    .hero-split-left {
        flex: 0 0 40%;
        max-width: 40%;
        padding-left: 4%;
        padding-right: 1.5rem;
    }

    .hero-split-right {
        flex: 0 0 60%;
        max-width: 60%;
    }
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 2.5rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-split-right img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* object-fit: cover; */
    object-position: center;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Adds a nice subtle shadow to the image itself */
}

.hero-split-overlay {
    position: absolute;
    inset: 0;
    border-radius: 2.5rem;
    pointer-events: none;
}

.hero-split-content {
    max-width: 100%;
}

.hero-split-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(15, 76, 129, 0.08);
    border: 1px solid rgba(15, 76, 129, 0.1);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-split-content h1,
.hero-split-content h2 {
    font-size: clamp(2rem, 3.2vw, 3.5rem);
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    padding-bottom: 0.2em;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-split-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 30px;
}

.hero-split-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-btn-glow {
    box-shadow: 0 10px 25px rgba(15, 76, 129, 0.3);
    transition: all 0.3s ease;
}

.hero-btn-glow:hover {
    box-shadow: 0 15px 35px rgba(15, 76, 129, 0.4);
    transform: translateY(-2px);
}

.btn-outline-split {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.btn-outline-split:hover {
    background: #f8fafc;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Controls */
.hero-split-controls {
    position: absolute;
    bottom: 40px;
    left: 6%;
    transform: none;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 999px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-split-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #0f172a;
}

.hero-split-counter #currentSlide {
    font-size: 1.25rem;
}

.hero-split-counter .divider,
.hero-split-counter .total {
    color: #94a3b8;
}

.hero-split-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
}

.hero-split-nav {
    display: flex;
    gap: 12px;
}

.hero-split-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-split-nav button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.3);
}

@media (max-width: 1440px) {
    .hero-split-controls {
        left: 5%;
    }
}

@media (max-width: 1280px) {
    .hero-split-controls {
        left: 4%;
    }
}

@media (max-width: 1024px) {
    #heroBanner.hero-split-layout {
        height: auto;
        min-height: auto;
    }

    .hero-split-slider {
        position: relative;
    }

    .hero-slide.split-slide {
        flex-direction: column;
    }

    .hero-slide.split-slide.active {
        position: relative;
    }

    .hero-split-left {
        padding: 3rem 5% 5rem;
        flex: 0 0 auto;
        max-width: 100%;
    }

    .hero-split-right {
        padding: 0 5% 5rem;
        flex: 0 0 auto;
        max-width: 100%;
        min-height: auto;
        align-items: flex-start;
    }

    .image-wrapper {
        height: auto;
        border-radius: 1.5rem;
    }

    .hero-split-overlay {
        border-radius: 1.5rem;
    }

    .hero-split-controls {
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: max-content;
    }
}