/* Zamangwane Master Navigation Elite v1.0.1 */
.zmne-header {
    position: sticky;
    top: 0;
    z-index: 999999;
    width: 100%;
    background: #fffaf2;
    border-bottom: 3px solid #c99a43;
    box-shadow: 0 5px 18px rgba(64, 28, 30, .10);
    font-family: inherit;
    box-sizing: border-box;
}
body.admin-bar .zmne-header.zmne-sticky { top: 32px; }
.zmne-header * { box-sizing: border-box; }
.zmne-inner {
    max-width: 1440px;
    min-height: 94px;
    margin: 0 auto;
    padding: 10px 3.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}
.zmne-brand { display: flex; align-items: center; gap: 14px; flex: 0 1 auto; min-width: 190px; }
.zmne-logo-link { display: flex; align-items: center; line-height: 0; }
.zmne-logo-image, .zmne-brand img.custom-logo {
    display: block; max-width: 160px; max-height: 70px;
    width: auto; height: auto; object-fit: contain;
}
.zmne-text-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #642332; }
.zmne-mark {
    width: 48px; height: 48px; display: grid; place-items: center;
    border: 2px solid #c99a43; border-radius: 50%;
    color: #642332; font: bold 27px Georgia, serif;
    box-shadow: inset 0 0 0 3px #fffaf2, inset 0 0 0 4px #c99a43;
}
.zmne-wordmark { font-size: 14px; line-height: 1.05; font-weight: 900; letter-spacing: 1px; }
.zmne-wordmark small { display: block; margin-top: 5px; font-size: 9px; letter-spacing: 2.8px; }
.zmne-tagline {
    border-left: 1px solid #d9c8b5; padding-left: 13px;
    color: #80636a; font-size: 10px; line-height: 1.4;
}
.zmne-navigation { margin-left: auto; }
.zmne-menu {
    display: flex; align-items: center; justify-content: flex-end;
    gap: clamp(6px, 1.1vw, 18px); list-style: none; margin: 0; padding: 0;
}
.zmne-menu li { position: relative; list-style: none; margin: 0; padding: 0; }
.zmne-menu > li > a {
    display: block; padding: 12px 13px; border-radius: 22px;
    color: #54202a; text-decoration: none; font-size: 13px;
    font-weight: 800; white-space: nowrap; transition: background .2s, color .2s;
}
.zmne-menu > li > a:hover,
.zmne-menu > .current-menu-item > a,
.zmne-menu > .current_page_item > a { background: #f0e4d1; color: #9a492e; }
.zmne-menu .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 100000;
    min-width: 205px; margin: 0; padding: 7px 0;
    background: #fffaf2; border-top: 3px solid #c99a43;
    border-radius: 0 0 8px 8px; box-shadow: 0 12px 25px rgba(0,0,0,.14);
}
.zmne-menu li:hover > .sub-menu, .zmne-menu li:focus-within > .sub-menu { display: block; }
.zmne-menu .sub-menu a {
    display: block; padding: 10px 16px; color: #54202a;
    text-decoration: none; font-size: 12px; font-weight: 700;
}
.zmne-menu .sub-menu a:hover { background: #f0e4d1; color: #9a492e; }

/* Clean mobile header: compact logo row + simple three-line menu button. */
.zmne-toggle {
    display: none; width: 42px; height: 42px; padding: 0;
    border: 1px solid #d8c4aa; border-radius: 9px;
    background: #fffaf2; cursor: pointer;
    align-items: center; justify-content: center; flex-direction: column; gap: 5px;
    box-shadow: none;
}
.zmne-toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: #642332; }
@media (max-width: 1050px) {
    .zmne-inner { gap: 12px; padding-left: 2%; padding-right: 2%; }
    .zmne-tagline { display: none; }
    .zmne-menu { gap: 3px; }
    .zmne-menu > li > a { padding: 11px 9px; font-size: 12px; }
}
@media (max-width: 600px) {
    body.admin-bar .zmne-header.zmne-sticky { top: 46px; }
    .zmne-inner {
        min-height: 72px; padding: 8px 16px;
        flex-wrap: wrap; gap: 10px;
    }
    .zmne-brand { min-width: 0; margin-right: auto; gap: 0; }
    .zmne-logo-image, .zmne-brand img.custom-logo { max-height: 52px; max-width: 128px; }
    .zmne-mark { width: 40px; height: 40px; font-size: 22px; }
    .zmne-wordmark { font-size: 12px; }
    .zmne-wordmark small { font-size: 8px; letter-spacing: 2.2px; }
    .zmne-tagline { display: none !important; }
    .zmne-toggle { display: flex; flex: 0 0 42px; }
    .zmne-navigation {
        display: none; order: 3; flex: 0 0 calc(100% + 32px);
        width: calc(100% + 32px); margin: 0 -16px -8px;
        padding: 8px 16px 13px; background: #fffaf2;
        border-top: 1px solid #eadcc8;
    }
    .zmne-header.zmne-open .zmne-navigation { display: block; }
    .zmne-menu {
        display: flex; flex-direction: column; align-items: stretch;
        gap: 3px; padding: 0; margin: 0;
    }
    .zmne-menu li { width: 100%; }
    .zmne-menu > li > a {
        display: block; padding: 12px 14px; border-radius: 7px;
        background: #f7efe4; color: #642332;
        font-size: 14px; line-height: 1.25; white-space: normal;
    }
    .zmne-menu > li > a:hover,
    .zmne-menu > .current-menu-item > a,
    .zmne-menu > .current_page_item > a { background: #642332; color: #fffaf2; }
    .zmne-menu .sub-menu {
        display: block; position: static; min-width: 0;
        padding: 3px 0 3px 12px; border: 0; border-radius: 0;
        box-shadow: none; background: transparent;
    }
    .zmne-menu .sub-menu a {
        padding: 10px 13px; border-left: 2px solid #c99a43;
        font-size: 13px; background: transparent;
    }
}
/* Hide the superseded Zamangwane Single Menu Bar if its old plugin remains active. */
body .zsm-header { display: none !important; }


/* v1.0.2: standard three-line mobile hamburger, without theme button styling. */
@media (max-width: 600px) {
    .zmne-header .zmne-toggle,
    .zmne-header .zmne-toggle:hover,
    .zmne-header .zmne-toggle:focus,
    .zmne-header .zmne-toggle:active {
        -webkit-appearance: none !important;
        appearance: none !important;
        display: flex !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 6px !important;
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        outline: none !important;
        box-shadow: none !important;
        color: #555 !important;
        text-shadow: none !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }
    .zmne-header .zmne-toggle span,
    .zmne-header .zmne-toggle:hover span,
    .zmne-header .zmne-toggle:focus span {
        display: block !important;
        position: static !important;
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        height: 3px !important;
        min-height: 3px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #555 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* v1.0.3: show the hamburger only on phone-sized screens. Tablet and desktop use the full inline menu. */
@media (min-width: 601px) {
    .zmne-header .zmne-toggle,
    .zmne-header .zmne-toggle:hover,
    .zmne-header .zmne-toggle:focus,
    .zmne-header .zmne-toggle:active {
        display: none !important;
    }
    .zmne-header .zmne-navigation {
        display: block !important;
    }
}
