/* css/header.css */

body {
  font-family: 'DM Sans', 'Outfit', sans-serif;
}

/* ================================================
   HEADER PRINCIPAL
   ================================================ */
.main-header {
  width: 100%;
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ================================================
   LOGO
   ================================================ */
.logo {
  font-family: 'DM Sans', 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  text-decoration: none;
}

/* ================================================
   MENU DE NAVEGAÇÃO
   ================================================ */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  list-style: none;
}

.nav-menu a {
  color: #9d9ab0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.2s;
}

.nav-menu a::after {
  content: '';
  display: block;
  height: 1.5px;
  width: 0;
  background: #a78bfa;
  transition: width 0.25s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.nav-menu a:hover {
  color: #f0eeff;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a.active {
  color: #a78bfa;
}

.nav-menu a.active::after {
  width: 100%;
  background: #a78bfa;
}

/* ================================================
   LADO DIREITO — CTA + TOGGLE
   ================================================ */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #a78bfa;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.header-cta:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.6);
  color: #c4b5fd;
}

/* ================================================
   MENU TOGGLE (mobile)
   ================================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #9d9ab0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ================================================
   RESPONSIVIDADE
   ================================================ */
@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
    height: 58px;
    position: relative;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 10, 18, 0.98);
    border-bottom: 1px solid rgba(124, 58, 237, 0.12);
    padding: 12px 0 20px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
  }

  .nav-menu a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}