/*
Header Styles - Navigation, Logo, Search, Mobile Menu
*/

/* Header Styles */
.site-header {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .container {
    width: 1440px;
    max-width: 100%;
}

/* Home page transparent header */
.home .site-header {
    background: #CAE1FF;
    position: absolute;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header when scrolled on home page */
.home .site-header.scrolled {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    height: auto;
    position:fixed;
    box-shadow: 0 1px 3px #00000026
}

.header-content {
    justify-content: space-between;
    justify-items: center;
    display: flex;
    align-items: center;
    padding: 15px 0;
    margin: 0 auto;
    transition: padding 0.3s ease;
}

/* Slightly reduce header height on home page when not scrolled */
.home .header-content {
    padding-top: 10px;
    padding-bottom: 30px;
    flex-direction: column;
}

.home .site-header.scrolled .header-content {
    display: flex;
    padding: 15px 0;
    flex-direction: row;
}

.home .site-header.scrolled .main-nav {
    order: 2;
}

.home .site-header.scrolled .search-section {
    order: 3;
    margin-bottom: 0;
    margin-top: 0;
    width: auto;
    height: auto;
}

.home .search-input {
    width: 100%;
}

.site-branding {
    flex: 0 0 auto;
}

.logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.site-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    display: block;
    transition: all 0.3s ease;
}

/* Slightly larger logo on home page when not scrolled */
.home .site-logo {
    height: 44px;
}

.home .site-header.scrolled .site-logo {
    height: 40px;
}

.home .site-header.scrolled .search-input {
    padding: 10px 45px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    width: 250px;
    height: 38.5px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: #4e4e4e;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.home .main-nav {
    order: 3;
    padding: 10px 0;
}

.home .search-section {
    order: 2;
    width: 502px;
    height:45px;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: right;
    margin: 0 40px;
    order: 2;
}

.home .main-nav {
    order: 3;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav li {
    position: relative;
}

/* Add dots between navigation items */
.main-nav li:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: #02020b;
    font-size: 14px;
    pointer-events: none;
}

/* Adjust for home page transparent header */
.home .main-nav li:not(:last-child)::after {
    color: #02020b;
}

.home .site-header.scrolled .main-nav li:not(:last-child)::after {
    color: #4E71FF;
}

.main-nav a {
    text-decoration: none;
    color: #02020b;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
}

/* Enhanced navigation styling for home page */
.home .main-nav a {
    color: rgba(2, 2, 11, 0.9);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.home .site-header.scrolled .main-nav a {
    color: #02020b;
    text-shadow: none;
}

.main-nav a:hover {
    color: #4E71FF;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4E71FF;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.search-section {
    flex: 0 0 auto;
    order: 3;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    padding: 10px 45px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    width: 250px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: #4e4e4e;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

/* Home page search input styling */
.home .search-input {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(224, 224, 224, 0.8);
}

.home .site-header.scrolled .search-input {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
    border-color: #4E71FF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 147, 111, 0.1);
}

.search-button {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: rgba(26, 147, 111, 0.1);
}

.search-button:focus {
    outline: 2px solid #4E71FF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #4E71FF;
    transition: color 0.3s ease;
    order: 3;
}

.mobile-menu-toggle:hover {
    color: #4E71FF;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    order: 1;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-content {
    padding: 10px;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: #02020b;
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #02020b;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-list a {
    padding-top: 10px;
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-menu-list a:hover {
    color: #1a936f;
    padding-left: 10px;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Responsive adjustments for transparent header */
@media (max-width: 768px) {
    .home .site-header {
        background: #CAE1FF;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        position: fixed;
        top: 0;
    }
    
    .home .search-input {
        background: #f8f9fa;
        border: 1px solid #e0e0e0;
    }
} 

@media (max-width: 991px) {
    .home .site-header {
        background: #CAE1FF;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        position: fixed;
        top: 0;
    }

} 