/* ==========================================================
   fixed-cta — زرّان ثابتان أسفل يسار الشاشة (واتساب + اتصال)
   ========================================================== */

:root {
    --ebmnt1-fixed-cta-whatsapp-start: var(--ebmnt1-color-whatsapp-light);
    --ebmnt1-fixed-cta-whatsapp-end: var(--ebmnt1-color-whatsapp-dark);
    --ebmnt1-fixed-cta-call-start: var(--ebmnt1-color-primary);
    --ebmnt1-fixed-cta-call-end: var(--ebmnt1-color-secondary);
    --ebmnt1-fixed-cta-text-color: var(--ebmnt1-color-white);
    --ebmnt1-fixed-cta-icon-color: var(--ebmnt1-color-white);
    --ebmnt1-fixed-cta-icon-background: rgba(255, 255, 255, 0.25);
    --ebmnt1-fixed-cta-pulse-whatsapp-color: rgba(37, 211, 102, 0.55);
    --ebmnt1-fixed-cta-pulse-call-color: rgba(240, 110, 160, 0.55);
    --ebmnt1-fixed-cta-shadow-color: rgba(75, 63, 114, 0.35);
    --ebmnt1-fixed-cta-font-size: clamp(0.78rem, 0.72rem + 0.35vw, 0.95rem);
}

.ebmnt1-fixed-cta {
    position: fixed;
    left: 0.8rem;
    bottom: 0.8rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.ebmnt1-fixed-cta__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.35em 1em 0.35em 0.4em;
    border-radius: 999px;
    color: var(--ebmnt1-fixed-cta-text-color);
    font-size: var(--ebmnt1-fixed-cta-font-size);
    font-weight: 700;
    box-shadow: 0 0.6rem 1.2rem -0.4rem var(--ebmnt1-fixed-cta-shadow-color);
    overflow: visible;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: ebmnt1-fixed-cta-bob 3.6s ease-in-out infinite;
}

.ebmnt1-fixed-cta__button--whatsapp {
    background: linear-gradient(135deg, var(--ebmnt1-fixed-cta-whatsapp-start), var(--ebmnt1-fixed-cta-whatsapp-end));
    --ebmnt1-fixed-cta-pulse-color: var(--ebmnt1-fixed-cta-pulse-whatsapp-color);
}

.ebmnt1-fixed-cta__button--call {
    background: linear-gradient(135deg, var(--ebmnt1-fixed-cta-call-start), var(--ebmnt1-fixed-cta-call-end));
    --ebmnt1-fixed-cta-pulse-color: var(--ebmnt1-fixed-cta-pulse-call-color);
    animation-delay: -1.8s;
}

.ebmnt1-fixed-cta__button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 var(--ebmnt1-fixed-cta-pulse-color);
    animation: ebmnt1-fixed-cta-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

.ebmnt1-fixed-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background-color: var(--ebmnt1-fixed-cta-icon-background);
    color: var(--ebmnt1-fixed-cta-icon-color);
    font-size: 1.15rem;
    transition: transform 0.4s ease;
}

.ebmnt1-fixed-cta__icon i {
    color: var(--ebmnt1-fixed-cta-icon-color);
}

.ebmnt1-fixed-cta__button:hover {
    transform: translateX(0.3rem) scale(1.05);
}

.ebmnt1-fixed-cta__button:hover .ebmnt1-fixed-cta__icon {
    transform: rotate(-14deg) scale(1.12);
}

@keyframes ebmnt1-fixed-cta-pulse {
    0% { box-shadow: 0 0 0 0 var(--ebmnt1-fixed-cta-pulse-color); }
    70%, 100% { box-shadow: 0 0 0 0.9rem transparent; }
}

@keyframes ebmnt1-fixed-cta-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ebmnt1-fixed-cta__button,
    .ebmnt1-fixed-cta__button::before { animation: none; }
}

@media (min-width: 768px) {
    .ebmnt1-fixed-cta {
        left: 1.2rem;
        bottom: 1.2rem;
    }
}
