/* ============================================================
   TRAFEGOBI · LAYOUT
   Navbar pública, footer, logo, marca.
   ============================================================ */

/* ── Logo ─────────────────────────────────────────────────────── */
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.logo span { color: var(--brand); }
.logo__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  display: grid; place-items: center;
  box-shadow: var(--shadow-brand);
  position: relative;
  overflow: hidden;
}
.logo__mark::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
}
.logo__mark svg { width: 17px; height: 17px; position: relative; z-index: 1; }

/* ── Navbar ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease), backdrop-filter var(--t-base);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }

.nav__links { display: flex; align-items: center; gap: var(--sp-5); }
.nav__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  position: relative;
  padding: 0.3rem 0;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--brand); transition: width var(--t-base) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  color: var(--text);
  align-items: center; justify-content: center;
}
.nav__toggle:hover { background: var(--surface-2); }

/* Drawer mobile */
.nav__drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-4) clamp(1.25rem, 4vw, 2.5rem) var(--sp-5);
  display: none;
  flex-direction: column;
  gap: var(--sp-1);
  z-index: var(--z-nav);
  box-shadow: var(--shadow-lg);
  animation: fade-up var(--t-base) var(--ease);
}
.nav__drawer.is-open { display: flex; }
.nav__drawer a:not(.btn) {
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.nav__drawer a:not(.btn):hover { color: var(--text); }
.nav__drawer .btn { margin-top: var(--sp-3); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(124,108,255,0.03));
  padding-block: var(--sp-8) var(--sp-6);
  margin-top: var(--sp-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line);
}
.footer__brand-desc { color: var(--text-3); font-size: var(--fs-sm); max-width: 32ch; margin-top: var(--sp-3); }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-4);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__col a { font-size: var(--fs-sm); color: var(--text-2); }
.footer__col a:hover { color: var(--brand); }

.footer__socials { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.footer__social {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--text-2);
  transition: all var(--t-base) var(--ease);
}
.footer__social:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--sp-5);
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer__copy { font-size: var(--fs-xs); color: var(--text-3); }
.footer__cnpj { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 0.25rem; }
.footer__legal { display: flex; gap: var(--sp-4); font-size: var(--fs-xs); }
.footer__legal a { color: var(--text-3); }
.footer__legal a:hover { color: var(--text-2); }

/* ── Responsivo ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-5); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  /* No mobile os botoes (Entrar/Criar conta) vivem no drawer — deixa so o hamburger,
     senao 'Criar conta gratis' esprema e esconde as 3 barrinhas. */
  .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
