/* mobile-menu.css
   Mobile menu with animated hamburger (2 lines → X) and slide-in from right */

/* Hide/show based on screen size */
.hidden-mobile {
    display: flex !important;
}

.hidden-desktop {
    display: none !important;
}

/* Hamburger button */
.mobile-hamburger {
    position: relative;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 30px;
    z-index: 51;
}


.hamburger-line {
    display: block;
    width: 32px;
    height: 4px;
    background-color: var(--accent-color);
    transition: all 0.3s ease-in-out;
    position: relative;
}

.mobile-hamburger.active .hamburger-line:first-child {
    transform: rotate(45deg) translateY(9px);
}

.mobile-hamburger.active .hamburger-line:last-child {
    transform: rotate(-45deg) translateY(-9px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-nav {
    padding: 100px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    height: fit-content !important;
    gap: 15px;
}

.mobile-nav ul li a {
    display: block;
    font-size: 18px;
    color: var(--accent-color);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: padding-left 0.2s ease;
}

.mobile-nav ul li a:hover {
    padding-left: 10px;
}

.mobile-menu-phone {
    display: block;
    text-align: center;
    padding: 15px 20px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 50px;

}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1000px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .hidden-desktop {
        display: flex !important;
    }

    .header {
        height: 80px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        .header-phone {
            display: none !important;
        }

        .header-logo-wrap {
            height: 100%;

            .header-logo {
                height: 100%;
                margin-left: 20px;
            }
        }
    }

    .offert-slider-wrapper {
        gap: 20px !important; 
        width: 100% !important;

        .offert-slide {
            min-width: calc((100% - 140px) * 0.45) !important;
        }
    }

    footer {
        .footer-top {
            display: flex !important;
            flex-direction: column !important;
            gap: 50px !important;

            .footer-col {
                width: 100%;
            }
        }
    }

    .history-wrap {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 50px;
        
        .history-wrap-content {
            max-height: none !important;
            height: auto !important;
        }

        .history-wrap-content:nth-child(1) {
            .history-navigation-buttons {
                flex-direction: row !important;
                padding-top: 25px; 

                .arrow-button {
                    transform: rotate(0deg) !important;
                }
            }
        }
    }

    .cta-banner-wrap {
        gap: 50px;
    }

    .history-wrap-content:nth-child(1) {
        grid-template-columns: 1fr !important;
        img {
            width: 100% !important;
            height: 350px !important;
        }
    }

    .history-year-selector {
        align-items: start !important;
    }
}

@media screen and (max-width: 767px) {
    .offert-slider-wrapper {
        .offert-slide {
            min-width: calc(100% - 100px) !important;
        }
    }

    .social-proof-wrap {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto auto !important;
    }

    .offert-details-button {
        width: calc(100% - 60px) !important;
    }
    
    .offert-details {
        grid-column-gap: 30px;
    }

    .offert-buttons {
        width: 100%;
        
        button {
            width: 100%;
            padding: 0;
        }
    }

    .primary-button,
    .secondary-button {
        font-size: clamp(14px, 3vw, 16px) !important;
    }

    .cta-banner-wrap {
        display: flex;
        flex-direction: column !important;
        padding: 50px 50px !important;

        h3 {
            max-width: 100% !important;
        }

        a {
            width: calc(100% - 100px) !important;
            text-align: center !important;
        }
    }
    h3 {
        font-size: clamp(22px, 5vw, 40px) !important;
    }
    h2 {
        font-size: clamp(20px, 5vw, 32px) !important;
    }
}
