/* ===========================================
   MAIN PAGE MOBILE NAVIGATION
   Hamburger menu and mobile menu for landing page
   Based on original mobile-consolidated.css
   =========================================== */

/* ===========================================
   HAMBURGER BUTTON - Desktop (hidden)
   =========================================== */
.hamburger-btn {
    display: none;
}

/* ===========================================
   MOBILE MENU - Desktop (hidden)
   =========================================== */
.mobile-menu {
    display: none;
}

/* ===========================================
   MOBILE: below 768px (375px base, scales up)
   =========================================== */
@media (max-width: 767px) {
    /* Hide desktop navigation */
    body.main-page .header-nav,
    body.main-page .header-sticky .header-nav {
        display: none !important;
    }

    /* Hide some header buttons on mobile */
    body.main-page .header-btn--currency,
    body.main-page .header-btn--lang {
        display: none !important;
    }

    /* Header adjustments */
    body.main-page .header,
    body.main-page .header-sticky {
        height: 60px !important;
    }

    body.main-page .header {
        position: absolute !important;
        background: transparent !important;
    }

    body.main-page .header-sticky {
        position: fixed !important;
        background: #F3F5F9 !important;
    }

    body.main-page .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 !important;
        height: 60px !important;
        position: relative !important;
    }

    body.main-page .header-logo {
        position: relative !important;
        left: 20px !important;
        top: auto !important;
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
    }

    body.main-page .header-btn--install {
        display: none !important;
    }

    /* Hamburger button */
    body.main-page .hamburger-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        height: 30px !important;
        position: absolute !important;
        right: -6px !important;
        top: -6px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 10002 !important;
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
    }

    body.main-page .hamburger-btn span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: #000;
        border-radius: 1px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: 0.25s ease-in-out;
    }

    body.main-page .hamburger-btn span:nth-child(1) {
        top: 4px;
    }

    body.main-page .hamburger-btn span:nth-child(2) {
        top: 14px;
    }

    body.main-page .hamburger-btn span:nth-child(3) {
        top: 24px;
    }

    /* Hamburger active state - X */
    body.main-page .hamburger-btn.active span:nth-child(1) {
        top: 14px !important;
        transform: rotate(45deg) !important;
    }

    body.main-page .hamburger-btn.active span:nth-child(2) {
        opacity: 0 !important;
        width: 0 !important;
    }

    body.main-page .hamburger-btn.active span:nth-child(3) {
        top: 14px !important;
        transform: rotate(-45deg) !important;
    }

    /* Mobile menu overlay */
    body.main-page .mobile-menu {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #F3F5F9;
        z-index: 10001;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        -webkit-tap-highlight-color: transparent;
    }

    body.main-page .mobile-menu.active {
        transform: translateX(0);
    }

    /* Close button in mobile menu */
    .mobile-menu-close {
        position: absolute !important;
        top: 15px !important;
        right: 20px !important;
        width: 30px !important;
        height: 30px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 10 !important;
        -webkit-tap-highlight-color: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-menu-close span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: #000;
        border-radius: 1px;
        left: 0;
    }

    .mobile-menu-close span:nth-child(1) {
        top: 14px;
        transform: rotate(45deg);
    }

    .mobile-menu-close span:nth-child(2) {
        top: 14px;
        transform: rotate(-45deg);
    }

    /* Mobile menu container */
    .mobile-menu-container {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 80px 20px 30px;
        overflow-y: auto;
        box-sizing: border-box;
    }

    /* Mobile menu links */
    .mobile-menu-links {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
    }

    .mobile-menu-link {
        font-family: 'TT Firs Neue';
        font-size: 20px;
        font-weight: 500;
        color: #000;
        text-decoration: none;
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: opacity 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-link:hover,
    .mobile-menu-link:active {
        opacity: 0.7;
    }

    /* Mobile menu actions */
    .mobile-menu-actions {
        margin-top: auto;
        padding-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    /* Mobile menu CTA button - same as hero */
    .mobile-menu-actions .mobile-menu-cta {
        position: relative;
        width: 100%;
        max-width: 320px;
        height: 60px;
        background: #000000;
        border-radius: 100px;
        border: none;
        cursor: pointer;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-actions .mobile-menu-cta .hero-cta-text {
        position: relative;
        width: auto;
        height: auto;
        left: auto;
        top: auto;
        font-family: 'TT Firs Neue';
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        line-height: 22px;
        color: #FFFFFF;
        white-space: nowrap;
    }

    .mobile-menu-actions .mobile-menu-cta .hero-cta-arrow {
        position: relative;
        width: 24px;
        height: 24px;
        left: auto;
        top: auto;
        margin-left: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-actions .mobile-menu-cta .hero-cta-arrow img {
        width: 18px;
        height: 12px;
    }

    /* Body scroll lock when menu open */
    body.main-page.mobile-menu-open {
        overflow: hidden !important;
    }
}
