/* Modern two-row header — utility bar + primary navigation */

.nt-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
}

/* ── Row 1: Utility bar (dark greenish-black logo band) ── */
.nt-header-utility {
    background-color: #1a2218;
    background-image: linear-gradient(rgba(15, 22, 12, 0.92), rgba(15, 22, 12, 0.88));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: max-height 0.28s var(--nt-ease), opacity 0.22s var(--nt-ease), padding 0.28s var(--nt-ease);
    overflow: hidden;
}

/* Admin-uploaded top bar image (Site Settings → Top bar background) */
.nt-header-utility--has-bg {
    background-image:
        linear-gradient(rgba(15, 22, 12, 0.78), rgba(15, 22, 12, 0.82)),
        var(--nt-header-utility-bg);
}

.nt-site-header.is-scrolled .nt-header-utility {
    max-height: 0;
    opacity: 0;
    border-bottom-width: 0;
}

.nt-header-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 20px 24px;
    min-height: var(--nt-header-utility-h);
}

.nt-header-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    line-height: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.nt-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.nt-header-brand-logo {
    display: block;
    height: auto;
    max-height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.nt-header-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.nt-header-brand-name {
    font-family: var(--nt-font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.nt-header-brand-url {
    font-family: var(--nt-font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    color: #aebb89;
    letter-spacing: 0.02em;
}

.nt-header-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 1.25rem;
}

.nt-header-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.2s var(--nt-ease);
}

.nt-header-contact-item i {
    color: var(--nt-brand-bar, #8db53f);
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.nt-header-contact-item:hover {
    color: #c5e09a;
}

.nt-header-contact-item:focus-visible {
    outline: 2px solid var(--nt-primary, var(--nt-nuru));
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Row 2: Main navigation (live-site style: Montserrat + dividers) ── */
.nt-header-main {
    background: var(--nt-brand-bar, #8db53f);
    border-top: 1px solid rgba(40, 28, 16, 0.55);
    box-shadow: 0 4px 12px rgba(15, 31, 18, 0.12);
    transition: box-shadow 0.25s var(--nt-ease);
}

.nt-site-header.is-scrolled .nt-header-main {
    box-shadow: 0 6px 20px rgba(15, 31, 18, 0.18);
}

.nt-header-main-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    min-height: var(--nt-header-nav-h);
    position: relative;
}

.nt-header-brand--mobile {
    display: none;
}

.nt-header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--nt-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background 0.2s var(--nt-ease);
}

.nt-header-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

.nt-header-menu-toggle:focus-visible {
    outline: 2px solid var(--nt-secondary, var(--nt-green));
    outline-offset: 2px;
}

.nt-header-menu {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: auto;
    max-width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.nt-header-menu > li {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.nt-header-menu > li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22%;
    bottom: 22%;
    right: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.nt-header-menu > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.95rem 1.05rem;
    font-family: var(--nt-font-nav);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    transition: background 0.2s var(--nt-ease), color 0.2s var(--nt-ease);
}

.nt-header-item-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.nt-header-item-row > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
    padding: 0.95rem 1.05rem;
    font-family: var(--nt-font-nav);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    transition: background 0.2s var(--nt-ease), color 0.2s var(--nt-ease);
}

.nt-header-submenu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.nt-header-submenu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.nt-header-menu > li > a:hover,
.nt-header-menu > li > a:focus-visible,
.nt-header-item-row > a:hover,
.nt-header-item-row > a:focus-visible {
    color: #fff;
    background: rgba(0, 0, 0, 0.12);
}

.nt-header-menu > li.is-active > a,
.nt-header-menu > li.is-active > .nt-header-item-row > a {
    color: #fff;
    background: var(--nt-nuru, #6e8c31);
}

.nt-header-menu > li.is-active > .nt-header-item-row {
    background: var(--nt-nuru, #6e8c31);
}

.nt-header-menu > li.is-active > .nt-header-item-row > .nt-header-submenu-toggle {
    color: #fff;
}

/* Desktop: hide mobile-only chevron button; caret stays inside the link */
@media (min-width: 992px) {
    .nt-header-submenu-toggle {
        display: none !important;
    }

    .nt-header-item-row > a {
        padding-inline: 1.05rem;
    }

    .nt-header-item-row > a .nt-header-caret {
        display: inline-block;
    }
}

.nt-header-caret {
    font-size: 0.625rem;
    opacity: 0.9;
    transition: transform 0.2s var(--nt-ease);
}

.nt-header-menu > li.has-submenu:hover > .nt-header-item-row > a .nt-header-caret,
.nt-header-menu > li.has-submenu:focus-within > .nt-header-item-row > a .nt-header-caret,
.nt-header-menu > li.has-submenu.is-open > .nt-header-item-row .nt-header-caret {
    transform: rotate(180deg);
}

/* Submenus — flat panel; open on hover/focus (desktop) or .is-open (mobile JS) */
.nt-header-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 16.5rem;
    max-width: min(22rem, calc(100vw - 2rem));
    max-height: min(70vh, 28rem);
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    background: #fff;
    border: 1px solid rgba(63, 92, 32, 0.12);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(20, 40, 10, 0.14);
    z-index: 110;
}

@media (min-width: 992px) {
    .nt-header-menu > li.has-submenu:hover > .nt-header-submenu,
    .nt-header-menu > li.has-submenu:focus-within > .nt-header-submenu {
        display: block;
    }
}

.nt-header-submenu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    font-family: var(--nt-font-body, inherit);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--nt-text-dark, #2c3e50);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.35;
    white-space: normal;
    transition: background 0.15s var(--nt-ease), color 0.15s var(--nt-ease);
}

.nt-header-submenu li a:hover,
.nt-header-submenu li a:focus-visible {
    background: rgba(141, 181, 63, 0.12);
    color: var(--nt-forest, #3f5c20);
}

.nt-header-submenu-featured a {
    font-weight: 700;
    color: var(--nt-forest, #3f5c20);
}

.nt-header-submenu-featured {
    border-bottom: 1px solid rgba(63, 92, 32, 0.1);
    margin-bottom: 0.25rem;
    padding-bottom: 0.15rem;
}

.nt-header-submenu-label {
    list-style: none;
    margin: 0.45rem 0 0.1rem;
    padding: 0.45rem 1.15rem 0.2rem;
    pointer-events: none;
}

.nt-header-submenu-label span {
    display: block;
    font-family: var(--nt-font-nav);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nt-muted, #6b7c6e);
}

.nt-header-submenu-label + li a {
    padding-top: 0.45rem;
}

/* Tablet */
@media (max-width: 1199px) {
    .nt-header-menu > li > a,
    .nt-header-item-row > a {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
        padding: 0.85rem 0.7rem;
    }

    .nt-header-contact {
        gap: 0.35rem 0.85rem;
    }
}

/* Mobile */
@media (max-width: 991px) {
    .nt-header-utility {
        display: none;
    }

    .nt-header-utility-inner {
        padding: 8px 16px;
        justify-content: center;
    }

    .nt-header-brand-text,
    .nt-header-contact {
        display: none;
    }

    .nt-header-brand-logo {
        max-height: 44px;
        max-width: 130px;
    }

    .nt-header-logo-card {
        padding: 6px 10px;
    }

    .nt-header-main-inner {
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        min-height: 56px;
    }

    .nt-header-brand--mobile {
        display: inline-flex;
    }

    .nt-header-menu-toggle {
        display: inline-flex;
    }

    .nt-header-menu {
        display: none;
        position: fixed;
        inset: var(--nt-header-h) 0 0 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        margin: 0;
        padding: 0.75rem 0 1.5rem;
        width: 100%;
        max-width: none;
        background: var(--nt-brand-bar, #8db53f);
        border-top: none;
        border-bottom: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 99;
    }

    .nt-header-menu.is-open {
        display: flex;
    }

    .nt-header-menu > li:not(:last-child)::after {
        display: none;
    }

    .nt-header-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .nt-header-menu > li > a {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        padding: 0.9rem 1.25rem;
        font-family: var(--nt-font-nav);
        font-size: 0.875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        box-shadow: inset 3px 0 0 transparent;
    }

    .nt-header-menu > li.is-active > a,
    .nt-header-menu > li.is-active > .nt-header-item-row,
    .nt-header-menu > li > a:hover,
    .nt-header-menu > li > .nt-header-item-row:hover {
        background: rgba(0, 0, 0, 0.14);
    }

    .nt-header-menu > li.is-active > a,
    .nt-header-menu > li.is-active > .nt-header-item-row > a,
    .nt-header-menu > li > a:hover {
        box-shadow: inset 3px 0 0 #fff;
    }

    .nt-header-item-row {
        width: 100%;
        align-items: stretch;
        background: transparent;
    }

    .nt-header-item-row > a {
        justify-content: flex-start;
        padding: 0.9rem 0.5rem 0.9rem 1.25rem;
        font-size: 0.875rem;
        box-shadow: none;
    }

    /* Mobile uses the dedicated toggle — hide the caret inside the label link */
    .nt-header-item-row > a > .nt-header-caret {
        display: none;
    }

    .nt-header-submenu-toggle {
        display: inline-flex;
        border-left: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(0, 0, 0, 0.08);
    }

    .nt-header-submenu-toggle:hover,
    .has-submenu.is-open > .nt-header-item-row > .nt-header-submenu-toggle {
        background: rgba(0, 0, 0, 0.18);
    }

    .nt-header-submenu {
        display: none;
        position: static;
        min-width: 0;
        max-width: none;
        max-height: none;
        overflow: visible;
        margin: 0;
        padding: 0.15rem 0 0.35rem;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.14);
    }

    .nt-header-submenu.is-open {
        display: block;
    }

    .nt-header-submenu-featured {
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }

    .nt-header-submenu-featured a {
        color: #fff;
    }

    .nt-header-submenu-label {
        padding: 0.55rem 1rem 0.15rem 1.75rem;
    }

    .nt-header-submenu-label span {
        color: rgba(255, 255, 255, 0.55);
    }

    .nt-header-submenu > li > a {
        padding: 0.7rem 1rem 0.7rem 1.75rem;
        font-size: 0.8125rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: none;
        color: rgba(255, 255, 255, 0.95);
        white-space: normal;
    }

    .nt-header-submenu li a:hover,
    .nt-header-submenu li a:focus-visible {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .nt-header-caret {
        margin-left: 0;
        font-size: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nt-header-utility,
    .nt-header-main,
    .nt-header-menu > li > a,
    .nt-header-caret {
        transition: none;
    }
}
