/* ─────────────────────────────────────────
   Vozara — SHARED MARKETING NAV — v1.0.0 (prompt 242)
   One sticky, consistent logged-out nav for: index.html (landing),
   pricing.html, demo.html.

   MARKUP CONTRACT — keep the block IDENTICAL on every page (only the
   right-side action differs where noted):

   <header class="mk-nav">
     <div class="mk-nav-inner">
       <a href="/" class="mk-wordmark">Vozara</a>
       <nav class="mk-nav-links">
         <a href="/#lp-how"      data-i18n="nav.how">How it works</a>
         <a href="/#lp-features" data-i18n="nav.features">Features</a>
         <a href="/demo.html"    data-i18n="nav.demo">Demo</a>
         <a href="/pricing.html" data-i18n="nav.pricing">Pricing</a>
       </nav>
       <div class="mk-nav-right">
         [🌐 #lang-toggle button.mk-lang + #lang-dropdown .mk-lang-dropdown]
         [Sign in — button on index (App.showSignInFromLanding), <a href="/"> elsewhere]
         [demo only: <a class="mk-nav-cta" data-i18n="nav.begin">Begin my story →</a>]
       </div>
     </div>
   </header>

   SELF-CONTAINED: colours and line-heights are literal (Warm Dusk values) —
   page palettes/line-heights differ slightly and must not drift the nav.
───────────────────────────────────────── */

.mk-nav {
  position: sticky;
  top: 0;
  z-index: 900; /* above page content, below the body::after noise (9999) */
  width: 100%;
  background: rgba(12, 11, 9, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 232, 213, 0.07);
}
.mk-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mk-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #c8882a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.mk-wordmark::before {
  content: '';
  width: 20px;
  height: 1px;
  background: #c8882a;
  opacity: 0.5;
  display: inline-block;
}

/* links: hidden on mobile (mobile shows wordmark + globe + sign in) */
.mk-nav-links { display: none; }

.mk-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  position: relative;
}
.mk-lang {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  color: #b0a48e;
  transition: color 0.2s;
}
.mk-lang:hover { color: #f0e8d5; }
.mk-signin {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: #b0a48e;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.mk-signin:hover { color: #f0e8d5; }

/* demo's key CTA — quiet bordered pill, amber on hover */
.mk-nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b0a48e;
  border: 1px solid rgba(200, 136, 42, 0.18);
  padding: 8px 18px;
  border-radius: 2px;
  background: none;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  transition: all 0.3s;
}
.mk-nav-cta:hover { color: #c8882a; border-color: #c8882a; }

/* language dropdown (ids #lang-toggle / #lang-dropdown / #lang-check-* are
   the JS contract — js/i18n.js reads them) */
.mk-lang-dropdown {
  display: none;
  position: absolute;
  top: 34px;
  right: 0;
  background: #1c1a16;
  border: 1px solid rgba(200, 136, 42, 0.25);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 164px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.mk-lang-dropdown > div {
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #f0e8d5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}
.mk-lang-dropdown > div:hover { background: rgba(200, 136, 42, 0.1); }
.mk-lang-dropdown > div.mk-lang-note {
  margin: 6px 0 0;
  padding: 10px 16px 8px;
  border-top: 1px solid rgba(240, 232, 213, 0.07);
  cursor: default;
  display: block;
}
.mk-lang-dropdown > div.mk-lang-note:hover { background: transparent; }
.mk-lang-note p {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #6a5f4e;
  line-height: 1.5;
  margin: 0;
}

/* very narrow phones: tighten the demo CTA so the row never wraps */
@media (max-width: 419px) {
  .mk-nav-cta { padding: 7px 10px; font-size: 11px; letter-spacing: 0.06em; }
  .mk-nav-inner { gap: 10px; }
}

@media (min-width: 760px) {
  .mk-nav-inner { height: 72px; padding: 0 40px; }
  .mk-nav-links { display: flex; align-items: center; gap: 28px; margin-left: 40px; }
  .mk-nav-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: #b0a48e;
    text-decoration: none;
    transition: color 0.2s;
  }
  .mk-nav-links a:hover { color: #f0e8d5; }
  .mk-nav-links a.active { color: #e4a84a; }
  .mk-signin { font-size: 14px; }
}
