/* ════════════════════════════════════════════
   CTA Bar — thin section breaker, Hero V7 style
   Dark bar (gradient pill button) or gradient
   bar (white button); split or centered; rounded
   card or full-bleed band. Never white, so it
   pops between white sections. Full-width.
   Depends on scw-base (tokens).
   ════════════════════════════════════════════ */

.scw-cta {
    position: relative;
    overflow: hidden;
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.scw-cta *,
.scw-cta *::before,
.scw-cta *::after {
    box-sizing: border-box;
}

/* ── Shape ── */
.scw-cta--rounded {
    border-radius: 24px;
}

.scw-cta--band {
    border-radius: 0;
}

/* ── Variants ── */
.scw-cta--dark {
    background: var(--scw-cta-dark, #08080B);
    --scw-cta-c-heading: #FFFFFF;
    --scw-cta-c-text: #B4B4BC;
    --scw-cta-c-note: #8B8B93;
}

.scw-cta--gradient {
    background: linear-gradient(98deg, var(--scw-cta-a1, #A855F7) 0%, var(--scw-cta-a2, #EC4899) 100%);
    --scw-cta-c-heading: #FFFFFF;
    --scw-cta-c-text: rgba(255, 255, 255, 0.86);
    --scw-cta-c-note: rgba(255, 255, 255, 0.72);
}

/* Soft accent glow inside the dark bar (pure gradients, no blur filter) */
.scw-cta--glow::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 60%;
    height: 220%;
    background:
        radial-gradient(ellipse 50% 45% at 55% 50%, var(--scw-cta-a1, #A855F7) 0%, transparent 65%),
        radial-gradient(ellipse 45% 45% at 40% 55%, var(--scw-cta-a2, #EC4899) 0%, transparent 65%);
    opacity: 0.16;
    pointer-events: none;
}

/* ── Inner layout ── */
.scw-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: 28px 36px;
}

.scw-cta__copy {
    min-width: 0;
}

/* ── Copy ── */
.scw-cta__heading {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--scw-cta-c-heading, #FFFFFF);
    margin: 0;
}

.scw-cta__text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--scw-cta-c-text, #B4B4BC);
    margin: 6px 0 0;
}

/* ── Action ── */
.scw-cta__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.scw-cta__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1)),
                box-shadow 0.2s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.scw-cta__btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.scw-cta__btn:hover {
    transform: translateY(-2px);
}

.scw-cta__btn:active {
    transform: translateY(0);
}

/* Dark bar → gradient pill (identical to Hero V7's CTA) */
.scw-cta--dark .scw-cta__btn {
    color: #FFFFFF;
    background: linear-gradient(98deg, var(--scw-cta-a2, #EC4899) 0%, var(--scw-cta-a1, #A855F7) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.scw-cta--dark .scw-cta__btn::before {
    content: '';
    position: absolute;
    inset: 10px 6px -6px 6px;
    border-radius: inherit;
    background: inherit;
    filter: blur(18px);
    opacity: 0.45;
    z-index: -1;
    transition: opacity 0.2s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.scw-cta--dark .scw-cta__btn:hover {
    color: #FFFFFF;
}

.scw-cta--dark .scw-cta__btn:hover::before {
    opacity: 0.7;
}

.scw-cta--dark .scw-cta__btn:focus-visible {
    outline: 2px solid var(--scw-cta-a2, #EC4899);
    outline-offset: 4px;
}

/* Gradient bar → white pill with dark text */
.scw-cta--gradient .scw-cta__btn {
    color: #0F0F0F;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.scw-cta--gradient .scw-cta__btn:hover {
    color: #0F0F0F;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.scw-cta--gradient .scw-cta__btn:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 4px;
}

.scw-cta__note {
    font-size: 12px;
    line-height: 1.4;
    color: var(--scw-cta-c-note, #8B8B93);
}

/* ── Centered layout ── */
.scw-cta--center .scw-cta__inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 22px;
    padding: 40px 32px;
}

.scw-cta--center .scw-cta__heading {
    font-size: clamp(24px, 3vw, 32px);
}

.scw-cta--center .scw-cta__text {
    font-size: 16px;
    margin-top: 8px;
}

/* ════════════════════════════════════════════
   Responsive — Mobile (≤ 767px): stack, center
   ════════════════════════════════════════════ */
@media (max-width: 767px) {
    .scw-cta--rounded {
        border-radius: 20px;
    }

    .scw-cta__inner,
    .scw-cta--center .scw-cta__inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 22px;
    }

    .scw-cta__heading,
    .scw-cta--center .scw-cta__heading {
        font-size: 22px;
    }

    .scw-cta__text {
        font-size: 14px;
    }

    .scw-cta__action {
        width: 100%;
    }

    .scw-cta__btn {
        width: 100%;
        max-width: 340px;
        padding: 15px 28px;
    }

    .scw-cta--glow::before {
        top: -40%;
        right: -30%;
        width: 100%;
        height: 180%;
    }
}

/* ── Elementor Editor Overrides ── */
.elementor-editor-active .scw-cta {
    min-height: 60px;
}
