/**
 * Header and Logo Styling
 * Modern, professional header design with proper logo display
 */

/* Header Container */
.site-header {
    background-color: var(--white, #ffffff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Logo Alignment Classes */
.header-logo-left .main-navigation {
    flex-direction: row;
}

.header-logo-center .main-navigation,
.header-logo-right .main-navigation {
    flex-direction: column;
}

.header-logo-center .site-branding {
    justify-content: center;
    margin-bottom: 1rem;
}

.header-logo-right .site-branding {
    justify-content: flex-end;
    margin-bottom: 1rem;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo Link */
.logo-link {
    display: block;
    margin-right: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

/* Text Logo */
.text-logo {
    height: 60px;
    width: 180px;
    background-color: var(--primary-color, #0077B6);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.text-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: white;
}

/* Custom Logo Link */
.custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
    height: auto;
}

.custom-logo-link:hover {
    transform: translateY(-2px);
}

/* Site Logo Image */
.site-logo {
    width: auto;
    display: block;
    object-fit: contain;
    height: auto;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* Logo Size Classes */
.logo-size-small .site-logo {
    max-height: 40px;
}

.logo-size-medium .site-logo {
    max-height: 60px;
}

.logo-size-large .site-logo {
    max-height: 80px;
}

/* Text Logo Sizes */
.logo-size-small.text-logo {
    height: 40px;
    width: 140px;
    font-size: 1rem;
}

.logo-size-medium.text-logo {
    height: 60px;
    width: 180px;
    font-size: 1.2rem;
}

.logo-size-large.text-logo {
    height: 80px;
    width: 220px;
    font-size: 1.4rem;
}

/* Site Title and Description */
.site-title-wrapper {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--dark-color, #03045E);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--primary-color, #0077B6);
}

.site-description {
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
    color: var(--gray, #6c757d);
    font-weight: normal;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* All header layouts become vertical on mobile */
    .main-navigation {
        flex-direction: column !important;
    }
    
    /* Center all logos on mobile */
    .site-branding {
        justify-content: center !important;
        margin-bottom: 1rem;
    }
    
    /* Adjust text logo sizes */
    .logo-size-small.text-logo {
        height: 40px;
        width: 130px;
        font-size: 0.9rem;
    }
    
    .logo-size-medium.text-logo {
        height: 45px;
        width: 150px;
        font-size: 1rem;
    }
    
    .logo-size-large.text-logo {
        height: 50px;
        width: 170px;
        font-size: 1.1rem;
    }
    
    /* Adjust image logo sizes */
    .logo-size-small .site-logo {
        max-height: 35px;
    }
    
    .logo-size-medium .site-logo {
        max-height: 45px;
    }
    
    .logo-size-large .site-logo {
        max-height: 55px;
    }
    
    .site-title {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .site-description {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .site-title-wrapper {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .logo-link {
        margin-right: 0;
    }
    
    /* Further reduce logo sizes on very small screens */
    .logo-size-small .site-logo {
        max-height: 30px;
    }
    
    .logo-size-medium .site-logo {
        max-height: 40px;
    }
    
    .logo-size-large .site-logo {
        max-height: 50px;
    }
    
    .menu {
        flex-direction: column;
        align-items: center;
    }
    
    .menu li {
        margin: 0.5rem 0;
        margin-left: 0;
    }
}
