@import url('https://fonts.googleapis.com/css?family=Lato');

/* Core Styles */

* {
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background: #111;
    color: #FDFDFD;
    font-size: 1.1em;
    text-align: center;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0;
    padding-bottom: .8em;
}

p {
    margin: 0;
    line-height: 1.5;

}

/* Top bar */

#top {
    height: 30px;
    padding: 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#top-logo {
    height: 50px;
    width: auto;
}

/*Menu button*/

#menu-btn {
    cursor: pointer;
}

/* Dropdown Menu */

#menu1 {
    z-index: 999;
    display: none;
}

#menu1 ul {
    background: rgba(0, 0, 0, .4);
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid orange;
}

#menu1 li {
    padding: .7em 0;
    border-bottom: 1px solid orange;
    padding: 0;
}

#menu1 a {
    text-decoration: none;
    color: #FDFDFD;
    display: block;
    padding: .6em;
}

/*Fade element*/

.fadein {
    opacity: 0;
    position: relative;
    top: 50px;
    transition: all 1s ease-out;
}

/* Header Showcase */

#phone {
    position: absolute;
    bottom: 20px;
    right: 30px;
}

#email {
    position: absolute;
    bottom: 20px;
    left: 30px;
}

.bg-image {
    position: fixed;
    background-image: url('images/showcase-bg-mob.jpg');
    background-position: center;
    background-repeat: repeat-y;
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: -1;
    opacity: .8;
}

#showcase {
    min-height: 400px;
    font-size: 1.2em;
    position: relative;
}

#showcase h1 {
    font-size: 1.6em;
    padding: 2em 0 1em 0;
}

#showcase .content-wrap,
#section-a .content-wrap,
#section-c .content-wrap {
    padding: 0 1.5em;
}

/* Section A */

#section-a {
    background: orange;
    color: #333;
    padding: 2em 0;
}

/* Section B */

#section-b {
    padding: 5px 0px;
    background: rgba(0, 0, 0, .5);

}

#section-b ul {
    list-style: none;
    margin: 0;
    padding: 0;

}

#section-b li:nth-child(even) {
    background: #222;
    color: #FDFDFD;
}

#section-b li {
    margin-top: 10px;
    background: #FDFDFD;
    color: #333;
}


.card-content {
    padding: 1em 1.5em;
}

/* Section C */

#section-c .box {
    color: #333;
    padding: .5em;
    background: orange;
}

#section-c .box:first-child {
    padding: 2em;
}

#map {
    height: 350px;
}

/* Section D */

#section-d {
    background: #FDFDFD;
    color: #333;
    padding: 2em;
}



/* Footer */

#main-footer {
    padding: 1em;
    background: #000;
}

footer p {
    font-size: .6em;
}

footer a {
    text-decoration: none;
    color: #fff;    
}

/* Media Queries */

@media (min-width: 800px) {

    #menu-btn {
        display: none;
    }

    nav {
        //padding: 1.5em;
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    #menu1 {
        margin: 1.5em;
        display: flex;
    }

    #menu1 ul {
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
        background: none;
        border-style: none;
    }

    #menu1 li {
        margin: 0px 1px;
    }
    
    #menu1 a:hover {
        background-color: rgba(255, 165, 0, 0.2);;
        transition: all .5s;
    }

    #showcase {
        min-height: 300px;
    }
    

    .grid {
        display: grid;
        grid-template-columns: 1fr repeat(2, minmax(auto, 30em)) 1fr;
    }

    .content-wrap,
    #section-b ul {
        grid-column: 2/4;
    }

    .box,
    #main-footer div {
        grid-column: span 2;
    }
    
    .fadein {
    opacity: 1;
    position: relative;
    top: 0;
    transition: all 1s ease-out;
}

    #section-b ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        margin: 2em 0;
    }

    #section-b li {
        width: 24%;
    }

    #section-c .box:last-child {
        margin: 0;

    }
    
    footer p {
        text-align: right;
    }

    /* rotate bg image */
    .bg-image {
        background-image: url('images/showcase-bg-desk.jpg');
        opacity: .4;

    }

    #phone {
        display: none;
    }

}
