/* ==========================================================================
   EPP Call to Action Widget
   ========================================================================== */

.epp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 60px 40px;
}

/* ── Layout variants ── */
.epp-cta--center {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.epp-cta--left {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.epp-cta--right {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.epp-cta--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.epp-cta--split .epp-cta__text {
    flex: 1;
    text-align: left;
}

.epp-cta--split .epp-cta__buttons {
    flex-shrink: 0;
}

/* ── Text ── */
.epp-cta__heading {
    margin: 0 0 12px;
    line-height: 1.25;
}

.epp-cta__subheading {
    margin: 0 0 24px;
    opacity: 0.85;
    line-height: 1.5;
}

.epp-cta__description {
    margin: 0;
    line-height: 1.6;
}

.epp-cta__description p:last-child {
    margin-bottom: 0;
}

/* ── Buttons wrapper ── */
.epp-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.epp-cta--center .epp-cta__buttons {
    justify-content: center;
}

.epp-cta--right .epp-cta__buttons {
    justify-content: flex-end;
}

/* ── Base button ── */
.epp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    border: 2px solid transparent;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.epp-cta-btn:hover {
    transform: translateY(-1px);
}

.epp-cta-btn__icon--left { order: -1; }
.epp-cta-btn__icon--right { order: 1; }

.epp-cta-btn i,
.epp-cta-btn svg {
    width: 1em;
    height: 1em;
}

/* ── Type variants (base; overridden via Elementor controls) ── */
.epp-cta-btn--primary {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}
.epp-cta-btn--primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    color: #fff;
}

.epp-cta-btn--secondary {
    background-color: #374151;
    border-color: #374151;
    color: #fff;
}
.epp-cta-btn--secondary:hover {
    background-color: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.epp-cta-btn--outline {
    background-color: transparent;
    border-color: currentColor;
    color: #1d4ed8;
}
.epp-cta-btn--outline:hover {
    background-color: #1d4ed8;
    color: #fff;
}

.epp-cta-btn--ghost {
    background-color: transparent;
    border-color: transparent;
    color: #1d4ed8;
    padding-left: 0;
    padding-right: 0;
}
.epp-cta-btn--ghost:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* ── Responsive: stack split layout on mobile ── */
@media (max-width: 767px) {
    .epp-cta--split {
        flex-direction: column;
        text-align: center;
    }
    .epp-cta--split .epp-cta__text {
        text-align: center;
    }
    .epp-cta--split .epp-cta__buttons {
        justify-content: center;
    }
}
