/* ═══════════════════════════════════════════
   ZELLENIUM — navbar.css
   Navbar, Logo, Links, Actions, Mobile Drawer
   ═══════════════════════════════════════════ */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--t-base), backdrop-filter var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--c-surface);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  border-bottom-color: var(--c-border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 29px; /* Proporção ideal simétrica com o texto */
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.15));
  transition: transform var(--t-fast), filter var(--t-fast);
}

.nav-logo:hover .logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.3));
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-title {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 17px;
  color: var(--c-text);
  letter-spacing: -0.4px;
  line-height: 1;
}

.logo-subtitle {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--c-cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Nav links ── */
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--c-text-2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-links a:hover {
  color: var(--c-text);
  background: var(--c-surface);
}

/* ── Nav actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-ghost {
  text-decoration: none;
  color: var(--c-text-2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.btn-ghost:hover {
  color: var(--c-text);
  border-color: var(--c-border-2);
  background: var(--c-cyan-dim);
}

.btn-primary {
  text-decoration: none;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: var(--g-brand);
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 0 18px rgba(0,212,255,.2);
}

.btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0,212,255,.35);
}

/* ── Hamburger button ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--c-surface);
  backdrop-filter: blur(24px);
  z-index: 99;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
  border-top: 1px solid var(--c-border);
}

.nav-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-drawer a {
  text-decoration: none;
  color: var(--c-text-2);
  font-size: 16px;
  font-weight: 500;
  padding: 13px 16px;
  border-radius: var(--r-md);
  transition: background var(--t-fast), color var(--t-fast);
  border-bottom: 1px solid var(--c-border);
}

.nav-drawer a:last-child { border-bottom: none; }

.nav-drawer a:hover {
  background: var(--c-surface);
  color: var(--c-text);
}

.nav-drawer .drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

.nav-drawer .drawer-ctas .btn-ghost,
.nav-drawer .drawer-ctas .btn-primary {
  text-align: center;
  justify-content: center;
  font-size: 15px;
  padding: 12px 20px;
  display: flex;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions { display: none; }
  .nav-toggle  { display: flex; margin-left: auto; }
  .nav-inner   { padding: 0 20px; }
}
