/* SMV header: menu alignment, spacing, hover/active state, language switcher */

/* The tagline is empty: remove the blank line that pushes the logo up */
#top-description {
    display: none !important;
}

@media (min-width: 992px) {
    .navbar > .container {
        align-items: center;
    }

    /* Theme pushes the menu 24px down and the logo up: centre them on one line */
    #navbarNavDropdown {
        margin-top: 0 !important;
    }

    img.custom-logo {
        margin-bottom: 0 !important;
    }

    .navbar-nav {
        align-items: center;
        gap: .25rem;
    }

    .navbar-nav > .nav-item > .nav-link {
        position: relative;
        padding: .5rem .85rem !important;
        font-weight: 500;
        letter-spacing: .01em;
    }

    /* Underline on hover and for the current page */
    .navbar-nav > .nav-item:not(.pll-parent-menu-item) > .nav-link::after {
        content: "";
        position: absolute;
        left: .85rem;
        right: .85rem;
        bottom: .2rem;
        height: 2px;
        border-radius: 2px;
        background: var(--bs-primary);
        transform: scaleX(0);
        transition: transform .2s ease;
    }

    .navbar-nav > .nav-item:not(.pll-parent-menu-item) > .nav-link:hover::after,
    .navbar-nav > .nav-item:not(.pll-parent-menu-item) > .nav-link.active::after {
        transform: scaleX(1);
    }

    /* Language switcher: separated from the page links */
    .navbar-nav > .pll-parent-menu-item {
        margin-left: .75rem;
        padding-left: .75rem;
        border-left: 1px solid rgba(255, 255, 255, .25);
    }

    .navbar-nav > .pll-parent-menu-item > .nav-link {
        font-weight: 400;
        font-size: .95em;
        opacity: .9;
    }
}

/* Tablet and mobile: header spans the full width with a small edge gap
   (instead of Bootstrap's fixed 540/720/960px boxes) */
@media (max-width: 991.98px) {
    nav.navbar > .container {
        max-width: none;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    nav.navbar > .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}
