/* Header Styles - Float over hero with white background */

/* Topbar */
.topbar {
    background: #FCE414;
    padding: 8px 0;
    font-size: 13px;
    color: #1D1D1D;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.topbar__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1D1D1D;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.topbar__item:hover {
    opacity: 0.7;
    text-decoration: none;
}

.topbar__item svg {
    width: 14px;
    height: 14px;
}

.topbar__right {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.topbar__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(29, 29, 29, 0.1);
    border-radius: 50%;
    color: #1D1D1D;
    transition: all 0.3s ease;
}

.topbar__social:hover {
    background: #1D1D1D;
    color: #FCE414;
    transform: translateY(-2px);
}

.topbar__social svg {
    width: 14px;
    height: 14px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header structure */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(252, 228, 20, 0.3);
    box-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(252, 228, 20, 0.15);
}

/* Main header */
.main-header {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(252, 228, 20, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Glow effect line */
.main-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(252, 228, 20, 0.6) 20%, 
        rgba(252, 228, 20, 0.8) 50%, 
        rgba(252, 228, 20, 0.6) 80%, 
        transparent 100%);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.scrolled .main-header {
    padding: 15px 0;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-logo {
    display: inline-block;
    transition: transform 0.3s ease;
}

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

.logo-image {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

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

.nav-menu a {
    color: #1D1D1D;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s;
    text-decoration: none;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FCE414;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current-menu-parent > a::after {
    width: 100%;
    box-shadow: 0 2px 10px rgba(252, 228, 20, 0.5);
}

/* Active page styling */
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-parent > a {
    color: #1D1D1D;
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* UNAJMI Button */
.header-cta .btn--primary {
    background: #FCE414;
    border: none;
    color: #1D1D1D;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(252, 228, 20, 0.3);
}

.header-cta .btn--primary:hover {
    background: #1D1D1D;
    color: #FCE414;
    transform: translateY(-2px);
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.2),
        0 0 25px rgba(252, 228, 20, 0.4);
}

/* Mobile menu button - Always visible */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 28px;
    height: 24px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1D1D1D;
    position: absolute;
    left: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* Hamburger animation */
.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Header hidden state */
.header-hidden {
    transform: translateY(-100%);
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Hide topbar social icons on mobile */
    .topbar__right {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .topbar {
        font-size: 12px;
    }
    
    .topbar__left {
        gap: 10px;
    }
    
    .topbar__item {
        font-size: 12px;
    }
    
    .topbar__item svg {
        width: 12px;
        height: 12px;
    }
    
    .topbar__right {
        display: none;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .site-logo {
        font-size: 24px;
    }
    
    .header-cta .btn {
        display: none;
    }
}