/**
 * FIFE CTA Banner — Elementor widget styles.
 *
 * Scoped entirely under .fife-elementor-cta-banner so this can never
 * collide with any of the ~15 legacy CTA variants across the theme
 * (page-meal-support.php's .meal-cta-*, page-events.php's
 * .ev-cta-banner, page-doing-business-in-africa.php's
 * .event-cta-section, single-fife_project.php's .project-cta-section,
 * page-working-with-us.php's .cta-section, etc.) — none of that markup
 * or CSS is touched. Literal values below are copied from
 * page-meal-support.php's own inline <style> block (the canonical
 * source, see the widget's PHP file header for why), not computed from
 * style.css custom properties, so this widget has no live dependency on
 * it. The background itself (solid color or gradient) is generated by
 * Elementor's own Group_Control_Background against
 * .fife-elementor-cta-banner__inner — the rule below is only a
 * graceful-degradation fallback.
 *
 * Full-bleed capable by design (the "Full-Width Flat" layout mode), so
 * this widget is NOT in fife-elementor-common.css's max-width wrapper
 * group — same exception as Hero Carousel and Page Hero. Its own
 * content column is capped via --fife-cta-content-width instead.
 */

.fife-elementor-cta-banner {
    --fife-cta-content-width: 700px;
    --fife-cta-gap: 1.5rem;
    --fife-cta-icon-box: 80px;
    position: relative;
}

.fife-elementor-cta-banner__inner {
    position: relative;
    overflow: hidden;
    background: #933183;
    padding: 3rem 2rem;
}

@media (min-width: 768px) {
    .fife-elementor-cta-banner__inner {
        padding: 4rem;
    }
}

.fife-elementor-cta-banner--boxed {
    padding: 0 1.5rem;
}

.fife-elementor-cta-banner--boxed .fife-elementor-cta-banner__inner {
    max-width: 1200px;
    margin-inline: auto;
    border-radius: 2.5rem;
}

.fife-elementor-cta-banner--full-width .fife-elementor-cta-banner__inner {
    border-radius: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.fife-elementor-cta-banner__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fife-elementor-cta-banner__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fife-elementor-cta-banner__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.fife-elementor-cta-banner__shapes {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.fife-elementor-cta-banner__shape {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    filter: blur(60px);
}

.fife-elementor-cta-banner__shape--1 {
    top: 0;
    left: 0;
    width: 384px;
    height: 384px;
}

.fife-elementor-cta-banner__shape--2 {
    bottom: 0;
    right: 0;
    width: 320px;
    height: 320px;
}

.fife-elementor-cta-banner__content {
    position: relative;
    z-index: 10;
    max-width: var(--fife-cta-content-width);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--fife-cta-gap);
}

.fife-elementor-cta-banner--align-center .fife-elementor-cta-banner__content {
    text-align: center;
    align-items: center;
}

.fife-elementor-cta-banner--align-left .fife-elementor-cta-banner__content {
    text-align: left;
    align-items: flex-start;
}

.fife-elementor-cta-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--fife-cta-icon-box);
    height: var(--fife-cta-icon-box);
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.fife-elementor-cta-banner__icon svg {
    width: 50%;
    height: 50%;
}

.fife-elementor-cta-banner__eyebrow {
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fife-elementor-cta-banner__heading {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

@media (min-width: 768px) {
    .fife-elementor-cta-banner__heading {
        font-size: 3rem;
    }
}

.fife-elementor-cta-banner__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    line-height: 1.7;
}

.fife-elementor-cta-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.fife-elementor-cta-banner--align-center .fife-elementor-cta-banner__buttons {
    justify-content: center;
}

.fife-elementor-cta-banner__button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.fife-elementor-cta-banner__button--primary {
    background: #ffffff;
    color: #933183;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.fife-elementor-cta-banner__button--primary:hover,
.fife-elementor-cta-banner__button--primary:focus-visible {
    background: rgba(255, 255, 255, 0.9);
}

.fife-elementor-cta-banner__button--secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.fife-elementor-cta-banner__button--secondary:hover,
.fife-elementor-cta-banner__button--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.fife-elementor-cta-banner__button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .fife-elementor-cta-banner__inner {
        padding: 2.5rem 1.5rem;
    }

    .fife-elementor-cta-banner--boxed .fife-elementor-cta-banner__inner {
        border-radius: var(--radius-lg);
    }

    .fife-elementor-cta-banner__button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fife-elementor-cta-banner__button {
        transition-duration: 0.01ms !important;
    }
}
