/**
 * CTA Footer Block Styles
 *
 * Full-width call to action with background image
 */

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

.lspa-cta-footer {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Overlay for text readability */
.lspa-cta-footer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(1, 41, 81, 0.7) 0%,
        rgba(1, 41, 81, 0.4) 50%,
        rgba(1, 41, 81, 0.1) 100%
    );
    z-index: 1;
}

/* Placeholder notice for editor preview */
.lspa-cta-footer__placeholder-notice {
    position: absolute;
    top: 50%;
    right: var(--lspa-space-xl);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lspa-space-sm);
    padding: var(--lspa-space-lg);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--lspa-radius-lg);
    color: var(--lspa-gray-600);
    font-size: var(--lspa-text-sm);
    z-index: 10;
}

.lspa-cta-footer__placeholder-notice .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   Container
   ========================================================================== */

.lspa-cta-footer__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--lspa-container-xl);
    margin: 0 auto;
    padding: var(--lspa-space-4xl) var(--lspa-space-lg);
}

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

.lspa-cta-footer__content {
    max-width: 600px;
}

/* Title */
.lspa-cta-footer__title {
    font-size: clamp(1.75rem, 4vw, var(--lspa-text-4xl));
    font-weight: 800;
    color: var(--lspa-white);
    line-height: 1.2;
    margin-bottom: var(--lspa-space-lg);
}

.lspa-cta-footer__title .lspa-highlight {
    color: var(--lspa-secondary-light);
}

/* Subtitle */
.lspa-cta-footer__subtitle {
    font-size: var(--lspa-text-lg);
    color: var(--lspa-white);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: var(--lspa-space-xl);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.lspa-cta-footer__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lspa-space-md);
    align-items: center;
}

/* Base button styles */
.lspa-cta-footer__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--lspa-space-sm);
    padding: var(--lspa-space-md) var(--lspa-space-xl);
    font-size: var(--lspa-text-base);
    font-weight: 600;
    border-radius: var(--lspa-radius-full);
    text-decoration: none;
    transition: all var(--lspa-transition-fast);
    white-space: nowrap;
}

/* Primary button (white with icon) */
.lspa-cta-footer__btn--primary {
    background: var(--lspa-white);
    color: var(--lspa-primary);
    border: 2px solid var(--lspa-white);
}

.lspa-cta-footer__btn--primary:hover {
    background: transparent;
    color: var(--lspa-white);
    border-color: var(--lspa-white);
}

.lspa-cta-footer__btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.lspa-cta-footer__btn-icon svg {
    width: 100%;
    height: 100%;
}

/* Secondary button (outline with arrow) */
.lspa-cta-footer__btn--secondary {
    background: transparent;
    color: var(--lspa-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.lspa-cta-footer__btn--secondary:hover {
    background: var(--lspa-white);
    color: var(--lspa-primary);
    border-color: var(--lspa-white);
}

.lspa-cta-footer__btn-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--lspa-transition-fast);
}

.lspa-cta-footer__btn--secondary:hover .lspa-cta-footer__btn-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .lspa-cta-footer {
        min-height: 350px;
    }

    .lspa-cta-footer__overlay {
        background: linear-gradient(
            180deg,
            rgba(1, 41, 81, 0.8) 0%,
            rgba(1, 41, 81, 0.6) 100%
        );
    }

    .lspa-cta-footer__container {
        padding: var(--lspa-space-3xl) var(--lspa-space-lg);
    }

    .lspa-cta-footer__content {
        max-width: 100%;
        text-align: center;
    }

    .lspa-cta-footer__title {
        font-size: 1.5rem;
    }

    .lspa-cta-footer__subtitle {
        font-size: var(--lspa-text-base);
    }

    .lspa-cta-footer__buttons {
        flex-direction: column;
        width: 100%;
    }

    .lspa-cta-footer__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .lspa-cta-footer {
        min-height: 300px;
    }

    .lspa-cta-footer__container {
        padding: var(--lspa-space-2xl) var(--lspa-space-md);
    }

    .lspa-cta-footer__btn {
        padding: var(--lspa-space-md) var(--lspa-space-lg);
        font-size: var(--lspa-text-sm);
    }
}

/* ==========================================================================
   Full Width Alignment
   ========================================================================== */

.lspa-cta-footer.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.lspa-cta-footer.alignwide {
    width: calc(100% + var(--lspa-space-4xl));
    margin-left: calc(-1 * var(--lspa-space-2xl));
}

/* ==========================================================================
   Editor Preview Styles
   ========================================================================== */

.editor-styles-wrapper .lspa-cta-footer {
    margin-left: 0;
    width: 100%;
}
