/* ========================
   Component: Top Bar
   ======================== */
.top-bar {
    /* display: none; */ /* Hidden via logo-fixes, keep rule for reference */
    background-color: var(--neutral-800);
    color: var(--white);
    padding: var(--space-xs) 0;
    font-size: 0.875rem;
    display: none; /* Hide top bar as per logo-fixes */
}

.contact-info {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-unit);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ========================
   Component: Header
   ======================== */
.header {
    background-color: var(--white);
    height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Container within header */
.header .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    width: 200px;
    padding: 12px 0;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.logo-object,
.logo-img {
    height: auto;
    width: 100%;
    max-width: 200px;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

/* Custom logo solution */
.custom-logo {
    pointer-events: none;
}

/* Navigation styling */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-left: 60px;
}

.nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--neutral-800);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* CTA Button */
.header-cta {
    margin-left: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--neutral-800);
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-list {
        gap: 30px;
    }
    
    .nav {
        margin-left: 40px;
    }
    
    .header-cta {
        margin-left: 30px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    .logo {
        width: 160px;
        padding: 10px 0;
    }
    
    .nav {
        display: none;
        margin-left: 0;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Mobile Menu Active State */
.header.menu-active .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-left: 0;
}

.header.menu-active .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.header.menu-active .nav-link {
    display: block;
    padding: 10px;
    font-size: 1.1rem;
}

.header.menu-active .mobile-menu-toggle span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.header.menu-active .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.header.menu-active .mobile-menu-toggle span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}
