/* =========================================================================
   FLOATING CTA - Modern Design 2024
   ========================================================================= */

/* Fixed CTA Bar - Bottom bar with dual buttons */
.fixed-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    display: flex;
    gap: 0;
    background: #fff;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .fixed-cta-bar {
        display: none;
    }
}

.fixed-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fixed-cta-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.fixed-cta-phone {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
}

.fixed-cta-phone:active {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.fixed-cta-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
}

.fixed-cta-whatsapp:active {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
}

/* Floating CTA - Single prominent button */
.floating-cta {
    position: fixed;
    bottom: 90px;
    left: 16px;
    right: 16px;
    z-index: 799;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta.visible {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .floating-cta {
        display: none;
    }
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    box-shadow: 
        0 10px 40px rgba(30, 58, 95, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

.floating-cta-btn:active {
    transform: scale(0.98);
    box-shadow: 
        0 6px 24px rgba(30, 58, 95, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.floating-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.floating-cta-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.floating-cta-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.floating-cta-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-cta-number {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.floating-cta-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #f97316;
    letter-spacing: 0.5px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 100px;
    right: 16px;
    z-index: 798;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    box-shadow: 
        0 6px 24px rgba(37, 211, 102, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.floating-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 
        0 8px 32px rgba(37, 211, 102, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-whatsapp:active {
    transform: scale(0.95);
}

/* Adjust WhatsApp position when fixed bar is visible */
@media (max-width: 767px) {
    .floating-whatsapp {
        bottom: 180px;
    }
    
    .floating-whatsapp.cta-active {
        bottom: 180px;
    }
}

/* Desktop: WhatsApp only */
@media (min-width: 768px) {
    .floating-whatsapp {
        bottom: 24px;
        right: 24px;
        width: 64px;
        height: 64px;
    }
    
    .floating-whatsapp svg {
        width: 32px;
        height: 32px;
    }
}

/* Pulse animation for WhatsApp */
@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 
            0 6px 24px rgba(37, 211, 102, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.1),
            0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 
            0 6px 24px rgba(37, 211, 102, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.1),
            0 0 0 12px rgba(37, 211, 102, 0);
    }
}

.floating-whatsapp {
    animation: whatsappPulse 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
    animation: none;
}

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .fixed-cta-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
