/* ===================================
   MOBILE MENU OVERLAY STYLES
   =================================== */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

/* Mobile Menu Container */
.mobile-menu-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-logo .mobile-logo {
    height: 32px;
    width: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #64748b;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: #f1f5f9;
    color: #334155;
    transform: scale(1.05);
}

.mobile-menu-close:active {
    transform: scale(0.95);
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Mobile CTA Section */
.mobile-cta-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-cta-primary,
.mobile-cta-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.mobile-cta-primary {
    background: linear-gradient(135deg, #52B880 0%, #4ade80 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(82, 184, 128, 0.3);
}

.mobile-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(82, 184, 128, 0.4);
}

.mobile-cta-primary:active {
    transform: translateY(0);
}

.mobile-cta-login {
    background: #ffffff;
    color: #334155;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-cta-login:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Mobile Navigation */
.mobile-navigation {
    flex: 1;
}

.mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-item {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu-item:hover {
    transform: translateX(4px);
}

.mobile-menu-item:active {
    transform: translateX(2px) scale(0.98);
}

.menu-item-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-item:hover .menu-item-content {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.menu-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    color: #52B880;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover .menu-item-icon {
    background: linear-gradient(135deg, #52B880 0%, #4ade80 100%);
    color: white;
    transform: scale(1.05);
}

.menu-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.menu-item-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.3;
}

.menu-item-arrow {
    color: #cbd5e1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-item:hover .menu-item-arrow {
    color: #52B880;
    transform: translateX(4px);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.mobile-contact-info {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.contact-text {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #52B880;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: #4ade80;
    transform: scale(1.05);
}

/* Mobile Menu Toggle Button Styles */
.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;
}

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

.ft-header__mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

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

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

/* Active state for hamburger */
.ft-header__mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.ft-header__mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.ft-header__mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hide desktop menu on mobile */
@media (max-width: 768px) {
    .ft-header__navigation {
        display: none !important;
    }
    
    .ft-header__cta-section {
        display: none !important;
    }
    
    .ft-header__mobile-toggle {
        display: flex !important;
    }
    
    /* Fix header layout on mobile */
    .ft-header__wrapper {
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .ft-header__logo {
        flex: 0 0 auto;
    }
    
    /* Ensure mobile toggle is visible */
    .ft-header__mobile-toggle {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mobile-menu-container {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }
    
    .mobile-menu-header {
        background: #1e293b;
        border-bottom-color: #334155;
    }
    
    .mobile-cta-section {
        border-bottom-color: #334155;
    }
    
    .menu-item-content {
        background: #1e293b;
        border-color: #334155;
    }
    
    .mobile-menu-item:hover .menu-item-content {
        background: #334155;
        border-color: #475569;
    }
    
    .menu-item-title {
        color: #f1f5f9;
    }
    
    .menu-item-desc {
        color: #94a3b8;
    }
    
    .mobile-contact-info {
        background: #334155;
        border-color: #475569;
    }
    
    .contact-text {
        color: #94a3b8;
    }
    
    .mobile-menu-footer {
        border-top-color: #334155;
    }
}

/* Animation delays for staggered entrance */
.mobile-menu-overlay.active .mobile-cta-primary {
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.mobile-menu-overlay.active .mobile-cta-login {
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.mobile-menu-overlay.active .mobile-menu-item:nth-child(1) {
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.mobile-menu-overlay.active .mobile-menu-item:nth-child(2) {
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.mobile-menu-overlay.active .mobile-menu-item:nth-child(3) {
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.mobile-menu-overlay.active .mobile-menu-item:nth-child(4) {
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

.mobile-menu-overlay.active .mobile-menu-item:nth-child(5) {
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s both;
}

.mobile-menu-overlay.active .mobile-menu-footer {
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-overlay,
    .mobile-menu-container,
    .mobile-menu-item,
    .menu-item-content,
    .menu-item-icon,
    .menu-item-arrow,
    .mobile-cta-primary,
    .mobile-cta-login,
    .ft-header__mobile-toggle span {
        transition: none;
        animation: none;
    }
}

/* Focus styles for accessibility */
.mobile-menu-close:focus,
.mobile-menu-item:focus,
.mobile-cta-primary:focus,
.mobile-cta-login:focus,
.contact-link:focus,
.ft-header__mobile-toggle:focus {
    outline: 2px solid #52B880;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .menu-item-content {
        border-width: 2px;
    }
    
    .mobile-cta-login {
        border-width: 3px;
    }
}

