@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@500;600;700&display=swap');


#header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-site {
    position:      sticky;
    top:           0;
    z-index:       1000;
    background:    var(--bg);
    border-bottom: 2px solid var(--border-strong);
}

.header-content {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             2rem;
    min-height:      5rem;
    width:           100%;
    padding-inline:  clamp(1rem, 4vw, 3rem);
}

.header-brand {
    display:        flex;
    flex-direction: column;
    gap:            0.15rem;
    flex-shrink:    0;
    align-content: center;
    justify-content: center;
    text-align: center;
}

.header-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.header-brand-logo {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    display: block;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.15rem;
}

.header-brand h1 {
    font-family:    'Barlow Condensed', system-ui, sans-serif;
    font-size:      2.3rem;
    font-weight:    800;
    letter-spacing: 0.03em;
    line-height:    1;
    text-transform: uppercase;
}

.header-brand p {
    color:          var(--muted);
    font-size:      0.78rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
}

.header-main-nav { flex: 1; }

.header-main-nav ul {
    display:         flex;
    align-items:     center;
    justify-content: flex-end;
    gap:             clamp(0.5rem, 2vw, 1.5rem);
    list-style:      none;
}

.header-main-nav li {
    position: relative;
    display:  flex;
    align-items: center;
}

.header-main-nav a,
.header-nav-label {
    display:         flex;
    align-items:     center;
    justify-content: center;
    min-height:      44px;
    padding:         0.6rem 0.95rem;
    border:          none;
    background:      transparent;
    color:           var(--muted);
    font-family:     'Barlow', system-ui, sans-serif;
    font-size:       0.88rem;
    font-weight:     500;
    letter-spacing:  0.05em;
    text-transform:  uppercase;
    cursor:          pointer;
    transition:      color 0.12s ease;
}

.header-main-nav a:hover,
.header-nav-label:hover { color: var(--text); }


.header-dropdown { position: relative; }


.header-dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    right: 0;
    min-width: 190px;
    padding: 0.3rem;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
    z-index: 1001;
}

.header-dropdown:hover .header-dropdown-menu {
    opacity:        1;
    visibility:     visible;
    pointer-events: auto;
}

.header-dropdown-menu li  { width: 100%; }

.header-dropdown-menu a {
    width:           100%;
    justify-content: center;
    border-radius:   var(--radius-sm);
    color:           var(--muted);
    font-size:       0.85rem;
}

.header-dropdown-menu a:hover { color: var(--text); background: var(--surface-2); }


@media (max-width: 900px) {
    .header-content {
        flex-direction:  column;
        justify-content: center;
        padding:         0.75rem 0;
        min-height:      auto;
        gap:             0.4rem;
    }

    .header-main-nav {
        width:      100%;
        border-top: 1px solid var(--border);
        padding-top: 0.35rem;
        flex: 1;
    }

    .header-main-nav ul {
        display:         flex;
        align-items:     center;
        justify-content: flex-end;
        gap:             clamp(0.5rem, 2vw, 2rem);
        list-style:      none;
    }
}

@media (max-width: 600px) {
    .header-brand { align-items: center; text-align: center; }

    .header-main-nav a, .header-nav-label {
        padding:   0.55rem 0.7rem;
        font-size: 0.8rem;
    }

    .header-dropdown-menu {
        left:      50%;
        transform: translateX(-50%);
        min-width: 175px;
    }

    .header-dropdown:hover .header-dropdown-menu { transform: translateX(-50%); }
}
