.cta-button {
    position: relative;
    padding: 52px 20px 44px;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.cta-button .cta-inner {
    position: relative;
    z-index: 2;
}

.cta-button .title {
    margin-bottom: 12px;
    font-family: var(--knockout);
    font-weight: normal;
    font-size: 45px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: inherit;
}

.cta-button .bg-image,
.cta-button .bg-image::before,
.cta-button .bg-image::after,
.cta-button .slide-img {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cta-button .bg-image {
    pointer-events: none;
}

.cta-button .bg-image::before,
.cta-button .bg-image::after {
    z-index: 2;
    display: block;
    content: '';
    transition: opacity var(--transition);
}

.cta-button .bg-image::before {
    background: var(--green-dark);
    opacity: 0.8;
}

.cta-button .bg-image::after {
    background: linear-gradient(to bottom, var(--green-darker), var(--green-dark));
    opacity: 0;
}

.cta-button .slide-img {
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

/*----- media queries -----*/

@media (hover: hover) {
    .cta-button:hover .bg-image::before {
        opacity: 0;
    }
    
    .cta-button:hover .bg-image::after {
        opacity: 0.8;
    }

    .cta-button:hover .slide-img {
        transform: scale(1.1);
    }
}

@media (min-width: 40em) {
    .cta-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .cta-button .title {
        font-size: 30px;
    }
}

@media (min-width: 75em) {
    .cta-button .title {
        margin-bottom: 24px;
        font-size: 60px;
    }

    /*----- inside desktop nav -----*/

    .desktop-nav-container .cta-button {
        padding: 42px 20px 43px;
    }

    .desktop-nav-container .cta-button .title {
        margin-bottom: 15px;
        font-size: 50px;
    }
}