/* =========================================================
PREMIUM HEADER
========================================================= */

.site-header {
position: sticky;
top: 0;
z-index: 9999;
width: 100%;
background: #fff;
box-shadow: 0 4px 25px rgba(15, 23, 42, .07);
}

/* TOP BAR */

.topbar {
background: #111827;
color: rgba(255,255,255,.85);
font-size: 12px;
}

.topbar-inner {
min-height: 34px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
}

.topbar-left,
.topbar-right {
display: flex;
align-items: center;
}

.topbar span {
font-weight: 500;
}

/* MAIN NAV */

.navbar {
background: #fff;
}

.navbar-inner {
min-height: 78px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 25px;
}

/* LOGO */

.logo {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
min-width: 0;
}

.logo-mark {
width: 52px;
height: 52px;
flex: 0 0 52px;
border-radius: 13px;
display: flex;
align-items: center;
justify-content: center;
background: #fff;
border: 1px solid #e5e7eb;
box-shadow: 0 5px 15px rgba(15,23,42,.08);
overflow: hidden;
}

.logo-mark img {
width: 100%;
height: 100%;
object-fit: contain;
padding: 5px;
}

.logo-text {
min-width: 0;
}

.logo-text strong {
display: block;
color: #111827;
font-size: 17px;
line-height: 1.2;
font-weight: 800;
max-width: 300px;
}

.logo-text small {
display: block;
margin-top: 4px;
color: #9c0003;
font-size: 10px;
font-weight: 700;
letter-spacing: 1px;
}

/* NAVIGATION */

.nav-menu {
display: flex;
align-items: center;
gap: 3px;
}

.nav-menu a {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0 13px;
border-radius: 9px;
color: #475569;
text-decoration: none;
font-size: 14px;
font-weight: 650;
transition: .25s ease;
}

.nav-menu a:hover {
color: #9c0003;
background: rgba(156,0,3,.06);
}

.nav-menu a.active {
color: #9c0003;
background: rgba(156,0,3,.08);
}

.nav-menu .nav-admin {
color: #fff;
background: #111827;
}

.nav-menu .nav-admin:hover {
color: #fff;
background: #1f2937;
}

.nav-menu .nav-login {
border: 1px solid #e2e8f0;
margin-left: 5px;
}

.nav-menu .nav-register {
color: #fff;
width:40%;
background: #9c0003;
padding-left: 18px;
padding-right: 18px;
box-shadow: 0 7px 18px rgba(156,0,3,.18);
}

.nav-menu .nav-register:hover {
color: #fff;
background: #7d0002;
transform: translateY(-1px);
}

/* MOBILE BUTTON */

.mobile-menu-toggle {
display: none;
width: 44px;
height: 44px;
border: 1px solid #e2e8f0;
border-radius: 11px;
background: #fff;
cursor: pointer;
padding: 0;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 5px;
}

.mobile-menu-toggle span {
width: 21px;
height: 2px;
background: #111827;
border-radius: 5px;
transition: .25s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}

/* HEADER SCROLL */

.site-header.scrolled {
box-shadow: 0 8px 30px rgba(15,23,42,.12);
}

.site-header.scrolled .navbar-inner {
min-height: 68px;
}

/* MOBILE */

@media (max-width: 900px) {

.topbar-right {
    display: none;
}

.topbar-inner {
    min-height: 30px;
    justify-content: center;
}

.topbar-left {
    text-align: center;
}

.navbar-inner {
    min-height: 70px;
}

.mobile-menu-toggle {
    display: flex;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;

    display: none;

    flex-direction: column;
    align-items: stretch;

    padding: 9px;

    background: #fff;

    border: 1px solid #e2e8f0;
    border-radius: 15px;

    box-shadow:
        0 20px 50px rgba(15,23,42,.16);
}

.nav-menu.active {
    display: flex;
    animation: menuDrop .22s ease;
}

.nav-menu a {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 15px;
}

.nav-menu .nav-login {
    margin-left: 0;
    margin-top: 4px;
    justify-content: center;
}

.nav-menu .nav-register {
    justify-content: center;
    margin-top: 4px;
}

}

@keyframes menuDrop {

from {
    opacity: 0;
    transform: translateY(-8px);
}

to {
    opacity: 1;
    transform: translateY(0);
}

}

/* SMALL PHONES */

@media (max-width: 600px) {

.topbar {
    font-size: 10px;
}

.navbar-inner {
    min-height: 64px;
}

.logo-mark {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    border-radius: 10px;
}

.logo-text strong {
    font-size: 14px;
    max-width: 220px;
}

.logo-text small {
    font-size: 8px;
    letter-spacing: .7px;
}

}

/* VERY SMALL SCREENS */

@media (max-width: 380px) {

.logo-text strong {
    max-width: 175px;
    font-size: 13px;
}

.logo-text small {
    display: none;
}

}