/* ──────────────────────────────────────────────
   Header & Navigation
────────────────────────────────────────────── */
.site-header {
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    background: rgba(251, 251, 253, 0.8);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
     max-width: 1280px;
    margin: auto;
    width: calc(100% - 70px);
}

.brand {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 1.2rem;
    opacity: 0.92;
    transition: opacity 0.3s;
}

.brand:hover {
    opacity: 1;
}

.header-cta {
    color: #fff;
    background: var(--accent);
    text-decoration: none;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 400;
    transition: background 0.3s ease;
}

.header-cta:hover {
    background: #0077ed;
}

/* ──────────────────────────────────────────────
   Hamburger button
────────────────────────────────────────────── */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-hamburger:hover {
    background: rgba(0, 0, 0, 0.06);
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ──────────────────────────────────────────────
   Overlay
────────────────────────────────────────────── */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ──────────────────────────────────────────────
   Sidebar
────────────────────────────────────────────── */
.nav-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-sidebar.is-open {
    transform: translateX(0);
}

.nav-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    padding: 1rem 1.5rem 2rem;
}

.nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--muted);
    line-height: 1;
    margin-bottom: 1.5rem;
    transition: background 0.2s, color 0.2s;
}

.nav-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--ink);
}

.nav-sidebar nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-sidebar nav ul li a {
    display: block;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
    transition: color 0.2s, padding-left 0.2s;
}

.nav-sidebar nav ul li:last-child a {
    border-bottom: none;
}

.nav-sidebar nav ul li a:hover {
    color: var(--accent);
    padding-left: 0.75rem;
}
