/* ------------------------------------------
  NAVIGATION STYLES
--------------------------------------------- */

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 55px;
}

.nav-toggle {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.nav-collapse,
.nav-collapse * {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.nav-collapse {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    list-style: none;
    width: 100%;
    float: left;
}

.js .nav-collapse {
    clip: rect(0 0 0 0);
    max-height: 0;
    position: absolute;
    display: block;
    overflow: hidden;
    zoom: 1;
}

.nav-collapse.opened {
    max-height: 9999px;
}

.nav-collapse ul {
    width: 100%;
    float: left;
    display: block;
    list-style: none;
}

.nav-collapse li {
    width: 100%;
    display: block;
    float: left;
}

.nav-collapse > ul {
    border-top: 1px solid rgba(255,255,255, .15);
}

.nav-collapse a {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255, .15);
    font-family: 'Raleway', sans-serif;
    float: left;
    padding: 1.2em;
    text-decoration: none;
}

.has-child ul a {
    padding-left: 2em;
    border-bottom: 1px solid rgba(255,255,255, .15) !important;
}

.has-child ul ul a {
    padding-left: 3em;
    border-bottom: 1px solid rgba(255,255,255, .15) !important;
}

.has-child ul ul {
    border: 0;
    padding: 0;
}

/* For devices LARGER than 720px */
@media (min-width: 720px) {

    .nav-container {
        width: 95%;
    }

    .nav-toggle {
        display: none;
    }

    .js .nav-collapse {
        position: relative;
    }

    .js .nav-collapse.closed {
        max-height: none;
    }

    .nav-collapse {
        width: 100%;
    }
    .nav-collapse ul {
        border: 0;
    }
    .nav-collapse li {
        width: auto;
        min-width: 9%;
    }
    .nav-collapse a {
        border: 0;
        padding: 1em 2em;
        float: left;
        text-align: center;
    }
}

/* ------------------------------------------
  MULTIPLE LEVELS
--------------------------------------------- */

/* For devices SMALLER than 720px */
@media (max-width: 720px) {	
    .js .nav-collapse {
        visibility: hidden;
    }

    .js .nav-collapse.opened {
        visibility: visible;
    }

    /* Enable active class to let the navigation expand over the calculated max height. */
    .js .nav-collapse.multiple-level-nav.opened.dropdown-active {
        max-height: 9999px !important;
    }

    .js .nav-collapse.multiple-level-nav .sub-menu {
        clip: rect(0 0 0 0);
        max-height: 0;
        position: absolute;
        display: none; /* This way you don't have focus on sub menu items unless you open the sub menu. */
        overflow: hidden;
        zoom: 1;
    }

    .js .nav-collapse.multiple-level-nav .sub-menu.toggled {
        display: block;
        max-height: 9999px;
        position: relative;
    }

    .js .nav-collapse li {
        position: relative;
    }

    .js .nav-collapse .dropdown-toggle {
        content: "";
        height: 46px;
        width: 46px;
        padding: 0;
        position: absolute;
        margin: 0;
        text-transform: lowercase;
        top: 0.6em;
        right: 4%;
    }

    .js .nav-collapse .dropdown-toggle:after {
        content: "+";
        font-size: 20px;
    }

    .js .nav-collapse .dropdown-toggle.toggled:after {
        content: "-";
    }
}

/* For devices LARGER than 720px */
@media (min-width: 720px) {
    .dropdown-toggle  {
        display: none;
    }

    .nav-collapse {
        position: relative;
    }

    .js .nav-collapse,
    .js .nav-collapse .dropdown ul {
        max-height: none;
        overflow: visible;
    }
    .sub-menu .has-child a:after {
        font-size: 1.5em;
        line-height: 0.8;
        float: right;
        content: "";
        width: 0;
        height: 0;
        margin: 0.2em 0 0 0.5em;
        border-bottom: 6px solid transparent;
        border-top: 6px solid transparent;
    }

    .sub-menu .has-child .sub-menu a:after {
        display: none;
    }

    .nav-collapse .has-child {
        position: relative;
    }

    .nav-collapse .has-child li {
        width: 100%;
    }

    .nav-collapse .has-child ul a {
        text-align: left;
        border: 0;
    }
 
    .nav-collapse li {
        border: 0;
        display: inline-block;
        height: 55px;
        line-height: 55px;
        position: relative;
    }

    .nav-collapse a {
        display: inline-block;
        padding: 0 1em;
    }

    .nav-collapse ul ul {
        float: left;
        margin: 0;
        position: absolute;
        top: 85px;
        left: -999em;
        z-index: 99999;
        text-align: center;
    }

    .nav-collapse li li {
        border: 0;
        display: block;
        height: auto;
        line-height: 1.0909090909;
    }

    .nav-collapse ul ul ul {
        left: -999em;
        top: 20px;
    }

    .nav-collapse ul ul a {
        padding: 15px 12px;
        white-space: normal;
        width: 300px;
    }

    .nav-collapse ul li:hover > ul,
    .nav-collapse ul li.focus > ul {
        top: 55px;
        left: 0;
    }

    .nav-collapse ul ul li:hover > ul,
    .nav-collapse ul ul li.focus > ul {
        top: 0;
        left: 0%;
        margin-left: 300px;
    }
}

/* For devices larger than 1150px */
@media (min-width: 1150px) {
    .nav-collapse a {
        font-size: 1.125em;
    }
}

/* ------------------------------------------
  NAV TOGGLE STYLES
--------------------------------------------- */

@font-face {
    font-family: "responsivenav";
    src:url("../icons/responsivenav.eot");
    src:url("../icons/responsivenav.eot?#iefix") format("embedded-opentype"),
        url("../icons/responsivenav.ttf") format("truetype"),
        url("../icons/responsivenav.woff") format("woff"),
        url("../icons/responsivenav.svg#responsivenav") format("svg");
    font-weight: normal;
    font-style: normal;
}

.nav-toggle {
    font-size: 0.8125em;
    font-weight: bold;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    float: right;
    line-height: 39px;
    padding: 0 0.75em;
    margin: 7px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}