/* --- ULTIMATE HEADER RESET --- */
.custom-logo-link {
    max-width: 150px;
}

.site-header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px; /* Adjust based on your site width */
    margin: 0 auto;
    padding: 20px 15px;
}

/* 1. Ensure the Branding is its own block */
.site-branding {
    flex-shrink: 0;
}

/* 2. Ensure the Navigation takes up the rest of the space and aligns right */
.main-navigation {
    flex-grow: 1;
    display: flex !important;
    justify-content: flex-end !important;
}

/* 3. Reset the UL specifically */
.main-navigation ul {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 30px !important;
}

/* 4. Remove default theme styling */
.main-navigation li {
    margin: 0 !important;
    padding: 0 !important;
}

.main-navigation a {
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- MOBILE MENU FIX --- */
@media (max-width: 768px) {
    .site-header .header-flex {
        position: relative !important; 
    }

    .main-navigation ul {
        display: none !important; 
    }

    .main-navigation.toggled ul {
        display: flex !important;
        flex-direction: column !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        padding: 20px 0 !important;
        margin: 0;
        list-style: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #f0f0f0;
        z-index: 99999;
    }

    
    .main-navigation.toggled ul li {
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 15px 0;
        /* border-bottom: 1px solid #eee; */
    }

    .main-navigation.toggled ul li a {
        display: block;
        font-size: 1.1rem;
        color: #000;
        font-weight: 600;
        text-transform: uppercase;
    }
    
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    
    .burger-bar {
        width: 100%;
        height: 3px;
        background: #000;
        transition: 0.3s;
    }
    
    
    .menu-toggle.is-open .burger-bar:nth-child(1) { 
        transform: rotate(45deg) translate(5px, 5px); 
    }
    .menu-toggle.is-open .burger-bar:nth-child(2) { 
        opacity: 0; 
    }
    .menu-toggle.is-open .burger-bar:nth-child(3) { 
        transform: rotate(-45deg) translate(5px, -6px); 
    }
}