:root {
    --main: #349ed9;
    --secondary: #fe4a49;
    --third: #ff9e15;
}

body, html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

body {
    margin: 0;
    background: #fff;
    min-width: 300px;
}

html, body, p, li, dd, td {
    color: #666;
    line-height: 150%;
    font-size: 1em;
}

#preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #fff url(images/preloader.gif) center center no-repeat;
}

img a, a img {
    border: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.wrapper {
    max-width: 1440px;
    padding: 0 25px;
    margin: 0 auto;
}

/* Header                                           */
/* ------------------------------------------------ */
#header {
    height: 138px;
    background: #fff;
}

#headerlogo {
    width: 300px;
    height: auto;
    float: left;
    margin: 5px 0 10px 0;
}

#headercontact {
    float: right;
    margin: 10px 5px 0 15px;
}

#headercontact a {
    text-decoration: none;
    color: var(--main);
    font-size: 16px;
}

#headercontact img {
  display: inline-block;
  vertical-align: middle;
  width: 30px;
  height: auto;
}

.icon-contact {
    display: inline-block;
    margin-left: 20px;
}

#headercontact .icon-contact:first-child {
    margin-left: -10px;
}

#headermessage {
    clear: both;
    background: #cde5fe;
    position: relative;
    z-index: 4;
}

#headermessage, #headermessage h1, #headermessage h2, #headermessage h3, #headermessage h4, #headermessage p {
    color: #325981;
}

#headermessage .wrapper {
    background: url(images/info.png) 20px 50% no-repeat;
    background-size: 30px;
    box-sizing: border-box;
    padding: 20px 0 20px 60px;
}

#headerslideshow {
    clear: both;
    height: 75%;
    background: #000;
}

#headerslideshow .flexslider, #headerslideshow .flex-viewport, #headerslideshow ul.slides, #headerslideshow ul.slides li {
    max-height: 100%;
    max-height: 100%;
    overflow: hidden;
}

#headerslideshow .flexslider img {
    width: 100%;
    position: relative;
    /*opacity: 0.8;*/
}

#headerslideshow .slides, #headerslideshow .slides > li {
    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;
}

.single-slide, .slide {
    height: 400px;
    width: 100%;
}

.featuredheader, .featuredheader .slide {
    height: 800px;
}

.slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 70% 50%;
    overflow: hidden;
 }

#homepagequote {
    text-align: center;
    background: var(--third);
    padding: 50px 0 20px 0;
    position: relative;
}

#homepagequote * {
    color: #fff;
    font-size: 1.1em;
}

#homepagequote span {
    opacity: 0.5;
}

#homepagequote p {
    font-size: 38px;
    padding: 0;
    font-weight: 300;
    opacity: 1;
}


a.anchor-link {
    display: none;
    float: right;
    height: 50px;
    line-height: 50px;
    padding: 40px 25px 0 25px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}


@media screen and (max-width: 1700px) {
    #headerslideshow {
        height: auto;
    }
}

@media screen and (max-width: 1200px) {
    .featuredheader, .featuredheader .slide {
        height: 500px;
    }
}

@media screen and (max-width: 800px) {
    #homepagequote p {
        font-size: 26px;
    }

    #homepagequote #montessori {
        height: 120px;
    }
}

@media screen and (max-width: 720px) {
    #headerlogo, #headercontact {
        float: none;
        margin: 5px 0;
    }

    #headerlogo {
        width: 280px;
        height: auto;
    }

    a.anchor-link {
        padding: 0;
        margin-top: -50px;
    }
}

@media screen and (max-width: 400px) {
    #headerlogo {
        width: 200px;
        margin-top: 20px;
    }

    #headercontact {
        font-size: 16px;
    }
}

/* Hamburger menu                                   */
/* ------------------------------------------------ */
#menu-toggle {
    display: none;
    float: right;
    margin: 50px 0 0 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: 60px;
    position: relative;
    float: right;
    margin-top: 11px;
    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: #666;
    text-decoration: none;
    line-height: 40px;
    padding: 18px 20px;
    font-size: 18px;
    display: block;
    font-weight: 300;
    -webkit-transition: background-color 0.3s ease-out;
    -moz-transition: background-color 0.3s ease-out;
    -ms-transition: background-color 0.3s ease-out;
    -o-transition: background-color 0.3s ease-out;
    transition: background-color 0.3s ease-out;
}



#header ul.menu li a:hover {
    color: 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 {
    border-bottom: 10px solid var(--secondary);
    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: 24px;
}

/* give the dropdowns a plus indicator */
#header ul.menu li.menu-item-has-children > a:after {
    width: 30px;
    height: 40px;
    line-height: 40px;
    content: '\25BC'; /* plus: \002B      down arrow: \25BC  */
    vertical-align: middle;
    text-align: center;
    right: 0;
    position: absolute;
    font-size: 12px;
    font-family: verdana;
    font-weight: normal;
}

#header ul.menu li.menu-item-has-children > a.close:after {
    content: '\25B2'; /* minus: \2012      up arrow: \25B2 */
}

/* dropdowns */
#header ul.menu ul.sub-menu {
    display: none;
    position: absolute;
    top: 76px;
    min-width: 200px;
    z-index: 9999;
}

#header ul.menu ul.sub-menu > li {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #ddd;
    text-align: left;
    float: none;
}

/* 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;
    text-shadow: none;
    padding: 15px 20px;
    display: block;
    line-height: 25px;
    text-decoration: none;
}

#header ul.menu ul.sub-menu > li.current-menu-item > a {
    font-weight: bold;
    color: #000;
}

#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: #ff5b48;
    border-bottom: none;
}

#header ul.menu ul.sub-menu > li a:hover {
    background: #ff5b48;
    color: #fff;
    border-bottom: none;
}

#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;
    }

    #navbar nav > ul {
        display: none;
    }

    #navbar .wrapper {
        padding: 0;
    }

    #menu-toggle {
        display: block;
    }


    #header ul.menu {
        display: none;
        position: absolute;
        top: 104px;
        width: 100%;
        z-index:999;
        -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);
        clear: both;
    }

    #header ul.menu li {
        float: none;
        display: block;
        list-style: none;
        text-align: left;
        padding: 0;
        border-bottom: 1px solid #ccc;
        background-color: #fff;
        line-height: 60px;
    }

    #header ul.menu > li {
        margin-right: 0; /* clear the 4px negative margin set above */
    }

    #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 {
        padding-right: 0;
    }

    #header ul.menu > li.current_page_item a, #header ul.menu > li.current-menu-parent > a {
        color: #ff5b48;
        border-bottom: none;
    }

    /* plus and minus when in responsive mode */
    #header ul.menu li.menu-item-has-children > a:after {
        content: '\002B';
        line-height: 60px;
    }

    #header ul.menu li.menu-item-has-children > a.close:after {
        content: '\2012';
        line-height: 60px;
    }

    #header ul.menu li a {
        color: #586436;
        display: block;
        padding-left: 25px;
        line-height: 60px;
    }

    #header ul.menu li a:hover, #header ul.menu ul.sub-menu > li a:hover {
        color: #fff;
        background: #ff5b48;
        border-bottom: none;
    }

    #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 {
        padding: 0;
        text-align: left;

    }

    #header ul.menu ul.sub-menu > li a {
        padding: 12px 40px;
    }

    #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;
    }

    #header ul.menu ul > li:first-child {
        border-top: 1px solid #cccccc;
    }

    /*sub sub menus */
    #header ul.menu ul.sub-menu ul.sub-menu > li a {
        padding-left: 60px;
    }
}

@media screen and (max-width: 720px) {
    #header {
        padding: 0;
        margin: 0;
        height: 160px;
    }

    #headerlogo {
        position: absolute;
        width: 210px;
        margin: 0;
        padding-top: 10px;
    }

    #headercontact {
        float: none;
        background: #f1eeee;
        padding: 4px 20px;
        margin: 0 -25px 10px -25px;
        line-height: 140%;
        float: none;
    }

    #headercontact a {
        font-size: 14px;
    }

    a.anchor-link {
        padding: 0;
        margin-top: -60px;
    }
}