/* =========================================================
   Floating CTA Buttons — Punarjeevan Ayurveda
   WhatsApp + Call floating action buttons (FABs)
   Z-index 1060 (above Bootstrap modals at 1055)
   ========================================================= */

.pj-fab-group {
    position: fixed;
    bottom: 28px;
    right: 22px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* Individual FAB base */
.pj-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: #fff;
    font-size: 1.55rem;
    position: relative;
    flex-shrink: 0;
}

.pj-fab:hover,
.pj-fab:focus {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #fff;
    outline: none;
}

/* WhatsApp FAB */
.pj-fab-whatsapp {
    background-color: #25D366;
}

.pj-fab-whatsapp:hover {
    background-color: #1ebe5d;
}

/* Call FAB */
.pj-fab-call {
    background-color: #00703C;
}

.pj-fab-call:hover {
    background-color: #005a30;
}

/* Pulse animation on WhatsApp FAB */
@keyframes pj-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.pj-fab-whatsapp {
    animation: pj-pulse 2.4s ease-out infinite;
}

.pj-fab-whatsapp:hover {
    animation: none;
}

/* Tooltip labels */
.pj-fab-tooltip {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.88);
    color: #fff;
    font-size: 0.78rem;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pj-fab-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(30, 30, 30, 0.88);
}

.pj-fab:hover .pj-fab-tooltip {
    opacity: 1;
}

/* Hide tooltips on touch devices (they flicker on tap) */
@media (hover: none) {
    .pj-fab-tooltip {
        display: none;
    }
}

/* Don't show FABs during print */
@media print {
    .pj-fab-group {
        display: none !important;
    }
}

/* On very small screens, shrink slightly */
@media (max-width: 360px) {
    .pj-fab {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .pj-fab-group {
        bottom: 20px;
        right: 14px;
        gap: 10px;
    }
}
