/* =========================================================
   HEADER CUSTOMIZADO (RW Interactive)
   ========================================================= */

.custom-site-header {
  background: linear-gradient(90deg, #1C0A4F 0%, #0F206C 100%);
  height: auto;
  min-height: 72px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-site-header .container {
  margin: 0 25px;
  padding: 0 22px;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  height: 100%;
}

/* Logo */
.header-logo { justify-self: start; }
.header-logo img {
  max-height: 38px;
  width: auto;
  display: block;
}

.site-title-fallback {
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

/* Navegação Central */
.header-nav { justify-self: center; }
.header-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.header-nav a:hover { color: #FFFFFF; }

.header-nav a.active {
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

/* Container da Direita */
.header-right {
  display: flex;
  align-items: center;
  justify-self: end;
}

/* Botões de Ação */
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-head {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-head.ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.btn-head.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* =========================================================
   LANGUAGE SWITCHER (PT | EN)
   ========================================================= */
.language-switcher {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

/* Separador visual entre o switcher e o botão/hamburger */
.language-switcher {
  border-right: 1px solid rgba(234, 240, 255, 0.14);
  padding-right: 16px;
  margin-right: 16px;
}

.language-switcher li { line-height: 1; }

.language-switcher a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(234, 240, 255, 0.5);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.language-switcher a:hover { color: rgba(234, 240, 255, 0.8); }

.language-switcher li.current-lang a {
  color: #24DBFF;
  pointer-events: none;
}

/* =========================================================
   MENU MOBILE (HAMBURGER) E RESPONSIVIDADE
   ========================================================= */

.mobile-menu-toggle {
  display: none;
  background-color: transparent;
  border: none;
  color: currentColor;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}

@media (max-width: 980px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  /* Esconde Links e Botão Ghost por defeito no mobile */
  .header-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Ajuste do separador para ficar bonito ao lado do Hamburger */
  .language-switcher {
    padding-right: 12px;
    margin-right: 12px;
  }

  /* Quando o Hamburger é clicado (Menu Aberto) */
  .custom-site-header.is-open .header-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .custom-site-header.is-open .header-nav ul {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 24px 25px 32px;
    background-color: #0F206C; /* Fundo do menu aberto */
    margin: 0;
  }

  .custom-site-header.is-open .header-nav a {
    display: block;
    font-size: 18px; /* Links maiores no mobile */
    padding: 8px 0;
  }

  .custom-site-header.is-open .header-nav a.active {
    border: none;
    background: transparent;
    color: #24DBFF; /* Fica Ciano em vez de ter o fundo fantasma no mobile */
  }
}