/* ========== COLOSSUS MOBILE & LANDSCAPE OVERRIDES ========== */

/* 1. BASE STYLES */
.logo_text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 1rem;
    font-family: var(--font--primary-family);
    font-size: var(--size--1rem);
    font-weight: var(--font--medium);
    color: var(--swatch--brand-text);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing--0-02em);
    white-space: nowrap
}

/* 2. ORIENTATION LOCK MODAL */
#orientation-lock-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    color: white;
}

.orientation-content {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.phone-rotate-icon {
    width: 64px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    position: relative;
    animation: rotatePhone 2.5s infinite ease-in-out;
    margin-bottom: 1rem;
}

.phone-rotate-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

@keyframes rotatePhone {

    0%,
    10% {
        transform: rotate(0deg);
    }

    40%,
    60% {
        transform: rotate(90deg);
    }

    90%,
    100% {
        transform: rotate(0deg);
    }
}

.orientation-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.orientation-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.orientation-toast {
    position: absolute;
    bottom: 3rem;
    background: #ff4d4d;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.orientation-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.shake-anim {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}


/* 3. LANDSCAPE MOBILE FIXES (The Core Fix) */
/* Target mobile landscape specifically */
@media screen and (max-width: 1024px) and (orientation: landscape),
screen and (max-height: 600px) {

    /* --- LAYOUT & IMAGES --- */
    .wrap_sliders_section {
        height: 100svh !important;
        min-height: 100svh !important;
        margin: 0 auto !important;
        position: relative !important;
    }

    .swiper.photo-progress,
    .slider-photo-progress,
    .img_progress {
        height: 100svh !important;
        width: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    /* Ensure image swiper is absolutely positioned behind text */
    .swiper.photo-progress {
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
    }

    /* --- TEXT & CONTENT --- */
    /* Container for the text swiper */
    .container_benefits {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        z-index: 5 !important;
        pointer-events: none;
        /* Let touches pass through to image if needed */
        padding: 0 !important;
        overflow: hidden !important;
        /* CRITICAL: Hide adjacent slides */
    }

    /* Wrapper for text slides */
    .swiper.slider-progress {
        overflow: hidden !important;
        /* CRITICAL: Prevent text overlap */
    }

    .slider-content-progress {
        width: 100% !important;
        height: auto !important;
        /* Padding bottom to clear the loader */
        padding: 2rem 24px 1rem 24px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        /* Left Align */
        /*background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%) !important;*/
        pointer-events: auto;
    }

    /* FIX "3 COLUMNS" OVERLAP: Force slides to full width */
    .swiper-slide.slider-progress {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        /* Don't shrink */
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        /* Ignore clicks on hidden slides */
    }

    /* Only show active slide */
    .swiper-slide.slider-progress.swiper-slide-active,
    .swiper-slide.slider-progress.swiper-slide-thumb-active {
        opacity: 1 !important;
        pointer-events: auto;
    }

    /* Force Left Alignment on Interior Elements */
    .bx_text_tabs_progress,
    .slider-text-progress {
        text-align: left !important;
        align-items: flex-start !important;
        width: 100% !important;
        max-width: 600px !important;
        /* Limit line length for readability */
        margin-right: auto !important;
        margin-left: 0 !important;
    }

    .slider-text-progress {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        padding-bottom: 1rem;
    }

    /* --- LOADER (Progress Line) --- */
    .line_tabs_progress {
        position: absolute !important;
        bottom: 0 !important;
        /* Stick to very bottom */
        left: 0 !important;
        width: 100% !important;
        height: 3px !important;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0.2) !important;
        z-index: 10 !important;
    }

    .line-tabs-sub {
        height: 100% !important;
        background: #fff !important;
        /* Brand color or white */
    }

    /* --- SECTION SPACING --- */
    .section_why,
    .section_benefits,
    .section_benefits2,
    .section_benefits3 {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* --- MOBILE LANDSCAPE: wrap_empty_sticky adjustments --- */
@media screen and (max-width: 1024px) and (orientation: landscape),
screen and (max-height: 600px) {

    /* Hide wrap_empty_sticky in section_benefits and section_benefits2 */
    .section_benefits .wrap_empty_sticky,
    .section_benefits2 .wrap_empty_sticky {
        display: none !important;
    }

    /* Set wrap_empty_sticky to 15svh in section_benefits3 */
    .section_benefits3 .wrap_empty_sticky {
        height: 15svh !important;
        min-height: 15svh !important;
    }
}

/* --- DESKTOP ONLY: bx_title_about_us padding --- */
/* Reset padding on mobile/landscape (since user added it globally in main CSS) */
@media screen and (max-width: 1024px) and (orientation: landscape),
screen and (max-height: 600px) {
    .bx_title_about_us {
        padding-top: 5rem !important;
    }
}

/* --- DESKTOP ONLY: bx_title_about_us padding --- */
@media screen and (min-width: 1025px) {
    .bx_title_about_us {
        padding-top: 5rem !important;
    }
}

/* --- section_benefits2: Full width images --- */
@media screen and (max-width: 1024px) and (orientation: landscape),
screen and (max-height: 600px) {
    .section_benefits2 .img_progress {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .section_benefits2 .swiper.photo-progress,
    .section_benefits2 .slider-photo-progress {
        width: 100% !important;
    }
}

/* --- section_benefits: Full width and height images --- */
@media screen and (max-width: 1024px) and (orientation: landscape),
screen and (max-height: 600px) {
    .section_benefits .img_progress {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .section_benefits .swiper.photo-progress,
    .section_benefits .slider-photo-progress {
        width: 100% !important;
        height: 100% !important;
    }
}

/* --- section_h_m: Always fill viewport on load --- */
@media screen and (max-width: 1024px) and (orientation: landscape),
screen and (max-height: 600px) {
    .section_h_m {
        min-height: 100svh !important;
        height: 100svh !important;
    }

    .container_h_m {
        min-height: 100svh !important;
        height: 100svh !important;
    }
}

/* --- PATCH: Fix section_benefits image aspect ratio --- */
@media screen and (max-width: 1024px) and (orientation: landscape),
screen and (max-height: 600px) {

    /* Allow section to grow based on image size */
    .section_benefits {
        height: auto !important;
        min-height: auto !important;
    }

    .section_benefits .wrap_sliders_section {
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
    }

    .section_benefits .swiper.photo-progress,
    .section_benefits .slider-photo-progress {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }

    .section_benefits .img_progress {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        max-height: 80svh !important;
    }

    /* Same for section_benefits2 */
    .section_benefits2 {
        height: auto !important;
        min-height: auto !important;
    }

    .section_benefits2 .img_progress {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Same for section_benefits3 */
    .section_benefits3 {
        height: auto !important;
        min-height: auto !important;
    }

    .section_benefits3 .wrap_sliders_section {
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
    }

    .section_benefits3 .swiper.photo-progress,
    .section_benefits3 .slider-photo-progress {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }

    .section_benefits3 .img_progress {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* --- FIX: Center .wrap_sliders_section for scale animation --- */
/* The GSAP animation scales from 90% to 100%, but element is left-aligned.
   Adding margin: 0 auto centers it so scale happens from center */
@media screen and (max-width: 1024px) and (orientation: landscape),
screen and (max-height: 600px) {

    .section_benefits,
    .section_benefits2,
    .section_benefits3 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .wrap_sliders_section {
        margin: 0 auto !important;
    }

    /* Remove max-height constraint - let image dictate height */
    .section_benefits .img_progress {
        max-height: none !important;
    }
}

@media screen and (max-width: 1024px) and (orientation: landscape),
screen and (max-height: 600px) {
    .video-container {
        padding-bottom: 56.25%;
    }

    .container_video_player {
        padding-top: 0rem !important;
    }
}