.services {
    width: 100%;
    height: auto;

    padding: 20px 0 100px;
}

.services_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 50px 28px;
}

.services_box {
    position: relative;
    width: 90%;
    padding: 0 0 24px;

    transition:
        transform .5s cubic-bezier(.22,.61,.36,1),
        border-color .5s ease;

    border-bottom: 2px solid rgba(255, 255, 255, .15);
}

.services_img {
    position: relative;
    display: block;
    width: 100%;
    height: calc(var(--vh) * 28);
    margin-bottom: 24px;

    border-radius: var(--radius-s);
    background-color: var(--black_vanta);

    text-decoration: none;
    overflow: hidden;
}

.services_img img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.04);
    transition:
        transform .9s cubic-bezier(.22,.61,.36,1);
}

.services_img_overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .72),
            rgba(0, 0, 0, .08) 65%,
            rgba(0, 0, 0, .02)
        );

    transition: background .6s ease;
}

.services_img h3 {
    position: absolute;
    left: 20px;
    bottom: 18px;
    margin: 0;
    z-index: 2;

    color: var(--white);
    text-decoration: none;

    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

.services_text {
    margin-bottom: 18px;
}

.services_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--white);
    font-weight: 600;
    text-decoration: none;

    transition:
        color .3s ease,
        gap .4s cubic-bezier(.22,.61,.36,1);
}

.services_arrow {
    color: var(--orange);

    font-size: 22px;
    line-height: 1;

    transition:
        transform .4s cubic-bezier(.22,.61,.36,1);
}

@media (hover: hover) {
    .services_box:hover {
        transform: translateY(-6px);
        border-color: rgba(246, 132, 43, .5);
    }

    .services_box:hover .services_img img {
        transform: scale(1.10);
    }

    .services_box:hover .services_img_overlay {
        background:
            linear-gradient(
                to top,
                rgba(0, 0, 0, .82),
                rgba(0, 0, 0, .12) 65%,
                rgba(0, 0, 0, .02)
            );
    }

    .services_box:hover .services_img h3 {
        transform: translateY(-4px);
    }

    .services_box:hover .services_btn {
        color: var(--orange);
        gap: 14px;
    }

    .services_box:hover .services_arrow {
        transform: translateX(4px);
    }
}






/* --------------------------------------------- MOBILE HORIZONTAL --------------------------------- */
@media (orientation: landscape) and (max-height: 500px) {
    .services_container {
        gap: 50px 5%;
    }

    .services_box {
        width: 40%;
    }

    .services_img {
        height: calc(var(--vh) * 60);
    }

    .services_text {
        margin-bottom: 28px;
    }

    .services_btn {
        position: absolute;
        bottom: 10px;
    }
}





/* ---------------------------------------------------------- TABLET ---------------------------------- */
@media (min-width: 768px) and (orientation: portrait) {
    .services_container {
        gap: 50px 5%;
    }

    .services_box {
        width: 40%;
    }

    .services_img {
        height: calc(var(--vh) * 25);
    }

    .services_text {
        margin-bottom: 28px;
    }

    .services_btn {
        position: absolute;
        bottom: 10px;
    }
}






/* -------------------------------------------------- NOTEBOOK ------------------------------------ */
@media (min-width: 1024px) {
    .services_container {
        gap: 60px 28px;
    }

    .services_box {
        width: 30%;
    }

    .services_img {
        height: calc(var(--vh) * 27);
    }

    .services_text {
        margin-bottom: 36px;
    }

    .services_btn {
        position: absolute;
        bottom: 18px;
    }
}






/* ----------------------------------------------------- Standard Display ----------------------------- */
@media (min-width: 1440px) {
    .services {
        padding: 60px 0 100px;
    }

    .services_container {
        gap: 70px 30px;
    }

    .services_box {
        width: 24%;
    }

    .services_img {
        height: calc(var(--vh) * 30);
    }
}