/* Shared site chrome: header, navigation, footer. Loaded by every page. */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--night), transparent);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 45px; width: 45px; }
.nav-logo span { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; color: var(--cream); letter-spacing: 2px; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.nav-links a { color: var(--cream-dim); text-decoration: none; font-size: 0.9rem; font-weight: 400; letter-spacing: 1px; transition: color 0.3s ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.nav-donate { background: var(--gold); color: var(--night); padding: 0.5rem 1.25rem; font-weight: 600; }
.nav-links a.nav-donate:hover { background: var(--gold-light); color: var(--night); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; z-index: 200; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--cream); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Bilingual nav label (only the AI Coach page switches language) */
.nav-es { display: none; }
.js[data-lang="es"] .nav-es { display: inline; }
.js[data-lang="es"] .nav-en { display: none; }

footer { background: var(--night); padding: 2.5rem 5%; text-align: center; border-top: 1px solid var(--night-lighter); position: relative; z-index: 1; margin-top: 0; }
footer p { color: var(--text-muted); font-size: 0.85rem; }
footer .footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
footer .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; letter-spacing: 1px; transition: color 0.3s ease; }
footer .footer-links a:hover { color: var(--gold); }
footer .nonprofit { color: #a08a62; font-size: 0.8rem; margin-top: 0.5rem; }

@media (max-width: 1240px) {
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(75vw, 320px); background: var(--night-light); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; transform: translateX(100%); transition: transform 0.3s ease; box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4); }
    .nav-links.open { transform: translateX(0); }
}