/**

 * Static CTA Block Styles

 *

 * @package Travel\Blocks

 */



.static-cta {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 400px;

    padding: 4rem 2rem;

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    overflow: hidden;

}



/* Background types */

.static-cta--image {

    background-attachment: fixed; /* Parallax effect */

}



.static-cta--color,

.static-cta--gradient {

    /* Color or gradient set via inline style */

}



/* Overlay */

.static-cta__overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background-color: #000;

    z-index: 1;

}



/* Content container */

.static-cta__content {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    text-align: center;

}



.static-cta__inner {

    /* Container for content */

}



/* Typography */

.static-cta__title {

    font-size: clamp(2rem, 4vw, 3.5rem);

    font-weight: 700;

    color: #fff;

    margin: 0 0 1rem;

    line-height: 1.2;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

}



.static-cta__subtitle {

    font-size: clamp(1rem, 2vw, 1.375rem);

    color: #fff;

    margin: 0 0 2.5rem;

    line-height: 1.6;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);

    max-width: 700px;

    margin-left: auto;

    margin-right: auto;

}



/* Actions */

.static-cta__actions {

    display: flex;

    gap: 1rem;

    justify-content: center;

    flex-wrap: wrap;

}



.static-cta__button {

    display: inline-block;

    padding: 1rem 2.5rem;

    font-size: 1.125rem;

    font-weight: 600;

    text-decoration: none;

    border-radius: 4px;

    transition: all 0.3s ease;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);

    border: 2px solid transparent;

}



.static-cta__button.btn-primary {

    background-color: var(--wp--preset--color--secondary);

    color: #fff;

}



.static-cta__button.btn-primary:hover {

    background-color: #c0392b;

    transform: translateY(-2px);

    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);

}



.static-cta__button.btn-secondary {

    background-color: var(--wp--preset--color--primary);

    color: #fff;

}



.static-cta__button.btn-secondary:hover {

    background-color: #2980b9;

    transform: translateY(-2px);

    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);

}



.static-cta__button.btn-outline {

    background-color: transparent;

    color: #fff;

    border-color: #fff;

}



.static-cta__button.btn-outline:hover {

    background-color: #fff;

    color: #333;

}



/* Responsive Design */

@media (max-width: 768px) {

    .static-cta {

        min-height: 350px;

        padding: 3rem 1.5rem;

    }



    .static-cta--image {

        background-attachment: scroll; /* Disable parallax on mobile */

    }



    .static-cta__actions {

        flex-direction: column;

        align-items: stretch;

    }



    .static-cta__button {

        width: 100%;

        text-align: center;

    }

}



/* Editor preview adjustments */

.block-editor-block-list__block .static-cta {

    margin-bottom: 1rem;

}



.static-cta--image {

    background-attachment: scroll; /* Always scroll in editor */

}

