/* =============================================================
   HEADER.CSS — Navegação, menu hambúrguer e menu mobile
   Estratégia: mobile-first
   ============================================================= */

/* ===================== HEADER ===================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}

header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* ===================== NAV INNER ===================== */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================== LOGO ===================== */
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.logo span {
  color: var(--accent);
}

/* ===================== NAV LINKS (oculto no mobile) ===================== */
.nav-links {
  display: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ===================== CTA DO NAV (oculto no mobile) ===================== */
.nav-cta {
  display: none;
}

/* ===================== HAMBÚRGUER ===================== */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================== MENU MOBILE ===================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu .mobile-cta {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
}
