/* ==========================================================================
   DESIWED NAV HOTFIX — fix header nav rendering across all pages
   ==========================================================================
   Issues this fixes:
     - Nav menu hidden at 1100px viewport (now hidden only <768px)
     - Mobile hamburger menu added
     - Nav alignment / spacing on non-homepage templates
   ========================================================================== */

/* === Header layout (overrides earlier breakpoints) === */
.desiwed-rebrand .dw-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 18px 40px;
}

/* === Force the nav to show on desktop === */
.desiwed-rebrand .dw-header__nav {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.desiwed-rebrand .dw-header__nav .dw-nav,
.desiwed-rebrand .dw-header__nav ul {
    display: flex !important;
    gap: 28px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
}

.desiwed-rebrand .dw-header__nav li {
    list-style: none !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.desiwed-rebrand .dw-header__nav a {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    color: #1a1814 !important;
    text-decoration: none !important;
    letter-spacing: 0.04em !important;
    font-weight: 400 !important;
    padding: 8px 0 !important;
    text-transform: none !important;
    transition: color 0.15s ease;
    display: inline-block;
    line-height: 1;
}
.desiwed-rebrand .dw-header__nav a:hover {
    color: #6b2c2c !important;
}

/* Submenu indicator (▾) for menu items with children */
.desiwed-rebrand .dw-header__nav .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 9px;
    opacity: 0.6;
    margin-left: 4px;
}

/* Submenu (dropdown) */
.desiwed-rebrand .dw-header__nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff !important;
    border: 1px solid #dcd6cb;
    box-shadow: 0 8px 32px rgba(26,24,20,0.06);
    min-width: 240px;
    padding: 8px 0 !important;
    margin: 0 !important;
    z-index: 100;
    list-style: none !important;
}
.desiwed-rebrand .dw-header__nav li:hover > .sub-menu {
    display: block;
}
.desiwed-rebrand .dw-header__nav .sub-menu li {
    list-style: none !important;
    width: 100%;
}
.desiwed-rebrand .dw-header__nav .sub-menu a {
    display: block !important;
    padding: 10px 20px !important;
    white-space: nowrap;
    font-size: 13px !important;
}
.desiwed-rebrand .dw-header__nav .sub-menu a:hover {
    background: #f7f4f0 !important;
}

/* Mobile hamburger — hidden on desktop */
.desiwed-rebrand .dw-header__hamburger {
    display: none;
    background: transparent;
    border: 0;
    color: #1a1814;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
}

/* === Responsive breakpoints (override earlier 1100px rule) === */

/* On tablets (768-1100), keep nav visible but compress spacing */
@media (max-width: 1100px) {
    .desiwed-rebrand .dw-header__inner {
        gap: 16px;
        padding: 14px 24px;
    }
    .desiwed-rebrand .dw-header__nav .dw-nav,
    .desiwed-rebrand .dw-header__nav ul {
        gap: 18px;
    }
    .desiwed-rebrand .dw-header__nav a {
        font-size: 12px !important;
    }
    /* Force the nav to be visible (override earlier display:none rule) */
    .desiwed-rebrand .dw-header__nav {
        display: flex !important;
    }
    /* Hide signin text on tablet to make room */
    .desiwed-rebrand .dw-header__signin {
        display: none;
    }
}

/* On mobile (<768px), hide nav, show hamburger */
@media (max-width: 768px) {
    .desiwed-rebrand .dw-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding: 14px 20px;
    }
    .desiwed-rebrand .dw-header__nav {
        display: none !important;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #dcd6cb;
        padding: 20px;
        z-index: 99;
        box-shadow: 0 8px 32px rgba(26,24,20,0.08);
    }
    .desiwed-rebrand .dw-header__nav ul {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
    }
    .desiwed-rebrand .dw-header__nav a {
        font-size: 14px !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #f1ece4;
        display: block;
    }
    .desiwed-rebrand .dw-header__nav .sub-menu {
        position: static;
        box-shadow: none;
        border: 0;
        background: #f7f4f0 !important;
        padding-left: 16px !important;
        margin-top: 4px !important;
    }
    /* When hamburger toggles, show the menu */
    body.dw-mobile-menu-open .desiwed-rebrand .dw-header__nav,
    .desiwed-rebrand body.dw-mobile-menu-open .dw-header__nav {
        display: block !important;
    }
    .dw-mobile-menu-open .dw-header__nav {
        display: block !important;
    }
    .desiwed-rebrand .dw-header__hamburger {
        display: inline-flex;
    }
    .desiwed-rebrand .dw-header__cta {
        font-size: 9px !important;
        padding: 8px 12px !important;
        letter-spacing: 0.1em !important;
    }
    .desiwed-rebrand .dw-header__signin {
        display: none;
    }
}

/* When mobile menu is open, force-display nav */
body.dw-mobile-menu-open .dw-header__nav {
    display: block !important;
}

/* Hide Listeo's parent header more aggressively in case it's still rendering somewhere */
.desiwed-rebrand body > #header-container,
.desiwed-rebrand body > header.fullwidth:not(.dw-header),
.desiwed-rebrand #wrapper > #header,
.desiwed-rebrand #wrapper > #header-container,
.desiwed-rebrand .listeo-header:not(.dw-header) {
    display: none !important;
}

/* End */
