/* -HEADER- */

.header {
    height: 302px;
    position: sticky;
    top: 0;
    background-color: #FFFFFF;
    z-index: 9990;
}

.header.mobile {
    height: auto;
}

.header .top-bar {
    height: 206px;
    align-items: end;
    padding-bottom: 20px;
    display: flex;
    border-bottom: 1px solid #CED0D6;
}

.header .menu-bar {
    height: 97px;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.15);
    /*background-color: #FFFFFF;*/
    /*z-index: 2;*/
    /*position: relative;*/
}

.header .top-bar-container, .header .menu-bar-container {
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.header .menu-bar-container .header-menu {
    padding-left: 120px;
}

.header .menu-bar-container .gtranslate_wrapper {
    top: 34px;
    position: absolute;
    z-index: 999;
}

.header .menu-bar-container .gtranslate_wrapper a {
    margin-right: 8px;
}


.header .top-bar-container {
    display: flex;
}

.header .top-bar-container .top-bar-item {
    width: 300px;
    height: 60px;
    border: 1px solid #ccc;
    border-radius: 34px;
}

.header .top-bar-container .top-bar-item .top-bar-top-item {
    width: 124px;
    height: 31px;
    background: #fff;
    top: -14px;
    left: 26px;
    color: #323232;
    font-family: Lato;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 34px;
}

.header .top-bar-container .call-us .top-bar-item .top-bar-top-item img {
    position: absolute;
    top: 2px;
    left: 2px;
}

.header .top-bar-container .call-us .top-bar-item .top-bar-top-item {
    padding-left: 24px;
}

.header .top-bar-container .top-bar-item .top-bar-item-text {
    padding-left: 31px;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 34px;
    text-decoration: none;
}

.header .top-bar-container .top-bar-item .top-bar-item-text:hover {
    color: #323232;
}

.header .top-bar-container .top-bar-item .top-bar-item-text.second {
    padding-left: 12px;
}

.header .top-bar-container .email-us .top-bar-item .top-bar-top-item {
    right: 26px !important;
    left: unset;
    padding-left: 8px;
}

.header .top-bar-container .email-us .top-bar-item .top-bar-top-item img {
    position: absolute;
    top: 0px;
    margin-left: 4px;
}

/* menu */

.header-menu ul.menu {
    list-style: none;
    display: flex;
    position: relative;
}

.header-menu ul.menu > li {
    margin: 0;
    position: relative;
    height: 97px;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 0 27.5px;
    display: flex;
}

/*.header-menu ul.menu > li:last-child {*/
/*    position: absolute;*/
/*    right: 0;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    padding-right: 0;*/
/*}*/

/*.header-menu ul.menu > li:last-child > a, */
.button-free-consultation {
    width: 233px;
    height: 53px;
    flex-shrink: 0;
    background: #323232;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.10);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.5s ease;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
}

.button-free-consultation:hover {
    color: #fff;
    background: #F15A29;
}

.header-menu ul.menu > li a {
    color: #323232;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-transform: uppercase;
    text-decoration: none;
}

.header-menu ul.menu > li.current-menu-item > a {
    color: #F15A29;
}

.header-menu ul.menu > li > a {
    height: 60px;
}

.header-menu ul.menu > li > a:hover,
.header-menu ul.sub-menu > li > a:hover {
    color: #F15A29;
}

.left-banner {
    z-index: 9;
}

.header-menu ul.menu > li .sub-menu-wrapper:hover .sub-menu {
    display: block;
}

.header-menu ul.menu > li .sub-menu {
    display: none;
    position: absolute;
    list-style: none;
    top: 88px;
    left: 27.5px;
    width: max-content;
    min-width: 268px;
    padding: 7px 0 0 0;
    z-index: 99;
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.05);
}

.header-menu ul.menu > li .sub-menu .sub-menu {
    top: 22px !important;
    left: 140px;
}

.header-menu ul.menu > li .sub_menu2 .sub-menu {
    top: -20px !important;
    margin-left: -134%;
}

.header-menu ul.menu > li .sub-menu .sub-menu {
    top: 78px;
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
}

.header-menu ul.menu > li .sub-menu li {
    background: #fff;
    padding-left: 27px;
    padding-right: 24px;
    padding-bottom: 8.5px;
    position: relative;
}


.header-menu ul.menu > li .sub-menu li:first-child {
    padding-top: 25px;
}

.header-menu ul.menu > li .sub-menu li:last-child {
    padding-bottom: 25px;
}


.header-menu ul.menu > li .sub-menu:hover {
    display: block;

}

.menu-item-2536 .sub-menu {
    max-height: 400px;
    overflow-y: auto;
}

.header-menu ul.menu > li > a:hover + .sub-menu {
    display: block;
}

.header.mobile {
    display: none;
}

.header-menu ul.menu > li .sub-menu li > a:hover ~ .sub-menu {
    display: block;
}


#popup-overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

#popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, #F15A29 49%, #ffffff 51%);
    padding: 34px 30px 30px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

#popup-close {
    position: absolute;
    top: 0;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: white;
}

.popup-body .popup-img {
    margin-bottom: 20px;
}

.popup-body h3 {
    color: #323232;
    font-size: 26px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 36px !important; /* 138.462% */
    text-transform: uppercase;
    margin-bottom: 0 !important;
    text-align: left;
}

.popup-body p {
    color: #323232;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    text-align: left;
    margin-bottom: 12px;
}

.popup-body p span {
    color: #F15A29;
}


.popup-button {
    background: #323232;
    color: #fff;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 18px 15px;
    border: none;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.10);
    width: 100%;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
}

.popup-button:hover {
    background: #F15A29;
    color: #fff;
}

.head-logo {
    display: grid;
    gap: 18px;
    text-align: center;
}

.head-logo img {
    max-width: 200px;
}

.head-logo span {
    color: #77787B;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .header.mobile {
        display: block;
        position: sticky;
        top: 0;
        z-index: 9990;
        max-width: 1024px;
        width: 100%;
        background-color: #FFFFFF;
    }

    .header.desktop {
        display: none;
    }

    .header.mobile .top-bar-mobile {
        align-items: center;
        height: 28px;
        padding: 0 8px;
    }

    .header.mobile .top-bar-mobile {
        color: #787878;
        font-family: Lato;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        border-bottom: 1px solid rgba(120, 120, 120, 0.18);;
    }

    .header.mobile .top-bar-mobile .phone {
        display: flex;
    }

    .header.mobile .top-bar-mobile .phone img {
        width: 18px;
        height: 18px;
    }

    .header .gtranslate_wrapper a {
        margin-right: 8px;
    }

    .header.mobile .top-bar.in-mobile {
        height: 200px;
    }

    .head-logo {
        gap: 10px;
    }

    .header.mobile .top-bar.in-mobile .top-bar-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header.mobile .menu-bar .menu-bar-container {
        position: absolute;
        top: 0;
        background: #fff;
        height: auto;
        /* display: none; */
        z-index: 999;
        left: 0;
        padding: 0;
        overflow-y: auto;
        max-height: 600px;
    }

    .header.mobile .menu-bar .menu-bar-container .header-menu {
        width: 100%;
        display: flex;
        padding: 0 !important;
    }

    /*.header-menu ul.menu > li:last-child {*/
    /*    display: none !important;*/
    /*}*/
    .header.mobile .menu-bar .menu-bar-container .header-menu ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        margin-bottom: 0;
    }

    .header-menu ul.menu .sub-menu {
        position: initial !important;
        display: block;
    }

    .header.mobile .menu-bar .menu-bar-container .header-menu ul.menu .sub-menu .sub-menu {
        display: none;
    }

    .header.mobile .menu-bar .menu-bar-container .header-menu ul.menu > li .sub-menu li.show-submenu-mobile .sub-menu {
        display: block;
    }

    .header.mobile .menu-bar .menu-bar-container .header-menu ul li {
        display: flex;
        justify-content: left;
        border-bottom: 1px solid #ccc;
        height: 60px;
        align-items: center;
    }

    .header.mobile .menu-bar .menu-bar-container .header-menu ul li a {
        display: flex;
        align-items: center;
    }

    .header.mobile .menu-bar {
        box-shadow: none;
    }

    .header.mobile .menu-burger {
        position: absolute;
    }

    .header.mobile .menu-burger {
        right: 0;
        position: absolute;
        top: 30%;
        height: 50px;
        width: 50px;
        transform: translate(-50%, -50%);
        cursor: pointer;
    }

    .header.mobile .menu-burger img {
        width: 100%;
        object-fit: contain;
    }

    .header.mobile .close-icon {
        z-index: 999;
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .header-menu ul.menu > li {
        height: auto !important;
        display: flex;
        flex-wrap: wrap;
        min-height: 46px !important;
    }

    .header-menu ul.menu > li > .sub-menu > li {
        padding: 0 !important;
        display: flex;
        flex-wrap: wrap;
        height: auto !important;
        min-height: 46px !important;
    }

    .header-menu ul.menu .sub-menu .sub-menu {
        display: none;
    }

    .header-menu ul.menu .sub-menu .sub-menu li {
        border: none !important;
        height: 46px;
    }

    .header-menu ul.menu .sub-menu .sub-menu li a {
        margin-left: 37.5px;
        font-style: italic;
    }


    .header.mobile .menu-bar .menu-bar-container .header-menu ul {
        box-shadow: none !important;
    }

    .header.mobile .menu-bar .menu-bar-container .header-menu ul.menu > li > .sub-menu {
        width: calc(100% + 35px);
        margin: 0 -17.5px;
        border-top: 1px solid #ccc;
        border-bottom: none;
        /*padding-left: 27.5px !important;*/
    }

    .header.mobile .menu-bar .menu-bar-container .header-menu ul.menu > li > .sub-menu > li:last-child {
        border-bottom: none;
    }

    .header.mobile .menu-bar .menu-bar-container .header-menu ul.menu > li > a {
        font-weight: 600;
    }

    .header.mobile .menu-bar .menu-bar-container .header-menu ul.menu > li > .sub-menu > li > a {
        margin-left: 27.5px;
        font-weight: 500;
    }

    .header-menu ul.menu li,
    .header-menu ul.menu .sub-menu li,
    .header-menu ul.menu .sub-menu {
        border: none !important;
    }

    .header-menu ul.menu > li .sub-menu > li.menu-item-has-children {
        /*padding-top: 12px !important;*/
    }

    .header-menu ul.menu > li .sub-menu > li:first-child {
        padding-top: 12px;
    }
    .header-menu ul.menu > li .sub_menu2 .sub-menu{
        margin-left: 0;
        top: unset;
    }
    .menu-item-2536 .sub-menu {
        overflow-y: visible;
    }
    .mob-menu-icon {
        color: #F15A29;
        font-weight: bold;
        margin-left: 12px;
        cursor: pointer;
        font-size: 24px;
        padding: 4px;
    }

    .mob-menu-icon::before {
        color: #F15A29;
        font-weight: bold;
        cursor: pointer;
        font-size: 24px;
        content: '  >  ';
    }

    .mob-menu-icon.active::before {
        color: #323232;
        content: '  <  ';
    }


    /*.header-menu ul.menu .sub-menu {*/
    /*    display: none !important;*/
    /*}*/
}


@media (max-width: 568px) {
    .header.mobile {
        height: auto;
    }

    .header.mobile .top-bar-mobile {
        padding: 6px 15px;
        height: 29px;
    }

    .header.mobile .top-bar-mobile .gtranslate_wrapper > a {
        width: 18px !important;
        display: inline-block;
    }

    .header.mobile .top-bar-mobile .gtranslate_wrapper a > img {
        object-fit: inherit;
        width: 100%;
    }

    .header.mobile .top-bar.in-mobile .logo {
        width: 150px;
    }

    .header.mobile .top-bar.in-mobile {
        height: 150px;
        padding: 0;
        display: flex;
        align-items: center;
        border-bottom: 0;
    }

    .head-logo span {
        font-size: 14px;
    }

    .header.mobile .menu-burger {
        height: 25px;
        width: 25px;
    }

    #popup-content {
        background: linear-gradient(to bottom, #F15A29 30%, #ffffff 44%);
    }

    #popup-content .popup-img {
        width: 100%;
    }

    #popup-content h3 {
        font-size: 22px !important;
        line-height: 32px !important;
    }

    #popup-content p {
        font-size: 16px;
        line-height: 26px;
    }

}


@media (max-width: 360px) {
    .header.mobile {
        height: auto;
    }

    .header.mobile .top-bar-mobile {
        padding: 6px 15px;
        height: 29px;
    }

    .header.mobile .top-bar-mobile .gtranslate_wrapper > a {
        width: 18px !important;
        display: inline-block;
    }

    .header.mobile .top-bar-mobile .gtranslate_wrapper a > img {
        object-fit: inherit;
        width: 100%;
    }

    .header.mobile .top-bar.in-mobile .logo {
        width: 150px;
    }

    .header.mobile .top-bar.in-mobile {
        height: 150px;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .header.mobile .menu-burger {
        height: 25px;
        width: 25px;
    }
}

/* =========================================================================
   Mobile header — "YLF - Mobile CHANGES" Figma, comment #1 "HEADER SIZE
   CHANGES". 83px total: a 25px top strip, then a 58px bar with the licence
   number on the left, a 90 x 52 logo in the middle and the burger on the right.
   ========================================================================= */
@media (max-width: 568px) {
    .header.mobile .top-bar-mobile {
        height: 25px;
        padding: 0 15px;
        font-size: 12px;
    }

    .header.mobile .top-bar-mobile .phone img {
        width: 15px;
        height: 15px;
    }

    .header.mobile .top-bar.in-mobile {
        height: 58px;
    }

    .header.mobile .top-bar.in-mobile .logo {
        width: 90px;
    }

    .header.mobile .top-bar.in-mobile .head-logo img {
        height: 52px;
        object-fit: contain;
    }

    /* .top-bar-container is the positioned ancestor, so the licence number sits
       at the left edge of the bar while the logo stays optically centred.
       The mock also draws a "License" label above the number; that word is not
       on the live site and Nvard asked for layout changes only, no new copy. */
    .header.mobile .top-bar.in-mobile .head-logo .head-licence {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        display: block;
        text-align: left;
        font-size: 12px;
        line-height: 14px;
        font-weight: 700;
        text-transform: none;
        color: #323232;
    }

    .header.mobile .menu-burger {
        top: 50%;
        right: 20px;
        transform: translate(0, -50%);
    }
    /* The accessibility toolbar is fixed at the top-left of the viewport and
       would sit on top of the licence number, which the mobile mock moves to
       the left of the header. The plugin prints its own
       "@media (max-width: 767px) { #pojo-a11y-toolbar { top: 50px !important } }"
       in an inline <style> after this file, so the body prefix is what makes
       this win. The proper home for this value is the plugin's position
       setting in wp-admin. */
    body #pojo-a11y-toolbar {
        top: 110px !important;
    }
}

