/* Mobile Bottom Navigation */

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Show on mobile - with high specificity */
@media (max-width: 768px) {
    nav.mobile-bottom-nav.mobile-only,
    .mobile-bottom-nav.mobile-only,
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 10px 5px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 99999 !important;
        height: 65px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #666 !important;
        font-size: 10px !important;
        gap: 2px !important;
        padding: 5px 2px !important;
        flex: 1 !important;
        max-width: 60px !important;
        min-width: 50px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-bottom-nav-item.active {
        color: #324e8a;
    }
    
    .mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
        color: #324e8a;
    }

    .mobile-bottom-nav-logo {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .mobile-bottom-nav-icon {
        font-size: 22px;
        line-height: 1;
    }

    .mobile-bottom-nav-item span:not(.mobile-bottom-nav-icon) {
        font-size: 9px;
        font-weight: 500;
        text-align: center;
        line-height: 1.2;
        letter-spacing: -0.2px;
    }

    /* Adjust main content padding for bottom nav */
    body {
        padding-bottom: 65px;
    }

    main {
        margin-bottom: 65px;
    }

    .contact-section {
        margin-bottom: 65px;
    }
}

/* Final override to ensure visibility on all pages */
@media (max-width: 768px) {
    body nav.mobile-bottom-nav.mobile-only {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 0 !important;
        z-index: 999999 !important;
    }
    
    body .mobile-bottom-nav-item {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
