/* --------------------------- Header Animation -------------------------- */

#header-fixed.scrolled-up
{
    display: block;
    animation-name: headerSlideUp;
    -webkit-animation-name: headerSlideUp;
    animation-duration: 1s;
    -webkit-animation-duration: 1s;
    animation-timing-function: ease;
    -webkit-animation-timing-function: ease;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
}

#header-fixed.scrolled
{
    display: block;
    animation-name: headerSlideDown;
    -webkit-animation-name: headerSlideDown;
    animation-duration: 1s;
    -webkit-animation-duration: 1s;
    animation-timing-function: ease;
    -webkit-animation-timing-function: ease;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
}

@keyframes headerSlideUp {
    0% {
        transform: translateY(0%);
        opacity: 1;
    }
    100% {
        transform: translateY(var(--header_top_bar_offset_anim));
        opacity: 0;
    }
}

@-webkit-keyframes headerSlideUp {
    0% {
        -webkit-transform: translateY(0%);
        opacity: 1;
    }
    100% {
        -webkit-transform: translateY(var(--header_top_bar_offset_anim));
        opacity: 0;
    }
}

@keyframes headerSlideDown {
    0% {
        transform: translateY(var(--header_top_bar_offset_anim));
        opacity: 0;
    }
    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

@-webkit-keyframes headerSlideDown {
    0% {
        -webkit-transform: translateY(var(--header_top_bar_offset_anim));
        opacity: 0;
    }
    100% {
        -webkit-transform: translateY(0%);
        opacity: 1;
    }
}

/* --------------------------- Header General -------------------------- */

#header
{
    position: absolute;
    z-index: 15;
    width: 100%;
    height: var(--header_main_height);
    padding: 0;
}

#header.no-slider
{
    position: relative;
}

#header-top .container
{
    display: grid;
    grid-template-columns: 185px auto;
    grid-auto-rows: max-content;
    grid-gap: 0;
    align-items: center;
}

#header-top .container, #header-fixed .container
{
    max-width: 1920px;
}

#header-top
{
    padding: var(--gap_spacing_default) 0;
}

/* --------------------------- Header Logo -------------------------- */

.header-logo
{
    position: relative;
    margin: 0 var(--gap_spacing_default) 0 0;
    grid-column: 1;
}

.header-logo img
{
    display: block;
}

.colour-scheme-light .header-logo img
{
    filter: brightness(0) invert(1);
}

/* --------------------------- Header Navigation -------------------------- */

.header-menu
{
    justify-self: end;
}

.header-menu ul
{
    list-style: none;
    position: relative;
    margin: 0;
    padding: 0;
}

.header-menu ul li
{
    position: relative;
    float: left;
    margin: 0;
    padding: 0;
}

.header-menu ul li.mobile
{
    display: none;
}

.header-menu > div > ul > li
{
    margin: 0 var(--gap_spacing_default);
}

.header-menu > div > ul > li:last-child
{
    margin-right: 0;
}

.colour-scheme-light .header-menu > div > ul > li.button > a
{
    border: 1px #FFF solid;
}

.header-menu > div > ul > li.button > a
{
    border: 1px var(--theme_color_primary) solid;
    padding: 19px 30px;
    transition: all 0.5s ease;
}

.header-menu > div > ul > li.button > a:hover
{
    border: 1px var(--theme_color_secondary) solid;
}

.header-menu > div > ul > li > a
{
    display: block;
    text-decoration: none;
    text-transform: capitalize;
    font-weight: 900;
    font-size: 20px;
    line-height: 22px;
    color: var(--theme_color_primary);
    padding: 20px 0;
}

.colour-scheme-light .header-menu > div > ul > li > a
{
    color: #FFF;
}

#header-fixed .header-menu > div > ul > li > a
{
    color: #FFF;
    padding: 20px 0;
}

.header-menu > div > ul > li:hover > a, .header-menu > div > ul > li > a:hover,
.header-menu > div > ul > li.current-menu-item > a,
.header-menu > div > ul > li.current-page-ancestor > a,
.header-menu > div > ul > li.current-post-ancestor > a,
.header-menu > div > ul > li.current-menu-ancestor > a,
.header-menu > div > ul > li.current-product-ancestor > a,
.header-menu > div > ul > li.current-category-ancestor > a,
.header-menu > div > ul > li.current_page_parent > a,
.header-menu > div > ul > li.hovered > a
{
    color: var(--theme_color_secondary) !important;
    /*background: var(--theme_color_primary);*/
}

.header-menu > div > ul > li.menu-item-has-children > a:after
{
    font-family: "Font Awesome 5 Free";
    font-size: 12px;
    font-weight: 800;
    content: "\f078";
    display: inline-block;
    margin-left: 8px;
    display: none;
}

.header-menu ul ul::after
{
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    top: 0;
    left: 50%;
    margin: -10px 0 0 -10px;
    border-bottom: 10px solid var(--theme_color_primary);
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
}

.header-menu ul ul
{
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    background: var(--theme_color_primary);
    z-index: 13;
    padding: var(--gap_spacing_default);
}

#header .header-menu ul ul
{
    -webkit-animation-name: submenu;
    -webkit-animation-duration: 0.5s;
    animation-name: submenu;
    animation-duration: 0.5s;
    z-index: 2;
}

#header-fixed .header-menu ul ul
{
    -webkit-animation-name: submenu_fixed;
    -webkit-animation-duration: 0.5s;
    animation-name: submenu_fixed;
    animation-duration: 0.5s;
}

@-webkit-keyframes submenu {
    from {
        opacity: 0;
        top: 52px;
    }
    to {
        opacity: 1;
        top: 62px;
    }
}

@keyframes submenu {
    from {
        opacity: 0;
        top: 52px;
    }
    to {
        opacity: 1;
        top: 62px;
    }
}

@-webkit-keyframes submenu_fixed {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes submenu_fixed {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.header-menu ul ul li
{
    float: none;
    text-align: left;
}

.header-menu ul ul li a
{
    display: block;
    color: #FFF;
    line-height: 36px;
    text-transform: capitalize;
    white-space: nowrap;
}

.header-menu ul ul li.current-menu-item.anchor_section > a
{
    color: var(--theme_color_secondary);
}

.header-menu ul ul li a:hover,
.header-menu ul ul li.current-menu-item > a,
.header-menu ul ul li.current-menu-item.anchor_section > a:hover,
.header-menu ul ul li.current-page-ancestor > a,
.header-menu ul ul li.current-menu-ancestor > a,
.header-menu ul ul li.current-product-ancestor > a,
.header-menu ul ul li.current-post-ancestor > a
{
    color: var(--theme_color_secondary);
}

.header-menu ul ul ul
{
    top: 0;
    left: 100%;
    position: static;
    /*display: grid;*/
    display: block;
    padding: 0;
    margin: 5px 0;
}

.header-menu ul li:hover > ul
{
    /*display: grid;*/
    display: block;
}

.header-menu .section-toggle
{
    display: none;
}

.header-responsive-btn a
{
    display: block;
    transition: none;
}

.header-responsive-btn a
{
    color: var(--theme_color_primary);
    width: 32px;
    height: 32px;
    text-align: center;
    position: relative;
}

.header-responsive-btn a:hover, .header-responsive-btn a.active,
.colour-scheme-light .header-responsive-btn a:hover, .colour-scheme-light .header-responsive-btn a.active
{
    color: var(--theme_color_secondary);
}

.header-responsive-btn
{
    display: none;
}

.colour-scheme-light .header-responsive-btn a
{
    color: #FFF;
}

.header-responsive-btn svg
{
    width: 32px;
    height: 32px;
}

.header-responsive-btn a .fa-times
{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

@media (min-width: 1001px) {

    .header-menu ul .industries ul
    {
        left: -60px;
    }

    .header-menu ul .about-us ul
    {
        left: -20px;
    }

}

@media (max-width: 1200px) and (min-width: 1001px) {

    .header-menu > div > ul > li.button > a, #header-fixed .header-menu > div > ul > li.button > a
    {
        padding: 19px 10px !important;
    }

    .header-menu > div > ul > li
    {
        margin: 0 12px;
    }

    .header-menu > div > ul > li > a
    {
        font-size: 18px;
    }

}

@media (max-width: 1000px) {

    .header-responsive-btn
    {
        display: grid;
        padding: 0 0 0 var(--gap_spacing_default);
        justify-self: end;
    }
    
    .header-menu
    {
        display: none;
        position: absolute;
        top: -20px;
        left: 50%;
        z-index: 13;
        width: 1000px;
        margin-left: -500px;
        grid-column: auto;
        grid-row: 1;
        background: var(--theme_color_primary);
        height: calc( 100vh + 20px );
        align-items: center;
    }

    .header-menu > div
    {
        height: 100vh;
        display: grid;
        align-items: center;
        margin-top: 0;
    }

    .header-responsive-btn
    {
        position: relative;
        z-index: 90;
    }

    .header-menu ul li
    {
        float: none;
    }

    .header-menu ul li.mobile
    {
        display: block;
    }

    .header-menu ul ul
    {
        display: none;
        position: static;
        padding: 0;
        width: auto;
        background: transparent;
    }

    .header-menu ul li:hover > ul, .header-menu ul ul ul
    {
        display: none;
        margin: 0;
    }

    .header-menu > div > ul > li
    {
        margin: 0;
    }

    .header-menu > div > ul > li.blog > a
    {
        padding-top: 0;
    }

    .header-menu > div > ul > li > a, .header-menu ul ul li a
    {
        display: block;
        color: #FFF;
        font-size: var(--heading_tag_size_small);
        line-height: var(--heading_tag_line_height_small);
        padding: 5px 0;
        text-transform: uppercase;
        white-space: normal;
        text-align: center;
    }

    .header-menu ul ul li a
    {
        padding: 5px 0;
        text-transform: capitalize;
        font-size: var(--font_size_main);
        line-height: var(--line_height_main);
    }
    
    .header-menu ul ul::after
    {
        display: none;
        content: "";
    }
    
    .header-menu ul ul
    {
        padding: 0 var(--gap_spacing_default);
        
    }

    .header-menu ul ul, .header-menu ul ul > li.menu-item-has-children > a:after
    {
        display: block !important;
    }

    .header-menu ul ul ul
    {
        padding: 0 var(--gap_spacing_default);
        border: 0;
    }

    .header-menu > div > ul > li.menu-item-has-children > a::after,
    .header-menu ul ul li.anchor_section > a
    {
        display: none;
    }

    .header-menu ul ul li a
    {
        color: #FFF;
    }

    .header-menu > div > ul > li:hover > a, .header-menu > div > ul > li > a:hover,
    .header-menu > div > ul > li.current-menu-item > a,
    .header-menu > div > ul > li.current-page-ancestor > a,
    .header-menu > div > ul > li.current-post-ancestor > a,
    .header-menu > div > ul > li.current-menu-ancestor > a,
    .header-menu > div > ul > li.current-product-ancestor > a,
    .header-menu > div > ul > li.current-category-ancestor > a,
    .header-menu > div > ul > li.hovered > a
    {
        color: var(--theme_color_secondary);
        background: transparent;
    }

    .header-menu ul ul li a:hover,
    .header-menu ul ul li.current-menu-item > a,
    .header-menu ul ul li.current-page-ancestor > a,
    .header-menu ul ul li.current-menu-ancestor > a,
    .header-menu ul ul li.current-product-ancestor > a,
    .header-menu ul ul li.current-post-ancestor > a
    {
        color: var(--theme_color_secondary);
    }

    .header-menu ul li.solutions .sub-menu, .header-menu ul li.technology .sub-menu
    {
        display: none !important;
    }
    
}

/* --------------------------- Header Fixed -------------------------- */

#header-fixed
{
    display: none;
    position: fixed;
    z-index: 14;
    width: 100%;
    background: var(--theme_color_primary);
    color: #FFF;
    padding: var(--gap_spacing_default) 0;
    max-height: var(--header_scrolled_height);
    box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.25);
}

#header-fixed .container
{
    display: grid;
    grid-template-columns: 185px auto;
    grid-auto-rows: max-content;
    grid-gap: 0;
    align-items: center;
}

#header-fixed .header-menu
{
    justify-self: end;
}

#header-fixed .header-menu > div > ul > li.button > a
{
    border: 1px #FFF solid;
    padding: 19px 30px;
    transition: all 0.5s ease;
}

#header-fixed .header-menu > div > ul > li.button > a:hover
{
    border: 1px var(--theme_color_secondary) solid;
}

@media (max-width: 1000px) {

    #header-fixed, #header-fixed.scrolled, #header-fixed.scrolled-up
    {
        display: none;
    }
    
}