/* 
 * header.css
 * Styles for the website header and navigation
 */

/* Header */


header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9375rem 0;
}

.logo img {
  max-width: 250px; /* Set a typical website logo width */
  height: auto;
  /* Optional: add a little breathing room */
  margin: 5px 0;
}



/* Center CTA button */
.header-cta-container {
    flex: 1;
    text-align: center;
    margin: 0 1.25rem;
}

.header-cta {
    display: inline-block;
    background-color: #ff6600;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.header-cta:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    color: #003366;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    margin: 0;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

/* Navigation */
nav {
    background-color: #003366;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    margin: 0 15px;
}

.nav-menu li:first-child {
    margin-left: 0;
}

.nav-menu li a {
    display: block;
    color: white;
    padding: 1em 1.25em;
    transition: background-color 0.3s;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.nav-menu li a:hover {
    background-color: #004080;
    color: white;
}

.nav-menu li.current a {
    background-color: #004080;
}

.nav-menu li.home-link a {
    padding-left: 1.5em;
    padding-right: 1.5em;
}

.nav-menu li.home-link a:before {
    content: "🏠";
    margin-right: 5px;
    font-size: 1.0em;
}

/* Mobile menu active state */
.mobile-menu-toggle[aria-expanded="true"] {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* Responsive styles */
@media (max-width: 992px) {
    .nav-menu li a {
        padding: 0.9em 1em;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0;
        position: relative;
    }
    
    .logo {
        font-size: 1.2rem;
        margin-right: 40px; /* Make room for hamburger */
    }
    
    .logo span {
        font-size: 1.2rem;
    }
    
    .header-cta-container {
        margin: 0.5rem 0;
        width: 100%;
        order: 3;
    }
    
    .header-cta {
        display: block;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-menu-toggle:hover, 
    .mobile-menu-toggle:focus {
        background-color: #fff;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    }
    
    nav {
        position: relative;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #003366;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin: 0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        padding: 1em 1.5em;
        text-align: left;
        font-size: 13px;
    }
    
    .nav-menu li.home-link a:before {
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }
    
    .logo span {
        font-size: 1rem;
    }
    
    .header-cta {
        font-size: 0.8rem;
    }
    
    .mobile-menu-toggle {
        top: 0.8rem;
        right: 0.8rem;
    }
}

/* For print - hide navigation */
@media print {
    header, 
    nav,
    .mobile-menu-toggle {
        display: none !important;
    }
}