/* ========================================
   Site Navigation Bar - Hamburger Menu
   ======================================== */

.site-header {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: 60px;
}

/* Hamburger Button - TOP LEFT, ALWAYS VISIBLE */
.menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
    margin-right: 1rem;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Brand/Logo - CENTERED */
.brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1;
}

.brand:hover,
.brand:focus {
    opacity: 0.8;
    outline: none;
}

.brand img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Main Navigation - HIDDEN BY DEFAULT */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(15, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding-top: 4rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    visibility: hidden;
}

/* Show menu ONLY when is-open class is added */
.site-header.is-open .main-nav {
    transform: translateX(0);
    visibility: visible;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* Overlay when menu is open */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.site-header.is-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}
