/* WESO.systems — Header Styles */

:root, [data-theme="light"] {
    --hdr-ink: #11181f;
    --hdr-steel: #2f5876;
    --hdr-steel-dark: #1d3a4f;
    --hdr-amber: #a8701f;
    --hdr-line: #e2e6e9;
    --hdr-muted: #687480;
    --hdr-bg: #ffffff;
    --hdr-surface: #fafafa;
    --hdr-mobile-bg: #ffffff;
    --hdr-hamburger: #11181f;
}

[data-theme="dark"] {
    --hdr-ink: #c8d2da;
    --hdr-steel: #4f98c0;
    --hdr-steel-dark: #3a7a9e;
    --hdr-amber: #d4882a;
    --hdr-line: #252d36;
    --hdr-muted: #7a8f9c;
    --hdr-bg: #12181f;
    --hdr-surface: #1e2830;
    --hdr-mobile-bg: #12181f;
    --hdr-hamburger: #c8d2da;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --hdr-ink: #c8d2da; --hdr-steel: #4f98c0; --hdr-steel-dark: #3a7a9e;
        --hdr-amber: #d4882a; --hdr-line: #252d36; --hdr-muted: #7a8f9c;
        --hdr-bg: #12181f; --hdr-surface: #1e2830;
        --hdr-mobile-bg: #12181f; --hdr-hamburger: #c8d2da;
    }
}

header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--hdr-bg);
    border-bottom: 1px solid var(--hdr-line);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.header-content {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; min-height: 72px;
    position: relative;
}
.logo-section { display: flex; align-items: center; }
.logo-section a { display: flex; align-items: center; }
.header-nav { display: flex; align-items: center; gap: 16px; width: 100%; justify-content: flex-end; flex-wrap: nowrap; }
.nav-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-links li a {
    text-decoration: none; color: var(--hdr-ink);
    font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 500;
    letter-spacing: 0.01em; padding: 6px 0; position: relative; transition: color 0.2s ease;
}
.nav-links li a::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px; background: var(--hdr-amber); transition: width 0.2s ease;
}
.nav-links li a:hover { color: var(--hdr-steel); }
.nav-links li a:hover::after { width: 100%; }

#languageSelector, #languageSelectorMobile {
    font-family: 'Inter', sans-serif; font-size: 13.5px; padding: 7px 10px;
    border: 1px solid var(--hdr-line); border-radius: 6px;
    background: var(--hdr-surface); color: var(--hdr-ink); cursor: pointer;
}
.login-btn {
    display: inline-flex; align-items: center; text-decoration: none;
    background: var(--hdr-ink); color: #fff !important;
    padding: 9px 20px; border-radius: 6px; font-size: 14px; font-weight: 600;
    transition: background 0.2s ease; white-space: nowrap;
}
.login-btn:hover { background: var(--hdr-steel-dark); }

.hamburger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 36px; height: 36px;
    background: transparent; border: none; cursor: pointer; padding: 0;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--hdr-hamburger);
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
    margin: 0 auto;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    background: var(--hdr-mobile-bg); border-top: 1px solid var(--hdr-line);
    border-bottom: 1px solid var(--hdr-line);
    transition: background 0.25s ease; padding: 16px 24px 24px;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 72px); overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.mobile-menu.active { display: flex; }
.mobile-menu .nav-links { flex-direction: column; gap: 0; }
.mobile-menu .nav-links li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--hdr-line); font-size: 15px; }
.mobile-menu select { margin-top: 14px; width: 100%; }
.mobile-menu .login-btn { margin-top: 14px; text-align: center; justify-content: center; }

@media (max-width: 900px) {
    .header-nav .nav-links { display: none; }
    #languageSelector { display: none; }
    .header-nav { justify-content: flex-end; gap: 12px; }
    .hamburger { display: flex; }
    #themeToggleBtn { display: inline-flex !important; }
    .logo-section { display: flex !important; }
    .logo-section img { max-width: 120px; }
	.header-nav .login-btn { display: inline-flex !important; } /* ← ADD THIS */
}

/* ── Theme toggle button ── */
.theme-toggle-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid var(--hdr-line); border-radius: 8px;
    background: transparent; color: var(--hdr-ink); cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; flex-shrink: 0;
}
.theme-toggle-btn:hover { background: var(--hdr-surface); border-color: var(--hdr-muted); }
[data-theme="dark"] .theme-toggle-btn { border-color: #2e3a44; color: #c8d2da; }
[data-theme="dark"] .theme-toggle-btn:hover { background: #1e2830; }

.theme-toggle-btn .icon-moon { display: block; }
.theme-toggle-btn .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-sun  { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-toggle-btn .icon-moon { display: none; }
    :root:not([data-theme]) .theme-toggle-btn .icon-sun  { display: block; }
}

.theme-toggle-mobile { width: auto; padding: 10px 14px; margin-top: 10px; border-radius: 8px; justify-content: flex-start; font-family: 'Inter', sans-serif; }
.header-nav #themeToggleBtn, .header-nav #themeToggleBtnMobile { display: inline-flex; }