/*---*\
CTA
Call to action with a decorative background image and two optional buttons.
\*---*/

.cta {
    position: relative;
    overflow: hidden;
    background-color: var(--color-tertiary-gradient-start);
    background-image: var(--gradient-dark);
    color: var(--color-paragraph-inverse);
}

.cta__background {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* min-width keeps the art at its 1920px scale on smaller screens instead of shrinking it to the section height */
.cta__background-image {
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    width: 100%;
    min-width: 1920px;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transform: translateX(-50%);
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta__layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.cta__intro {
    width: 100%;
}

.cta__intro h1,
.cta__intro h2,
.cta__intro h3,
.cta__intro h4,
.cta__intro h5,
.cta__intro h6 {
    color: var(--color-text-inverse);
}

.cta__intro .sub-heading {
    color: var(--color-secondary);
}

.cta__intro p,
.cta__intro li {
    color: var(--color-paragraph-inverse);
}

.cta__intro > :last-child {
    margin-bottom: 0;
}

.cta__buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.cta__buttons .btn {
    width: auto;
}

.cta__buttons .btn + .btn {
    margin-top: 0;
    margin-left: 0;
}

.cta__buttons .icon-chevron-double-right {
    flex-shrink: 0;
    font-size: var(--button-arrow-size);
    line-height: 1;
}

@media (min-width: 768px) {
    .cta__buttons {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 1200px) {
    .cta__layout {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 100px;
    }

    .cta__intro {
        flex: 1 1 864px;
        max-width: 864px;
    }

    .cta__intro h2 {
        font-size: 80px;
    }

    .cta__buttons {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: flex-start;
    }
}
