
:root {
    --darkgreay: #212329;
    --brandgreen: #6D9F6A;
}

img {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box;
    font-family: Helvetica, sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

h1 {
    font-family: 'Lora', serif;
    font-weight: 700;
    line-height: 36px;
    font-size: 35px;
}
h2 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 25px;
    margin-bottom: 8px;
}
h3 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 8px;
}
h4 {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 17px;
}

button {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: white;
    background-color: var(--brandgreen);
    border: none;
    font-size: 15px;
    border: solid 1.5px var(--brandgreen);
    padding: 5px 15px 5px 15px;
}
button:hover {
    background-color: #EDEDED;
    color: var(--brandgreen);
    transition: all 0.3s ease-out;
}

.container {
    width: 80%;
    margin: 0 auto;
}


/* navigation menu -------------- */

.logo {
    max-width: 80px;
}

.nav-container {
    width: 100%;
    background-color: white;
}

.navbar {
    display: grid;
    grid-template-columns: -0.2fr auto 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    height: 65px;
    width: 90%;
    max-width: 1720px;
    margin: 0 auto;
}
.logo {
    grid-column: 1;
}
.nav-menu {
    grid-column: 2;
    grid-row: 1;
}

.nav-menu a {
    font-family: 'Lora', serif;
}

#navbar-logo{
    justify-self: start;
    margin-top: 7px;
    cursor: pointer;
}

.nav-menu {
    display: grid;
    grid-template-columns: repeat(5, auto);
    list-style: none;
    text-align: center;
    width: 70%;
    justify-self: end;
}

.nav-links {
    color: var(--darkgreay);
    text-decoration: none;
}

.nav-links:hover {
    color: var(--brandgreen);
    transition: all 0.2s ease-out;
}

.nav-links-btn {
    background-color: white;
    color: var(--brandgreen);
    font-weight: 700;
    font-size: 15px;
    border: solid 1.5px var(--brandgreen); 
}

.nav-links-btn:hover {
    background-color: var(--brandgreen);
    color: white;
    transition: all 0.3s ease-out;
}

/* mobile menu-------------------- */

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--darkgreay);
}

/* less than 768 navigation menu -------- */
@media screen and (max-width: 800px) {

    .nav-container{
        position: relative;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: auto;
        background-color: rgb(232, 232, 232);
        color: var(--darkgreay);
        margin: 0;
        width: 100%;
        position: absolute;
        top: 65px;
        right: 0;
        left: -100%;   
        opacity: 0;
        transition: all 0.5s ease;     
    }

    #navbar-logo {
        margin-left: 20px;
    }

    .nav-menu.active {
        background-color: #EDEDED;
        left: 0;
        opacity: 1;
        transition: all 0.5s ease;
    }

    .nav-links {
        text-align: center;
        line-height: 60px;
        width: 100%;
        display: table;
    }

    .nav-links:hover {
        background-color: white;
    }
    .nav-links-btn:hover {
        background-color: var(--brandgreen);
    }

    .nav-bar {
        width: 100%;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .menu-toggle .bar {
        display: block;
        cursor: pointer;
    }

    .menu-toggle:hover {
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    
}


/* first home page section ------------------- */

.home-container-01 {
    background-color: #EDEDED;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.container-01_1 img {
    width: 100%;
    max-height: 350px;
}
.container-01_2 {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
    max-width: 450px;
}   
.container-01_2 h1 {
    max-width: 200px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.container-01_2 button {
    margin-top: 1.5rem;
}


/* second home page section ------------------- */

.home-container-02 {
    margin-bottom: 3rem;
}
.container-02_1, .container-02_2, .container-02_3 {
    background-color: #EDEDED;
    padding-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
    padding-bottom: 2rem;
    height: auto;
}
.home-container-02 p {
    margin-bottom: 1rem;
}


/* third home page section ------------------- */

.home-container-03 {
    margin-bottom: 3rem;
    background-color: #EDEDED;
    height: auto;
}
.container-03_1 {
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}
.home-container-03 p {
    margin-bottom: 1rem;
}

.image2 {
    width: 100%; 
    max-height: 175px;
    object-fit: cover;
}



/* fourth home page section ------------------- */

.home-container-04 {
    margin-bottom: 3rem;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}

.home-container-04 h3 {
    margin-top: 1.5rem;
}



/* footer ------------------- */

footer {
    background-color: #EDEDED;
    padding: 2.5rem;

}

.footer-device {
    width: 35px;
    float: left;
    margin-right: 1.3rem;
}

footer h4 {
    max-width: 450px;
}

.footer-details {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 15px;
}
.footer-details-01, .footer-details-02 {
    grid-row: 1;
    height: 90px;
}
.footer-details-02, .footer-details-04 {
    grid-row: 2;
}

.footer-details-02 p:hover {
    color: var(--brandgreen);
    transition: all 0.2s ease-out;
}
.footer-details-03 p:hover {
    color: var(--brandgreen);
    transition: all 0.2s ease-out;
}
.footer-details-04 p:hover {
    color: var(--brandgreen);
    transition: all 0.2s ease-out;
}



/* first transition out of mobile state -------- */
@media screen and (min-width: 500px) {

    /* menu ------ */
    .nav-links-btn {
        padding: 5px 15px 5px 15px;
    }

    /* first section ------ */
    
   .home-container-01 { 
        margin-bottom: 4rem;
    }

    .container-01_1 img {
        width: 100%;
        max-height: 350px;
        object-fit: cover;
    }
    .container-01_2 {
        padding-left: 2.25rem;
        padding-right: 5rem;
        height: auto;
        max-width: 700px;
    }   
    .container-01_2 h1 {
        max-width: 700px;
        margin-top: 1.75rem;
    }

/* second section ------ */
    .home-container-02 {
        display: grid;
        grid-template-columns: auto auto;
        grid-gap: 30px;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        
    }
    .container-02_1, .container-02_2, .container-02_3 {
        height: auto;
        margin-bottom: 0;
    }

    .container-02_1, .container-02_2 {
        grid-row: 1;
    }    
    .container-02_3 {
        grid-row: 2;
        grid-column: 1/3;
    }

/* fourth section ------ */
    .home-icons {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 25px;
    }

/* footer section ------ */
    .footer-details {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .footer-details-02, .footer-details-04 {
        grid-row: 1;
    }


}


@media screen and (min-width: 800px) {

    /* first section ------ */
    
   .home-container-01 { 
        display: grid;
        grid-template-columns: 600px auto;
        height: 350px;
        margin-bottom: 4rem;
    }

    .container-01_1 img {
        width: 100%;
        max-height: 350px;
        object-fit: cover;
    }
    .container-01_2 {
        padding-left: 2.25rem;
        padding-right: 5rem;
        max-height: 70%;
        max-width: 450px;
    }   
    .container-01_2 h1 {
        max-width: 200px;
        margin-top: 3rem;
    }

    .rectangle {
        width: 100px;
        height: 10px;
        background-color: white;
        position: absolute;
        top: 100px;
        left: 550px;
    } 


    /* second section ------ */
    .home-container-02 {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-gap: 30px;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        
    }
    .container-02_1, .container-02_2, .container-02_3 {
        grid-row: 1;
        margin-bottom: 1rem;
    }


    .container-02_3 {
        grid-column: 1;
    }


    /* third section ------ */

    .home-container-03 {
        display: grid;
        grid-template-columns: 500px auto;
        height: auto;
        position: relative;
    }
    .container-03_1 {
        padding-top: 2.5rem;
        padding-bottom: 0;
        margin-top: 1.5rem;
    }
    .image2 {
        max-height: 250px;
    }
    .rectangle-03 {
        width: 100px;
        height: 10px;
        background-color: white;
        position: absolute;
        top: 45px;
        left: 450px;
    } 


}


@media screen and (min-width: 1000px) {

    /* first section ------ */

    .home-container-01 { 
        display: grid;
        grid-template-columns: 750px auto;
        height: 350px;
        margin-bottom: 4rem;
    }

    .container-01_1 img {
        width: 100%;
        max-height: 350px;
        object-fit: cover;
    }

    .rectangle {
        left: 700px;
    } 
    .container-01_2 h1 {
        margin-top: 4rem;
    }

    /* second section ------ */

    .home-container-02 {
        width: 90%;
        margin: auto;
        margin-bottom: 3rem;
    }

    /* third section ------ */

    .container-03_1 {
        max-width: 400px;
    }

    .home-container-03 {
        grid-template-columns: 650px auto;
    }

    .rectangle-03 {
        left: 600px;
    } 

/* fourth section ------ */
    .home-container-04 {
        width: 90%;
        margin: auto;
        margin-bottom: 5rem;
    }

/* footer section ------ */
    .footer-container {
        width: 90%;
        margin: auto;
    }

}


