/*----------------------------------
            RESET
----------------------------------*/

* {
    margin: 0;
    padding: 0;
    -webkit-transition: .2s ease-in-out;
    transition: .2s ease-in-out;
    box-sizing: border-box;

}

img {
    border: none;
    width: 100%;
}

a:link, a:active, a:visited {
    text-decoration: none;
}

li {
    list-style: none;
}

body {
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #121212;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}


/*----------------------------------
        CLEAR FLOAT
----------------------------------*/

.cf:after {
    content: "";
    display: table;
}

.cf:after {
    clear: both;
}

.cf {
    zoom: 1;
}

/*----------------------------------
        UNIVERSAL
----------------------------------*/

section {
    padding: 3.5em 0 2.5em;
}

.center {
    width: 86%;
    margin: auto;
}

h2 {
    font-size: 180%;
    font-weight: normal;
    word-spacing: 6px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2em;
    color: white;
}



/*----------------------------------
        SITE NAVIGATION
----------------------------------*/
@media screen and (min-width:769px){
    .site-navigation {
        background-color: #00a650;
        height: 6em;
        position: relative;
        border-bottom: .4em solid #008942;
    }

    .site-navigation ul {
        position: absolute;
        top: 50%;
        left: 5%;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }

    .site-navigation ul li {
        float: left;
    }

    .site-navigation ul a {
        color: white;
        text-transform: uppercase;
        display: block;
        padding: .2em .8em;
        border-right: 1px solid white;
    }

    .site-navigation ul li:last-child a{
        border-right: none;
    }

    .site-navigation ul li:hover a {
        background-color: white;
        color: #008942;
    }
    
    #drawer-toggle {
        position: absolute;
        display: none;
    }
}



@media screen and (max-width: 769px){
    * {
        -o-box-sizing: border-box;
        box-sizing: border-box;
        /* adds animation for all transitions */
        -webkit-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
        margin: 0;
        padding: 0;
        -webkit-text-size-adjust: none;
    }

    /* Makes sure that everything is 100% height */
    html,
    body {
        height: 100%;
        overflow: auto;
    }

    /* gets the actual input out of the way; 
    we're going to style the label instead */
    #drawer-toggle {
        position: absolute;
        display: none;
    }


    #drawer-toggle-label {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        left: 0px;
        height: 50px;
        width: 100%;
        display: block;
        position: fixed;
        background: rgba(255, 255, 255, 0);
        z-index: 1;  
    }

    /* adds our "hamburger" menu icon */
    #drawer-toggle-label:before {
        content: '';
        display: block;
        position: absolute;
        height: 3px;
        width: 30px;
        background: #7ac043;
        left: 13px;
        top: 18px;
        box-shadow: 0 7px 0 #00a650, 0 14px 0 #008942;
    }



    /* drawer menu pane - note the 0px width */

    #drawer {
        position: fixed;
        left: -300px;
        top: 0px;
        height: 100%;
        width: 300px;
        background: #008942;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 20px;
        -webkit-overflow-autoing: touch;
        z-index: 10;
    }
    /* actual page content pane */

    #page-content {
        margin-left: 0px;
        margin-top: 50px;
        width: 100%;
        height: calc(100% - 50px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-autoing: touch;
        padding: 20px;
    }

    #sub-nav {
        display: none;
    }

    /* checked styles (menu open state) */

    #drawer-toggle:checked ~ #drawer-toggle-label {
        height: 100%;
        z-index: 100;
        background: rgba(255, 255, 255, .5);
        margin-left: 300px;
    }

    #drawer-toggle:checked ~ #drawer-toggle-label,
    #drawer-toggle:checked ~ header {
        top: 0px;
        width: 100%;
    }

    #drawer-toggle:checked ~ header #drawer { left: 0px; }

    #drawer-toggle:checked ~ #page-content { margin-left: 300px; }

    nav ul li {
        text-align: center;
        margin: auto;
        width: 70%;
        margin-bottom: 0;
        border-bottom: 2px solid aliceblue;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul a {
        display: block;
        padding: 7px 20px;
        width: 100%;
        color: aliceblue;
        text-decoration: none;
        text-transform: uppercase;
    }


    nav ul li:hover { }


    nav ul li:hover a { color: white; font-weight: bold;}


}

/*----------------------------------
        SITE HEADER
----------------------------------*/

.masthead div img {
    position: absolute;
    right: 5%;
    top: 3em;
    z-index: 10;
    width: 240px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.masthead {
    position: relative;
    background-size: cover;
    background-position: bottom;
}

.masthead section {
    height: calc(100vh - 8em);
    position: relative;
    padding: 0;
}

.masthead .text-container {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    text-align: center;
}

.masthead section h1 {
    font-size: 250%;
    padding-bottom: .2em;
    border-bottom: .1em solid black;
    margin-bottom: .2em;
    text-transform: uppercase;
    font-weight: 600;
}

.masthead section h1 span {
    border-left: .1em solid black;
    padding-left: .3em;
}

.masthead section p {
    font-size: 150%;
    margin-bottom: .6em;
}

.masthead section p span {text-transform: uppercase; font-weight: 600;}

.masthead section p em {color: #008942; font-style: normal; font-weight: 600;}

.masthead section button {
    display: block;
    margin: auto;
    padding: .6em 1em;
    font-size: 150%;
    color: white;
    background-color: #00a650;
    border: none;
    box-shadow: 0 6px 25px -10px #222;
}



@media screen and (max-width: 769px){
    
    .masthead section h1 span {
        border-left: none;
        padding-left: 0;
        display: block;
    }
    
    .masthead div img {
        position: absolute;
        left: 50%;
        top: 5em;
        z-index: 10;
        width: 300px;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
    }

    .masthead {
        position: relative;
        background-image: none;
        background-color: #222222;
        height: 500px;
    }

    .masthead section {
        height: 500px;
        position: relative;
        padding: 0;
    }

    .masthead .text-container {
        width: 80%;
        position: absolute;
        left: 50%;
        top: 65%;
        -webkit-transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
        text-align: center;
        color: white;
    }

    .masthead section h1 {
        color: white;
        border-bottom: .1em solid white;}
    
}


/*----------------------------------
CAPABILITY SECTION
----------------------------------*/



.feature-box {
    float: left;
    box-sizing: border-box;
    width: 32%;
    margin-right: 2%;
    -webkit-transition: .4s background-color ease-in;
    transition: .4s background-color ease-in;
    margin-bottom: 1.4em;
}

.feature-box:nth-child(3){
    margin-right: 0;
}

.feature-box:nth-child(6){
    margin-right: 0;
}



.feature-box h3 {
    font-size: 140%;
    font-weight: lighter;
    padding: .5em 10px;
    background-color: #17c86d;
    color: white;
}

.feature-box p {
    line-height: 135%;
    padding: .8em 10px;
    border-bottom: 2px solid #17c86d;
    background-color: white;
    opacity: .95;
}

.feature-box a {
    position: relative;
    display: block;
    text-transform: uppercase;
    padding: .5em 10px .6em 10px;
    background-color: white;
    opacity: .95;
    color: #17c86d;
    -webkit-transition: .25s background-color ease-in;
    transition: .25s background-color ease-in;
}

.feature-box a i {
    position: absolute;
    font-size: 170%;
    right: 5%;
    top: 2px;
}

.feature-box:hover {
    background-color: white;
    box-shadow: 0 8px 30px -10px #1a1a1a;
}

.feature-box a:hover {
    
    opacity: 1;
    color: white;
}




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

    section.capabilities-section .center{width: 700px;}

    .feature-box {
        float: left;
        width: 48%;
        margin-left: 1%;
        margin-right: 1%;
    }
    
    .feature-box:nth-child(3){
        margin-right: 1%;
    }

    .feature-box:nth-child(6){
        margin-right: 1%;
    }

}

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

    section.capabilities-section .center{width: 96%;}

    .feature-box {
        float: none;
        width: 98%;
        margin-left: 1%;
        margin-right: 1%;
    }

}




/*----------------------------------
        FOOTER 
----------------------------------*/


footer {
            width: 100%;
            height: 30px;
            background-color: white;
            color: blue; /* Change text color to blue */
            padding-top: 1.5em;
            border-top: 2px solid #0000FF; /* Add a top border with blue color */
            background-size: 5%;
            background-position: 0 .5em;
            text-align: center; /* Center align text */
            line-height: 30px; /* Vertically center text */
            margin-top: 40px;
        }

footer .center {
    width: 500px;
    margin: auto;
    position: relative;
}

footer p {
    padding: 1em 0;
    text-align: center;
    border-bottom: 1px dotted #e8e8e8;
}

#social-nav {
    padding: .6em 0 1em;
    text-align: center;
}

#social-nav a img {
    width: 30%;
    margin-right: 2%;
}

@media screen and (max-width: 768px){
    footer {
        background-position: 0 100%;
    }
}

@media screen and (max-width: 480px){
    footer {
        background-size: 25%;
        height: 200px;
    }
    footer .center {
        width: 98%;
    }
}