/*
 * Block: CTA Section
 * Enhanced with attention-grabbing animations
 */

.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section__grid {
    column-gap: var(--container-gap);
    row-gap: var(--container-gap);
    align-items: center;
}

.cta-section__content {
    display: flex;
    flex-direction: column;
    gap: var(--content-gap);
}

.cta-section__action {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 992px) {
    .cta-section__action {
        justify-content: flex-start;
    }
}

.cta-section .heading-group {
    animation: cta-fade-in-scale 0.8s ease-out;
}

.cta-section .heading-group__eyebrow {
    animation: cta-fade-in 0.6s ease-out;
}

.cta-section .rich-text {
    max-width: 58rem;
    animation: cta-fade-in 1s ease-out 0.2s backwards;
}

.cta-section.stack--center .rich-text {
    margin-inline: auto;
}

.cta-section .cluster {
    animation: cta-fade-in-up 1.2s ease-out 0.4s backwards;
}

/* Animations */
@keyframes cta-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cta-fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes cta-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   ACCESSIBILITY
   ============================================= */

@media (prefers-reduced-motion: reduce) {
    .cta-section .heading-group,
    .cta-section .heading-group__eyebrow,
    .cta-section .rich-text,
    .cta-section .cluster {
        animation: none !important;
    }
}