/* ==================== OVERRIDE STYLES ==================== */
/* This file has higher priority than style.css */
/* Add your custom modifications here */

/* Fix mobile background showing at top and bottom */
.site-wrapper {
    background-color: #FFFFFF;
}

/* ==================== DESKTOP FIX ==================== */
/* Fix sticky positioning for scrollytelling - body overflow-x breaks sticky */
@media (min-width: 737px) {
    body {
        overflow-x: clip !important;
    }
}

/* ==================== MOBILE STYLES ==================== */
@media (max-width: 736px) {

    /* Fix horizontal scroll issue - mobile only - Chrome specific */
    html, body {
        overflow-x: clip !important;
        overscroll-behavior-x: none !important;
    }

    .site-wrapper {
        overflow-x: clip !important;
        max-width: 100% !important;
    }

    /* Fix the -50vw margin causing horizontal scroll */
    .site-main > .inner > * > .full.screen {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
    }

    /* Fix all sections using 100vw width */
    #home,
    #contact,
    .full.screen {
        width: 100% !important;
        left: 0 !important;
        margin-left: 0 !important;
    }

    /* Remove body padding-top and background on mobile */
    body {
        padding-top: 0 !important;
        background-color: #FFFFFF !important;
    }

    /* Hide the pattern background on mobile */
    body::before {
        display: none !important;
    }

    /* Mobile Header - fixed to top, transparent by default, white when scrolled */
    .site-header {
        background-color: transparent !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    .site-header.scrolled {
        background-color: #FFFFFF !important;
    }

    /* Header layout - logo centered, burger on right */
    .header-inner {
        display: flex;
        justify-content: center;
        position: relative;
    }

    /* Logo centered */
    .logo {
        position: static;
    }

    /* Language selector on mobile - positioned between logo and burger */
    .language-selector {
        position: absolute;
        right: 4rem;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }

    /* Burger menu on the right, color #292929 */
    .mobile-menu-toggle {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-menu-toggle span {
        background-color: #292929;
    }

    /* Hero section - starts at top of page */
    #home {
        margin-top: 0;
        padding-top: 0;
    }

    #home .container-component.style-1 {
        min-height: 100vh;
        padding-top: 0;
    }

    #home .container-component.style-1 > .wrapper > .inner {
        padding-top: 0;
    }

    #home .text-component.style-1 {
        font-size: 40px;
    }

    /* Remove site-main vertical padding */
    .site-main > .inner {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .site-main > .inner > .active > .full:first-child {
        margin-top: 0 !important;
    }

    /* Ensure contact section extends to bottom */
    #contact {
        padding-bottom: 2rem;
    }

    #contact .inner {
        padding: 0;
    }

    /* Brands section - add side margins */
    #brands .container-component.style-4 > .wrapper > .inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .container-component.style-4 .brand-logo {
        width: 230px;
    }

    /* Experiences section - fix layout on mobile */
    .scrollytelling-section {
        width: 100% !important;
    }

    .scrollytelling-section.full.screen {
        margin-left: 0 !important;
        left: 0 !important;
    }

    .scrollytelling-container {
        height: auto !important;
    }

    .scrollytelling-viewport {
        position: relative;
        height: auto;
    }

}

