/* Explain: Styles for floating contact buttons. */
/* ===== Floating contact buttons ===== */
.float-contact {
    position: fixed;
    z-index: 47;
    inset-inline-start: 1.25rem;
    bottom: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 0.7rem;
}

.float-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 16px 40px rgba(14, 14, 16, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 46px rgba(14, 14, 16, 0.36);
}

.float-btn--whatsapp {
    background: #25D366;
}

.float-btn--call {
    background: var(--primary-color);
}

.float-btn--whatsapp::after {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(37, 211, 102, 0.7);
    border-radius: 999px;
    content: "";
    animation: floatPulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes floatPulse {
    0% { opacity: 0.9; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.8); }
}

@media (min-width: 768px) {
    .float-contact {
        display: flex;
    }
}

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

    .float-btn:hover {
        transform: none;
    }
}