/**
 * CTA component.
 *
 * Dark navy split: copy left, metal photo right.
 *
 * @package VPK
 */

section.cta {
    position: relative;
    overflow: hidden;
    background: #071a33;
    padding-top: 44px;
    padding-bottom: 44px;
    text-align: left;
}

section.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../../images/hero/hero-main.jpg");
    background-size: cover;
    background-position: 78% center;
    opacity: 0.3;
    pointer-events: none;
}

section.cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        #071a33 0%,
        #071a33 40%,
        rgba(7, 26, 51, 0.9) 56%,
        rgba(7, 26, 51, 0.42) 76%,
        rgba(7, 26, 51, 0.18) 100%
    );
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 480px;
    margin-inline: 0;
}

.cta__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.18;
    color: var(--vpk-color-white);
    max-width: 14ch;
}

.cta__text {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    max-width: 34ch;
}

.cta__actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-start;
}

.cta__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding-inline: 22px;
    border-radius: 4px;
    background: #41609c;
    color: var(--vpk-color-white);
    border: 0;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: none;
    transition:
        background-color var(--vpk-transition-fast),
        border-color var(--vpk-transition-fast);
}

.cta__button::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    background-color: currentColor;
    -webkit-mask-image: url("../../images/icons/arrow-right.svg");
    mask-image: url("../../images/icons/arrow-right.svg");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transform: rotate(-45deg);
}

.cta__button:hover {
    background: #35548a;
    border-color: transparent;
}

.cta__button:active {
    background: #2c4675;
}

.cta__button-text {
    display: block;
}

@media (min-width: 768px) {

    section.cta {
        min-height: 260px;
        display: flex;
        align-items: center;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    section.cta::before {
        opacity: 1;
        background-position: 80% center;
    }

    section.cta::after {
        background: linear-gradient(
            95deg,
            #071a33 0%,
            #071a33 32%,
            rgba(7, 26, 51, 0.86) 46%,
            rgba(7, 26, 51, 0.34) 66%,
            rgba(7, 26, 51, 0.08) 100%
        );
    }
}

@media (min-width: 1024px) {

    section.cta {
        min-height: 280px;
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .cta__title {
        font-size: 30px;
        max-width: 13ch;
    }

    .cta__text {
        font-size: 15px;
    }

    .cta__inner {
        max-width: 460px;
    }
}
