html{
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    width: 100vw;
    height: 100vh;
    overflow-x: clip;
}

body{
    margin: 0;
    overflow-x: clip;
}

header{
    margin: 0;
    padding: 0;
    width: 100vw;
    border-bottom: 1px solid #e6e6e6;
    position: fixed;
    background-color: white;
    z-index: 5;
}

.spacer {
    height: 50px;
}

.home-spacer{
    height: 63px;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

/*burger

*/

/* --- Burger Icon Styles --- */
.burger {
    cursor: pointer;
    z-index: 2;
    position: fixed;
    right: 15px;
    top: 20px;
    z-index: 3;
}

.burger div {
    width: 30px;
    height: 4px;
    background-color: #004037;
    margin: 5px 20px;
    transition: all 0.3s ease;
    z-index: 3;
    /* Smooth transition to X */
}

/* --- The "X" Animation --- */
.toggle .line1 {
    transform: rotate(-45deg) translate(-6px, 7px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -7px);
}

.nav-list {
    position: fixed;
    list-style: none;
    margin: 0;
    top: 0;
    right: 180%;
    width: 100%;
    height: 100vh;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: flex-end;
    padding-right:10%;
    transition: right 0.3s ease-in-out;
    list-style: none;
    z-index: 2;
    overflow-x: clip;
}

.nav-list.nav-active {
    right: 0;
}

.logo{
    height: 75px;
    margin: 0 0 0 20px;
}


li{
    float: left;
    margin: 10px;
    font-size: 1.3rem;
    color: #004037;
}

.ul-constrain{
    max-width: 300px;
}

li::marker {
    color: #004037;
}

.list-link{
    color: #004037;
    transition: all 0.1s ease-in-out;
    position: relative;
    z-index: 1;
    text-decoration: none;
    font-size: 1.4rem;
    margin: 20px 0;
    font-weight: 600;
}

.list-link:hover{
    color: #94a1a0;
    margin: 0;
    padding: 0;
    z-index: 10;
}

a{
    text-decoration: none;
}

h1{
    font-size: 3rem;
}

h2{
    font-weight: 600;
}


.sus-heading{
    margin-top: 0;
    padding-top: 70px;
}

.service-info{
    margin:208px 50px 0 0;
}

article{
    border-left: 1px solid #e6e6e6;
    margin: 20px 50px 20px 50px;
    padding: 50px;
    max-width: 500px;
}

.rain-article{
    margin-top: 0;
    padding-top: 0;
}
.no-btm-marg{
    margin-bottom: 0;
    margin-top: 0;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-card-mobile{
    display: none;
}

.services-article{
    border-right: 1px solid #e6e6e6;
    border-left: none;
    margin-left: 55px;
    padding-right: 0;
}

.sus-article{
    border-right: 1px solid #e6e6e6;
    margin: 0 50px 50px 50px;
    border: none;
    }


.stack-txt{
    flex-direction:row;
}

.sus-card{
    flex-direction: column-reverse;
}

.meadow-card {
    flex-direction: column-reverse;
}

.meadow-article{
    border: none;
    margin-left: 100px;
}

.woodland-article{
    border-right: none;
}

.meadow-img{
    height: 50vmin;
    border-radius: 5px;
    filter: drop-shadow(5px 5px 4px #e6e6e6);
    z-index: -1;
}

.final-card{
    margin-top: 50px;
}

.final-article {
    border: none;
    margin: 0 auto;
    padding-left: 0;
}

.intro-card-img, .services-card-img, .about-card-img, .sus-card-img, .rain-img{
    height: 55vmin;
    border-radius: 5px;
    filter: drop-shadow(5px 5px 4px #e6e6e6);
    z-index: -2;
}

.services-card-img{
    height: 60vmin;
}

.img-wrap{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wrap-anchor {
    overflow-wrap: anywhere;
}

.sus-card-img{
    height: 484px;
}

.infographic{
    height: 80vmin;
    border-radius: 5px;
    margin: 20px 0 20px 0;
    filter: drop-shadow(5px 5px 4px #c9c9c9);
}

.services-card{
    flex-direction: column-reverse;
}

.services-bold{
    font-weight: 600;
}

.intro, .services, .bio{
    font-weight: 400;
    color: #004037;
}

.footer-txt{
    margin: 45px auto 0;
    color: #94a1a0;
    text-align: center;
    padding: 20px 0;
    background-color: #e6e6e6;
}

.cstm-footer{
    position: fixed;
    bottom: 20px;
    margin: 100px auto -20px auto;
    width: 100vw;
    color: #94a1a0;
}


.ref-list{
    font-size: 0.7rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5% 10%;
}

.gallery-img {
    height: 25vw;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}


.modal {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.modal-toggle {
    display: flex;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal img {
    max-width: 80%;
    max-height: 80vh;
    margin-top: 12vh;
    border-radius: 10px;
}

/* --- Desktop Media Query --- */

@media screen and (min-width: 1400px) {
    
    .card{
        flex-direction: row;
        margin-right: 30px;
    }

    .meadow-card{
        flex-direction: row;
    }

    .meadow-article{
        border-right: 1px solid #e6e6e6;
    }

    .meadow-img {
        height: 488px;
        margin-left: 155px;
        z-index: -1;
    }

    article {
        margin-left: 150px;
    }

    .services-article {
        padding: 0 5px 0 100px;
    }

    .final-article {
        border: none;
        margin-left: 150px;
    }

    .sus-article {
        border-left: none;
        border-right: 1px solid #e6e6e6;
        margin: 0 50px 50px 55px;
        padding: 50px;
        max-width: 500px;
    }

    .intro-card-img,
    .about-card-img,
    .services-card-img {
        height: 488px;
        z-index: -1;
    }

    .infographic {
        height: 71vmin;
    }

    .sus-card-img {
        margin-left: 155px;
    }

    .services-card-img{
        margin-left: 155px;
    }

    .sus-card {
        flex-direction: row;
    }

    .final-card{
        align-items: start;
    }
}


@media screen and (min-width: 1020px) {
    .burger{
        display: none;
    }

    .nav-list {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background-color: transparent;
        padding-right: 50px;

    }

    .list-link{
            font-size: 1.3rem;
            font-weight: 600;
    }

    .nav-list li {
            float: left;
            margin: 10px;
            color: #004037;
    }
}

@media screen and (max-width: 1020px){
    .nav-list {
            padding: 10vh 10%;
        }
}

@media screen and (max-width: 1371px) {

    .services-article,
    .sus-article,
    .meadow-article {
        border-right: none;
    }

}


@media screen and (max-width: 800px){
    
    .home-card{
        flex-direction: column-reverse;
    }
    .bio, .services{
        margin: 15px 0;
    }

    .sus-heading{
        padding-top: 20px;
    }

    .modal img {
        max-width: 100%;
        max-height: 100vh;
        margin-top: none;
    }
    
    .home-spacer{
        display: none;
    }
    .services-card{
        display: none;
    }

    .services{
        margin: 0;
        padding: 0;
    }

    .services-card-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    article,
    .meadow-article,
    .services-article,
    .sus-article{
            border: none;
            margin: 15px 0 15px 0;
            padding: 20px;
            max-width: 500px;
    }

    .services-article{
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .final-article{
        padding-left: 15px;
    }

    .rain-article{
        margin-top: -30px;
    }

    .meadow-img{
        height: 80vw;
    }

    .gallery{
        margin: 15px 0 0 0;
    }

    .gallery-img{
        width: 100vw;
        height: auto;
        border-radius: 0;
    }

    .service-info{
        margin: 30px 0 30px 0;
    }

    .about-card-img,
    .sus-card-img,
    .services-card-img,
    .meadow-img,
    .infographic{
        height: 95vw;
    }

    .rain-img{
        height:66vw;
    }

    .intro-card-img{
        height: 95vw;
    }

    .infographic{
        height: 132vw;
    }

    .logo{
        height: 50px;
        margin: 3px 0 0 10px;
    }
    .burger{
        top: 12px;
        z-index: 3;
    }

    .about-card{
        flex-direction: column-reverse;
    }
}