.hidden {
    display: none;
}

body {
    font-family: sans-serif;
    font-size: 100%;
}

p {
    font-size: 1.125rem;
}

.container,
header h1,
.banner p,
.footer-content,
.second-banner-content{
    margin: 0 1rem;
}

/* nav */

nav {
    max-width: 100vw;
}

nav ul {
    padding: 0;
    display: flex;
    gap: 0.5%;
}

nav li {
    background-color: #44580f;
    padding: 0.5rem 0;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2%;
    box-sizing: border-box;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 85%;
}

/* header */

header h1 {
    text-align: center;
    font-size: 2.25rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    margin: 2rem 1rem;
}

header h1 a{
    color: #44580f;
    text-decoration: none;
}

.banner{
    background-size: cover;
    padding: 2rem 0;
    margin-bottom: 3rem;
}



.second-banner-content div{
    background-color: rgba(255, 255, 255,0.7);
    padding: 4rem 2rem 2rem 2rem;
}

.second-banner-content a{
    text-decoration: none;
    color: black;
    font-size: 1.2rem;
}

.banner.homepage{
    background-image: url(../img/small-optimized/banner1.webp);
}

.banner.services{
    background-image: url(../img/small-optimized/banner2.webp);
    background-position: center;
}

.banner.projects{
    background-image: url(../img/small-optimized/banner4.webp);
}

.banner p {
    color: white;
    font-size: 3rem;
    line-height: 1.2;
    font-weight: bold;
    padding: 25vw auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* body */

h2 {
    margin-bottom: 1.4rem;
    font-size: 1.875rem;
    line-height: 1.1;
}

section>ul {
    margin: 1.5rem 0;
}

section>a {
    text-decoration: none;
    background-color: #44580f;
    color: white;
    display: block;
    padding: 0.5rem 0 0.5rem 1rem;
    margin: 1.5rem auto;
}

.image {    
    width: 100%;
    height: auto;
}

/* ****************Images initial addition******************* */

.image.remediation {
    content: url(../img/small-optimized/services1.webp);
}

.image.reclamation {
    content: url(../img/small-optimized/services2.webp);
}

.image.air-quality {
    content: url(../img/small-optimized/services3.webp);
}

.second-banner {
    background-image: url(../img/small-optimized/banner3.webp);
}

.image.homepage {
    content: url(../img/small-optimized/home1.webp);
    margin: 1rem auto;
}

.image.mould {
    content: url(../img/small-optimized/project1.webp);
}

.image.wildfire {
    content: url(../img/small-optimized/project2.webp);
}

.image.water {
    content: url(../img/small-optimized/project3.webp);
}

.image.well {
    content: url(../img/small-optimized/project4.webp);
}

.image.land {
    content: url(../img/small-optimized/project5.webp);
}

.image.wetland {
    content: url(../img/small-optimized/project6.webp);
}

.image.project-health {
    content: url(../img/small-optimized/project-health.webp);
}

.image.project-response {
    content: url(../img/small-optimized/project-response.webp);
}
/* *********************************************************** */

.second-banner {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 0;
    padding: 2rem 0 1rem 0;
}

.services p:first-of-type{
    font-weight: bold;
}

.gallery h3 {
    background-color: #44580f;
    color: white;
    padding: 1rem 0 1rem 1rem;
}

.gallery section{
    margin-bottom: 2rem;
}

main section p{
    margin-bottom: 1rem;
}

/* footer */

footer {
    background-color: #f5f5f5;
}

.footer-content {
    padding: 1.5rem 0 3rem 0;
}

.footer-content ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4%;
    padding: 0;
}

.footer-content ul li {
    min-width: calc(96%/2);
    background-color: white;
    border: 1px solid #e2e2e2;
    margin-bottom: 1rem;
    padding: 1.5rem 0;
    text-align: center;
    display: flex;
    flex: 1 1 0;
    justify-content: center;
    align-items: center;
}

.footer-content a {
    text-decoration: none;
    color: black;
    font-size: 1.125rem;
    line-height: 1.1;
    width: 90%;
}

.footer-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.gallery.projects{
    display: flex;
    flex-wrap: wrap;
    gap: 4%;
    margin-bottom: 2rem;
}

.gallery.projects section{
    width: 50%;
    flex-grow: 1;
    flex-basis: 0;
}

.gallery.projects h3{
    padding-right: 0.5rem;
}

.projects>section .image{
    margin-bottom: 1rem;
}

.projects{
    margin-bottom: 2.5rem;
}

/* *********************************** MEDIA QUERIES *********************************** */

@media screen and (min-width: 800px) {
    nav a {
        font-size: 1rem;
    }

    header h1 {
        text-align: left;
    }

    .together p{
        display: inline;
        margin: 0 0 0 1rem;
    }

    .together p:last-child{
        margin-left: 1rem;
    }

    .banner {
        padding: 5rem 0 8rem 0;
    }
    
    /* ************************** MEDIUM RESOLUTION CHANGE ************************** */
    .banner.homepage{
        background-image: url(../img/medium-optimized/banner1.webp);
    }

    .banner.services{
        background-image: url(../img/medium-optimized/banner2.webp);
    }

    .image.homepage {
        content: url(../img/medium-optimized/home1.webp);
    }

    .image.remediation {
        content: url(../img/medium-optimized/services1.webp);
    }
    
    .image.reclamation {
        content: url(../img/medium-optimized/services2.webp);
    }
    
    .image.air-quality {
        content: url(../img/medium-optimized/services3.webp);
    }
    
    .second-banner {
        background-image: url(../img/medium-optimized/banner3.webp);
    }

    .banner.projects{
        background-image: url(../img/medium-optimized/banner4.webp);
    }

    .image.mould {
        content: url(../img/medium-optimized/project1.webp);
    }
    
    .image.wildfire {
        content: url(../img/medium-optimized/project2.webp);
    }
    
    .image.water {
        content: url(../img/medium-optimized/project3.webp);
    }
    
    .image.well {
        content: url(../img/medium-optimized/project4.webp);
    }
    
    .image.land {
        content: url(../img/medium-optimized/project5.webp);
    }
    
    .image.wetland {
        content: url(../img/medium-optimized/project6.webp);
    }
    
    .image.project-health {
        content: url(../img/medium-optimized/project-health.webp);
    }
    
    .image.project-response {
        content: url(../img/medium-optimized/project-response.webp);
    }

    /* ************************************************************************** */

    .container.homepage main{
        display: flex;
        flex-grow: 1;
        gap: 4%;
    }

    .left-column,
    .right-column {
        padding: 4rem 2rem 1rem 2rem;
        margin-bottom: 2rem;
    }

    .left-column {
        width: calc(100%/1.4);
        border: #44580f 3px solid;
    }

    .right-column {
        width: 100%;
        border: #44580f 3px solid;
        height: fit-content;
    }

    section>a {
        padding: 0.5rem 1.5rem;
        width: fit-content;
        font-size: 1.2rem;
        margin-left: 0;
    }

    .footer-content ul {
        gap: 2%;
    }

    .footer-content ul li {
        min-width: calc(96%/4);
        padding: 1rem 0;
    }

    .gallery.services{
        display: flex;
        gap: 2%;
    }

    .second-banner{
        display: flex;
        flex-direction: row-reverse;
        padding-bottom: 13rem;
    }

    .second-banner-content{
        width: 80%;
    }

    .gallery section{
        display: flex;
        flex-direction: column-reverse;
    }

    .gallery.projects section{
        min-width: calc(96%/4);
        margin-bottom: 1.5rem;
    }

    .gallery.projects .image{
        margin: 0;
    }

    .container.projects>section:nth-of-type(1) div{
        display: flex;
        gap: 5%;
    }

    .container.projects>section:nth-of-type(2) div{
        display: flex;
        gap: 5%;
        flex-direction: row-reverse;
    }

    .container.projects>section .image{
        min-width: calc(100%/2.15);
    }
}

@media screen and (min-width: 1200px) {
    .container,
    header h1,
    .banner p,  
    .together,  
    .footer-content {
        width: 1200px;
        margin: 0 auto;
    }

    nav{
        background-color: #44580f;
    }

    nav ul{
        flex-flow: wrap-reverse;
        justify-content: end;
        white-space: nowrap;
        width: 1250px;
        margin: 0 auto;
        gap: 0;
    }

    nav li{
        flex-grow: 0;
        border-left: white 1px solid;
    }

    nav li:last-of-type {
        border-right: white 1px solid;
    }

    nav a{
        padding: 0 0.5rem;
    }

    .banner{
        padding: 10rem 0 12rem 0;
    }

    /* ************************** LARGE RESOLUTION CHANGE ************************** */

    .banner.homepage{
        background-image: url(../img/large-optimized/banner1.webp);
    }

    .banner.services{
        background-image: url(../img/large-optimized/banner2.webp);
    }

    .image.remediation {
        content: url(../img/large-optimized/services1.webp);
    }
    
    .image.reclamation {
        content: url(../img/large-optimized/services2.webp);
    }
    
    .image.air-quality {
        content: url(../img/large-optimized/services3.webp);
    }
    
    .second-banner {
        background-image: url(../img/large-optimized/banner3.webp);
    }
    
    .image.homepage{
        content: url(../img/large-optimized/home1.webp);
    }

    .banner.projects{
        background-image: url(../img/large-optimized/banner4.webp);
    }

    .image.mould {
        content: url(../img/large-optimized/project1.webp);
    }
    
    .image.wildfire {
        content: url(../img/large-optimized/project2.webp);
    }
    
    .image.water {
        content: url(../img/large-optimized/project3.webp);
    }
    
    .image.well {
        content: url(../img/large-optimized/project4.webp);
    }
    
    .image.land {
        content: url(../img/large-optimized/project5.webp);
    }
    
    .image.wetland {
        content: url(../img/large-optimized/project6.webp);
    }
    
    .image.project-health {
        content: url(../img/large-optimized/project-health.webp);
    }
    
    .image.project-response {
        content: url(../img/large-optimized/project-response.webp);
    }

    /* ************************************************************************** */
    
    main{
        gap: 2%;
    }

    header h1{
        margin: 2rem auto;
    }

    .right-column{
        width: 50%;
        height: auto;
    }

    .footer-content ul {
        gap: 1%;
    }

    .footer-content ul li {
        min-width: calc(96%/7);
        overflow-wrap: break-word;
    }

    .footer-content a{
        width: 70%;
    }

    .second-banner-content{
        width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: row-reverse;
    }

    .second-banner-content div{
        width: 50%;
    }

    .container.projects>section:nth-of-type(1) div,
    .container.projects>section:nth-of-type(2) div {
        gap: 2%;
    }

    .container.projects>section .image{
        min-width: calc(100%/2.1);
    }

    .projects{
        margin-bottom: 1rem;
    }
}