@import "./base.css";
@import "./navbar.css";
@import "./footer.css";


/* Service page styles */
/* header section styles */
/* mobile screen */
header > section#service-hero {
    background-color: var(--black);
    background: url(../images/hero-bg/service-bg.webp) no-repeat;
    background-size: cover;
    background-position: center;
    height: 250px;
    position: relative;
}
header > section#service-hero > div#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000066;
    z-index: 98;
}
header > section#service-hero > h1 {
    font-family: var(--site-font);
    font-weight: 400;
    position: absolute;
    top: 50%;  
    left: 50%; 
    transform: translate(-50%, -50%);
    z-index: 99;
    color: var(--white);
    font-size: 28px;
    display: inline-block;
    text-align: center;
    width: 90%;
}
/* medium screens */
@media screen and (min-width: 500px) {
    header > section#service-hero > h1 {
        font-size: 35px;
    }
    /* larger screens ( > 768px) */
    @media screen and (min-width: 768px) {
        header > section#service-hero {
            background-size: 100%;
            background-position: center;
            height: 220px;
        }
        header > section#service-hero > h1 {
            font-size: 38px;
            width: auto;
        }
    }
}

/* main section styles */
/* mobile screen */
main > div#service-head {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    padding: 5% 10.5% 2% 10.5%;
}
main > div#service-head > h2 {
    margin: 25px;
    flex: 0 0 255px;
}
main > div#service-head > hr {
    border: 1px solid #000;
    width: 100%;
    display: block;
}
@media screen and (max-width: 375px) {
    main > div#service-head > h2 {
        margin: 25px 0;
        font-size: 20px;
        flex: 0 0 100%;
        text-align: center;
    }
    main > div#service-head > hr {
        display: none;
    }
}
/* medium screens */
@media screen and (min-width: 600px) {
    main > div#service-head > h2 {
        font-size: 30px;
        flex: 0 0 310px;
    }
    /* larger screens ( > 768px) */
    @media screen and (min-width: 768px) {
        main > div#service-head > h2 {
            font-size: 33px;
            flex: 0 0 340px;
        }
    }
}

/* images section */
main#service-cnt {
    background: var(--white);
}
main > section#service-images {
    padding: 0 5% 5% 5%;
    display: flex;
    flex-flow: column nowrap;
    gap: 60px;
    justify-content: center;
}
main > section#service-images > figure {
    display: flex;
}
main > section#service-images > figure img {
    width: 100px;
}
main > section#service-images > figure:nth-child(1) {
    flex-flow: column nowrap;
    gap: 40px;
}
main > section#service-images > figure:nth-child(1) > div {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    column-gap: 40px;
    row-gap: 35px;
}
main > section#service-images > figure:nth-child(1) > div > img {
    width: 150px;
    max-height: auto;
}
main > section#service-images > figure:nth-child(2),
main > section#service-images > figure:nth-child(3),
main > section#service-images > figure:nth-child(4),
main > section#service-images > figure:nth-child(5),
main > section#service-images > figure:nth-child(6) {
    flex-flow: row wrap;
    justify-content: center;
    gap: 40px;
}
main > section#service-images > figure:nth-child(2) > img {
    width: 200px;
}
main > section#service-images > figure:nth-child(3) > img,
main > section#service-images > figure:nth-child(4) > img,
main > section#service-images > figure:nth-child(5) > img,
main > section#service-images > figure:nth-child(6) > img {
    width: 150px;
}

@media screen and (min-width: 905px) {
    main > section#service-images > figure:nth-child(1) {
        gap: 70px;
    }
    main > section#service-images > figure:nth-child(1) > div,
    main > section#service-images > figure:nth-child(2),
    main > section#service-images > figure:nth-child(4),
    main > section#service-images > figure:nth-child(5),
    main > section#service-images > figure:nth-child(6) {
        justify-content: space-between;
    }
    main > section#service-images > figure:nth-child(3) {
        justify-content: flex-start;
        column-gap: 3px;
        row-gap: 1px;
    }
    main > section#service-images > figure:nth-child(5),
    main > section#service-images > figure:nth-child(6) {
        gap: 20px;
    }
    main > section#service-images > figure:nth-child(1) > div > img {
        max-height: 200px;
    }
    main > section#service-images > figure:nth-child(2) > img {
        width: 240px;
    }
    main > section#service-images > figure:nth-child(3) > img,
    main > section#service-images > figure:nth-child(4) > img {
        width: 200px;
    }
    main > section#service-images > figure:nth-child(5) > img,
    main > section#service-images > figure:nth-child(6) > img {
        width: 291px;
    }
    @media screen and (min-width: 1200px) {
        main > section#service-images > figure:nth-child(2) > img {
            width: 320px;
        }
    }
}
