/**
 * Quick Contact Floating Buttons (WhatsApp & Call)
 * High-definition, authentic brand vectors & premium feel
 */

/* Hide legacy hardcoded Elementor widget if present */
#ssx-whatsapp {
    display: none !important;
}

.aqc-floating-container {
    position: fixed;
    z-index: 999999;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    outline: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.aqc-btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

/* Authentic Icon Styling */
.aqc-svg-icon {
    display: block;
    fill: currentColor;
    transition: transform 0.25s ease;
}

/* WhatsApp Icon - precise sizing & centering */
.aqc-svg-whatsapp {
    width: 34px;
    height: 34px;
}

/* Call Icon - sleek phone handset */
.aqc-svg-call {
    width: 27px;
    height: 27px;
}

/* Hover Effects */
.aqc-floating-container:hover .aqc-btn-circle {
    transform: scale(1.1);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3), 0 6px 12px rgba(0, 0, 0, 0.18);
}

.aqc-floating-container:hover .aqc-svg-whatsapp {
    transform: scale(1.08) rotate(3deg);
}

/* Phone ringing animation on hover */
.aqc-floating-container:hover .aqc-svg-call {
    animation: aqc-phone-ring 0.6s infinite ease-in-out;
}

@keyframes aqc-phone-ring {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-14deg); }
    40% { transform: rotate(12deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(6deg); }
    100% { transform: rotate(0deg); }
}

.aqc-floating-container:active .aqc-btn-circle {
    transform: scale(0.95);
}

/* Positions */
.aqc-pos-bottom-left {
    bottom: var(--aqc-wa-bottom, 24px);
    left: 24px;
}

.aqc-pos-bottom-right {
    bottom: var(--aqc-call-bottom, 90px); /* Lifted above Back-to-Top button */
    right: 24px;
}

/* Tooltip / Label */
.aqc-tooltip {
    position: absolute;
    background: #0C2C4C;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    padding: 8px 15px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
}

.aqc-pos-bottom-left .aqc-tooltip {
    left: calc(100% + 14px);
}

.aqc-pos-bottom-right .aqc-tooltip {
    right: calc(100% + 14px);
}

.aqc-floating-container:hover .aqc-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse / Ripple Animation */
.aqc-pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.65;
    animation: aqc-pulse-animation 2.2s infinite ease-out;
    pointer-events: none;
}

@keyframes aqc-pulse-animation {
    0% {
        transform: scale(0.92);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .aqc-btn-circle {
        width: 54px;
        height: 54px;
    }
    .aqc-svg-whatsapp {
        width: 30px;
        height: 30px;
    }
    .aqc-svg-call {
        width: 24px;
        height: 24px;
    }
    .aqc-pos-bottom-left {
        bottom: 18px;
        left: 16px;
    }
    .aqc-pos-bottom-right {
        bottom: 80px; /* Elevated above Back-to-Top on mobile */
        right: 16px;
    }
    .aqc-tooltip {
        display: none !important;
    }
}
