/* Header único e reaproveitável — usado por todas as páginas do site. */

header {
  position: fixed;
  inset: 0 0 auto 0;
  min-height: 70px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 8px 0;
}

header .wrap { width: min(1120px, 92%); margin: 0 auto; }

header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

header .cta-group a { border: 1px solid rgba(255, 255, 255, .22); }

header nav.menu {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

header nav.menu a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  transition: .2s;
}

header nav.menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

header nav.menu a.menu-login { color: #facc15; }
header nav.menu a.menu-login:hover { color: #fde68a; background: rgba(255, 255, 255, .08); }

/* Botão hambúrguer (mobile) */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: #fff; border-radius: 3px; }

/* Área do usuário logado */
.user-area { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.user-name { font-weight: 600; color: #fff; }
.user-btn {
  width: 34px; height: 34px; border-radius: 50%; background: #22c55e;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-weight: bold; color: #fff;
}
.dropdown {
  position: absolute; top: 44px; right: 0; background: #1e293b; border-radius: 10px;
  display: none; flex-direction: column; min-width: 200px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .4); overflow: hidden; z-index: 1001;
}
.dropdown.show { display: flex; }
.dropdown a { color: #fff; padding: 12px 18px; text-decoration: none; }
.dropdown a:hover { background: #334155; }

@media (max-width: 1400px) {
  header nav.menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    padding: 80px 20px;
    z-index: 999;
    text-align: center;
  }
  header nav.menu.show { display: flex; justify-content: center; gap: 20px; }
  .hamburger { display: flex; }
}
