/* ================= HEADER BASE ================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgb(107 55 252);
  z-index: 999;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}

.site-branding img {
  height: 192px;
  margin-top: 20px;
}

/* ================= MENU DESKTOP ================= */

.main-navigation {
  margin-left: auto;
}

.nav-menu {
  display: flex;
  gap: 7px;
  list-style: none;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
}

/* ================= BOTÃƒÆ’O ================= */

.btn-chat {
  background: #000000;
  color: #fff;
  padding: 12px 20px;
  border-radius: 17px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  /* width: 8.25rem; */
}

/* ================= HAMBURGUER ================= */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  margin-left: auto;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ================= MOBILE ================= */

.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 991px) {

  .menu-toggle {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .main-navigation {
    position: fixed;
    inset: 0;
    background: #000000;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    padding-top: 118px;
    max-width: 302px;
  }

  body.menu-open .main-navigation {
    transform: translateX(0);
    display: flex;
    flex-direction: column;
  }

  .nav-menu {
    flex-direction: column;
    gap: 26px;
    padding: 0 24px;
    /* width: 196px; */
    /* text-align: center; */
    /* margin: 0 auto; */
  }

  .nav-menu a {
    font-size: 20px;
  }

  .mobile-only {
    display: block;
    margin-top: 32px;
    padding: 0 24px;
  }

  .btn-chat {
    width: 100%;
    text-align: center;
  }

 
  body.menu-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* ======================================
   LANGUAGE SWITCHER Ã¢â‚¬â€œ CLICK ONLY
   ====================================== */

.language-switcher {
  position: relative;
  margin-left: 20px;
  font-family: 'Roboto', sans-serif;
}

/* ===============================
   BOTÃƒÆ’O
   =============================== */
.lang-current {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 20px;
}

.lang-current svg {
  fill: #fff;
  opacity: 0.5;
  transition: transform .25s ease;
  margin-top: 1px;
}

/* ===============================
   DROPDOWN (FECHADO)
   =============================== */
.lang-dropdown {
  position: absolute;
  top: 140%;
  right: 0;
  width: 191px;
  background: #1f232b;
  border-radius: 18px;
  padding: 10px;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  z-index: 9999;
  /* flex-direction: column; */
  display: block!important;
}

/* ===============================
   ABERTO (CLASSE ATIVA)
   =============================== */
.language-switcher.is-open .lang-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-switcher.is-open .lang-current svg {
  transform: rotate(180deg);
}

/* ===============================
   ITENS
   =============================== */
.lang-dropdown li {
  margin: 4px 0;
}

.lang-dropdown li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background .2s ease;
  text-transform: capitalize;
  font-weight: 600;
}

.lang-dropdown li a:hover {
  background: #6f3cff;
}

.lang-dropdown img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* ===============================
   PREVENIR CORTE
   =============================== */
.site-header,
.header-container,
.main-navigation,
nav {
  overflow: visible !important;
}


/* MOBILE */
@media (max-width: 768px) {
  .language-switcher .lang-dropdown {
    right: auto;
    left: 0;
  }
  .site-branding img{
    height: 23px;
    margin-top: 0;
  }
  .btn-chat{
    background: #6b37fc;
  }
}

/* =============================
   MOBILE – ORDEM DO MENU
   Idioma acima do botão
   ============================= */
@media (max-width: 991px) {

  /* garante layout em coluna */
  .main-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* language switcher acima */
  .language-switcher {
    order: 2;
    margin: 24px 0 12px;
  }

  /* botão CTA abaixo */
  .header-cta.mobile-only {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }

  /* botão ocupar largura */
  .header-cta.mobile-only .btn-chat {
    width: 100%;
    text-align: center;
  }

  /* menu principal continua no topo */
  .nav-menu {
    order: 1;
  }
}
