/* ===== FOOTER MOBILE FIXES ===== */
/* Specific fixes for footer layout issues on mobile */

/* Reset any conflicting styles */
footer {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    overflow: hidden !important;
    margin-top: 80px !important;
}

/* Fix footer container */
footer .container {
    position: relative !important;
    z-index: 2 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Fix footer content wrapper */
.footer-content-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    /* Add bottom margin for mobile scroll elements */
    footer {
        margin-bottom: 120px !important;
        padding-bottom: 20px !important;
    }
    
    /* Fix footer top section */
    .footer-top {
        padding: 40px 0 30px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Fix footer grid layout */
    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 30px !important;
        width: 100% !important;
    }
    
    /* Fix footer brand section */
    .footer-brand {
        width: 100% !important;
        padding-right: 0 !important;
        text-align: left !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-sizing: border-box !important;
    }
    
    /* Fix footer logo */
    .footer-logo {
        width: 70px !important;
        height: 70px !important;
        margin: 0 0 15px 0 !important;
        display: block !important;
    }
    
    /* Fix footer brand text */
    .footer-brand h3 {
        font-size: 20px !important;
        margin: 15px 0 10px 0 !important;
        color: #ffffff !important;
        text-align: left !important;
    }
    
    .footer-brand p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: rgba(255, 255, 255, 0.7) !important;
        margin-bottom: 15px !important;
        text-align: left !important;
    }
    
    /* Fix social media icons */
    .footer-social {
        display: flex !important;
        gap: 12px !important;
        margin-top: 15px !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
    
    .social-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #ffffff !important;
        font-size: 16px !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
    }
    
    /* Fix footer columns */
    .footer-column {
        width: 100% !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-sizing: border-box !important;
    }
    
    .footer-column:last-child {
        border-bottom: none !important;
    }
    
    /* Fix footer column headers */
    .footer-column h4 {
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
        color: #ffffff !important;
        text-align: left !important;
        position: relative !important;
        padding-bottom: 8px !important;
    }
    
    .footer-column h4::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 40px !important;
        height: 3px !important;
        background: linear-gradient(90deg, #667eea, #764ba2) !important;
        border-radius: 2px !important;
    }
    
    /* Fix footer links */
    .footer-links {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .footer-links li {
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    
    .footer-links a {
        color: rgba(255, 255, 255, 0.7) !important;
        text-decoration: none !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center !important;
        padding: 8px 0 !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        text-align: left !important;
    }
    
    .footer-links a i {
        margin-right: 10px !important;
        font-size: 12px !important;
        color: #667eea !important;
        min-width: 16px !important;
    }
    
    /* Fix contact info */
    .footer-contact {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .footer-contact li {
        margin-bottom: 12px !important;
        display: flex !important;
        align-items: flex-start !important;
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        line-height: 1.6 !important;
        width: 100% !important;
        text-align: left !important;
    }
    
    .footer-contact li i {
        margin-right: 12px !important;
        margin-top: 3px !important;
        color: #667eea !important;
        font-size: 16px !important;
        min-width: 20px !important;
        flex-shrink: 0 !important;
    }
    
    .footer-contact a {
        color: rgba(255, 255, 255, 0.7) !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
    }
    
    /* Fix footer bottom */
    .footer-bottom {
        padding: 25px 0 30px 0 !important;
        text-align: center !important;
        background: rgba(0, 0, 0, 0.2) !important;
        width: 100% !important;
        clear: both !important;
    }
    
    .footer-bottom p {
        margin: 0 !important;
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.6) !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }
    
    .footer-bottom a {
        color: #667eea !important;
        text-decoration: none !important;
        font-weight: 600 !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    footer {
        margin-bottom: 140px !important;
    }
    
    .footer-content-wrapper {
        padding: 0 15px !important;
    }
    
    .footer-top {
        padding: 30px 0 25px !important;
    }
    
    .footer-grid {
        gap: 25px !important;
    }
    
    .footer-brand h3 {
        font-size: 18px !important;
        margin: 12px 0 8px 0 !important;
    }
    
    .footer-brand p {
        font-size: 13px !important;
    }
    
    .footer-logo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .footer-column h4 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 13px !important;
    }
    
    .social-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
    
    .footer-bottom {
        padding: 20px 0 25px 0 !important;
    }
    
    .footer-bottom p {
        font-size: 12px !important;
    }
}

/* Landscape orientation fix */
@media (orientation: landscape) and (max-height: 500px) {
    footer {
        margin-bottom: 80px !important;
    }
}

/* Ensure footer doesn't interfere with mobile scroll elements */
footer,
footer * {
    z-index: 1 !important;
}

/* Make sure mobile scroll elements are above footer */
.back-to-top,
.mobile-section-nav,
.mobile-scroll-indicator,
.mobile-fab-menu {
    z-index: 1000 !important;
}

/* Fix any text overflow issues */
@media (max-width: 768px) {
    footer * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    .footer-contact li {
        word-break: break-word !important;
    }
}

/* Ensure proper box-sizing for all footer elements */
footer,
footer * {
    box-sizing: border-box !important;
}

/* Fix any margin/padding issues */
@media (max-width: 768px) {
    .footer-brand,
    .footer-column {
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}