/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
}
.logo-text { font-weight: 400; }
.logo-accent { font-weight: 600; color: var(--accent); }

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text-main); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}
.lang-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
    background: transparent;
    text-decoration: none;
    transition: all 0.2s;
}
.lang-btn.active {
    background: var(--bg-dark);
    color: var(--text-inverse);
}
.lang-btn:not(.active):hover { background: var(--border-light); color: var(--text-main); }

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }
.mobile-overlay.active { display: block; }

@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--space-md) var(--space-md);
        border-left: 1px solid var(--border-light);
        z-index: 100;
        transition: right 0.3s ease;
    }
    .main-nav.open { right: 0; }
    .nav-link { font-size: 1rem; padding: 0.75rem 0; }
    .mobile-menu-btn { display: flex; }
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand .site-logo { margin-bottom: var(--space-xs); display: inline-block; }
.footer-brand .logo-text { color: var(--text-inverse); }
.footer-tagline { font-size: 0.85rem; color: rgba(244,243,240,0.6); margin-top: 0.5rem; }

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(244,243,240,0.5);
    margin-bottom: var(--space-sm);
}
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(244,243,240,0.8); font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(244,243,240,0.4);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
