/**
 * header.css - Two-Row Desktop / Centered Mobile Header Layout
 * Project: cross countries native
 */

.global-site-header {
    background-color: #182659; 
    border-bottom: 2px solid #eb8d00; 
    width: 100%;
    padding: 15px 20px 10px 20px;
    box-sizing: border-box;
    position: relative;
}

.header-inner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;        /* PC Desktop: Stacks branding row on top, navigation menu on bottom row */
    gap: 12px;                     /* Vertical separation gap between rows */
    width: 100%;
}

/* Row 1: Left-aligned Branding & Titles */
.header-branding-block {
    display: flex;
    flex-direction: row;
    align-items: center;           /* Keeps logo and title text perfectly centered next to each other */
    gap: 15px;
    width: 100%;
    justify-content: flex-start;   /* Forces logo and title text to stay left-aligned */
}

.header-logo {
    width: 55px; 
    height: auto;
    display: block;
}

.header-title-text {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.2;
    margin: 0;
}

.database-text-highlight {
    color: #eb8d00;
    font-weight: bold;
    margin-left: 6px;
}

/* Row 2: Right-aligned Horizontal Navigation Menu Options */
.header-navigation-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;     /* Desktop PC: Aligns the horizontal options menu bar on the right-hand side */
    width: 100%;
}

.header-menu-list {
    display: flex;
    flex-flow: row nowrap; 
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-menu-link {
    display: block;
    padding: 8px 16px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.header-menu-link:hover,
.header-menu-link:focus {
    color: #38b8ff; 
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Toggle Layout Parameters */
.mobile-menu-collapser {
    display: none; 
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    align-self: center;            /* Center alignment rule explicitly for the hamburger button icon on mobile layout viewports */
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   Mobile Responsive Breakdown Queries (iPhones, Tablets & Small Devices)
   ========================================================================== */
@media (max-width: 991px) {
    .header-inner-container {
        flex-direction: column;  
        align-items: center;       
        justify-content: center;
        gap: 15px;               
        width: 100% !important;   /* Forces inner bar to fill out the viewport container */
        box-sizing: border-box;
    }

    .header-branding-block {
        justify-content: center;   
        width: 100% !important;   /* Unclogs boundaries so text scales full width */
    }

    .mobile-menu-collapser {
        display: flex;             
    }

    .header-navigation-wrapper {
        display: none;
        position: absolute;
        top: 100%;               
        left: 0;
        width: 100%;
        background-color: #2f3961;
        border-bottom: 2px solid #eb8d00;
        z-index: 1000;
    }

    .header-navigation-wrapper.is-open {
        display: block;          
    }

    .header-menu-list {
        flex-direction: column;  
        align-items: stretch;
        gap: 0;
        padding: 10px 0;
    }

    .header-menu-link {
        padding: 14px 20px;
        border-radius: 0;
        text-align: center;      
    }
}