/*==========================================================
 ESBC 2.0
 Navigation v3.0
==========================================================*/

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    max-width:100%;
    height:84px;
    padding:0 24px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    z-index:1000;
    overflow:hidden;
    background:rgba(27,22,24,.78);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(255,255,255,.08);
    transition:all .3s ease;
}

.header.scrolled{
    height:72px;
    background:rgba(20,16,18,.96);
    box-shadow:0 12px 24px rgba(0,0,0,.25);
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    max-width:100%;
    margin:0 auto;
    gap:16px;
    min-width:0;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    min-width:0;
    max-width:100%;
}

.logo img{
    width:54px;
    height:54px;
    object-fit:contain;
    flex-shrink:0;
}

.logo-text{
    display:flex;
    align-items:center;
    min-width:0;
    max-width:calc(100vw - 150px);
}

.logo-text h2{
    margin:0;
    font-size:clamp(0.92rem, 1rem + 0.35vw, 1.16rem);
    line-height:1.15;
    color:var(--heading);
    white-space:normal;
    overflow-wrap:anywhere;
    max-width:100%;
}

.navigation{
    display:flex;
    align-items:center;
    margin-left:auto;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:24px;
}

.nav-links li{ list-style:none; }

.nav-links a{
    position:relative;
    display:inline-flex;
    align-items:center;
    padding:8px 0;
    color:var(--heading);
    font-size:.96rem;
    font-weight:500;
    transition:.25s ease;
}

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-2px;
    width:0;
    height:2px;
    border-radius:20px;
    background:var(--accent);
    transition:.25s ease;
}

.nav-links a:hover,
.nav-links a.active{
    color:var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after{
    width:100%;
}

.nav-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.menu-toggle{
    display:none;
    width:44px;
    height:44px;
    border:none;
    background:transparent;
    cursor:pointer;
    padding:0;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
}

.menu-toggle span{
    display:block;
    width:22px;
    height:2px;
    border-radius:999px;
    background:var(--accent);
    transition:transform .25s ease, opacity .25s ease;
}

.menu-toggle.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2){ opacity:0; }
.menu-toggle.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-menu{
    position:fixed;
    top:0;
    right:-100%;
    width:min(88vw, 320px);
    height:100vh;
    background:linear-gradient(180deg, #342d31 0%, #22191c 100%);
    box-shadow:-12px 0 30px rgba(0,0,0,.28);
    padding:24px 20px;
    display:flex;
    flex-direction:column;
    gap:24px;
    transition:right .3s ease;
    z-index:1200;
}

.mobile-menu.active{ right:0; }

.menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.48);
    opacity:0;
    pointer-events:none;
    transition:.25s ease;
    z-index:1100;
}

.menu-overlay.active{ opacity:1; pointer-events:auto; }

.mobile-header{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.mobile-logo{ display:flex; align-items:center; gap:10px; }
.mobile-logo img{ width:42px; height:42px; object-fit:contain; }
.mobile-logo h3{ margin:0; font-size:1rem; color:var(--heading); }
.mobile-logo span{ font-size:.75rem; color:var(--text); }
.close-menu{ border:none; background:transparent; color:var(--heading); font-size:1.15rem; cursor:pointer; }

.mobile-menu ul{
    display:flex;
    flex-direction:column;
    gap:10px;
    list-style:none;
}

.mobile-menu ul li a{
    display:block;
    padding:12px 14px;
    border-radius:10px;
    background:rgba(255,255,255,.05);
    color:var(--heading);
    font-size:1rem;
    transition:.25s ease;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active{
    background:rgba(214,184,112,.18);
    color:var(--accent);
}

.mobile-buttons{ display:flex; }
.mobile-buttons .btn{ width:100%; justify-content:center; }

@media (max-width:992px){
    .navigation{ display:none; }
    .menu-toggle{ display:flex; }
    .nav-actions .btn{ display:none; }
}

@media (max-width:768px){
    .header{ height:74px; padding:0 16px; }
    .logo img{ width:44px; height:44px; }
    .logo-text h2{ max-width:220px; font-size:.95rem; }
}

@media (max-width:480px){
    .header{ height:70px; padding:0 12px; }
    .logo{ gap:8px; }
    .logo img{ width:40px; height:40px; }
    .logo-text h2{ max-width:150px; font-size:.82rem; }
    .mobile-menu{ width:min(92vw, 320px); padding:20px 16px; }
}
