/*  NAVIGATION
------------------------------------------------*/
#menu-button {
    display: none;
}

nav.mobile {
    display: none;
}

nav.primary {
    padding: 0;
    width: 100%;
    position: relative;
    text-align: center;
    margin-top: 20px;
}

nav.primary ul {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0;
    /* height: 55px; */
    background: #CF4F4B;
    -moz-background-size: contain;
    -webkit-background-size: contain;
    background-size: contain;
}

nav.primary ul li {
    margin: 0;
    padding: 0;
    z-index: 9999;
    list-style-type: none;
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

nav.primary ul li.section {
    clear: none;
}

nav.primary ul li:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: #f38223;
	-webkit-transform: scaleY(0);
	transform: scaleY(0);
	-webkit-transform-origin: 50% 0;
	transform-origin: 50% 0;
	-webkit-transition-property: transform;
	transition-property: transform;
	-webkit-transition-duration: 0.3s;
	transition-duration: 0.3s;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;*/
}

nav.primary ul li:hover,
nav.primary ul li:focus,
nav.primary ul li:active {
    color: #fff;
}

nav.primary ul li:hover:before,
nav.primary ul li:focus:before,
nav.primary ul li:active:before {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
}

nav.primary ul li a {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    display: block;
    color: #fff;
    font-size: 16px;
    line-height: 16px;
    text-decoration: none;
    padding: 12px 30px;
    margin: 0;
    -webkit-transition: .3s ease-in;
    -moz-transition: .3s ease-in;
    -o-transition: .3s ease-in;
    transition: .3s ease-in;
}

nav.primary ul li a:hover {
    color: #000;
}




/*  SUB NAV
------------------------------------------------*/
nav.primary ul li li a:link,
nav.primary ul li li a:visited {
    font-size: 14px;
    line-height: 14px;
    padding: 10px 20px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    background: #545454;
    width: 300px;
    border-right: none;
    border-left: none;
    border-bottom: #fff solid 1px;
}

nav.primary ul li li a:hover,
nav.primary ul li li a:active {
    background: #fff !important;
    color: #CF4F4B;
}


/*  OPTIONAL SUB-LEVEL LINKS
------------------------------------------------*/


nav.primary ul li li:last-child a {
    border-bottom: none;
}


/*  NAV DROPDOWNS
------------------------------------------------*/
nav.primary ul ul {
    display: none;
    position: absolute;
}

nav.primary ul ul ul {
    position: absolute;
    left: 100%;
    top: 0;
}

nav.primary ul li:hover>ul {
    display: block;
    line-height: 18px;
    z-index: 500;
}

nav.primary ul ul li {
    float: none;
    position: relative;
    margin: 0;
}

.window {
    font-size: 12px !important;
    font-weight: bold;
    line-height: 2em !important;
    text-align: left;
    background: #fff;
    padding: 25px 25px 0;
    width: 1020px;
    border-right: 1px #C9C9C9 solid;
    border-left: 1px #C9C9C9 solid;
    border-bottom: 1px #C9C9C9 solid;
    margin-left: -300px;
    position: absolute;
    z-index: 99999;
    display: block;
    text-align: center;
}

.window a {
    line-height: 1em !important;
    border: #394278 1px solid;
    border-radius: 4px;
    margin-bottom: 10px !important;
    padding: 10px !important;
    color: #394278 !important;
    font-weight: normal !important;
}

.window a:hover {
    color: #fff !important;
}

.window hr {
    margin: 0 0 1em 0 !important;
}


/*===================== 
	Responsive styles 
=======================*/


@media screen and (max-width: 1350px) {
    nav.primary ul li a {
        padding: 12px 25px;
        font-size: 14px;
        line-height: 14px;
    }

}

@media screen and (max-width: 1250px) {
    nav.primary ul {
        width: 96%;
    }

    nav.primary ul li a {
        /* padding: 20px 10px 9px 10px; */
    }

}

@media screen and (max-width: 1100px) {
    nav.primary ul li a {
        /* padding: 20px 8px 9px 8px; */
    }
}

@media screen and (max-width: 1250px) {
    nav.primary ul {
        width: 100%;
        float: none;
        display: block;
        text-align: center;
    }

    nav.primary ul li {
        float: none;
    }

    nav.primary {
        display: none;
    }

    #menu-button {
        /* initially will need to be hidden */
        display: block;
        font-size: 28px;
        width: 90px;
        position: absolute;
        z-index: 999;
        /* needs to be lower than nav.mobile, adjust as needed */
        padding: 10px 0;
        background: #555555;
        width: 57px;
        top: 95px;
        right: 3%;
    }

    #menu-button a {
        color: #fff;
        text-decoration: none;
        padding: 0 16px;
    }

    nav.mobile {
        display: block;
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        background: #333;
        z-index: 99999;
        /* needs to be higher than #menu-button, adjust as needed */
        overflow: auto;
    }

    nav.mobile h3 {
        /* Menu header styles */
        position: relative;
        padding: 12px 10px;
        color: #fff;
        font-size: 1.2em;
        font-weight: 400;
        border-bottom: 4px solid #222;
    }

    nav.mobile .menu-toggle {
        /* Menu close button */
        position: absolute;
        top: 12px;
        right: 10px;
        display: inline-block;
        padding: 6px 9px 5px;
        font-family: Arial, sans-serif;
        font-weight: bold;
        line-height: 1;
        background: #222;
        color: #999;
        text-decoration: none;
        vertical-align: top;
    }

    nav.mobile .menu-toggle:hover {
        color: #fff;
    }

    nav.mobile ul {
        list-style: none;
        font-weight: 300;
        border-top: 1px solid #151515;
        border-bottom: 1px solid #454545;
        margin: 0;
        padding: 0;
    }

    nav.mobile ul li {
        border-top: 1px solid #454545;
        border-bottom: 1px solid #151515;
    }

    nav.mobile ul li a {
        position: relative;
        display: block;
        padding: 15px 0px 15px 20px;
        color: #999;
        font-size: 15px;
        text-decoration: none;
    }

    nav.mobile ul li a:hover {
        background: #000;
        color: #fff;
    }

    nav.mobile ul li span.click {
        /* dropdown menu idicator arrow be sure to include this image with your image files */
        background: url(../siteart/arrow.png) 10px 12px no-repeat;
        background-size: 55%;
        position: relative;
        display: block;
        float: right;
        margin: -44px 0 0 0;
        cursor: pointer;
        z-index: 12399994;
        width: 44px;
        height: 44px;
        -webkit-transition: background-size .3s ease-in-out;
        -moz-transition: background-size .3s ease-in-out;
        transition: background-size .3s ease-in-out;
    }

    nav.mobile ul li span.click:hover {
        background-size: 60%;
    }

    nav.mobile ul li {
        list-style: none;
        margin-left: 0px;
        line-height: auto;
    }

    nav.mobile ul ul li a {
        list-style: none;
        padding-left: 45px;
        background: #555;
    }
}


@media screen and (max-width: 500PX) {
    #menu-button {
        position: relative;
        text-align: center;
        margin: 2% auto;
        top: 0;
        right: 0;
    }
}