.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    backdrop-filter: blur(16px);
    background: linear-gradient(
            to bottom,
            rgba(7, 9, 16, 0.34),
            rgba(7, 9, 16, 0.10)
    );
}

.topbar-shell {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(60px);
    gap: 18px;
}

.brand {
    justify-self: start;
}

.brand-main {
    font-family: "Bree Serif", serif;
    font-size: clamp(22px, 2vw, 30px);
    letter-spacing: .4px;
    line-height: 1;

    text-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.brand-sub {
    font-size: 11px;
    opacity: .7;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.brand-uw {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #fff;

    padding: 8px 6px;
    border-radius: 16px;

    position: relative;
    overflow: visible;

    margin: 0;
    flex: 0 0 auto;
    min-width: fit-content;

    transform: translateY(-1px);
    transition: transform .2s ease, letter-spacing .2s ease, opacity .2s ease;
}

.brand-uw:hover {
    transform: translateY(-3px);
}

.brand-uw .brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.brand-uw .brand-text strong,
.brand-uw .brand-text span {
    white-space: nowrap;
}

.brand-uw .brand-text strong {
    font-family: "Bree Serif", serif;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 400;
    letter-spacing: .2px;
    line-height: 1;
    text-transform: none;
    text-shadow:
            0 2px 10px rgba(0,0,0,.22),
            0 8px 24px rgba(0,0,0,.28);
    transition: transform .2s ease, letter-spacing .2s ease, text-shadow .2s ease;
}

.brand-uw .brand-text span {
    font-size: clamp(10px, .75vw, 13px);
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.1;
    opacity: .88;
    text-transform: uppercase;
    transition: opacity .2s ease, letter-spacing .2s ease;
}

.brand-uw:hover .brand-text strong {
    transform: translateY(-1px);
    letter-spacing: .5px;
    text-shadow:
            0 4px 14px rgba(0,0,0,.26),
            0 12px 30px rgba(0,0,0,.34);
}

.brand-uw:hover .brand-text span {
    opacity: 1;
    letter-spacing: .1em;
}

.brand-uw::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: -3px;
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.55),
            transparent
    );
    opacity: .55;
    transform: scaleX(.7);
    transition: transform .22s ease, opacity .22s ease;
    pointer-events: none;
}

.brand-uw:hover::after {
    opacity: .9;
    transform: scaleX(1);
}

/* HERO-TOP / NAVBAR */

.hero-top{
    transition: padding .2s ease, background .2s ease;
}

.hero-top.is-scrolled{
    padding: 10px 0;
    background: rgba(0,0,0,.38);
}

.hero-top .topbar-shell.top-row{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;

    width: min(1380px, calc(100% - 40px)) !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hero-top .brand-uw{
    flex: 0 0 auto !important;
    margin-right: 0 !important;
    transform: none !important;
}

.hero-top .brand-uw .brand-text strong,
.hero-top .brand-uw .brand-text span{
    white-space: nowrap !important;
}

.hero-top .brand-uw .brand-text strong{
    font-size: clamp(20px, 1.7vw, 26px) !important;
}

.nav{
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;

    font-weight: 800;
    font-size: 14px;
    letter-spacing: .07em;
    text-transform: uppercase;

    white-space: nowrap;
    flex-wrap: nowrap;
}

.hero-top .nav a.is-active{
    opacity: 1;
}

.hero-top .nav a.is-active::after{
    width: 100%;
    background: rgba(232,178,79,.95);
}


.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 0 0 auto;
    padding: 0;
}

.nav-right-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.nav-left a:not(:last-child),
.nav-right a:not(:last-child) {
    margin-right: 6px;
}

.desktop-search {
    margin-left: 0 !important;
}

/* ===== SEARCH BAR — FINAL CLEAN VERSION ===== */

.hero-top .nav-search{
    position: relative !important;
    flex: 0 0 auto !important;
    width: clamp(220px, 20vw, 320px);
    margin-left: 10px !important;
    height: 44px !important;
    border-radius: 999px !important;
    overflow: hidden !important;

    background: rgba(0,0,0,.22) !important;
    border: 1px solid rgba(255,255,255,.14) !important;

    backdrop-filter: blur(12px);
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,.06),
            0 12px 28px rgba(0,0,0,.18) !important;

    transition:
            border-color .18s ease,
            background .18s ease,
            box-shadow .18s ease,
            transform .18s ease !important;
}

.hero-top .nav-search:focus-within{
    background: rgba(0,0,0,.28) !important;
    border-color: rgba(255,255,255,.26) !important;
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,.08),
            0 18px 46px rgba(0,0,0,.26),
            0 0 0 3px rgba(120,180,255,.10) !important;
    transform: translateY(-1px) !important;
}

.hero-top .nav-search::after{
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 6px;
    height: 2px;
    border-radius: 99px;
    background: rgba(232,178,79,.95);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
    opacity: .9;
    pointer-events: none;
}

.hero-top .nav-search:focus-within::after{
    transform: scaleX(1);
}

/* Input */
.hero-top .nav-search input{
    flex: 1;
    height: 100%;
    border: 0;
    outline: none !important;
    background: transparent;

    color: rgba(255,255,255,.92);
    padding: 0 14px 0 18px;

    font-size: 14px;
    font-weight: 650;
    letter-spacing: .01em;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    caret-color: rgba(255,255,255,.85);
}

.hero-top .nav-search input::placeholder{
    color: rgba(255,255,255,.52);
    font-weight: 650;
}

/* Button */
.hero-top .nav-search button{
    width: 46px;
    height: 100%;
    border: 0;
    outline: none !important;
    box-shadow: none !important;

    background: transparent !important;
    color: rgba(255,255,255,.88);
    border-left: 1px solid rgba(255,255,255,.10);

    display: grid;
    place-items: center;
    cursor: pointer;

    transition: transform .15s ease, background .15s ease !important;
}

.hero-top .nav-search button:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,.06);
}

.hero-top .nav-search button:active{
    transform: translateY(0);
    background: rgba(255,255,255,.10);
}

.hero-top .nav-search button:focus-visible{
    outline: none !important;
    box-shadow: none !important;
}


.hero-top .nav-search{
    position: relative;
    display: flex;
    align-items: center;
    width: clamp(180px, 16vw, 250px);
    height: 44px;
    overflow: hidden;
}

.hero-top .nav-search input{
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px 0 16px;
}

.hero-top .nav-search button{
    flex: 0 0 46px;
    width: 46px;
    height: 100%;
}

.nav a{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 5px;
    text-decoration: none;
    color: #fff;
    opacity: .88;

    white-space: nowrap;
    border-radius: 999px;

    transform: translateY(0) scale(1);
    transition:
            opacity .24s ease,
            transform .28s cubic-bezier(.22,1,.36,1),
            text-shadow .24s ease,
            letter-spacing .24s ease;
}

/* underline */
.nav a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;

    width: 0;
    height: 2px;
    border-radius: 999px;

    background: linear-gradient(
            90deg,
            rgba(255,255,255,.15),
            rgba(255,255,255,.98),
            rgba(255,255,255,.15)
    );

    transform: translateX(-50%);
    opacity: 0;

    transition:
            width .28s cubic-bezier(.22,1,.36,1),
            opacity .22s ease;

    pointer-events: none;
}

.nav a:hover{
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
    letter-spacing: .095em;
    text-shadow:
            0 0 10px rgba(255,255,255,.06),
            0 4px 16px rgba(255,255,255,.12);
}

.nav a:hover::before{
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.nav a:hover::after{
    width: calc(100% - 10px);
    opacity: 1;
}

/* active */
.hero-top .nav a.is-active{
    opacity: 1;
    transform: translateY(-1px);
    text-shadow: 0 4px 14px rgba(255,255,255,.08);
}

.hero-top .nav a.is-active::before{
    opacity: .9;
    transform: scale(1);
    filter: blur(0);
}

.hero-top .nav a.is-active::after{
    width: calc(100% - 10px);
    opacity: 1;
    background: linear-gradient(
            90deg,
            rgba(232,178,79,.18),
            rgba(232,178,79,.98),
            rgba(232,178,79,.18)
    );
}

/* focus */
.hero-top .nav a:focus-visible,
.hero-top .brand-uw:focus-visible{
    outline: 2px solid rgba(232,178,79,.9);
    outline-offset: 4px;
    border-radius: 999px;
}

/* open state */
.nav-item.open > .nav-dd{
    display: block;
}

.nav-item.open > .nav-link{
    color: #fff;
}

/* keep last dropdown from overflowing right */
.nav > .nav-item.has-dd:last-child .nav-dd{
    left: auto;
    right: 0;
    transform: none;
}


/*  NAV SEARCH */
.hero-top .nav-search{
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: clamp(220px, 20vw, 300px);
    height: 44px;
    margin-left: 18px;

    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    overflow: hidden;

    backdrop-filter: blur(12px);
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,.06),
            0 12px 28px rgba(0,0,0,.18);

    transition:
            border-color .18s ease,
            background .18s ease,
            box-shadow .18s ease,
            transform .18s ease;
}

.hero-top .nav-search:focus-within{
    background: rgba(0,0,0,.28);
    border-color: rgba(255,255,255,.24);
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,.08),
            0 18px 46px rgba(0,0,0,.26),
            0 0 0 3px rgba(120,180,255,.10);
    transform: translateY(-1px);
}

.hero-top .nav-search::after{
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 6px;
    height: 2px;
    border-radius: 99px;
    background: rgba(214,92,255,.95);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
    opacity: .95;
    pointer-events: none;
}

.hero-top .nav-search:focus-within::after{
    transform: scaleX(1);
}

.hero-top .nav-search input{
    flex: 1;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;

    padding: 0 14px 0 18px;
    color: rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: .01em;
    caret-color: rgba(255,255,255,.85);
}

.hero-top .nav-search input::placeholder{
    color: rgba(255,255,255,.52);
}

.hero-top .nav-search button{
    width: 46px;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: rgba(255,255,255,.88);
    border-left: 1px solid rgba(255,255,255,.10);

    display: grid;
    place-items: center;
    cursor: pointer;

    box-shadow: none;
    transition: transform .15s ease, background .15s ease, color .18s ease;
}

.hero-top .nav-search button:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.96);
}

.hero-top .nav-search button:active{
    transform: translateY(0);
    background: rgba(255,255,255,.10);
}

.hero-top .nav-search button:focus-visible{
    outline: none;
    box-shadow: none;
}

.nav-search-icon{
    width: 18px;
    height: 18px;
    display: block;
}

@media (max-width: 640px){
    .brand-text strong{
        font-size: 1.12rem !important;
    }

    .brand-text span{
        font-size: .8rem !important;
    }

    .mobile-sidebar{
        width: 86vw;
    }
}
