/* Barista Hire navbar theme */
:root {
    --barista-bronze: #B77211;
    --barista-bronze-dark: #9a5f0e;
    --barista-navy: #2d2d44;
    --barista-header-main-h: 72px;
}

.header.barista-navbar,
.header.barista-navbar .n-header,
.header.barista-navbar .n-header--top,
.header.barista-navbar .n-header--bottom {
    background: #fff !important;
}

.header.barista-navbar {
    border-top: 3px solid var(--barista-navy);
    box-shadow: 0 1px 0 #ececec !important;
    position: relative;
    z-index: 1100 !important;
    overflow: visible !important;
}

.header.barista-navbar.rt-fixed-top {
    z-index: 1100 !important;
    overflow: visible !important;
}

.header.barista-navbar .n-header {
    position: relative;
    overflow: visible !important;
}

.header.barista-navbar .n-header--bottom {
    background-color: #fff !important;
    box-shadow: none !important;
    border-bottom: 1px solid #ececec;
    padding: 0 !important;
}

.header.barista-navbar .n-header--top {
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 6px 0 !important;
}

.header.barista-navbar .main-menu .mbl-top {
    background-color: #fff !important;
    border-bottom: 1px solid #ececec !important;
}

.header.barista-navbar .brand-logo {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 5;
}

.header.barista-navbar .brand-logo img {
    max-width: 200px;
    width: auto;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    display: block;
}

.header.barista-navbar .main-menu .menu-active-classes > li > a,
.header.barista-navbar .main-menu .menu-active-classes > li:hover > a,
.header.barista-navbar .main-menu .menu-active-classes li a.active,
.header.barista-navbar .n-header--bottom__right a:not(.btn),
.header.barista-navbar .n-header--top__right .dropdown .btn,
.header.barista-navbar .n-header--top__right .contact-info a,
.header.barista-navbar .barista-nav-link {
    color: var(--barista-bronze) !important;
    border-top: none !important;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Header notification / message icons (SVG uses currentColor) */
.header.barista-navbar .n-header--bottom__right .notification-icon,
.header.barista-navbar .n-header--bottom__right .notification-icon svg,
.header.barista-navbar .n-header--bottom__right .list-unstyled > li > a:not(.btn):not(.candidate-profile) {
    color: var(--barista-bronze) !important;
}

.header.barista-navbar .n-header--bottom__right .notification-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

.header.barista-navbar .n-header--bottom__right .notification-icon > svg {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.header.barista-navbar .main-menu .menu-active-classes > li:hover > a,
.header.barista-navbar .main-menu .menu-active-classes li a.active,
.header.barista-navbar .barista-nav-link:hover {
    color: var(--barista-bronze-dark) !important;
}

.header.barista-navbar .n-header--bottom__right .btn,
.header.barista-navbar .n-header--top .btn-primary,
.header.barista-navbar .main-menu .btn-primary,
.header.barista-navbar .n-header--bottom__right .btn-outline-light,
.header.barista-navbar .n-header--bottom__right .btn-light {
    background: transparent !important;
    border: none !important;
    color: var(--barista-bronze) !important;
    font-weight: 500;
    box-shadow: none !important;
    padding: 8px 10px !important;
    white-space: nowrap;
}

.header.barista-navbar .n-header--top__right .dropdown .btn {
    color: var(--barista-bronze) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 8px !important;
}

.header.barista-navbar .n-header--top__right .contact-info a {
    color: var(--barista-bronze) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.header.barista-navbar .search-icon svg path,
.header.barista-navbar .mbl-top .search-icon svg path {
    stroke: var(--barista-bronze) !important;
}

.header.barista-navbar .menu-click .effect1 span,
.header.barista-navbar .menu-icon span {
    background: var(--barista-bronze) !important;
}

.header.barista-navbar .barista-auth-links {
    position: relative;
    z-index: 5;
}

/* Profile avatar dropdown — escape header clipping / sticky page overlays */
.header.barista-navbar .barista-profile-dropdown {
    position: relative;
    z-index: 1110;
    list-style: none;
    flex-shrink: 0;
}

.header.barista-navbar .barista-profile-dropdown > .candidate-profile {
    overflow: visible !important;
    cursor: pointer;
    line-height: 0;
}

.header.barista-navbar .barista-profile-dropdown > .candidate-profile img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}

.header.barista-navbar .barista-profile-dropdown .dropdown-menu {
    z-index: 12050 !important;
    min-width: 220px;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin: 0 !important;
    transform: none !important;
}

.header.barista-navbar .barista-profile-dropdown .dropdown-menu.show {
    display: block !important;
}

.header.barista-navbar .n-header,
.header.barista-navbar .n-header--bottom,
.header.barista-navbar .n-header--bottom > .container,
.header.barista-navbar .n-header--bottom > .container > .d-flex,
.header.barista-navbar .n-header--bottom__right,
.header.barista-navbar .n-header--bottom__right .d-flex,
.header.barista-navbar .n-header--bottom__right .list-unstyled {
    overflow: visible !important;
}

@media (min-width: 992px) {
    /* Hide phone / language / USD / country utility bar */
    .header.barista-navbar .n-header--top__right {
        display: none !important;
    }

    /* Collapse top strip — nav is relocated into the main bar */
    .header.barista-navbar .n-header--top {
        position: absolute !important;
        left: 0;
        right: 0;
        top: auto !important;
        bottom: 0 !important;
        z-index: 3;
        height: var(--barista-header-main-h) !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        pointer-events: none;
    }

    .header.barista-navbar .n-header--top > .container {
        max-width: 1320px;
        height: 100%;
        padding-left: 16px !important;
        padding-right: 16px !important;
        pointer-events: none;
    }

    .header.barista-navbar .n-header--top > .container > .d-flex {
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        height: 100%;
        min-height: 0;
        gap: 0;
        pointer-events: none;
    }

    .header.barista-navbar .mobile-menu,
    .header.barista-navbar .n-header--top .mbl-top {
        display: none !important;
    }

    /* Centered nav: Home, Find Job, … */
    .header.barista-navbar .n-header--top__left.main-menu {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        height: 100% !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 3;
        pointer-events: auto;
        background: transparent !important;
        border: 0 !important;
        overflow: visible !important;
    }

    .header.barista-navbar .n-header--top__left.main-menu > .container {
        padding: 0 !important;
        width: auto;
        max-width: none;
        margin: 0;
        pointer-events: auto;
    }

    .header.barista-navbar .n-header--top__left.main-menu .mbl-bottom,
    .header.barista-navbar .n-header--top__left.main-menu .tw-mb-post-job {
        display: none !important;
    }

    .header.barista-navbar .main-menu .menu-active-classes {
        display: flex !important;
        gap: 22px !important;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header.barista-navbar .main-menu .menu-active-classes > li > a {
        padding: 0 !important;
        white-space: nowrap;
        font-size: 14px;
        line-height: 1.2;
    }

    /* Main bar: logo left + Sign In / Post Job right
       Do not set z-index on the whole bottom bar — that traps the
       profile dropdown under the overlaid centered nav (z-index 3). */
    .header.barista-navbar .n-header--bottom {
        position: relative;
        z-index: auto;
    }

    .header.barista-navbar .n-header--bottom > .container {
        max-width: 1320px;
    }

    .header.barista-navbar .n-header--bottom > .container > .d-flex {
        min-height: var(--barista-header-main-h);
        height: auto;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap !important;
        gap: 16px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow: visible !important;
    }

    .header.barista-navbar .n-header--bottom__left {
        flex: 0 0 auto !important;
        gap: 0 !important;
        max-width: 220px;
        position: relative;
        z-index: 5;
    }

    .header.barista-navbar .n-header--bottom__right {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        position: relative;
        z-index: 20;
        min-width: 160px;
        overflow: visible !important;
        pointer-events: auto !important;
    }

    .header.barista-navbar .barista-profile-dropdown {
        position: relative;
        z-index: 21;
        pointer-events: auto !important;
    }

    .header.barista-navbar .n-header--bottom__right .d-flex {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    .header.barista-navbar .n-header--bottom #search-form,
    .header.barista-navbar .n-header--bottom .search-icon,
    .header.barista-navbar .n-header--bottom .togglesearch {
        display: none !important;
    }

    .header.barista-navbar .n-header--bottom__right .list-unstyled,
    .header.barista-navbar .barista-auth-links {
        gap: 16px !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .header.barista-navbar .main-menu .menu-active-classes {
        gap: 14px !important;
    }

    .header.barista-navbar .main-menu .menu-active-classes > li > a {
        font-size: 13px;
    }

    .header.barista-navbar .brand-logo img {
        max-width: 160px;
        max-height: 48px;
    }
}

@media (max-width: 991px) {
    /* Collapse utility strip — bottom bar is the visible header */
    .header.barista-navbar .n-header--top {
        position: static !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        pointer-events: none;
    }

    .header.barista-navbar .n-header--top > .container {
        height: 0;
        padding: 0 !important;
        max-width: none;
    }

    .header.barista-navbar .n-header--top > .container > .d-flex {
        position: relative;
        height: 0;
        min-height: 0;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 0;
    }

    .header.barista-navbar .n-header--top__right {
        display: none !important;
    }

    /* Theme drawer: off-canvas until .active-mobile-menu */
    .header.barista-navbar .n-header--top__left.main-menu {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: -120% !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 16px 0 40px !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
        z-index: 1050 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
        transition: top 0.25s ease !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .header.barista-navbar .n-header--top__left.main-menu.active-mobile-menu {
        top: 0 !important;
    }

    .header.barista-navbar .n-header--top__left.main-menu > .container {
        display: block !important;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 16px !important;
    }

    /* Drawer header row (logo + close-side actions) */
    .header.barista-navbar .n-header--top .mbl-top {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: none;
        margin: 0 0 12px;
        padding: 4px 0 12px !important;
        border-bottom: 1px solid #ececec !important;
        background: #fff !important;
    }

    .header.barista-navbar .n-header--top .mbl-top .search-icon,
    .header.barista-navbar .n-header--top .mbl-top .mblTogglesearch {
        display: none !important;
    }

    /* Hamburger sits on the main mobile bar */
    .header.barista-navbar .mobile-menu {
        display: flex !important;
        align-items: center;
        position: absolute;
        right: 12px;
        top: 20px;
        z-index: 1060;
        pointer-events: auto;
    }

    .header.barista-navbar .n-header--bottom {
        position: relative;
        z-index: 40;
        padding: 10px 0 !important;
        border-bottom: 1px solid #ececec;
    }

    .header.barista-navbar .n-header--bottom > .container {
        padding-left: 12px !important;
        padding-right: 52px !important;
    }

    .header.barista-navbar .n-header--bottom > .container > .d-flex {
        height: auto;
        min-height: 52px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap !important;
        gap: 8px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .header.barista-navbar .n-header--bottom__left {
        max-width: 150px;
        flex: 0 1 auto !important;
    }

    .header.barista-navbar .n-header--bottom__right {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        min-width: 0;
        padding-right: 4px;
    }

    .header.barista-navbar .n-header--bottom #search-form,
    .header.barista-navbar .n-header--bottom .search-icon,
    .header.barista-navbar .n-header--bottom .togglesearch {
        display: none !important;
    }

    .header.barista-navbar .n-header--bottom__right .list-unstyled,
    .header.barista-navbar .barista-auth-links {
        gap: 6px !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
    }

    .header.barista-navbar .n-header--bottom__right .btn,
    .header.barista-navbar .barista-auth-links a {
        font-size: 13px !important;
        padding: 6px 8px !important;
    }

    .header.barista-navbar .main-menu .menu-active-classes {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header.barista-navbar .main-menu .menu-active-classes > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .header.barista-navbar .main-menu .menu-active-classes > li:last-child {
        border-bottom: 0;
    }

    .header.barista-navbar .main-menu .menu-active-classes > li > a {
        display: block !important;
        padding: 14px 2px !important;
        font-size: 15px !important;
        white-space: normal;
        line-height: 1.35;
    }

    .header.barista-navbar .main-menu .mbl-bottom,
    .header.barista-navbar .main-menu .tw-mb-post-job {
        display: none !important;
    }

    .header.barista-navbar .brand-logo img {
        max-width: 140px;
        max-height: 44px;
    }

    .header.barista-navbar .menu-click {
        padding-inline-end: 0 !important;
    }

    .header.barista-navbar .menu-click .effect1 {
        width: 28px;
        height: 22px;
    }

    .header.barista-navbar .rt-mobile-menu-overlay.active {
        z-index: 1040;
    }
}

@media (max-width: 575.98px) {
    .header.barista-navbar .n-header--bottom > .container {
        padding-right: 48px !important;
    }

    .header.barista-navbar .n-header--bottom__left {
        max-width: 120px;
    }

    .header.barista-navbar .brand-logo img {
        max-width: 118px;
        max-height: 40px;
    }

    .header.barista-navbar .n-header--bottom__right .btn,
    .header.barista-navbar .barista-auth-links a {
        font-size: 12px !important;
        padding: 5px 6px !important;
    }

    .header.barista-navbar .mobile-menu {
        right: 10px;
        top: 18px;
    }
}
