/* styles/header.css */
/* Defines the STANDARD, ALWAYS SOLID look of the header for ALL pages by default */

/* Basic Reset & Global Styles (keep if not globally defined elsewhere) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; }
a { text-decoration: none; }
ul { list-style: none; }

/* Header & Navbar - Default Solid State */
header {
    background-color: #fff; /* Default solid background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Default shadow */
    padding: 15px 5%;
    position: fixed; /* Or sticky, depending on overall site behavior */
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    /* NO header-specific background/shadow/border transitions here anymore */
}

/* If using fixed header, body needs padding for hero on homepage */
/* On other pages, if first element is not a full-screen hero,
   this padding might still be desired or handled differently (e.g. main { padding-top: ... })
   Consider the structure of your other pages.
*/
/* body {
    padding-top: 90px; /* Adjust to actual header height to prevent content overlap */
/* } */


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link { display: inline-block; }
.logo-container { display: flex; flex-direction: column; align-items: flex-start; }
.logo-image { height: 65px; width: auto; display: block; /* No filter by default */ }

.tagline {
    font-size: 0.7em;
    color: #555; /* Default tagline color */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    /* No color transition here, handled by animation CSS if present */
}

.nav-links { display: flex; }
.nav-links li { margin-left: 25px; }

.nav-links a {
    font-size: 1em;
    font-weight: 500;
    color: #333; /* ALWAYS DARK text color for nav links */
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #333; /* ALWAYS DARK underline */
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #000; /* Darker on hover */
}
.nav-links a:hover::after {
    width: 100%;
    background-color: #000; /* Matches link hover color */
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333; /* Default dark hamburger bars */
    border-radius: 2px;
    transition: all 0.3s ease-in-out; /* For X transform, NOT background-color unless header-anim is present */
}

/* --- Mobile Menu Styles (Assume it always looks consistent) --- */
@media (max-width: 768px) {
    .navbar { position: relative; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .nav-links.active { display: flex; }

    .nav-links li { margin: 10px 0; text-align: center; }

    .nav-links.active a,
    .nav-links a { /* Ensure mobile link colors are always appropriate for light menu bg */
        color: #333 !important;
        font-size: 1.1em;
        padding: 10px 20px;
        display: block;
    }
    .nav-links.active a::after,
    .nav-links a::after {
        background-color: #333 !important;
        left: 50%; /* Center underline for mobile */
        transform: translateX(-50%);
    }
    .nav-links.active a:hover,
    .nav-links a:hover {
        color: #000 !important;
    }
    .nav-links.active a:hover::after,
    .nav-links a:hover::after {
        background-color: #000 !important;
        width: 50%; /* Underline width on hover for mobile */
    }

    .hamburger { display: flex; }

    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Hamburger X color always dark for light mobile menu */
    .hamburger.active .bar {
        background-color: #333 !important;
    }
}