/* Keep Start — menu hamburger (todas as telas).
   Substitui os links inline do cabeçalho por um botão de menu + painel deslizante.
   Progressive enhancement: sem JS (sem .js-nav) os links inline continuam visíveis. */

/* Botão de menu no cabeçalho — só aparece quando o JS está ativo */
.nav-burger { display: none; }
html.js-nav .nav-burger {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--fg-0, #f4f4f5);
  border: 1px solid var(--line, rgba(255,255,255,0.14));
  border-radius: 10px; height: 40px; padding: 0 14px;
  font: inherit; font-size: 14px; line-height: 1; cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
html.js-nav .nav-burger:hover { border-color: var(--accent, #f97316); color: #fff; }
html.js-nav .nav-burger svg { display: block; }
.nav-burger-label { font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 380px) { .nav-burger-label { display: none; } }

/* Esconde a navegação inline (links + botões à direita) quando o menu está ativo */
html.js-nav .nav-links { display: none !important; }
html.js-nav .nav-right { display: none !important; }

/* Scrim + painel — overlay dark, idêntico em todas as páginas */
.nav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.nav-scrim.open { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed; top: 0; right: 0; z-index: 91;
  height: 100dvh; width: min(360px, 86vw);
  background: #101216;
  border-left: 1px solid rgba(255,255,255,0.10);
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
  display: flex; flex-direction: column; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer.open { transform: translateX(0); visibility: visible; }

.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 10px 0 18px; flex: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-drawer-title { font-size: 12px; letter-spacing: 0.12em; color: #80818a; text-transform: uppercase; }
.nav-drawer-close {
  background: transparent; border: none; color: #f4f4f5;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 8px;
}
.nav-drawer-close:hover { background: rgba(255,255,255,0.06); }

.nav-drawer-links { display: flex; flex-direction: column; padding: 6px 0; }
.nav-drawer-links a {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 18px; color: #e9e9ec; text-decoration: none;
  font-size: 15px; line-height: 1.2;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background .15s, color .15s;
}
.nav-drawer-links a:last-child { border-bottom: none; }
.nav-drawer-links a:hover,
.nav-drawer-links a:focus-visible { background: rgba(255,255,255,0.05); color: #fff; }
.nav-drawer-links a.is-active { color: var(--accent, #f97316); }
.nav-drawer-links svg { flex: 0 0 auto; color: var(--accent, #f97316); }

.nav-drawer-cta {
  margin-top: auto; flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-drawer-buy {
  background: var(--accent, #f97316); color: var(--accent-ink, #1a0e05);
  font-weight: 600; text-align: center; text-decoration: none;
  padding: 13px; border-radius: 10px; font-size: 14px;
}
.nav-drawer-buy:hover { filter: brightness(1.06); }
.nav-drawer-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.18); color: #e9e9ec;
  text-align: center; text-decoration: none; padding: 12px; border-radius: 10px; font-size: 13px;
}
.nav-drawer-wa:hover { border-color: rgba(255,255,255,0.34); color: #fff; }

body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nav-scrim, .nav-drawer { transition: none; }
}
