/* Google Fonts: Lato & Montserrat */
@import url('https://fonts.googleapis.com/css?family=Lato:400,900|Montserrat:400,900&display=swap');

/* GLOBAL */
*, html, body{
    box-sizing: border-box;   
    margin: 0;
    padding: 0;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    font-size: 16px;
    scroll-behavior: smooth;
    line-height: 1.5;
    color: #4D4D4D;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    text-decoration: none;
}

.wrapper{
    margin: auto;
    /* max-width: 960px; */
    padding-left: 5%;
    padding-right: 5%;
}

section{
    padding: 6.5rem 0 3.125rem 0;
}


img{
    display: block;
}

/* Typography */
h1{
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.4375rem;    
}

h2{
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.1875rem;  
    color: #1453BC;
}

p{
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #4d4d4d;
}

a{
    cursor: pointer;
}

/* Buttons */

/* button reset */
button {
    display: inline-block;
    border: none;
    padding: 1rem 2rem;
    margin: 0;
    text-decoration: none;
    background: #0069ed;
    color: #ffffff;
    font-family: sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background 250ms ease-in-out, 
                transform 150ms ease;
    -webkit-appearance: none;
    -moz-appearance: none;
}

button:hover,
button:focus {
    background: #0053ba;
}

button:focus {
    outline: 1px solid #fff;
    outline-offset: -4px;
}

button:active {
    transform: scale(0.99);
}

.btn{
    display: inline-block;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    color: #fff;
    background: #49CA62;
    padding: 10px 20px;
    cursor: pointer;
}

.btn-hollow{
    background: transparent;
    border: 2px solid #49CA62;
    color: #49CA62;
    padding: 8px 18px;
    cursor: pointer;
}

/* NAVBAR */
.nav-social{
    display: none;
    width: 50px;
}

nav{
    position: fixed;
    width: 100%;
    background: #fff;
    z-index: 2;
}

nav .wrapper{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-logo img{
    display: block;
    width: 6.6rem;
}

nav .wrapper .cta{
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

nav .wrapper .cta p{
    /* width: 100px; */
    font-size: 0.6rem;
    letter-spacing: 0;
    color: #4D4D4D;
}

nav .wrapper .cta a{
    font-size: 0.9rem;
    color: #2476FF;
}

/* MOBILE MENU */
.open-btn{
    padding: 0;
    color: #0069ed;
    font-size: 3rem;
    background: transparent;
}

.mobile-menu{
    position: absolute;
    right: -110%;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(45deg, rgba(109,188,54,1) 0%, rgba(20,83,188,1) 100%);
    z-index: 11;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.25s ease-in-out;
    overflow: hidden;
}

.btn-close{
    display: inline-block;
    vertical-align: bottom;
    position: absolute;
    top: 3.215rem;
    right: 3.215rem;
    font-size: 3rem;
    color: #fff;
    background: transparent;
    padding: 0;
}

.mobile-menu-container{
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.mobile-menu-container a{ 
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    border: 1px solid #fff;
}

.mobile-menu-container .btn{
    font-size: 1rem;
    background: #1453BC;
    border: none;
}

/* HEADER */
header{
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../images/header-bg.jpg') center center/cover no-repeat;
}

header .wrapper{
    width: 100%;
    height: 100%;
    background: rgba(20, 82, 188, 0.897);
    padding: 0;
}

.header-content{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-content p{
    font-size: 1.875rem;
    color: #fff;
    margin-top: 15%;
    margin-bottom: 20px;
}

.header-content h1{
    font-size: 2.34rem;
    color: #fff;
    margin-bottom: 20px;
}

.header-content ul{
    list-style-position: inside;
    margin-left: 3rem;
    margin-bottom: 20px;
}

.header-content ul li{
    word-wrap: break-word;
    text-align: left;
    color: #fff;
}

/* SECTION 1 - SERVICES */
#section1 .wrapper{
    display: flex;
    flex-direction: column;
}

.service-box{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-box img{
    width: 6.25rem;
    margin-bottom: 1.25rem;
}

.service-box h1{
    margin-bottom: 1.25rem;
}

.service-box:nth-child(2), .service-box:nth-child(3), .service-box:nth-child(4){
    margin-bottom: 1.875rem;
}

#section1 .wrapper .btn{
    width: 13.75rem;
}

.btn-hollow{
    margin-bottom: 0.9375rem;
}

/* Section 2 - About Us */
#section2{
    background: linear-gradient(
        rgba(255, 255, 255, 0.904), 
        rgba(255, 255, 255, 0.904)
      ), url('../images/section-2-bg.jpg') no-repeat;
    background-size: cover;
    background-position: center;
}

.section2 .wrapper{
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

#section2 .wrapper h2{
    margin-bottom: 3.125rem;
}

.about-us-logo{
    width: 15.6rem;
    margin: 0 auto 1.875rem;
}

#section2 .wrapper hr{
    width: 11rem;
    margin: auto;
    margin-bottom: 1.875rem;
}

.about-us-p{
    margin-bottom: 1.875rem;
}

.about-us-p span{
    font-weight: 900;
}

/* Section 3 - Gallery */
#section3 .wrapper h2{
    margin-bottom: 3.125rem;
}

.gallery{
    max-width: 31.25rem;
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: 1fr 1fr 1fr; 
    grid-column-gap: 5px;
    grid-row-gap: 5px; 
    margin: auto;
}

.gallery a{
    width: 100%; /* Adjust gallery item height here */
}
    .gallery a::after{content: '';display: block;padding-bottom: 80%;}

    #photo1{background: url('../images/photo-1.jpg') center/cover no-repeat !important;}
    #photo2{background: url('../images/photo-2.jpg') center/cover no-repeat !important;}
    #photo3{background: url('../images/photo-3.jpg') center/cover no-repeat !important;}
    #photo4{background: url('../images/photo-4.jpg') center/cover no-repeat !important;}
    #photo5{background: url('../images/photo-5.jpg') center/cover no-repeat !important;}
    #photo6{background: url('../images/photo-6.jpg') center/cover no-repeat !important;}

/* Section 4 - Contact Us */
#section4{
    background: linear-gradient(
        rgba(20, 82, 188, 0.897), 
        rgba(20, 82, 188, 0.897)
      ), url('../images/section-4-bg.jpg') no-repeat;
    background-size: cover;
    background-position: center;
}

#section4 .wrapper h2{
    color: #fff;
    margin-bottom: 3.125rem;
}

#section4 .wrapper span{
    font-weight: 400;
    font-size: 2.1875rem;  
    color: #fff;
}

button .btn{
    border: none;
    border-style: none;
}

/* Section 5 - Testimonials */
#section5 .wrapper{
    display: flex;
    flex-direction: column;
}

#section5 .wrapper h2{
    margin-bottom: 3.125rem;
}


#section5 .wrapper .testimonial-box:nth-child(2), #section5 .wrapper .testimonial-box:nth-child(3){
    margin-bottom: 1.875rem;
}

.testimonial-box p{
    text-align: left;
}

.testimonial-box p span{
    font-weight: 900;
}

.test-author{
    display: block;
    float: right;
    color: #49CA62;
    font-style: italic;
    font-weight: 900;
}

/* Section 6 - Slogan */
#section6{
    background: #ECECEC;
}

#section6 .wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#section6 .wrapper p:nth-child(1), #section6 .wrapper p:nth-child(2){
    margin-bottom: 1.875rem;
}

#section6 .wrapper p, #section6 .wrapper p span{
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: #2476FF;
}

#section6 .wrapper p span{
    color: #49CA62;
    font-weight: 900;
}

#section6 .wrapper p:nth-child(2){
    font-weight: 900;
}

#section6 .wrapper .slogan{
    display: inline-block;
    text-align: left;
    color: #49CA62;
    font-weight: 900;
}

#section6 .wrapper .slogan span{
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-style: italic;
    color: #2476FF;
}

/* Footer */
footer{
    background: #1453BC;
    padding: 3.125rem 0;
}

.footer .wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-logo{
    display: inline-block;
}

.footer-logo img{
    width: 14.3125rem;
}

.social{
    margin: 2.5rem 0;
}

.social p{
    display: block;
    font-size: 1.25rem;
    color: #49CA62;
    font-weight: 900;
    margin-bottom: 10px;
}

.social a{
    display: inline-block;
    width: 45px;
}
.social a:nth-child(2){
    margin-right: 10px;
}

.cta{
    margin-bottom: 2.5rem;
}

.cta p{
    font-size: 1.25rem;
    font-weight: 900;
    color: #49CA62;
}

.cta a{
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
}

.copyright p{
    color: #fff;
}

.copyright p span:nth-child(1){
    color: #49CA62;
    font-weight: 900;
}

.copyright p span:nth-child(4), .copyright p a{
    color: #fff;
    font-weight: 900;
}

/* Device = Tablets, Ipads (portrait) | Screen = B/w 768px to 1024px */
@media (min-width: 767px) and (max-width: 1024px) {

    *, html, body{
        font-size: 30px;
    }

    .wrapper{
        margin: auto;
        /* max-width: 22.33rem; */
        /* padding: 0 5%; */
    }

    .btn{
        font-size: 20px;
    }

    /* Header */
    header .wrapper{
        padding: 0 10%;
    }

    .header-content p{
        font-size: 1.33rem;
    }

    .header-content h1{
        font-size: 1.66rem;
    }

    .header-content .btn{
        margin-top: 1rem;
    }
    

    /* Services */
    .btn-container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Gallery */
    .gallery{
        max-width: 16.67rem;
    }

    /* Contact Us */
    #section4 .wrapper h2, #section4 .wrapper h2 span{
        font-size: 1.5rem;
    }

    #section4 .wrapper h2{
        margin-bottom: 2.5rem;
    }

    #section4 .wrapper h2 span{
        display: block;
    }

    #contact{
        margin: auto;
        max-width: 15.6rem;
    }

    .footer-logo img{
        width: 8.97rem;
    }

    footer .wrapper p, footer .wrapper p span{
        font-size: 1rem;
    }

    .cta a{
        font-size: 1.86rem;
    }

}

/* Desktops - 1024px */
@media (min-width: 1024px){

    .wrapper{
        max-width: 960px;
        padding: 0;
    }

    section{
        padding: 4rem 0;
    }

    h2{
        margin-bottom: 2rem;
    }

    /* Navbar */

    .open-btn, .btn-close{
        display: none;
    }

    nav{
        position: absolute;
    }

    nav .wrapper{
        padding: 0;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 1fr);
        justify-items: stretch;
    }

    nav .wrapper .cta a{
        color: #2476FF;
    }

    .nav-logo{
        grid-column: 1/3;
        grid-row: 1/3;
        padding: 10px 0;
    }

    .nav-logo img{
        width: 8.9rem;
    }

    nav .wrapper .cta{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        grid-column: 8/11;
        align-self: end;
        justify-self: end;
    }

    nav .wrapper .cta p, .nav-social p{
        font-weight: 900;
        font-size: 0.55rem;
        color: #4D4D4D;
    }

    nav .wrapper .cta a{
        font-size: 0.9rem;
    }

    .nav-social{
        grid-column: 11/13;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;
        align-self: end;

    }

    .nav-social a img{
        width: 1.33rem;
    }

    .nav-social .ig-icon, .nav-social .fb-icon{
        margin-left: 5px;
    }

    .mobile-menu{
        position: relative;
        display: block;
        margin: 0;
        padding: 0;
        right: 0 !important;
        bottom: 0;
        width: 100%;
        height: 80%;
        grid-column: 6/13;
        grid-row: 2/3;
        justify-self: end;
        align-self: end;
        background: none;
    }

    .mobile-menu-container{
        position: relative;
        bottom: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-items: center;
        align-items: stretch;
    }

    .mobile-menu-container a, .mobile-menu-container .btn{
        font-size: 0.6rem;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        flex-grow: 1;
        background: #1453BC;
        cursor: pointer;
    }

    .mobile-menu-container a{
        font-family: 'Lato', sans-serif;
        font-weight: 400;
    }
    .mobile-menu-container a:hover{
        background: #2476FF;
        font-weight: 900;
    }
    

    .mobile-menu-container .btn{
        background: #49CA62;
        font-family: 'Montserrat', sans-serif;
        font-weight: 900;
    }
    .mobile-menu-container .btn:hover{
        background: #49CA62;
    }

    /* Header */
    header .wrapper{
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: 1fr;
        background: transparent;
    }

    .header-content{
        display: flex;
        grid-column: 1/6;
        background: rgba(20, 82, 188, 0.904);
    }


    /* Section 1 - Services */
    #section1 .wrapper{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(auto 1fr auto);
    }

    .header-content{
        display: flex;
        
    }

    #section1 .wrapper h2{
        grid-column: 1/4;
    }

    .service-box{
        width: 18rem;
    }
    .service-box:nth-child(2){justify-self: start;}
    .service-box:nth-child(3){justify-self: center;}
    .service-box:nth-child(4){justify-self: end;}

    .service-box img{
        width: 5.5rem;
    }

    .service-box h2{
        font-size: 1rem;
    }

    .btn-container{
        grid-column: 2/3;   
        display: flex;
    }

    .btn-container *{
        display: block;
        margin: 0;
    }

    .btn-container .btn-hollow{
        margin-right: 20px;
    }

    /* Section 2 - About Us */
    #section2 .wrapper{
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto 1fr auto;
        align-items: center;
        justify-items: center;
    }

    #section2 .wrapper h2{
        grid-column: 1/13;
    }

    .about-us-logo{
        /* width: 17.9rem; */
        width: 100%;
        margin: 0;
        justify-self: start;
        grid-column: 1/5;
        grid-row: 2/3;
    }

    #section2 .wrapper hr{
        width: 1px;
        height: 100px;
        grid-column: 5/6;
        grid-row: 2/3;
        justify-self: center;
        margin: 0;
    }

    .about-us-p{
        margin:0;
        text-align: left;
        grid-column: 6/13;
        grid-row: 2/3;
    }

    #section2 .wrapper .btn{
        margin-top: 2rem;
        margin-bottom: 0;
        grid-column: 1/13;
        grid-row: 3/4;
    }

    /* Section 3 - Gallery */
    .gallery{
        max-width: 45.46rem;
        grid-template-columns: repeat(3, auto);
        grid-template-rows: repeat(2,1fr);
    }

    /* Section 4 - Contact Us */
    #contact{
        max-width: 45.46rem;
        margin: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3,auto);
    }

    #contact > fieldset:nth-child(3){
        grid-column: 1/4;
        height: auto;
    }

    #contact .btn{
        margin: auto;
        grid-column: 1/4;
    }

    /* Section 5 - Testimonials */
    #section5 .wrapper{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        grid-column-gap: 10%;
    }
    
    #section5 .wrapper h2{
        display: inline-block;
        grid-column: 1/4;
    }

    .testimonial-box{
        margin-bottom: 0 !important;
    }

    /* Section 6 - Slogan */
    #section6 .wrapper{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #section6 .wrapper p{
        margin-bottom: 0 !important;
    }

    /* Footer */
    footer .wrapper{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    footer .wrapper *{
        margin: 0;
    }

    footer .wrapper .footer-logo img{
        width: 10.85rem;
    }









}

    
    






