/* ═══════════════════════════════════════════
   SafePlate - Navigation Styles
   Sticky nav (home) + Inner nav (sub-pages)
   ═══════════════════════════════════════════ */

/* ─── Sticky Nav (home page) ─────── */
.sticky-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    background: rgba(10,15,28,0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transform: translateY(-100%);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
}
.sticky-nav.visible { transform: translateY(0); opacity: 1; }

/* On inner pages the nav is always visible */
.sticky-nav.sticky-nav--always {
    transform: translateY(0);
    opacity: 1;
}

.sticky-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
}
.sticky-nav-logo { width: 26px; height: 26px; border-radius: 7px; }

.sticky-nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}
.sticky-nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.sticky-nav-link:hover { color: var(--text); }

.sticky-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.sticky-nav-cta:hover { background: #2563eb; transform: translateY(-1px); }

.sticky-nav-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.75); }
}

@media (max-width: 680px) {
    .sticky-nav-links { display: none; }
}

/* ─── Inner-page Nav ─────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
}
.nav-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}
.nav-back {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-back:hover { color: var(--primary); }
