/* ═══════════════════════════════════════════════════════════════════
   OdontoPro — Navigation & Mobile Menu
   ═══════════════════════════════════════════════════════════════════ */

/* ── Sticky header ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: rgba(15,46,34,.08);
  background: rgba(255,255,255,.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}

/* ── Brand ───────────────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  /* NOTE: sem flex-shrink:0 — deixa o flexbox negociar espaço em telas pequenas */
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-800);
  display: grid; place-items: center;
  color: var(--cream-100);
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
}
.brand b    { font-weight: 500; }
.brand span { color: var(--green-700); font-style: italic; }

/* ── Desktop links ───────────────────────────────────────────────── */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--green-700); }

/* ── CTA cluster ─────────────────────────────────────────────────── */
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav .btn { height: 44px; font-size: 14px; padding: 0 18px; }

/* ── Hamburger ───────────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(13,26,20,.15);
  border-radius: var(--r-pill);
  background: transparent;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 18px; height: 18px; }

/* ── Collapse at lg (tablet + mobile) ───────────────────────────── */
@media (max-width: 1024px) {
  .nav-links,
  .nav-cta .btn-ghost { display: none; }
  .menu-toggle        { display: inline-flex; }
}

/* ── Small phone: Brand + hamburger only ─────────────────────────
   Em telas ≤ 640 px o botão de WhatsApp da nav some — o mobile menu
   já tem o CTA. Isso garante que o hamburger nunca transborde.        */
@media (max-width: 640px) {
  .nav-inner          { gap: 12px; }
  .nav-cta .btn-primary { display: none; }
}

/* ── Mobile menu ─────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--cream-100);
  z-index: 40;
  padding: 32px var(--gutter);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink-900);
  border-bottom: 1px solid rgba(13,26,20,.08);
  transition: color .2s var(--ease);
}
.mobile-menu a:hover { color: var(--green-700); }
.mobile-menu .btn    { margin-top: 24px; width: 100%; justify-content: center; height: 54px; }

@media (max-width: 480px) {
  .mobile-menu a { font-size: 22px; }
}
