/* ==========================================================================
   Cloakwise — Navigation & Footer
   Version: 2.0.0
   Usage: Linked in every HTML page after tokens.css
   ========================================================================== */

/* ── NAV ────────────────────────────────────────────────────────────────── */
nav {
  background: var(--paper);
  border-bottom: 1px solid var(--bdrdim);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }

.nav-mark {
  width: 30px; height: 30px;
  background: var(--acc);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.nav-mark:hover { background: var(--acch); }
.nav-mark svg { width: 16px; height: 16px; }

.nav-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.nav-name span { color: var(--acc); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-link { font-size: 0.85rem; color: var(--muted); transition: color 0.15s; }
.nav-link:hover { color: var(--acc); }
.nav-cta {
  background: var(--sec); color: #fff;
  padding: 7px 18px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--sech); }

/* ── NAV DROPDOWN ───────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown-btn {
  font-size: 0.85rem; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-body);
  transition: color 0.15s;
}
.nav-dropdown-btn:hover { color: var(--acc); }
.nav-dropdown-btn::after { content: '▾'; font-size: 0.7rem; }

.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--paper); border: 1px solid var(--bdrdim);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 220px; overflow: hidden; z-index: 200;
}

.nav-dropdown-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 1rem; font-size: 0.85rem; color: var(--ink);
  text-decoration: none; transition: background 0.15s;
  border-bottom: 1px solid var(--bdrdim);
  cursor: pointer; gap: 8px; white-space: nowrap;
}
.nav-dropdown-item:last-child { border-bottom: none; }
.nav-dropdown-item:hover { background: var(--bone); color: var(--acc); }
.nav-dropdown-item.disabled { color: var(--muted); pointer-events: none; }

.nav-dropdown-menu a {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink); text-decoration: none;
}
.nav-dropdown-menu a:hover { background: var(--bone); color: var(--acc); }

/* ── COMING SOON BADGE ──────────────────────────────────────────────────── */
.coming-soon {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--secbg); border: 1px solid rgba(161,84,41,0.2);
  color: var(--sec); padding: 1px 5px;
  border-radius: var(--radius-full); white-space: nowrap;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  background: #1a1a1a;
  padding: 1.5rem 0;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}

.footer-copy { font-size: 0.8rem; color: #565f73; }

.footer-links { display: flex; gap: 18px; background: none; }
.footer-links a {
  font-size: 0.8rem; color: #565f73;
  transition: color 0.15s;
  background: none !important; border: none !important;
  padding: 0; text-decoration: none; display: inline;
}
.footer-links a:hover { color: #34d1a0; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-link { display: none; }
}
