
/* ==========================================
   DIGIHAUZAR HEADER
   White / Orange / Black Theme
   Compatible with existing eco-* classes
========================================== */

:root {
    --eco-orange: #ff5b0a;
    --eco-orange-hover: #e84d00;

    --eco-black: #15171c;
    --eco-panel: #ffffff;
    --eco-line: #e8e9ed;

    --eco-primary: #ff5b0a;
    --eco-secondary: #15171c;
    --eco-hover: #e84d00;

    --eco-text: #15171c;
    --eco-text-light: #ffffff;
    --eco-muted: #747986;

    --eco-bg: #ffffff;
    --eco-bg-light: #f6f7f9;
    --eco-bg-dark: #15171c;

    --eco-border: #e8e9ed;
    --eco-container: 1380px;
}

/* ==========================================
   GENERAL RESET
========================================== */

.eco-site-header,
.eco-site-header *,
.eco-mobile-panel,
.eco-mobile-panel *,
.eco-mobile-overlay {
    box-sizing: border-box;
}

.eco-site-header a,
.eco-mobile-panel a {
    text-decoration: none;
}

.eco-site-header button,
.eco-site-header input,
.eco-mobile-panel button,
.eco-mobile-panel input {
    font-family: Manrope, Arial, sans-serif;
}

/* ==========================================
   MAIN HEADER
========================================== */

.eco-site-header {
    position: sticky;
    top: 0;
    z-index: 9998;

    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeef;

    box-shadow: 0 1px 5px rgba(0, 0, 0, .025);

    transition:
        background .3s ease,
        box-shadow .3s ease;
}

.eco-site-header.eco-scrolled {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 5px 25px rgba(0, 0, 0, .07);
    backdrop-filter: blur(12px);
}

body.admin-bar .eco-site-header {
    top: 32px;
}

/* Header container */

.eco-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(94%, var(--eco-container));
    min-height: 74px;

    margin: 0 auto;
    gap: 25px;
}

/* ==========================================
   LOGO
========================================== */

.eco-header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.eco-logo-link {
    display: inline-flex;
    align-items: center;

    max-width: 220px;
    line-height: 1;
}

.eco-logo-image,
.eco-site-header .custom-logo {
    display: block;

    width: auto;
    max-width: 200px;
    max-height: 45px;
    height: auto;

    object-fit: contain;
}

.eco-logo-text {
    display: inline-block;

    margin: 0;
    color: #15171c;

    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.eco-logo-text span {
    color: var(--eco-orange);
}

/* ==========================================
   DESKTOP NAVIGATION
========================================== */

.eco-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1;
    min-width: 0;
}

.eco-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 24px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.eco-nav-list li {
    position: relative;

    margin: 0;
    padding: 0;

    list-style: none;
}

.eco-nav-list > li > a {
    display: inline-flex;
    align-items: center;

    min-height: 74px;

    color: #20232a;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
    white-space: nowrap;

    transition: color .25s ease;
}

.eco-nav-list > li > a:hover,
.eco-nav-list .current-menu-item > a,
.eco-nav-list .current-menu-ancestor > a,
.eco-nav-list .current_page_item > a {
    color: var(--eco-orange);
}

/* Dropdown indicator */

.eco-nav-list .menu-item-has-children > a::after {
    content: "";

    width: 6px;
    height: 6px;

    margin-left: 8px;
    margin-top: -3px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg);
}

/* ==========================================
   DESKTOP DROPDOWN MENU
========================================== */

.eco-nav-list .sub-menu {
    position: absolute;
    z-index: 100;

    top: 100%;
    left: 0;

    min-width: 215px;

    margin: 0;
    padding: 9px;

    list-style: none;

    background: #ffffff;
    border: 1px solid #eeeeef;
    border-radius: 8px;

    box-shadow: 0 14px 35px rgba(0, 0, 0, .09);

    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 li {
    list-style: none;
    margin: 0;
}

.eco-nav-list .sub-menu a {
    display: flex;
    align-items: center;

    min-height: 39px;
    padding: 10px 13px;

    color: #292d35;
    font-size: 12px;
    font-weight: 650;

    border-radius: 5px;

    transition:
        color .2s ease,
        background .2s ease;
}

.eco-nav-list .sub-menu a:hover,
.eco-nav-list .sub-menu .current-menu-item > a {
    color: var(--eco-orange);
    background: #fff1e9;
}

.eco-nav-list .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* ==========================================
   HEADER ACTIONS
========================================== */

.eco-header-actions {
    display: flex;
    align-items: center;

    gap: 11px;
    flex-shrink: 0;
}

/* ==========================================
   HEADER SEARCH
========================================== */

.eco-header-search {
    display: flex;
    align-items: center;

    width: 210px;
    height: 40px;

    margin: 0;
    padding: 0;

    background: #f7f7f8;
    border: 1px solid #ececf0;
    border-radius: 6px;

    overflow: hidden;

    transition:
        border-color .25s ease,
        background .25s ease;
}

.eco-header-search:focus-within {
    border-color: var(--eco-orange);
    background: #ffffff;
}

.eco-site-header .eco-header-search input,
.eco-site-header .eco-header-search input:focus {
    display: block;

    width: 100%;
    min-width: 0;
    height: 100%;

    margin: 0;
    padding: 0 12px;

    border: 0 !important;
    border-radius: 0 !important;

    outline: none !important;
    box-shadow: none !important;

    background: transparent !important;
    color: #20232a !important;

    font-size: 12px;
    font-weight: 500;
}

.eco-header-search input::placeholder {
    color: #8a9099;
    opacity: 1;
}

/* Search submit button */

.eco-site-header .eco-search-submit,
.eco-site-header .eco-search-submit:focus {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    width: 40px;
    height: 100%;

    margin: 0;
    padding: 0;

    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    color: #30343c !important;
    cursor: pointer;

    transition: color .2s ease;
}

.eco-site-header .eco-search-submit:hover {
    color: var(--eco-orange) !important;
    background: transparent !important;
}

/* Search icon */

.eco-search-submit svg {
    width: 17px;
    height: 17px;

    stroke: currentColor;
}

/* ==========================================
   MENU TOGGLE BUTTON
========================================== */

.eco-site-header .eco-menu-toggle,
.eco-site-header .eco-menu-toggle:focus {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 5px;

    width: 41px;
    height: 41px;

    margin: 0;
    padding: 0;

    background: #15171c !important;
    background-color: #15171c !important;

    border: 1px solid #15171c !important;
    border-radius: 50%;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.eco-site-header .eco-menu-toggle:hover {
    background: var(--eco-orange) !important;
    background-color: var(--eco-orange) !important;
    border-color: var(--eco-orange) !important;
}

.eco-site-header .eco-menu-toggle span {
    display: block;

    width: 18px;
    height: 2px;

    background: #ffffff !important;
    border-radius: 2px;

    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 OVERLAY
========================================== */

.eco-mobile-overlay {
    position: fixed;
    inset: 0;

    z-index: 99999;

    background: rgba(12, 15, 20, .68);
    backdrop-filter: blur(3px);

    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(360px, 90vw);
    height: 100vh;
    height: 100dvh;

    margin: 0;
    padding: 0;

    background: #ffffff;
    color: #15171c;

    box-shadow: -12px 0 35px rgba(0, 0, 0, .14);

    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: 24px 25px 28px;
}

/* ==========================================
   DRAWER LOGO AND CLOSE
========================================== */

.eco-mobile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
    margin-bottom: 30px;
}

.eco-drawer-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.eco-drawer-logo-image {
    display: block;

    width: auto;
    max-width: 180px;
    max-height: 50px;
    height: auto;

    object-fit: contain;
}

.eco-mobile-panel .eco-mobile-close,
.eco-mobile-panel .eco-mobile-close:focus {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    margin: 0;
    padding: 0;

    color: #ffffff !important;
    background: var(--eco-orange) !important;

    border: 0 !important;
    border-radius: 6px;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}

.eco-mobile-panel .eco-mobile-close:hover {
    background: var(--eco-orange-hover) !important;
    transform: rotate(90deg);
}

/* ==========================================
   DRAWER SEARCH
========================================== */

.eco-mobile-search {
    display: flex;

    width: 100%;
    min-height: 44px;

    margin: 0 0 22px;
    padding: 0;
}

.eco-mobile-panel .eco-mobile-search input,
.eco-mobile-panel .eco-mobile-search input:focus {
    flex: 1;
    min-width: 0;

    padding: 0 13px;

    color: #15171c !important;
    background: #f7f7f8 !important;

    border: 1px solid #e8e9ed !important;
    border-right: 0 !important;
    border-radius: 6px 0 0 6px !important;

    box-shadow: none !important;
    outline: none !important;

    font-size: 12px;
}

.eco-mobile-search input::placeholder {
    color: #9297a0;
}

.eco-mobile-panel .eco-mobile-search button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 46px;
    padding: 0 12px;

    background: var(--eco-orange) !important;
    border: 0 !important;
    border-radius: 0 6px 6px 0;

    color: #ffffff !important;
    font-size: 12px;

    cursor: pointer;
}

.eco-mobile-panel .eco-mobile-search button:hover {
    background: var(--eco-orange-hover) !important;
}

/* ==========================================
   DRAWER MENU
========================================== */

.eco-mobile-nav-list,
.eco-mobile-nav-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eco-mobile-nav-list li {
    position: relative;

    margin: 0;
    padding: 0;

    list-style: none;

    border-bottom: 1px solid #eeeeef;
}

.eco-mobile-nav-list > li > a {
    display: block;

    padding: 15px 40px 15px 0;

    color: #20232a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;

    transition:
        color .25s ease,
        padding-left .25s ease;
}

.eco-mobile-nav-list > li > a:hover,
.eco-mobile-nav-list .current-menu-item > a,
.eco-mobile-nav-list .current-menu-ancestor > a {
    color: var(--eco-orange);
    padding-left: 5px;
}

/* ==========================================
   MOBILE SUBMENU BUTTON
========================================== */

.eco-mobile-nav .eco-submenu-toggle {
    position: absolute;

    top: 7px;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 35px;
    height: 35px;

    margin: 0;
    padding: 0;

    color: #353942;
    background: transparent !important;

    border: 0 !important;
    box-shadow: none !important;

    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);
}

/* Submenu hidden by default */

.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: #646a75;
    font-size: 13px;
    font-weight: 600;
    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);
    }
}

/* ==========================================
   DRAWER BOTTOM
========================================== */

.eco-drawer-bottom {
    margin-top: auto;
    padding-top: 35px;

    color: #858b95;
    font-size: 12px;
    line-height: 1.7;
}

body.eco-menu-open {
    overflow: hidden;
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.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 - SMALL DESKTOP
========================================== */

@media (max-width: 1199px) {

    .eco-header-container {
        gap: 18px;
    }

    .eco-nav-list {
        gap: 17px;
    }

    .eco-nav-list > li > a {
        font-size: 11px;
    }

    .eco-header-search {
        width: 175px;
    }

    .eco-logo-image,
    .eco-site-header .custom-logo {
        max-width: 165px;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {

    .eco-desktop-nav {
        display: none;
    }

    .eco-header-container {
        min-height: 68px;
    }

    .eco-header-search {
        width: 210px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

    .eco-header-container {
        width: calc(100% - 30px);
        min-height: 64px;
        gap: 12px;
    }

    .eco-header-search {
        display: none;
    }

    .eco-logo-image,
    .eco-site-header .custom-logo {
        max-width: 170px;
        max-height: 42px;
    }

    .eco-logo-text {
        font-size: 21px;
    }

    .eco-site-header .eco-menu-toggle {
        width: 39px;
        height: 39px;
    }

    .eco-mobile-panel {
        width: min(340px, 90vw);
    }

    .eco-mobile-panel-inner {
        padding: 20px 19px 25px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 380px) {

    .eco-logo-image,
    .eco-site-header .custom-logo {
        max-width: 145px;
    }

    .eco-drawer-logo-image {
        max-width: 150px;
    }

    .eco-header-container {
        width: calc(100% - 24px);
    }
}

/* ==========================================
   WORDPRESS ADMIN BAR
========================================== */

@media (max-width: 782px) {

    body.admin-bar .eco-site-header {
        top: 46px;
    }
}

@media (max-width: 600px) {

    body.admin-bar .eco-site-header {
        top: 0;
    }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .eco-site-header *,
    .eco-mobile-panel,
    .eco-mobile-overlay {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

.eco-site-header,
.eco-site-header button,
.eco-site-header input,
.eco-mobile-panel,
.eco-site-footer {
    font-family: 'Outfit', Arial, sans-serif;
}
