/* NAV */
.nav {
    z-index: 9999;
}

.nav-opener {
    display: none;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 12px;
    height: 15px;
    background: #25a79b;
    color: #fff;
    padding: 3px 3px 2px 4px;
}

    .nav-opener:hover { text-decoration: none; }

#nav {
    float: right;
    font: 14px/20px "AchilleFYL-Black";
    padding: 20px 0 0;
}

#nav ul {
    list-style: none outside none;
    margin: 0;
    padding: 0;
    /* z-index: 1; */
}

/* top level nav points (pavement preservation, treatment resource center, contact) */
#nav ul a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 5px;
    line-height: 26px;
}


/* effect: reveal, push out */
#nav ul a {
    padding: 0 5px 1px;
}

.nav-drop .active {
    background: #25a79b;
}

    .nav-drop .active a {
        color: white;
    }

/* initial nav settings for animation effect */
.nav-drop a {
    color: #404041;
    outline: none;
    text-decoration: none;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.nav-drop a:hover {
    color: white;
    background: #25a79b;
}

.nav-drop a::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    z-index: -1;
    background: #25a79b;
    -webkit-transform: translate3d(101%,0,0);
    -moz-transform: translate3d(101%,0,0);
    -ms-transform: translate3d(101%,0,0);
    -o-transform: translate3d(101%,0,0);
    transform: translate3d(101%,0,0);
    -webkit-transition: transform 0.5s;
    -moz-transition: transform 0.5s;
    -o-transition: transform 0.5s;
    transition: transform 0.5s;
    -webkit-transition-timing-function: cubic-bezier(0.7,0,0.3,1);
    -moz-transition-timing-function: cubic-bezier(0.7,0,0.3,1);
    -o-transition-timing-function: cubic-bezier(0.7,0,0.3,1);
    transition-timing-function: cubic-bezier(0.7,0,0.3,1);
}

.nav-drop a:hover::after {
    -webkit-transform: translate3d(0,0,0);
    -moz-transform: translate3d(0,0,0);
    -ms-transform: translate3d(0,0,0);
    -o-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

.nav-drop a span {
    display: block;
    position: relative;
}

.nav-drop a span::before {
    content: attr(data-letters);
    position: absolute;
    color: white;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    -webkit-transition: width 0.5s;
    -moz-transition: width 0.5s;
    -o-transition: width 0.5s;
    transition: width 0.5s;
    -webkit-transition-timing-function: cubic-bezier(0.7,0,0.3,1);
    -moz-transition-timing-function: cubic-bezier(0.7,0,0.3,1);
    -o-transition-timing-function: cubic-bezier(0.7,0,0.3,1);
    transition-timing-function: cubic-bezier(0.7,0,0.3,1);
}

.nav-drop a:hover span::before {
    width: 100%;
}






/* Working drop down menu */

.nav-drop > ul > li {
    display: inline-block;
}

.has-dropdown {
    position: relative;
}

.dropdown {
    visibility: hidden;
    position: absolute;
    top: 105%;
    left: 0;
}

.open {
    overflow: visible;
    clip: auto;
    display: block;
    visibility: visible;
    z-index: 2048;
    background: rgb(206,206,206);
}

.nav-drop ul {
    list-style: none;
}

.nav-drop li {
    position: relative;
}

.nav-drop a {
    display: block;
}
