/*!
 * Tell The People Navigation Styles
 * Dual Navigation System: Desktop horizontal + Mobile slide-out
 */

/*--------------------------------------------------------------
# Header Structure
--------------------------------------------------------------*/
.site-header {
    position: relative;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 1rem 0;
    z-index: 100;
    width: 100%;
    height: 120px; /* Increased height for better spacing */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/*--------------------------------------------------------------
# Sticky Header (Duplicate)
--------------------------------------------------------------*/
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(188, 188, 188, 1);
    height: 80px; /* Smaller height for sticky */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.sticky-header.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sticky Header Branding */
.sticky-header .site-branding {
    top: 50%; /* Center vertically in smaller sticky header */
    max-width: 70px; /* Slightly smaller logo when sticky */
}

/* Desktop Navigation Colors in Sticky Header */
.sticky-header .desktop-nav-menu a {
    color: #000000;
}

.sticky-header .desktop-nav-menu a::after {
    background-color: #000000;
}

.sticky-header .desktop-nav-menu ul a::after {
    display: none; /* Remove underline effect from sticky dropdown items */
}

.sticky-header .desktop-nav-menu a:hover {
    color: #000000;
}

/* Mobile Navigation Colors in Sticky Header */
.sticky-header .burger-icon,
.sticky-header .burger-icon::before,
.sticky-header .burger-icon::after {
    background-color: #000000;
}

.sticky-header .menu-toggle[aria-expanded="true"] .burger-icon::before,
.sticky-header .menu-toggle[aria-expanded="true"] .burger-icon::after {
    background-color: #000000;
}



.site-branding {
    position: absolute;
    top: calc(50% + 5px); /* Nudged down by 5px from center */
    left: 20px;
    transform: translateY(-50%);
    max-width: 80px;
    z-index: 1000;
}

.custom-logo-link {
    display: inline-block;
}

/*--------------------------------------------------------------
# Desktop Navigation (769px+)
--------------------------------------------------------------*/
.desktop-navigation {
    display: none; /* Hidden by default, shown on desktop */
}

@media screen and (min-width: 769px) {
    .desktop-navigation {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        z-index: 101;
    }
    
    .desktop-nav-menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
        gap: 0;
    }
    
    .desktop-nav-menu li {
        margin: 0;
        position: relative;
    }
    
    .desktop-nav-menu a {
        display: block;
        padding: 16px 20px;
        color: white;
        text-decoration: none;
        font-family: var(--navigation-font);
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        white-space: nowrap;
        position: relative;
    }
    
    .desktop-nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 20px;
        right: 20px;
        height: 2px;
        background-color: var(--key-yellow);
        width: 0;
        transition: width 0.3s ease;
    }
    
    .desktop-nav-menu a:hover {
        color: var(--key-yellow);
    }
    
    .desktop-nav-menu a:hover::after {
        width: calc(100% - 40px);
    }
    
    /* Dropdown menus */
    .desktop-nav-menu ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #0B3367;
        min-width: 220px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        border-top: 3px solid var(--key-yellow);
        border-radius: 0 0 8px 8px;
        overflow: hidden;
        flex-direction: column;
    }
    
    .desktop-nav-menu li:hover > ul {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    .desktop-nav-menu ul a {
        padding: 15px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .desktop-nav-menu ul a::after {
        display: none; /* Remove underline effect from dropdown items */
    }
    
    .desktop-nav-menu ul a:hover {
        background-color: rgba(245, 234, 84, 0.15);
        color: var(--key-yellow);
        padding-left: 25px;
    }
    
    .desktop-nav-menu ul li:last-child a {
        border-bottom: none;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/*--------------------------------------------------------------
# Mobile Navigation (768px and below)
--------------------------------------------------------------*/
.menu-toggle {
    display: block; /* Shown by default, hidden on desktop */
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    width: 50px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none; /* Hidden on desktop */
    }
}



.burger-icon {
    position: relative;
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
    left: 0;
}

.burger-icon::before { 
    top: -8px; 
}

.burger-icon::after { 
    bottom: -8px; 
}

.menu-toggle[aria-expanded="true"] .burger-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .burger-icon::before {
    transform: rotate(45deg);
    top: 0;
    background-color: #000000;
}

.menu-toggle[aria-expanded="true"] .burger-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
    background-color: #000000;
}

/* Mobile Slide Menu */
.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;
    background: rgba(188, 188, 188, 1);
    z-index: 999;
    transition: right 0.3s ease-in-out;
    padding: 80px 20px 20px;
}

@media screen and (min-width: 769px) {
    .slide-menu {
        display: none; /* Hidden on desktop */
    }
}

.slide-menu.is-active {
    right: 0;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.mobile-navigation li {
    margin-bottom: 10px;
}

.mobile-navigation a {
    display: block;
    padding: 7px 2px;
    color: #000000;
    text-decoration: none;
    font-family: var(--navigation-font);
    font-size: 1.52rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 0;
    text-align: right;
}

.mobile-navigation a:hover {
    color: #000000;
}

/*--------------------------------------------------------------
# Mobile Responsive Adjustments
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    .site-header {
        height: 100px; /* Proportionally increased for mobile */
    }
    
    .sticky-header {
        height: 70px; /* Smaller sticky height on mobile */
    }
    
    .site-branding {
        left: 15px; /* Slightly less inset on mobile */
        max-width: 70px; /* Slightly smaller on mobile */
        top: calc(50% + 4px); /* Proportionally nudged down on mobile */
    }
    
    .sticky-header .site-branding {
        top: 53%; /* Center in sticky mobile header */
        max-width: 60px; /* Even smaller logo when sticky on mobile */
    }
    
    .menu-toggle {
        right: 15px; /* Slightly less inset on mobile */
    }
    
    /* Mobile - Full Width Slide Menu */
    .slide-menu {
        width: 100%;
        right: -100%;
    }
}

@media screen and (max-width: 500px) {
    .site-header {
        height: 90px; /* Proportionally increased for small screens */
    }
    
    .sticky-header {
        height: 65px; /* Even smaller sticky height on small screens */
    }
    
    .site-branding {
        left: 12px;
        max-width: 65px;
        top: calc(50% + 3px); /* Proportionally nudged down on small screens */
    }
    
    .sticky-header .site-branding {
        top: 50%; /* Center in sticky small screen header */
        max-width: 55px; /* Smallest logo when sticky on small screens */
    }

    .menu-toggle {
        right: 12px;
    }
}

/*--------------------------------------------------------------
# Footer Navigation
--------------------------------------------------------------*/
.footer-navigation {
    margin: 2rem 0;
    padding: 1rem 0;
}

.footer-menus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.footer-menu-column {
    text-align: left;
}

.footer-menu-column:last-child {
    text-align: center;
}

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

.footer-menu li {
    margin-bottom: 0.6rem;
}

.footer-menu a,
.footer-menu a:visited {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.footer-menu a:hover,
.footer-menu a:focus,
.footer-menu a:active {
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .footer-menus-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-menu-column {
        text-align: center;
    }
    
    .footer-menu-column:last-child {
        text-align: center;
    }
} 