/* =====================================================
   Site Navigation — Shared across all pages
   ===================================================== */

.site-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.site-nav-brand {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.site-nav-link {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.site-nav-link:hover {
    color: var(--color-primary);
}

.site-nav-link.active {
    color: var(--color-primary);
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle-icon {
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before {
    top: -7px;
}

.nav-toggle-icon::after {
    top: 7px;
}

/* Hamburger open state */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .site-nav-links.open {
        display: flex;
    }

    .site-nav-link {
        padding: 0.875rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .site-nav-link:last-child {
        border-bottom: none;
    }

    .site-nav-link:hover,
    .site-nav-link.active {
        background: rgba(107, 70, 193, 0.05);
    }
}

/* =====================================================
   Site Footer — Shared across all pages
   ===================================================== */

.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
}

.site-footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.site-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.site-footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
}

.site-footer-contact a:hover {
    color: white;
    text-decoration: underline;
}

.site-footer-links {
    margin-top: 1rem !important;
    font-size: 0.85rem !important;
}

.site-footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer-links a:hover {
    color: white;
}

.site-footer-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25rem;
}