/**
 * CTA (Call-to-Action) Component
 *
 * Prominent call-to-action sections with gradient backgrounds.
 * Uses the --smx-* theme tokens that ThemeService prints in the page head.
 */

/* ========================================
   CTA Section Container
   ======================================== */

.cta-section {
    position: relative;
    padding: calc(100px * var(--smx-space)) 0;
    background: var(--smx-cta-texture), var(--smx-cta-bg);
    background-size: var(--smx-cta-texture-size), auto;
    color: var(--smx-cta-text);
    overflow: hidden;
    text-align: center;
}

/* ========================================
   CTA Background
   ======================================== */

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   CTA Content
   ======================================== */

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: color-mix(in srgb, var(--smx-cta-text) 15%, transparent);
    border-radius: 50%;
    margin-bottom: 25px;
    font-size: 2.5rem;
    color: var(--smx-cta-text);
    backdrop-filter: blur(10px);
    border: 2px solid color-mix(in srgb, var(--smx-cta-text) 20%, transparent);
    animation: cta-pulse-glow 2s ease-in-out infinite;
}

@keyframes cta-pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    }
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--smx-cta-text);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--smx-cta-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ========================================
   CTA Features List
   ======================================== */

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.cta-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--smx-cta-text);
    font-size: 1rem;
    font-weight: 500;
}

.cta-feature i {
    color: var(--smx-cta-text);
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* ========================================
   CTA Button
   ======================================== */

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    background: var(--smx-cta-btn-bg);
    color: var(--smx-cta-btn-text);
    font-family: var(--smx-font-heading);
    letter-spacing: var(--smx-heading-tracking);
    text-transform: var(--smx-btn-case);
    font-size: 1.15rem;
    font-weight: var(--smx-heading-weight);
    border-radius: var(--smx-radius-btn);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: var(--smx-btn-hover-transform);
    box-shadow: var(--smx-btn-hover-shadow);
    background: color-mix(in srgb, var(--smx-cta-btn-bg) 88%, rgb(0, 0, 0));
    color: var(--smx-cta-btn-text);
    text-decoration: none;
}

.cta-button i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* ========================================
   CTA Responsive
   ======================================== */

@media (max-width: 768px) {
    .cta-section {
        padding: calc(70px * var(--smx-space)) 0;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-button {
        transition: none;
    }
}
