:root {
    --main: #2b2c2b;
    --secondary: #4f8c0d;
}

body, html {
    height: 100%;
}

body {
    margin: 0;
    background: #fff;
    min-width: 300px;
}

html, body, p, li, dd, td, input, select, textarea {
    color: #666;
    line-height: 150%;
    font-size: 1.0em;
    font-family: 'Open Sans', sans-serif;
}

#preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #fff url(../images/preloader.svg) center center no-repeat;
}

img a, a img {
    border: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.wrapper {
    max-width: 1440px;
    padding: 0 50px;
    margin: 0 auto;
}

/* Header                                           */
/* ------------------------------------------------ */
#header {
    height: 170px;
    background: #fff;
    background: linear-gradient(180deg,rgba(221, 221, 221, 1) 0%, rgba(238, 238, 238, 1) 8%, rgba(255, 255, 255, 1) 100%);
}

#header .wrapper {
    padding: 0;
    position: relative;
}

#headerlogo {
    position: absolute;
    top: 10px;
    left: 25px;
    width: 240px;
    height: auto;
}

#headerlogo span {
    display: inline-block;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid #ddd;
    margin-top: 5px;
    width: 90%;
    padding: 0 5%;
    color: #518d10;
}

.flexslider, .flex-viewport, ul.slides, ul.slides li {
    /* 170px is the header height + the navbar height */
    height: -moz-calc(100vh - 180px);
    height: -webkit-calc(100vh - 180px);
    height: -o-calc(100vh - 180px);
    height: calc(100vh - 180px);
    overflow: hidden;
    background: #000;
}

.flexslider img {
    width: 100%;
    position: relative;
    opacity: 0.7;
}

.slides, .slides > li, .singleslide {
    margin: 0;
    padding: 0;
    list-style: none;
    display: -webkit-box!important;
    display: -moz-box!important;
    display: -ms-flexbox!important;
    display: -webkit-flex!important;
    display: flex!important;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.singleslide {
    max-height: 650px;
    overflow: hidden;
}

.singleslide.smallheight {
    max-height: 300px;
}

.singleslide img {
    width: 100%;
    height: auto;
}

.flexslider, .singleslide {
    margin: 0 0 40px 0;
}

.flexslider a.readmore {
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
}

.flexslider h2, .flexslider p {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

/* Hamburger menu                                   */
/* ------------------------------------------------ */
#menu-toggle {
    display: none;
    float: right;
    margin-right: 0;
}

#hamburger-text {
    float: right;
    padding-left: 10px;
    line-height: 30px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--main);
    width: 35px;
}

#hamburger-text span {
    display: none;
}

#hamburger-text.is-active div {
    display: none;
}

#hamburger-text.is-active span {
    display: block;
}

.hamburger {
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 10px 25px 0 25px;
    overflow: visible;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger-box {
    width: 36px;
    height: 30px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 100%;
    height: 4px;
    background-color: var(--main);
    border-radius: 2px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -11px;
}

.hamburger-inner::after {
    bottom: -11px;
}


.hamburger .hamburger-inner {
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger .hamburger-inner::before {
    transition: top 0.2s 0.14s ease, opacity 0.2s ease;
}

.hamburger .hamburger-inner::after {
    transition: bottom 0.2s 0.14s ease, transform 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
    transition-delay: 0.14s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.2s ease, opacity 0.2s 0.14s ease;
}
.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.2s ease, transform 0.2s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Menu                                             */
/* ------------------------------------------------ */
#navbar {
    height: 50px;
    padding: 20px 25px 0 0;
    position: relative;
    margin-top: 40px;
    float: right;
    clear: right;
}

header ul.menu, header ul.menu ul {
    padding: 0;
    list-style-type: none;
    margin: 0 auto;
    display: block;
    /*text-align: center;*/
}

header ul.menu ul:after {
    content: ""; clear: both; display: block;
}

header ul.menu li {
    padding: 0;
    background: none;
    display: block;
}

header ul.menu > li {
    display: inline-block;
    *display: inline;
    zoom: 1;
    margin-right: -4px; /* remove the 4px gap inline elements have */
}

header ul.menu li a {
    color: var(--main);
    text-decoration: none;
    line-height: 50px;
    padding: 0 15px;
    font-size: 16px;
    display: block;
    -webkit-transition: background-color 0.2s ease-out;
    -moz-transition: background-color 0.2s ease-out;
    -ms-transition: background-color 0.2s ease-out;
    -o-transition: background-color 0.2s ease-out;
    transition: background-color 0.2s ease-out;
}


/* header ul.menu li:first-child a {
    padding-left: 0;
} */


header ul.menu li a:hover, header ul.menu li.current-menu-item > a:hover, header ul.menu li.current-menu-parent > a:hover {
    color: var(--secondary);
    border-bottom: 4px solid var(--secondary);
}

header ul.menu li.current-menu-item > a, header ul.menu li.current-menu-parent > a, header ul.menu li.current-menu-ancestor > a {
    font-weight: bold;
    color: var(--secondary);
}

header ul.menu li.menu-item-has-children, header ul.menu li.menu-item-has-children > a, header ul.menu ul.sub-menu li.menu-item-has-children > a {
    position: relative;
}

header ul.menu li.menu-item-has-children > a, header ul.menu ul.sub-menu li.menu-item-has-children > a {
    padding-right: 30px;
}

/* give the dropdowns an indicator */
header ul.menu li.menu-item-has-children > a:after {
    width: 18px;
    top: 8%;
    content: url("../images/submenu-down-dark.svg");
    right: 6px;
    position: absolute;
}

header ul.menu li.menu-item-has-children > a.close:after {
    content: url("../images/submenu-up-dark.svg");
}

/* dropdowns */
header ul.menu ul.sub-menu {
    display: none;
    position: absolute;
    top: 50px;
    min-width: 200px;
    z-index: 9999;
}

header ul.menu ul.sub-menu > li {
    position: relative;
    background: var(--secondary);
    text-align: left;
    float: none;
}

header ul.menu ul.sub-menu li.menu-item-has-children > a:after {
    content: url("../images/submenu-down.svg");
    right: 8px;
}

header ul.menu ul.sub-menu li.menu-item-has-children > a.close:after {
    content: url("../images/submenu-up.svg");
}

/* the last dropdown */
header ul.menu li.menu-item-has-children:last-child ul.sub-menu li {
    min-width: 250px;
}

header ul.menu li.menu-item-has-children:last-child ul.sub-menu {
    right: 0;
}

header ul.menu ul.sub-menu > li a:after {
    height: 22px;
    line-height: 22px;
}

header ul.menu li > ul {
    -moz-box-shadow: 1px 0 8px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 1px 0 8px rgba(0, 0, 0, 0.2);
    box-shadow: 1px 0 8px rgba(0, 0, 0, 0.2);
}

header ul.menu ul.sub-menu > li a {
    background: none;
    color: #fff;
    font-size: 16px;
    text-shadow: none;
    padding: 12px 20px;
    display: block;
    line-height: 25px;
    text-decoration: none;
}


header ul.menu ul.sub-menu > li.current-menu-item > a, header ul.menu ul.sub-menu > li.current-menu-parent > a, header ul.menu ul.sub-menu > li.current-menu-ancestor > a {
    color: #fff;
    font-weight: bold;
}

header ul.menu ul.sub-menu > li a:hover {
    border-bottom: none;
    opacity: 0.5
}

header ul.menu ul.sub-menu > li:last-child {
    border-bottom: 0;
}


/*sub submenus  */
header ul.menu ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
}

header ul.menu ul.sub-menu ul.sub-menu > li a {
    min-width: 160px;
}

@media screen and (min-width: 971px) {
    header ul.menu {
        display: block !important;
    }
}

@media screen and (max-width: 970px) {
    #navbar {
        float: none;
        margin-top: 0;
    }

    #navbar nav > ul {
        display: none;
    }

    #navbar .wrapper {
        padding: 0;
    }

    #menu-toggle {
        display: block;
        margin-top: 50px;
    }

    header ul.menu {
        display: none;
        position: absolute;
        top: 150px;
        width: 100%;
        z-index: 99;
        -moz-box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
        -webkit-box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
        box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
    }

    header ul.menu li, header ul.menu ul.sub-menu > li {
        text-align: center;
    }

    header ul.menu li {
        float: none;
        display: block;
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: var(--secondary);
    }

    header ul.menu li a {
        line-height: 150%;
        padding: 14px 60px;
        margin: 0;
        color: #fff;
        font-size: 20px;
    }

    header ul.menu > li {
        margin-right: 0; /* clear the 4px negative margin set above */
    }

    header ul.menu li a, header ul.menu li.menu-item-has-children > a, header ul.menu ul.sub-menu li.menu-item-has-children > a {
        padding: 14px 60px;
    }

    header ul.menu li.current_page_item > a, header ul.menu > li.current-menu-parent > a, header ul.menu li.current-menu-ancestor > a {
        font-weight: bold;
        color: #fff;
    }

    /* plus and minus when in responsive mode */
    header ul.menu li.menu-item-has-children > a:after, header ul.menu ul.sub-menu li.menu-item-has-children > a:after {
        content: '\002B';
        top: auto;
        right: 16px;
        font-size: 24px;
    }

    header ul.menu li.menu-item-has-children > a.close:after, header ul.menu ul.sub-menu li.menu-item-has-children > a.close:after {
        content: '\2012';
        top: auto;
    }

    header ul.menu li a:hover, header ul.menu ul.sub-menu > li a:hover, header ul.menu li.current-menu-item > a:hover, header ul.menu li.current-menu-parent > a:hover {
        color: #fff;
        background: var(--secondary);
        border-bottom: 0;
    }

    header ul.menu li:last-child {
        border-bottom: none;
    }

    /*submenu items */
    header ul.menu ul.sub-menu, header ul.menu ul.sub-menu ul.sub-menu {
        position: relative;
        left: auto;
        top: auto;
    }

    header ul.menu li:hover > ul {
        display: none;
    }

    header ul.menu ul.sub-menu > li a {
        font-size: 18px;
        padding: 12px 40px;
        background: #5b951d;
    }

    header ul.menu li > ul {
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    header ul.menu ul.sub-menu > li:last-child, header ul.menu ul.sub-menu > li:first-child {
        padding: 0;
    }


    /*sub sub menus */
    header ul.menu ul.sub-menu ul.sub-menu > li a {
        padding-left: 60px;
    }
}

@media screen and (max-width: 767px) {
    #header {
        height: 150px;
    }

    #headerlogo {
        width: 160px;
    }

    #headerlogo span {
        font-size: 12px;
    }
}

@media screen and (max-width: 400px) {
    #hamburger-text {
        display: none;
    }
}

/* Responsive elements                              */
/* ------------------------------------------------ */
@media screen and (max-width: 2220px) {
    .flexslider, .flex-viewport, ul.slides, ul.slides li {
        max-height: 700px;
        height: auto;
    }
}

@media screen and (max-width: 970px) {
    body.home #headerpic {
        height: 600px;
        text-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
    }

    body:not(.home) #headerpic {
        height: 200px;
    }
}

@media screen and (max-width: 620px) {
    .wrapper {
        padding: 0 25px;
    }
}

/* iOS */
@media screen and (max-width: 380px) {

}