/* site-chrome.css — Shared navigation + footer styles
   Section 35 (HCI Standards), Section 8.5 (Design System)
   Applied across all public-facing pages for consistency. */

/* ===== NAVIGATION ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #e7e5e4;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    font-weight: 700;
    font-size: 1.0625rem;
    color: #4f46e5;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.site-brand:hover {
    color: #4338ca;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    color: #78716c;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.15s;
}

.site-nav a:hover {
    color: #1c1917;
}

.site-nav a[aria-current="page"] {
    color: #4f46e5;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: #4f46e5;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.15s;
}

.nav-cta:hover {
    background: #4338ca;
    color: #fff !important;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1c1917;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    background: #fff;
    border-bottom: 1px solid #e7e5e4;
    padding: 0.5rem 1.5rem 1rem;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu nav a {
    display: block;
    padding: 0.75rem 0;
    color: #1c1917;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f4;
}

.mobile-menu nav a:last-child {
    border-bottom: none;
}

.mobile-menu nav a:hover {
    color: #4f46e5;
}

.mobile-menu .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
}

/* Responsive nav breakpoint */
@media (max-width: 768px) {
    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ===== FOOTER ===== */

.site-footer {
    background: #fafaf9;
    border-top: 1px solid #e7e5e4;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand-col .footer-brand-name {
    font-weight: 700;
    font-size: 1.0625rem;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.footer-brand-col .footer-tagline {
    font-size: 0.875rem;
    color: #78716c;
    line-height: 1.5;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1c1917;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
}

.footer-col a {
    display: block;
    color: #78716c;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: #4f46e5;
}

/* Footer bottom bar */
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e7e5e4;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: #a8a29e;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    font-size: 0.8125rem;
    color: #a8a29e;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-legal-links a:hover {
    color: #4f46e5;
}

.footer-disclosure {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: #a8a29e;
    margin-top: 0.5rem;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

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

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-toggle span,
    .site-nav a,
    .footer-col a,
    .footer-legal-links a,
    .nav-cta {
        transition: none;
    }
}
