/* ===================================
   MOBILE NAVIGATION & WHATSAPP BUTTON
   =================================== */

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #20ba5f);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 999;
    animation: bounceIn 0.6s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
    border-top: 2px solid #f3f4f6;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    max-width: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-item:active {
    background: rgba(30, 64, 175, 0.05);
}

.mobile-nav-item.active {
    color: #1e40af;
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
}

.mobile-nav-icon {
    font-size: 20px;
    transition: all 0.2s ease;
}

.mobile-nav-item.active .mobile-nav-icon {
    transform: scale(1.1);
}

/* Show mobile nav on mobile devices */
@media (max-width: 768px) {
    .mobile-nav {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }

    /* Adjust main content for mobile nav */
    .header {
        margin-bottom: 0;
    }

    /* WhatsApp button positioning for mobile */
    .whatsapp-btn {
        bottom: 85px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    /* Hide top bar on very small screens */
    @media (max-width: 480px) {
        .top-bar {
            display: none;
        }

        .whatsapp-btn {
            bottom: 80px;
            right: 12px;
            width: 50px;
            height: 50px;
            font-size: 22px;
        }

        .mobile-nav-icon {
            font-size: 18px;
        }

        .mobile-nav-item {
            font-size: 10px;
            gap: 3px;
        }
    }
}

/* Desktop - hide mobile nav */
@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }

    .whatsapp-btn {
        display: none;
    }
}

/* Smooth page transition */
.page-transition {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile optimized touch targets */
@media (max-width: 768px) {
    .mobile-nav-item {
        min-height: 60px;
        min-width: 60px;
    }

    .mobile-nav-icon {
        padding: 8px;
    }

    /* Better spacing for mobile buttons */
    .btn-get-quote {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Ensure hamburger menu doesn't conflict */
    .hamburger {
        z-index: 1000;
    }

    /* Content padding adjustment for mobile */
    main {
        padding-bottom: 20px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (max-width: 768px) {
    .mobile-nav {
        height: 60px;
    }

    .mobile-nav-container {
        height: 60px;
    }

    body {
        padding-bottom: 60px;
    }

    .whatsapp-btn {
        bottom: 75px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-btn,
    .mobile-nav-item {
        animation: none;
        transition: none;
    }

    .whatsapp-btn:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .mobile-nav,
    .whatsapp-btn {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}
