/* Call Sticky Button - Performance Optimized with Ripple Animation */

/* Prevent flash on page load */
.btn-call-fixed {
    opacity: 0;
}

.btn-call-fixed.loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.btn-call-fixed {
    position: fixed;
    z-index: 9998;
    left: 1rem;
    bottom: 1.5rem;
    text-decoration: none;
}

.btn-call-fixed .call-action-ripple {
    position: relative;
    background: #f4ab4b;
    width: 4rem;
    height: 4rem;
    padding: 1rem;
    border-radius: 100%;
    box-sizing: border-box;
    color: #ffffff;
    animation: call-ripple 0.6s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-call-fixed .call-action-ripple:hover {
    transform: scale(1.1);
}

.btn-call-fixed .call-action-ripple i {
    transition: 0.3s ease;
    font-size: 2rem;
}

.btn-call-fixed .call-action-ripple:hover i {
    transform: rotate(135deg);
}

/* Ripple Animation */
@keyframes call-ripple {
    0% {
        box-shadow: 0 4px 10px rgba(244, 171, 75, 0.3),
                    0 0 0 0 rgba(244, 171, 75, 0.3),
                    0 0 0 5px rgba(244, 171, 75, 0.3),
                    0 0 0 10px rgba(244, 171, 75, 0.3);
    }
    100% {
        box-shadow: 0 4px 10px rgba(244, 171, 75, 0.3),
                    0 0 0 5px rgba(244, 171, 75, 0.3),
                    0 0 0 10px rgba(244, 171, 75, 0.3),
                    0 0 0 20px rgba(244, 171, 75, 0);
    }
}

/* Mobile adjustments */
@media only screen and (max-width: 768px) {
    .btn-call-fixed {
        left: 0.75rem;
        bottom: 1.25rem;
    }
    
    .btn-call-fixed .call-action-ripple {
        width: 3.5rem;
        height: 3.5rem;
        padding: 0.875rem;
    }
    
    .btn-call-fixed .call-action-ripple i {
        font-size: 1.75rem;
    }
}

@media only screen and (max-width: 480px) {
    .btn-call-fixed {
        left: 0.5rem;
        bottom: 1rem;
    }
    
    .btn-call-fixed .call-action-ripple {
        width: 3rem;
        height: 3rem;
        padding: 0.75rem;
    }
    
    .btn-call-fixed .call-action-ripple i {
        font-size: 1.5rem;
    }
}

/* Accessibility */
.btn-call-fixed:focus {
    outline: 2px solid #f4ab4b;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn-call-fixed .call-action-ripple {
        animation: none;
    }
    
    .btn-call-fixed .call-action-ripple:hover i {
        transform: none;
    }
}
