/* ===================================
   BEAUTIFUL TAKEOVER MOBILE MENU
   Simple Text - No Buttons
   Version 1.0
   =================================== */

/* Mobile Menu Overlay - Full Screen Takeover */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: linear-gradient(135deg, #3b82f6 0%, #21c55f 100%);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* CRITICAL: Don't block clicks when closed! */
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Allow clicks when menu is open */
}

/* Mobile Menu Container */
.mobile-menu-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: relative;
}

/* Close Button - Top Right */
.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    /* CRITICAL: Allow clicks */
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.mobile-menu-close:hover {
    transform: scale(1.1);
}

.mobile-menu-close svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
    stroke-width: 2.5;
    /* Prevent SVG from blocking clicks */
    pointer-events: none;
}

/* Menu Content - Centered */
.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 40px;
    gap: 80px;
}

/* Navigation Links - SIMPLE TEXT ONLY */
.mobile-navigation {
    width: 100%;
    max-width: 600px;
}

.mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.mobile-menu-link {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    transition: all 0.3s ease;
    padding: 12px 20px;
    position: relative;
    text-align: center;
    width: 100%;
    /* NO BACKGROUND */
    /* NO BORDER */
    /* NO BORDER-RADIUS */
    /* CRITICAL: Allow clicks */
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Social Media Icons - Bottom */
.mobile-menu-footer {
    margin-top: auto;
    padding-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.social-icons {
    display: flex;
    gap: 24px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    /* CRITICAL: Allow clicks */
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
}

.social-icon:hover,
.social-icon:active {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1) translateY(-2px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    /* Prevent SVG from blocking clicks */
    pointer-events: none;
}

/* Hamburger Toggle Button */
.ft-header__mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10000;
    /* CRITICAL: Allow clicks */
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.ft-header__mobile-toggle:hover {
    background: #f1f5f9;
}

.ft-header__mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    /* Prevent spans from blocking clicks */
    pointer-events: none;
}

.ft-header__mobile-toggle span:nth-child(1) {
    transform: translateY(-4px);
}

.ft-header__mobile-toggle span:nth-child(3) {
    transform: translateY(4px);
}

/* Active state - HIDE hamburger when menu is open */
.ft-header__mobile-toggle.active {
    opacity: 0;
    pointer-events: none;
}

/* Prevent body scroll when menu is open - FIXED */
body.mobile-menu-open {
    overflow: hidden !important;
    /* REMOVED: touch-action: none - this was breaking all clicks! */
    /* REMOVED: position: fixed - handled by JS instead */
}

/* Show mobile toggle on mobile devices */
@media (max-width: 768px) {
    .ft-header__navigation {
        display: none !important;
    }
    
    .ft-header__cta-section {
        display: none !important;
    }
    
    .ft-header__mobile-toggle {
        display: flex !important;
    }
    
    .ft-header__wrapper {
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .ft-header__logo {
        flex: 0 0 auto;
    }
    
    .ft-header__mobile-toggle {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

/* Responsive font sizes for smaller phones */
@media (max-width: 480px) {
    .mobile-menu-link {
        font-size: 36px;
        padding: 10px 16px;
    }
    
    .mobile-menu-section {
        gap: 24px;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Extra small phones */
@media (max-width: 375px) {
    .mobile-menu-link {
        font-size: 32px;
    }
}

/* Accessibility - Focus styles */
.mobile-menu-close:focus,
.mobile-menu-link:focus,
.social-icon:focus,
.ft-header__mobile-toggle:focus {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 4px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-overlay,
    .mobile-menu-link,
    .social-icon,
    .ft-header__mobile-toggle span,
    .mobile-menu-close {
        transition: none;
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .mobile-menu-link {
        font-weight: 900;
    }
    
    .social-icon {
        border-width: 3px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .mobile-menu-link {
        padding: 16px 24px;
        min-height: 60px;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
        min-height: 60px;
        min-width: 60px;
    }
}
