:root {
    --global-nav-ink: #19120e;
    --global-nav-muted: #5d514b;
    --global-nav-line: #eadfd8;
    --global-nav-accent: #d95408;
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: 76px;
    padding: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--global-nav-line);
    backdrop-filter: blur(16px);
    box-shadow: none;
}

.navbar .container,
.navbar .nav-inner {
    position: relative;
    display: flex;
    width: min(1240px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.navbar .logo,
.navbar .brand {
    flex: 0 0 auto;
    margin: 0;
}

.navbar .logo-brand,
.navbar .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo-mark,
.navbar .brand-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: none;
}

.navbar .logo-copy,
.navbar .brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.2;
}

.navbar .logo-name,
.navbar .brand-copy strong {
    color: var(--global-nav-ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.navbar .logo-sub,
.navbar .brand-copy span {
    display: none;
}

.navbar .nav-menu {
    position: static;
    display: flex;
    min-width: 0;
    height: auto;
    margin: 0 0 0 auto;
    padding: 0;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 2px;
    background: transparent;
    list-style: none;
    box-shadow: none;
}

.navbar .nav-menu a {
    position: relative;
    display: block;
    padding: 10px 11px;
    color: var(--global-nav-muted);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: none;
}

.navbar .nav-menu a::after {
    position: absolute;
    right: 11px;
    bottom: 3px;
    left: 11px;
    height: 2px;
    background: var(--global-nav-accent);
    content: '';
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.navbar .nav-menu a:hover,
.navbar .nav-menu a.active {
    color: var(--global-nav-accent);
    background: transparent;
    border: 0;
}

.navbar .nav-menu a:hover::after,
.navbar .nav-menu a.active::after {
    transform: scaleX(1);
}

.navbar .nav-cta {
    display: inline-flex;
    min-height: 42px;
    padding: 0 17px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    color: #fff;
    background: var(--global-nav-ink);
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.navbar .nav-cta:hover {
    color: #fff;
    background: var(--global-nav-accent);
    transform: none;
}

.navbar .nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--global-nav-ink);
    background: #fff;
    border: 1px solid var(--global-nav-line);
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}

.system-nav-label {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 58px;
    padding-right: 22px;
    align-items: center;
    color: var(--global-nav-ink);
    border-right: 1px solid var(--global-nav-line);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 1120px) {
    .navbar .nav-menu a { padding-right: 8px; padding-left: 8px; font-size: 13px; }
    .navbar .nav-menu a::after { right: 8px; left: 8px; }
    .navbar .nav-cta { padding: 0 13px; }
}

@media (max-width: 920px) {
    .navbar .container,
    .navbar .nav-inner { width: min(100% - 32px, 1240px); }
    .navbar .nav-menu {
        position: absolute;
        top: 76px;
        right: -16px;
        left: -16px;
        display: none;
        height: auto;
        padding: 14px 16px 18px;
        align-items: stretch;
        flex-direction: column;
        gap: 2px;
        background: #fff;
        border-bottom: 1px solid var(--global-nav-line);
        box-shadow: 0 16px 34px rgba(38, 25, 17, .1);
    }
    .navbar .nav-menu.active { display: flex; left: -16px; }
    .navbar .nav-menu a { padding: 12px 10px; }
    .navbar .nav-menu a::after { right: auto; bottom: 6px; left: 10px; width: 36px; }
    .navbar .nav-cta { display: none; }
    .navbar .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
    .navbar .logo-name,
    .navbar .brand-copy strong { font-size: 15px; }
    .system-nav-label { min-height: 52px; padding-right: 16px; }
}
