/*!
 * dotcentric-nav v1.0.3 (theme)
 * http://www.dotcentric.co.uk
 * Copyright (c) dotcentric 2014
 */

/*
    * Description of the dcnav-main class
    There needs to be an element that wraps the page content so that the navigation can hide behind it. All it needs is a solid background and higher z-index than the nav.
    .dcnav-main serves this purpose, but in your case the top level .grid-container and .footer are achieving the same effect.
*/

.dcnav-main {
    background: #fff;
}

.dcnav-wrapper {
    background-color: #547bbd;
}

.dcnav-menu {
    background-color: #547bbd;
}

/*
 *  baseline style for links and buttons
 */
.dcnav-link,
.dcnav-back,
.dcnav-close {
    display: block;
    -webkit-appearance: none;
    -moz-appearance: none;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 15px;
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    font-weight: bold;
    text-align: left;
    text-decoration: none;
}

    .dcnav-link:hover,
    .dcnav-back:hover,
    .dcnav-close:hover {
        text-decoration: none;
    }

    /*
 * set-up pseudo-elements to use for background-image icons
 */
    .dcnav-link:after,
    .dcnav-back:after,
    .dcnav-close:after {
        position: absolute;
        display: block;
        content: "";
        top: 0;
        left: 0;
        width: 30px;
        height: 50px;
        background-repeat: no-repeat;
        background-position: center center;
        pointer-events: none;
    }

/*
 * style for "Back" and "Close Menu" buttons
 */
.dcnav-back,
.dcnav-close {
    background-color: #d9d9d4;
}

/*
 * left arrow icon for "Back" links
 */
.dcnav-back {
    padding-left: 30px;
    margin: 0;
}

    .dcnav-back:after {
    background-image: url('../img/nav-back.png');
}

/*
 * hide "Close Menu" text and add "X" icon
 */
.dcnav-close {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    text-indent: 200%;
    background-color: #547bbd;
    border-bottom: 1px solid #758cc6;
}

    .dcnav-close:after {
    background-image: url('../img/nav-close1.png');
    color: #fff;
}

/*
 * remove interactive style from non-link parent items
 */
.dcnav-title > .dcnav-link:not([href]) {
    color: #fff;
    cursor: default;
}

/*!
 * dotcentric-nav (mobile)
 */
@media screen and (max-width: 959px) {
    /*
   * base styles
   */
    .dcnav {
        background: #ccccc8;
    }

        /*
   * indented shadow effect for "push" and "behind" menus
   */
        .dcnav.is-effect-push:after,
        .dcnav.is-effect-behind:after {
            pointer-events: none;
            position: absolute;
            display: block;
            content: "";
            top: 0;
            right: 0;
            bottom: 0;
            width: 15px;
            height: 100%;
            background: -webkit-linear-gradient(left, transparent, rgba(0, 0, 0, 0.1));
            background: linear-gradient(left, transparent, rgba(0, 0, 0, 0.1));
        }

    /*
        * make space for the "Close Menu" button
    */
    .dcnav-wrapper {
        top: 50px;
    }

    /*
        *back button
    */
    .dcnav-back {
        background-color: #415997;
        border-bottom: 1px solid #758cc6;
        color: #fff;
    }

    /*
   * all items: borders and nested indentation
   */
    .dcnav-item {
        border-bottom: 1px solid #758cc6;
    }

        .dcnav-item:first-child {
            border-top: 0;
        }

        .dcnav-item .dcnav-menu .dcnav-link {
            padding-left: 30px;
            font-weight: normal;
        }

        .dcnav-item .dcnav-link:hover {
            color: #fff;
        }

        /*
            * go to page >
        */
        .dcnav-item .dcnav-menu .dcnav-title .dcnav-link {
            padding-left: 15px;
            font-weight: 700;
        }

        /*
        * parent item links: right arrow icon
        */
        .dcnav-item.is-parent > .dcnav-link {
            padding-right: 30px;
        }

            .dcnav-item.is-parent > .dcnav-link:after {
        right: 0;
        left: auto;
        background-image: url('../../../img/chevrons/chevron-forward-white-small.png');
    }

        /*
        * ajax loading item links: animated spinner icon
        */
        .dcnav-item.is-loading > .dcnav-link {
            padding-right: 30px;
        }

            .dcnav-item.is-loading > .dcnav-link:after {
        right: 0;
        left: auto;
        background-image: url('../../../img/loader-small.png');
    }

        /*
        * ajax failed
        */
        .dcnav-item.is-error > .dcnav-link {
            color: #ff0000;
        }

    /*
   * adjust styles when always visible without JavaScript
   */
    .no-js .dcnav-item:first-child {
        border-top: 0;
    }

    .no-js .dcnav-menu .dcnav-item:last-child {
        border-bottom: 0;
    }

    /*
        * Header
    */
    .header-content {
        -webkit-transition: left 400ms ease;
        transition: left 400ms ease;
    }

    .dcnav-root.is-nav .header-content {
        left: 260px;
    }
}
/*!
 * dotcentric-nav (desktop)
 */
@media screen and (min-width: 960px) {
    /*
        * base style for all links
    */
    .dcnav-link {
        background: transparent;
        text-transform: uppercase;
        font-size: 0.875em;
        font-weight: 600;
    }

        .dcnav-link:hover {
            color: #fff;
            background: #415997;
        }

    /*
        * top level parent items
    */
    .dcnav-wrapper > .dcnav-menu > .dcnav-item {
        font-size: 15px;
        font-weight: 700;
        margin-right: 8px;
        width: auto;
        text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
    }

        /*
            * top-level items: set background on hover that persists with child hover
        */
        .dcnav-wrapper > .dcnav-menu > .dcnav-item:hover {
            background: #415997;
        }

        /*
            * top-level parent (with children) item links: add chevron icon
        */
        .dcnav-wrapper > .dcnav-menu > .dcnav-item > .dcnav-link {
            padding: 15px 21px;
        }

        .dcnav-wrapper > .dcnav-menu > .dcnav-item.is-parent:not(.is-ajax) > .dcnav-link {
            padding-right: 40px;
        }

            .dcnav-wrapper > .dcnav-menu > .dcnav-item.is-parent:not(.is-ajax) > .dcnav-link:after {
        right: 10px;
        left: auto;
        background-image: url('../../../img/chevrons/dropdown-chevron-white.png');
    }

    /*
        * drop-down menus <a> element
    */
    .dcnav-item > .dcnav-link + .dcnav-menu > .dcnav-item .dcnav-link {
        background-color: #415997;
        background-image: none;
        color: #fff;
        display: block;
        font-size: 0.875em;
        line-height: 1.1em;
        padding: 9px 12px;
        text-transform: capitalize;
    }

        .dcnav-item > .dcnav-link + .dcnav-menu > .dcnav-item .dcnav-link:hover {
            background-color: #547bbd;
        }

    /*
   * drop-down menus: set background and minimum drop-down width
   */
    .dcnav-item .dcnav-menu {
    }

    /*
   * drop-down menu items <li> element
   */
    .dcnav-item .dcnav-item {
        border-bottom: 1px solid #758cc6;
    }

    /* Makes children the same width as parent*/
    .dcnav-item .dcnav-menu {
        min-width: 0;
        width: 100%;
        right: 0;
    }
}
