:root {
    color-scheme: dark;
    --background: #050816;
    --surface: rgba(15, 23, 42, 0.88);
    --surface-soft: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #22c55e;
    --border: rgba(148, 163, 184, 0.16);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(5, 8, 22, 0.25);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}

.site-header.scrolled {
    background: rgba(5, 8, 22, 0.92);
    border-color: rgba(148, 163, 184, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 85px;
    padding: 0.75rem 0;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-copy {
    display: grid;
    gap: 0.2rem;
}

.site-title,
.footer-logo {
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 700;
}

.site-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    margin: 3px auto;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.primary-menu {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li a {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.primary-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.primary-menu li a:hover::after,
.primary-menu li.current-menu-item a::after {
    width: 100%;
}

.nav-whatsapp {
    background: var(--accent);
    color: #0f172a;
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
}

@media (max-width: 980px) {
    .site-toggle {
        display: flex;
    }

    .primary-navigation {
        position: fixed;
        inset: 90px 1.25rem auto 1.25rem;
        right: 0;
        width: min(92vw, 320px);
        flex-direction: column;
        background: rgba(5, 8, 22, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1.25rem;
        padding: 1.5rem;
        gap: 1rem;
        transform: translateX(110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .primary-navigation.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .primary-menu {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding: 0.65rem 0;
    }

    .brand-copy {
        gap: 0.1rem;
    }

    .site-description {
        display: none;
    }
}
