/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */

/* Main Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #2eeb75, #1aa888);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float i {
    color: var(--white);
}

/* Pulse Animation */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 
                    0 0 0 10px rgba(37, 211, 102, 0.1),
                    0 0 0 20px rgba(37, 211, 102, 0.05);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Tooltip (optional - shows on hover) */
.whatsapp-float::before {
    content: "Chat with us";
    position: absolute;
    right: 70px;
    background: var(--navy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', sans-serif;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    right: 60px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--navy);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Hide tooltip on mobile */
    .whatsapp-float::before,
    .whatsapp-float::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 15px;
        right: 15px;
    }
}

/* Hide when scroll-to-top button overlaps (optional) */
.whatsapp-float.hide-on-scroll {
    opacity: 0;
    pointer-events: none;
}

/* Accessibility - Focus State */
.whatsapp-float:focus {
    outline: 3px solid var(--teal);
    outline-offset: 4px;
}

/* Print - Hide Button */
@media print {
    .whatsapp-float {
        display: none !important;
    }
}
