/* ==========================================================================
   1. ACCESSIBILITY UTILITIES
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   2. INTERACTIVE HAMBURGER LAYOUT CONTROLS
   ========================================================================== */
   
.nav-container{
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
}

@media (min-width: 1120px) {
    .nav-container{
        display: none;
    }
}

.burger{
    z-index: 400;
    margin-right: 25px;
}

.nav-button {
    background: transparent;
    border: none;
    padding: 0;
    z-index: 100; /* Higher than the drawer panel (90) to stay visible and clickable */
    cursor: pointer;
    display: none; /* Hidden by default, shown on smaller screens */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
}



@media (max-width: 1119px) {
    .nav-button {
        display: flex;
    }
}

.nav-button span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.3s ease;
    transform-origin: center center;
}

/* ==========================================================================
   3. DIMMING GRADIENT OVERLAY LAYER
   ========================================================================== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   4. DARK THEME OFF-CANVAS SLIDE DRAWER
   ========================================================================== */
.nav-drawer {
    border-left: 10px solid #0F7BC2; /* Your exact brand blue accent stripe */
    padding: 0;
    margin: 0;
    
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 80vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 90;
    box-sizing: border-box;
    
    /* Out of view slide layout state */
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active open drawer display style state */
.nav-drawer.is-open {
    transform: translateX(0);
}

/* ==========================================================================
   5. DRAWER NAVIGATION CONTENT LINKS
   ========================================================================== */
.dialog-content {
    padding-top: 100px;
}

.nav-drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-drawer ul li {
    position: relative;
    overflow: hidden;
}

.nav-drawer ul li a {
    position: relative;
    display: block;
    padding: 18px 40px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Sliding Accent Line Underlay Background */
.nav-drawer ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-left: 4px solid #fff;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
}

.nav-drawer ul li:hover a {
    color: #ffffff;
}

.nav-drawer ul li:hover::before {
    transform: translateX(100%);
}

.nav-drawer ul li a:focus-visible {
    outline: 2px dashed #0F7BC2;
    outline-offset: -4px;
}

/* ==========================================================================
   6. DYNAMIC ACTIVE MORPHING SHAPES
   ========================================================================== */
.nav-button.is-active span {
    background-color: #fff;
}

.nav-button.is-active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.nav-button.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-button.is-active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}
