/**
 * Call/WhatsApp CTA Section Styles
 * Sticky on mobile for lead conversion
 */

/* CTA Section */
.cta-call-whatsapp-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #eb3729 0%, #7e1416 100%);
    color: #ffffff;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.cta-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    justify-content: center;
}

.cta-call {
    background: #ffffff;
    color: #eb3729;
    border: 2px solid #ffffff;
}

.cta-call:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.cta-whatsapp {
    background: #25D366;
    color: #ffffff;
    border: 2px solid #25D366;
}

.cta-whatsapp:hover {
    background: #20BA5A;
    border-color: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.cta-button svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.phone-number {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Sticky on Mobile */
@media (max-width: 768px) {
    .cta-call-whatsapp-section {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 20px;
        z-index: 9999;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        border-top: 3px solid rgba(255, 255, 255, 0.2);
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    
    .cta-container {
        padding: 0;
    }
    
    .cta-content {
        max-width: 100%;
    }
    
    .cta-title {
        display: none; /* Hide title on mobile */
    }
    
    .cta-subtitle {
        display: none; /* Hide subtitle on mobile */
    }
    
    .cta-buttons {
        gap: 12px;
        flex-direction: row;
        justify-content: center;
    }
    
    .cta-button {
        padding: 12px 20px;
        min-width: auto;
        width: auto;
        flex: 1;
        max-width: 48%;
        border-radius: 12px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
    }
    
    .cta-button span:not(.phone-number) {
        display: inline; /* Show button text on mobile */
        white-space: nowrap;
    }
    
    .cta-button svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .phone-number {
        display: none; /* Hide phone number text on mobile */
    }
}

@media (max-width: 480px) {
    .cta-call-whatsapp-section {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
    
    .cta-buttons {
        gap: 10px;
    }
    
    .cta-button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .cta-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Desktop - Full Width Section */
@media (min-width: 769px) {
    .cta-call-whatsapp-section {
        position: relative;
    }
}

/* Add padding to body on mobile to prevent content from being hidden behind sticky CTA */
@media (max-width: 768px) {
    .site-main,
    #primary {
        padding-bottom: 90px;
    }
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cta-button:hover {
    animation: pulse 0.6s ease-in-out;
}
