/* Flexnav Base Styles */

.flexnav{
    overflow: hidden;
    width: 100%;
    max-height: 0;
    margin: 0 auto;
    padding-left: 0;
    -webkit-transition: none;
       -moz-transition: none;
        -ms-transition: none;
            transition: none;
    -webkit-transform-style: preserve-3d;
    list-style: none;
}

.flexnav.opacity{
    opacity: 0;
}

.flexnav.show{
    max-height: 2000px;
    -webkit-transition: all 0.5s ease-in-out;
       -moz-transition: all 0.5s ease-in-out;
        -ms-transition: all 0.5s ease-in-out;
            transition: all 0.5s ease-in-out;
    opacity: 1;
}

.flexnav.one-page{
    position: fixed;
    top: 50px;
    right: 5%;
    max-width: 200px;
}

.flexnav ul{
    padding-left: 0;
    list-style: none;
}

.flexnav li{
    font-size: 100%;
    position: relative;
    overflow: hidden;
}

.flexnav li a{
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
    position: relative;
    z-index: 2;
    display: block;
    overflow: hidden;
    padding: 0.96em;
    color: #ffffff;
    background: #7ba3b2;
}

.flexnav li ul{
    width: 100%;
}

.flexnav li ul li{
    font-size: 100%;
    position: relative;
    overflow: hidden;
}

.flexnav li ul.show li{
    overflow: visible;
}

.flexnav li ul li a{
    display: block;
    padding: 0.625rem 0.96rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    background: #454545;
}

.flexnav ul li ul li a{
    color: #454545;
    background: #bfbfbc;
}

.flexnav ul li ul li ul li a{
    background: #cbcbc9;
}

.flexnav .touch-button{
    text-align: center;
    position: absolute;
    z-index: 999;
    top: 0;
    right: 0;
    display: inline-block;
    width: 50px;
    height: 52px;
    background: #acaca1;
    background: rgba(0, 0, 0, 0.075);
}

.flexnav ul .touch-button{
    /*background: rgba(255,255,255, 0.25);*/
    height: 42px;
}

.flexnav .touch-button:hover{
    cursor: pointer;
}

.flexnav .touch-button .navicon{
    font-size: 0.875rem;
    position: relative;
    top: 1.4em;
    color: #ffffff;
}

.flexnav ul .touch-button .navicon{
    top: 0.875rem;
    color: #ffffff;
}

.menu-button{
    font-family: 'Open Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    display: block;
    padding: 0.625em;
    cursor: pointer;
    color: #7ba3b2;
    border: 3px solid #7ba3b2;
    background: none;
}

.menu-button.one-page{
    position: fixed;
    top: 0;
    right: 5%;
    padding-right: 45px;
}

.menu-button .touch-button{
    text-align: center;
    position: absolute;
    z-index: 999;
    top: 0;
    right: 0;
    display: inline-block;
    width: 50px;
    height: 50px;
    background: transparent;
}

.menu-button .touch-button .navicon{
    font-size: 1.5rem;
    position: relative;
    top: 0.45em;
}

@media all and (min-width: 970px){
    nav.top{
        float: right;
    }
    body.one-page{
        padding-top: 70px;
    }
    .flexnav{
        overflow: visible;
    }
    /*padding-right: 20px*/

    .flexnav.opacity{
        opacity: 1;
    }
    .flexnav.one-page{
        top: 0;
        right: auto;
        max-width: 1080px;
    }
    .flexnav li{
        position: relative;
        display: block;
        float: left;
        overflow: visible;
        list-style: none;
        background: none;
    }
    .flexnav > li{
        border-right: 1px solid #eaeaea;
    }
    .flexnav > li > a{
        text-align: center;
        height: 78px;
        padding: 17px 12px 10px;
        color: #454545;
        background: #ffffff;
    }
    .flexnav > li:nth-child(1) > a{
        max-width: 132px;
    }
    .flexnav > li:nth-child(2) > a{
        max-width: 114px;
    }
    .flexnav > li:nth-child(3) > a,
    .flexnav > li:nth-child(4) > a{
        max-width: 100px;
    }
    .flexnav > li:nth-child(5) > a{
        max-width: 73px;
    }
    .flexnav > li:nth-child(6) > a{
        max-width: 98px;
    }
    .flexnav > li:first-child > a{
        height: 78px;
        padding: 17px 12px 10px;
        border-left: 1px solid #eaeaea;
    }
    .flexnav li:hover > a{
        display: block;
        color: #ffffff;
        background-color: #7ba3b2;
    }
    .flexnav li ul{
        display: none;
        min-width: 180px;
    }
    .flexnav li > ul{
        position: absolute;
        top: auto;
        left: 0;
    }
    .flexnav li > ul li{
        float: none;
        width: 100%;
    }
    .flexnav li ul li > ul{
        top: 0;
        margin-left: 100%;
    }
    .flexnav li:nth-child(5) ul li > ul,
    .flexnav li:nth-child(6) ul li > ul{
        margin-left: -100%;
    }
    .flexnav > li > ul > li:first-child > a{
        border-top: 1px solid rgba(255, 255, 255, 0.5);
    }
    .flexnav li ul li a{
        font-size: 0.875rem;
        text-align: left;
        padding: 0.5rem 0.313rem;
        color: white;
        border-left: none;
        background: #7ba3b2;
    }
    .flexnav li ul li:hover > a{
        color: #454545;
        background: white;
    }
    .flexnav li ul.open{
        z-index: 1;
        display: block;
        visibility: visible;
        opacity: 1;
    }
    .flexnav li ul.open li{
        overflow: visible;
        max-height: 100px;
    }
    .flexnav li ul.open ul.open{
        top: 0;
        margin-left: 100%;
    }
    .no-touch .flexnav .touch-button,
    .touch-button .navicon{
        display: none;
    }
    .menu-button{
        display: none;
    }
    .flexnav .touch-button{
        text-align: center;
        position: absolute;
        z-index: 999;
        top: auto;
        right: 0;
        bottom: 0;
        display: inline-block;
        width: 100%;
        height: 50%;
        background: transparent;
    }
    .fb-landing .flexnav{
        display: inline-block;
        width: auto;
        max-height: none;
    }
    .fb-landing .flexnav li{
        border: none;
    }
    .fb-landing .flexnav > li > a,
    .fb-landing .flexnav > li:first-child > a{
        max-width: none !important;
        height: auto;
        padding: 0.5rem;
        background: none;
    }
    .fb-landing .flexnav > li:hover > a{
        color: #7ba3b2;
    }
    .fb-landing .flexnav > li > a:before{
        content: '|';
        position: relative;
        left: -0.5rem;
    }
    .fb-landing .flexnav > li:first-child > a:before{
        display: none;
    }
    .fb-landing .flexnav > li:hover > a:before{
        color: #454545;
    }
}

.oldie body.one-page{
    padding-top: 70px;
}

.oldie .flexnav{
    overflow: visible;
}

.oldie .flexnav.one-page{
    top: 0;
    right: auto;
    max-width: 1080px;
}

.oldie .flexnav li{
    position: relative;
    display: block;
    float: left;
    overflow: visible;
    width: 20%;
    min-height: 50px;
    list-style: none;
    background-color: #a6a6a2;
}

.oldie .flexnav li:hover > ul{
    display: block;
    overflow: visible;
    width: 100%;
}

.oldie .flexnav li:hover > ul li{
    float: none;
    width: 100%;
}

.oldie .flexnav li a{
    overflow: visible;
    border-bottom: none;
    border-left: 1px solid #acaca1;
}

.oldie .flexnav li > ul{
    position: absolute;
    z-index: 1;
    top: auto;
    left: 0;
    display: none;
    overflow: visible;
    background: #acaca1;
}

.oldie .flexnav li ul li ul{
    top: 0;
}

.oldie .flexnav li ul li a{
    border-bottom: none;
}

.oldie .flexnav li ul.open{
    display: block;
    overflow: visible;
    width: 100%;
}

.oldie .flexnav li ul.open li{
    width: 100%;
}

.oldie .flexnav li ul.open ul.open{
    top: 0;
    display: block;
    overflow: visible;
    width: 100%;
    margin-left: 100%;
}

.oldie .flexnav ul li:hover ul{
    top: 0;
    margin-left: 100%;
}

.oldie .menu-button{
    display: none;
}

.oldie.ie7 .flexnav li{
    width: 19.9%;
}
/* Subnav Styles */

.subnav h2 a{
    text-decoration: none;
    color: #454545;
}

.subnav ul{
    padding-left: 0;
    list-style-type: none;
}

.subnav ul li ul{
    display: none;
    padding-left: 10px;
}

.subnav ul li{
    padding: 10px 0;
    border-bottom: 1px solid #d2cdbd;
}

.subnav ul li a{
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: #b82412;
}

.subnav ul li a:hover{
    text-decoration: none;
    color: #454545;
}

.subnav ul li ul li a{
    color: #b82412;
}

@media all and (min-width: 1025px){
    nav.top{
        float: right;
    }
    .flexnav > li > a{
        height: 78px;
    }
    .flexnav > li:nth-child(1) > a{
        max-width: 141px;
    }
    .flexnav > li:nth-child(2) > a{
        max-width: 125px;
    }
    .flexnav > li:nth-child(3) > a,
    .flexnav > li:nth-child(4) > a{
        max-width: 107px;
    }
    .flexnav > li:nth-child(5) > a,
    .flexnav > li:nth-child(6) > a{
        max-width: 88px;
    }
}
