/* Import CSS Variables */
@import url(../../css/partials/_variables.css);

/* Import CSS Global */
@import url(../../css/partials/_global.css);

/* Import CSS Addons */
@import url(../../css/partials/_addons.css);

/* Import CSS Header */
@import url(../../css/header.css);

/* Import CSS Footer */
@import url(../../css/footer.css);


main {
    display: flex;
    flex-direction: column;
    padding: 0;
    align-items: center;
    margin: 0 auto;
}

main p {
    font-size: 15px;
    text-align: justify;
    text-align-last: center;
}


/* ============================== Banner ============================== */

main .banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 20rem;
    max-height: calc(100vh - 35rem);
    overflow: hidden;
}

main .banner:hover img {
    scale: 1.05;
}

main .banner img {
    width: 100%;
    height: auto;
    transition: all 300ms linear;
}

main .banner h1 {
    font-size: 4rem;
    position: absolute;
}


/* ============================== Service ============================== */

main .service {
    padding: 2rem;
    display: grid;
    grid-template-columns: 25% 50% 25%;
    justify-content: center;
    align-items: center;
}

main .service .img-cont {
    width: 100%;
    padding: 2rem;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 0 1rem var(--color-light);
    border: 2px solid var(--color-primary);
    transition: all 300ms linear;
}

main .service .img-cont:hover {
    box-shadow: none;
}

main .service .img-cont:hover img {
    scale: 1.05;
}

main .service .img-cont img {
    width: 100%;
    height: 100%;
    vertical-align: center;
    object-fit: contain;
    transition: all 300ms linear;
}



main .service .text-cont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
    gap: 1rem;
}

main .service .text-cont h2 {
    font-size: 1.8rem;
}


/* ============================== Media Query ============================== */
@media only screen and (max-width: 1500px) {
    main .service {
        grid-template-columns: 50% 50%;
        grid-template-rows: max-content max-content;
        gap: 1rem;
    }

    main .service .text-cont {
        grid-column: 1 / 3;
        padding: 1rem 0 2rem;
    }

    main .service .img-cont {
        height: 100%;
    }

    main .service .img-cont:first-of-type {
        order: 2;
    }
}

@media only screen and (max-width: 1024px) {
    main p {
        font-size: 14px;
    }

    main .banner h1 {
        font-size: 3rem;
    }
}

@media only screen and (max-width: 600px) {
    main .banner h1 {
        font-size: 2rem;
    }

    main .banner img {
        min-height: 20rem;
        width: auto;
    }

    main .service {
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }
}