/* =========================================
   ECOMORBIXA HEADER
========================================= */


:root {
    /* Ecomofolio Brand Colors */
    --eco-orange: #1B2CC1;
    --eco-orange-hover: #1423A3;

    /* Dark Theme */
    --eco-black: #091540;
    --eco-panel: #101E4B;
    --eco-line: #263663;

    /* Additional Brand Colors */
    --eco-primary: #091540;
    --eco-secondary: #1B2CC1;
    --eco-hover: #1423A3;

    /* Text Colors */
    --eco-text: #091540;
    --eco-text-light: #FFFFFF;
    --eco-muted: #65708A;

    /* Background Colors */
    --eco-bg: #FFFFFF;
    --eco-bg-light: #F3F6FF;
    --eco-bg-dark: #091540;

    /* Border */
    --eco-border: #E1E6F2;

    /* Layout */
    --eco-container: 1380px;
}


.eco-site-header *,
.eco-mobile-panel *,
.eco-mobile-overlay {
    box-sizing: border-box;
}

.eco-site-header a,
.eco-mobile-panel a {
    text-decoration: none;
}

.eco-site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9998;
    background: var(--eco-black);
    border-bottom: 1px solid #33363b;
    transition: box-shadow .3s ease, background .3s ease;
}

.eco-site-header.eco-scrolled {
    background: rgba(17, 18, 20, .97);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    backdrop-filter: blur(12px);
}

body.admin-bar .eco-site-header {
    top: 32px;
}

.eco-header-container {
    width: min(94%, var(--eco-container));
    min-height: 80px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.eco-header-brand {
    flex-shrink: 0;
}

.eco-logo-link {
    display: flex;
    align-items: center;
    max-width: 200px;
}

.eco-logo-image {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 52px;
    height: auto;
    object-fit: contain;
}

.eco-logo-text {
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.7px;
}

.eco-logo-text span {
    color: var(--eco-orange);
}

/* DESKTOP MENU */

.eco-desktop-nav {
    display: flex;
    align-items: center;
}

.eco-nav-list {
    display: flex;
    gap: 27px;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.eco-nav-list li {
    position: relative;
    list-style: none;
}

.eco-nav-list>li>a {
    display: flex;
    align-items: center;
    min-height: 80px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .25s ease;
}

.eco-nav-list a:hover,
.eco-nav-list .current-menu-item>a,
.eco-nav-list .current-menu-ancestor>a {
    color: var(--eco-orange);
}

.eco-nav-list .menu-item-has-children>a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

/* DESKTOP DROPDOWN */

.eco-nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 215px;
    padding: 9px;
    margin: 0;
    list-style: none;
    background: #1c1e21;
    border: 1px solid #34363b;
    border-radius: 7px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease,
        visibility .25s ease;
}

.eco-nav-list li:hover>.sub-menu,
.eco-nav-list li:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.eco-nav-list .sub-menu a {
    display: block;
    padding: 11px 13px;
    color: #eee;
    font-size: 13px;
    border-radius: 5px;
    transition: background .2s ease, color .2s ease;
}

.eco-nav-list .sub-menu a:hover {
    color: var(--eco-orange);
    background: rgba(255, 87, 51, .09);
}

.eco-nav-list .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* HEADER SEARCH */

.eco-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.eco-header-search {
    display: flex;
    align-items: center;
    width: 240px;
    height: 44px;
    margin: 0;
    border: 1px solid #35383d;
    border-radius: 6px;
    background: #fff;
}

.eco-header-search:focus-within {
    border-color: var(--eco-orange);
}

.eco-header-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
}

.eco-header-search input::placeholder {
    color: #89909a;
}

.eco-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aaa;
    cursor: pointer;
}

.eco-search-submit:hover {
    color: var(--eco-orange);
}

/* MENU TOGGLE */

.eco-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #1d1f22;
    border: 1px solid #383b40;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .25s ease;
}

.eco-menu-toggle:hover {
    border-color: var(--eco-orange);
}

.eco-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .3s ease;
}

.eco-menu-toggle.is-active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.eco-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.eco-menu-toggle.is-active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   DRAWER BACKGROUND OVERLAY
========================================= */

.eco-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}

.eco-mobile-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================
   SIDE DRAWER
========================================= */

.eco-mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    width: min(340px, 90vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    background: var(--eco-panel);
    color: #fff;
    box-shadow: -12px 0 35px rgba(0, 0, 0, .25);

    transform: translateX(105%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.22, 1, .36, 1),
        visibility .38s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.eco-mobile-panel.is-open {
    transform: translateX(0);
    visibility: visible;
}

.eco-mobile-panel-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px 22px 25px;
}

/* DRAWER TOP LOGO + CLOSE */

.eco-mobile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.eco-drawer-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.eco-drawer-logo-image {
    display: block;
    max-width: 175px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.eco-mobile-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    color: #fff;
    background: var(--eco-orange);
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.eco-mobile-close:hover {
    background: var(--eco-orange-hover);
    transform: rotate(90deg);
}

/* DRAWER SEARCH */

.eco-mobile-search {
    display: flex;
    width: 100%;
    margin: 0 0 18px;
    min-height: 42px;
}

.eco-mobile-search input {
    min-width: 0;
    flex: 1;
    padding: 0 10px;
    color: #fff;
    background: #fff;
    border: 1px solid #393b40;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 12px;
}

.eco-mobile-search button {
    padding: 0 12px;
    color: #fff;
    background: var(--eco-orange);
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    cursor: pointer;
}

/* DRAWER MENU */

.eco-mobile-nav-list,
.eco-mobile-nav-list ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.eco-mobile-nav-list li {
    position: relative;
    list-style: none;
    margin: 0;
    border-bottom: 1px solid #2c2e32;
}

.eco-mobile-nav-list>li>a {
    display: block;
    padding: 15px 40px 15px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: color .25s ease, padding-left .25s ease;
}

.eco-mobile-nav-list>li>a:hover,
.eco-mobile-nav-list .current-menu-item>a {
    color: var(--eco-orange);
    padding-left: 5px;
}

/* SUBMENU ARROW */

.eco-mobile-nav .eco-submenu-toggle {
    position: absolute;
    top: 6px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .25s ease, transform .25s ease;
}

.eco-mobile-nav .eco-submenu-toggle:hover,
.eco-mobile-nav .eco-submenu-toggle[aria-expanded="true"] {
    color: var(--eco-orange);
}

.eco-mobile-nav .eco-submenu-toggle[aria-expanded="true"] {
    transform: rotate(90deg);
}

/* HIDDEN SUBMENUS */

.eco-mobile-nav .sub-menu {
    display: none;
    margin: 0 0 12px 10px;
    padding: 0 0 0 13px;
    border-left: 2px solid var(--eco-orange);
}

.eco-mobile-nav .eco-submenu-open>.sub-menu {
    display: block;
    animation: eco-submenu-show .25s ease;
}

.eco-mobile-nav .sub-menu li {
    border-bottom: 0;
}

.eco-mobile-nav .sub-menu a {
    display: block;
    padding: 10px 35px 10px 0;
    color: #bfc1c7;
    font-size: 13px;
    line-height: 1.5;
}

.eco-mobile-nav .sub-menu a:hover {
    color: var(--eco-orange);
}

@keyframes eco-submenu-show {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOTTOM TEXT */

.eco-drawer-bottom {
    margin-top: auto;
    padding-top: 35px;
    color: #888d96;
    font-size: 12px;
}

body.eco-menu-open {
    overflow: hidden;
}

.eco-site-header a:focus-visible,
.eco-site-header button:focus-visible,
.eco-mobile-panel a:focus-visible,
.eco-mobile-panel button:focus-visible {
    outline: 2px solid var(--eco-orange);
    outline-offset: 3px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1199px) {
    .eco-nav-list {
        gap: 18px;
    }

    .eco-header-search {
        width: 190px;
    }

    .eco-logo-image {
        max-width: 160px;
    }
}

@media (max-width: 1024px) {
    .eco-desktop-nav {
        display: none;
    }

    .eco-header-container {
        min-height: 70px;
    }

    .eco-header-search {
        width: 220px;
    }
}

@media (max-width: 767px) {
    .eco-header-container {
        min-height: 66px;
        width: calc(100% - 30px);
    }

    .eco-header-search {
        display: none;
    }

    .eco-logo-image {
        max-width: 155px;
        max-height: 46px;
    }

    .eco-menu-toggle {
        width: 42px;
        height: 42px;
    }

    .eco-mobile-panel {
        width: min(320px, 88vw);
    }

    .eco-mobile-panel-inner {
        padding: 17px 18px 25px;
    }
}

@media (max-width: 380px) {
    .eco-logo-image {
        max-width: 130px;
    }

    .eco-drawer-logo-image {
        max-width: 145px;
    }

    .eco-header-container {
        width: calc(100% - 24px);
    }
}

@media (max-width: 782px) {
    body.admin-bar .eco-site-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    body.admin-bar .eco-site-header {
        top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .eco-site-header *,
    .eco-mobile-panel,
    .eco-mobile-overlay {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* =====================================
   ECOMORBIXA HEADER BUTTON COLOR FIX
   Override Hello Elementor button styles
===================================== */

/* Search Button */
.eco-site-header .eco-search-submit,
.eco-site-header .eco-search-submit:hover,
.eco-site-header .eco-search-submit:focus {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #042CF8 !important;
}

/* Search input */
.eco-site-header .eco-header-search {
    border: 1px solid #373a40 !important;
    background: #fff !important;
    overflow: hidden;
}

.eco-site-header .eco-header-search input,
.eco-site-header .eco-header-search input:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

/* Toggle Button */
.eco-site-header .eco-menu-toggle,
.eco-site-header .eco-menu-toggle:focus {
    background: #042CF8 !important;
    background-color: #042CF8 !important;
    border: 1px solid #042CF8 !important;
    box-shadow: none !important;
    outline: none;
}

/* Toggle Hover */
.eco-site-header .eco-menu-toggle:hover {
    background: #042CF8 !important;
    background-color: #042CF8 !important;
    border-color: #042CF8 !important;
}

/* Toggle Lines */
.eco-site-header .eco-menu-toggle span {
    background-color: #ffffff !important;
}

/* Drawer Close Button */
.eco-mobile-panel .eco-mobile-close {
    background: #042CF8 !important;
    border: 0 !important;
    color: #ffffff !important;
}

/* Mobile Search Button */
.eco-mobile-panel .eco-mobile-search button {
    background: #042CF8 !important;
    border: 0 !important;
    color: #ffffff !important;
}
