/* === Layout base === */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #004B8B;
  color: #fff;
  position: relative;
  z-index: 100;
}

.brand a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
}

/* === BOTÃO HAMBURGUER === */
.hamburger {
  background: #004B8B;       /* Cor de fundo do botão */
  border: none;
  border-radius: 8px;         /* Bordas arredondadas */
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.3s;
}
.hamburger:hover {
  background: #005fa8;        /* Cor ao passar o mouse */
}

.hamburger .lines span {
  width: 28px;                /* Largura das barras */
  height: 3px;                /* Espessura */
  background: #ffffff;        /* Cor das linhas */
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger {
  position: relative;
  z-index: 10000;
}

.nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 75, 139, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 9999;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* === Itens do menu === */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.main-nav li {
  margin: 0.5rem 0;
}
.main-nav a {
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background 0.3s;
}
.main-nav a:hover {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}

/* === Esconde o menu horizontal do Astra (se ativo) === */
.desktop-nav {
  display: none !important;
}
/* === EFEITO ANIMADO: ÍCONE VIRA "X" === */
.hamburger.active .lines span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .lines span:nth-child(2) {
  opacity: 0;
}
.hamburger.active .lines span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
/* === BOTÃO DE BUSCA === */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-toggle {
  background: #004B8B;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px;
  transition: background 0.3s;
}
.search-toggle:hover {
  background: #005fa8;
}

/* === OVERLAY DE BUSCA === */
.search-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 75, 139, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 10000;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: 90%;
  max-width: 600px;
  text-align: center;
}

.search-box input[type="search"] {
  width: 100%;
  padding: 15px;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  outline: none;
}

.search-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  cursor: pointer;
}
/* Overlay base */
.nav-overlay, .search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.97);
  color: white;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-overlay.open, .search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-top, .nav-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.search-box {
  width: 90%;
  max-width: 500px;
}

.search-box form {
  display: flex;
  gap: 0.5rem;
}

.search-box input[type="search"] {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.search-box input[type="submit"] {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.search-box input[type="submit"]:hover {
  background: #1d4ed8;
}

.search-toggle, .hamburger {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  margin-left: 0.75rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

