/* Floating "Chat on WhatsApp" button, shared by every page.
   Sits under the navbar (z-index 1000) so the mobile menu still covers it. */
.whatsapp-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 25px -6px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: whatsappIn 0.5s ease 1s both, whatsappPulse 2.8s ease-out 2s 3;
}

.whatsapp-btn svg {
    width: 30px;
    height: 30px;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus-visible {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.4);
    outline: none;
}

/* Label slides out to the left on hover (mouse devices only) */
.whatsapp-btn-label {
    position: absolute;
    right: calc(100% + 12px);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: white;
    color: #10241a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .whatsapp-btn:hover .whatsapp-btn-label,
    .whatsapp-btn:focus-visible .whatsapp-btn-label {
        opacity: 1;
        transform: none;
    }
}

@keyframes whatsappIn {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to { opacity: 1; transform: none; }
}

/* A few gentle pulses after load to draw the eye, then it stays still */
@keyframes whatsappPulse {
    0% { box-shadow: 0 10px 25px -6px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 10px 25px -6px rgba(0, 0, 0, 0.35), 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 10px 25px -6px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-btn {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-btn {
        animation: none;
    }
}

@media print {
    .whatsapp-btn {
        display: none;
    }
}
