/*
 * Shared Navigation Styles — ControlTheme Design System
 * Use this on ANY page to get the ControlTheme navigation
 * No need for home-page class wrapper
 */

/* ═══════════════════════════════════════════════════════════════════════════
   NAV TOKENS (standalone, no parent class needed)
   ═══════════════════════════════════════════════════════════════════════════ */

.nav {
    --nav-background: #fcf6ef;
    --nav-text: #000;
    --nav-text-muted: #94877c;
    --nav-font-heading: "Halant", Georgia, serif;
    --nav-font-body: "Geist Sans", "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-radius: 32px;
    --nav-duration: 0.4s;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Transparent nav (keeps black text) */
.nav--transparent {
    background: transparent;
}

/* Glass blur nav — frosted glass effect */
.nav--glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1072px;
    margin: 0 auto;
    padding: 24px;
}

.nav-logo {
    font-family: var(--nav-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--nav-text);
    text-decoration: none;
    letter-spacing: normal; /* Override body inheritance */
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--nav-font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--nav-text);
    text-decoration: none;
    letter-spacing: -0.05em;
    transition: color var(--nav-duration);
}

.nav-links a:hover {
    color: var(--nav-text-muted);
}

.nav-cta {
    font-family: var(--nav-font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--nav-text);
    background: transparent;
    border: 1px solid var(--nav-text);
    padding: 12px 20px;
    border-radius: var(--nav-radius);
    text-decoration: none;
    letter-spacing: normal; /* Override body inheritance */
    transition: background var(--nav-duration), color var(--nav-duration);
}

.nav-cta:hover {
    background: var(--nav-text);
    color: #fff;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--nav-text);
    transition: transform var(--nav-duration);
}

.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-background);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    font-family: var(--nav-font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--nav-text);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 809px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLASS NAV MOBILE MENU FIX
   When nav uses --glass modifier, mobile menu needs explicit solid background
   (nav-menu is sibling of nav, so var(--nav-background) still works,
   but glass pages may have dark/visual backgrounds that show through)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Solid white backdrop for pages using glass nav */
.nav--glass ~ .nav-menu.active {
    background: #ffffff;
}
