/* Botão flutuante de contato, exibido apenas se houver WhatsApp configurado. */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(37, 211, 102, 0.45);
    border-radius: inherit;
    animation: whatsapp-float-pulse 2.5s ease-out infinite;
}

.whatsapp-float i {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    line-height: 1;
}

.whatsapp-float__label {
    display: none;
    position: absolute;
    right: 68px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    color: #fff;
    background: #1fbd5d;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.42);
}

.whatsapp-float:hover .whatsapp-float__label,
.whatsapp-float:focus-visible .whatsapp-float__label {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.35);
    outline-offset: 3px;
}

@keyframes whatsapp-float-pulse {
    0%, 55% { opacity: 0.65; transform: scale(0.9); }
    100% { opacity: 0; transform: scale(1.25); }
}

@media (max-width: 576px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float i {
        font-size: 1.65rem;
    }

    .whatsapp-float__label {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .whatsapp-float__label {
        transition: none;
    }

    .whatsapp-float::before {
        animation: none;
    }
}
