/* ==========================================================================
   Hero Split Layout Styles (css/hero-split.css)
   ========================================================================== */

.hero-split-section {
    background-color: #0d0e12;
    color: #ffffff;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    scroll-margin-top: 100px;
}

.hero-split-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* Main Split Grid ---------------------------------------------------------- */
.hero-main-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    border-radius: 20px;
    overflow: hidden;
    height: auto;
    min-height: 620px;
}

/* Left Column ------------------------------------------------------------- */
.hero-left-col {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.hero-left-inner {
    width: 100%;
    min-width: 0;
}

.hero-main-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.hero-sub-title {
    font-size: 0.95rem;
    color: #e2e8f0;
    margin: 0 0 32px 0;
    max-width: 500px;
    line-height: 1.6;
}

/* Buttons ----------------------------------------------------------------- */
.hero-btn-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: #3b82f6;
    color: #ffffff;
    border: 1px solid #3b82f6;
}

.hero-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-outline:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Stats Row --------------------------------------------------------------- */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* Right Column ------------------------------------------------------------ */
.hero-right-col {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.hero-right-inner {
    width: 100%;
    min-width: 0;
}

.hero-tagline {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #cbd5e1;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-right-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
}

/* Rotating Center Badge (preserved) --------------------------------------- */
.hero-center-badge {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: auto;
}

.badge-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(18, 20, 26, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.badge-text-svg {
    width: 100%;
    height: 100%;
    animation: rotateText 12s linear infinite;
}

.badge-arrow {
    position: absolute;
    font-size: 1.4rem;
    color: #ffffff;
}

@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Bottom feature cards ---------------------------------------------------- */
.hero-bottom-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-bottom-cards .feature-card {
    flex: 1 1 180px;
    min-width: 0;
}

.feature-card {
    background: #12141a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 20px 20px 20px;
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.card-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #64748b;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.feature-card:hover .card-arrow {
    color: #ffffff;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    overflow-wrap: break-word;
}

.icon-inner .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Carousel pagination dots ------------------------------------------------ */
.carousel-dots-wrapper {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.carousel-dot.active {
    width: 20px;
    border-radius: 10px;
    background: #ffffff;
}

/* Entrance animations ----------------------------------------------------- */
.animate-fade-up,
.animate-slide-left,
.animate-slide-right,
.animate-scale {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-up {
    transform: translateY(30px);
}

.animate-slide-left {
    transform: translateX(-40px);
}

.animate-slide-right {
    transform: translateX(40px);
}

.animate-scale {
    transform: scale(0.85);
}

.animate-fade-up.is-visible,
.animate-slide-left.is-visible,
.animate-slide-right.is-visible,
.animate-scale.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.5s; }
.delay-5 { transition-delay: 0.6s; }

/* Tablet landscape -------------------------------------------------------- */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-left-col,
    .hero-right-col {
        padding: 48px 36px;
    }

    .hero-main-title {
        font-size: clamp(2.25rem, 4.2vw, 3rem);
    }

    .hero-right-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .hero-stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }
}

/* Tablet / single-column layout ------------------------------------------ */
@media (max-width: 991px) {
    .hero-main-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        height: auto;
        min-height: 0;
    }

    /* Right banner is intentionally hidden on smaller screens. */
    .hero-right-col {
        display: none;
    }

    .hero-left-col {
        height: auto;
        min-height: 0;
        padding: 40px 28px;
    }

    .hero-main-title {
        font-size: clamp(1.95rem, 5.4vw, 2.75rem);
        line-height: 1.14;
        margin-bottom: 16px;
    }

    .hero-sub-title {
        max-width: 100%;
        font-size: 0.92rem;
        line-height: 1.65;
        margin-bottom: 28px;
    }

    .hero-split-section .hero-btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 32px;
    }

    /*
     * Keep the split-hero button layout scoped to this section. The hero
     * carousel also uses .hero-btn, and its .hero-actions becomes a column on
     * mobile; an unscoped flex-basis there turns each CTA into a tall card.
     */
    .hero-split-section .hero-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 150px;
        min-height: 48px;
        padding: 12px 14px;
        font-size: 0.85rem;
        text-align: center;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stat-card-desktop-only {
        display: none;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.74rem;
    }

    .feature-card {
        padding: 20px;
        align-items: center;
        text-align: center;
    }

    /*
     * Horizontal slide/translate entrance effects can be clipped by the
     * rounded, overflow-hidden hero container on narrow screens. Keep the
     * opacity fade but remove the movement on tablet and mobile.
     */
    .hero-split-section .animate-fade-up,
    .hero-split-section .animate-slide-left,
    .hero-split-section .animate-slide-right,
    .hero-split-section .animate-scale {
        transform: none;
    }
}

/* Mobile layout ----------------------------------------------------------- */
@media (max-width: 767px) {
    .hero-split-section {
        padding: 16px;
        scroll-margin-top: 92px;
    }

    .hero-main-grid,
    .hero-left-col {
        border-radius: 16px;
    }

    .hero-left-col {
        padding: 32px 20px;
    }

    .hero-main-title {
        font-size: clamp(1.8rem, 7.6vw, 2.4rem);
        line-height: 1.13;
        margin-bottom: 14px;
    }

    .hero-sub-title {
        font-size: clamp(0.88rem, 2.6vw, 1rem);
        line-height: 1.65;
        margin-bottom: 26px;
    }

    .hero-split-section .hero-btn-group {
        gap: 10px;
        margin-bottom: 28px;
    }

    .hero-split-section .hero-btn {
        flex: 1 1 140px;
        padding: 12px;
        font-size: 0.82rem;
    }

    .hero-stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 16px 14px;
    }

    .stat-number {
        font-size: 1.55rem;
    }

    .stat-label {
        font-size: 0.72rem;
        line-height: 1.35;
    }
}

/* Horizontal card carousel ------------------------------------------------ */
@media (max-width: 768px) {
    .hero-bottom-cards {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        gap: 12px;
        padding: 4px 0 14px;
        overflow-x: auto;
        overflow-y: hidden;
        box-sizing: border-box;
        scroll-snap-type: x mandatory;
        scroll-padding: 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hero-bottom-cards::-webkit-scrollbar {
        display: none;
    }

    .hero-bottom-cards .feature-card {
        flex: 0 0 85%;
        width: 85%;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /*
     * Off-screen carousel cards do not intersect the viewport, so the entrance
     * observer would leave the next-card preview invisible. Keep all carousel
     * cards visible; the horizontal scroll itself provides the motion.
     */
    .hero-bottom-cards .animate-fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .carousel-dots-wrapper {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-fade-up,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale,
    .hero-btn,
    .feature-card {
        transition: none;
    }

    .animate-fade-up,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale {
        transform: none;
    }

    .badge-text-svg {
        animation: none;
    }
}
