
/* =========================================
   HEADER
========================================= */

.bdh-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(244,249,252,.77);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid #d3dfe866;
}

.admin-bar .bdh-header {
    top: 32px;
}

.bdh-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 65px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.brand strong {
    font: 700 20px var(--bdh-heading-font);
}

.brand small {
    display: block;
    font-size: 11px;
    color: #61758a;
}

.logo {
    display: grid;
    place-items: center;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
}

.bdh-header-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}


/* =========================================
   DESKTOP NAVIGATION
========================================= */

.navlinks,
.navlinks ul,
.navtools {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navlinks a {
    font-size: 13px;
    color: #536b82;
}

.navtools {
    gap: 8px;
}

.lang {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 3px;
    display: flex;
    gap: 3px;
    font-size: 11px;
}

.lang a {
    padding: 4px 8px;
    border-radius: 20px;
}

.lang .active {
    background: var(--blue);
    color: #fff;
}

.mobile-nav {
    display: none;
}


/* =========================================
   MOBILE NAVIGATION
========================================= */

@media (max-width: 850px) {

    .admin-bar .bdh-header {
        top: 46px;
    }

    /* Header alignment */
    .bdh-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .mobile-nav {
        display: block;
        order: 3;
        margin-left: 0;
        flex: 0 0 auto;
        padding: 8px 10px;
        line-height: 1;
    }

    .navtools {
        order: 2;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .navtools .btn {
        display: none;
    }

    /* Full-width dropdown menu */
    .bdh-header .navlinks {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;

        padding: 20px 7.3vw;
        margin: 0;

        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;

        text-align: left;
        z-index: 1001;

        max-height: calc(100dvh - 65px);
        overflow-y: auto;
        box-shadow: 0 8px 20px rgba(0,0,0,.05);
    }

    /* Open menu */
    .bdh-header .navlinks.open {
        display: flex;
        align-items: stretch;
    }

    /* WordPress menu list */
    .bdh-header .navlinks ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;

        list-style: none;
        text-align: left;
    }

    .bdh-header .navlinks li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    /* Menu links left aligned */
    .bdh-header .navlinks a {
        display: block;
        width: 100%;
        box-sizing: border-box;

        padding: 14px 0;
        font-size: 16px;
        line-height: 1.5;

        color: #536b82;
        text-align: left !important;
        text-decoration: none;
    }

}
