/* ============================================
   FLOATING WHATSAPP & CALL ICONS
   Always-visible contact buttons
   ============================================ */

/* Floating contact bar */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

/* Shared icon styles */
.floating-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.floating-contact a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.floating-contact a:hover::before {
    width: 120%;
    height: 120%;
}

.floating-contact a:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.4);
}

/* WhatsApp button */
.whatsapp-float {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: scale(1.12) rotate(-3deg);
}

/* Call button */
.call-float {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.call-float:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #a07000 100%);
    transform: scale(1.12) rotate(3deg);
}

/* Pulse animation for attention */
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: pulse-whatsapp 2s infinite;
    z-index: -1;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Tooltip on hover */
.floating-contact a .tooltip-text {
    position: absolute;
    right: 72px;
    background: var(--dark);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    font-family: var(--font-body);
}

.floating-contact a:hover .tooltip-text {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 16px;
        gap: 10px;
    }

    .floating-contact a {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .floating-contact a .tooltip-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-contact {
        bottom: 16px;
        right: 12px;
        gap: 8px;
    }

    .floating-contact a {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }
}
