/* ============================================================
   HEADER – versão final sem conflitos
============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* LOGO */
.brand img {
  height: 28px;
  display: block;
}

/* ------------------------------------------------------------
   NAV DESKTOP
------------------------------------------------------------ */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.nav a {
  opacity: .85;
  transition: .2s;
  font-weight: 500;
}

.nav a:hover {
  opacity: 1;
}

/* CTA desktop */
.btn-cta-desktop {
  display: inline-flex;
}

.btn-cta-mobile {
  display: none;
}

.btn-cta {
  background: linear-gradient(135deg,#ff00cc,#7c3aed);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(124,58,237,.35);
  transition: .25s;
}

.btn-cta:hover {
  transform: scale(1.05);
}

/* ------------------------------------------------------------
   DROPDOWN – DESKTOP (funciona por hover)
------------------------------------------------------------ */
.dropdown {
  position: relative;
}

.dropbtn {
  background: #f4e9ff;
  color: #7B4EFF;
  font-weight: 600;       /* baixa de 700 para 600 */
  padding: 6px 10px;      /* reduz para ficar no mesmo "altura" visual */
  font-size: 1rem;        /* garante que é igual aos outros */
  border-radius: 10px;
  border: none;
  cursor: pointer;
}


.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;     /* sem margem a separar */
  padding-top: 4px;  /* pequena tolerância para não fechar */
  min-width: 180px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.15);
  display: none;
  z-index: 50;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: #111;
}

.dropdown-content a:hover {
  background: #f3f4ff;
}

/* Desktop hover */
@media (hover:hover) and (pointer:fine) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* ------------------------------------------------------------
   HAMBURGER
------------------------------------------------------------ */
.nav-toggle {
  display: none;
  width: 26px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.nav-toggle span {
  height: 3px;
  width: 100%;
  background: #1e1b4b;
  border-radius: 2px;
  transition: .3s;
}

/* animação */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ------------------------------------------------------------
   MOBILE MENU
------------------------------------------------------------ */
@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
    margin-left: auto;
    z-index: 2100;
  }

  .btn-cta-desktop {
    display: none;
  }

  .btn-cta-mobile {
    display: inline-flex;
    margin-top: 10px;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    padding: 28px 0;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 2000;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* +MaPa dropdown mobile */
  .dropdown {
    width: 100%;
    text-align: center;
  }

  .dropdown-content {
    position: static;
    background: #f8f9fa;
    box-shadow: none;
    display: none;
    width: 100%;
    padding: 0;
  }

  .dropdown.open .dropdown-content {
    display: block !important;
  }

  .dropdown-content a {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
}

/* botão mobile escondido no desktop */
.btn-cta-mobile {
    display: none;
}

/* botão desktop escondido no mobile */
@media (max-width: 768px) {
    .btn-cta-desktop {
        display: none;
    }
    .btn-cta-mobile {
        display: inline-flex;
    }
}