/* ===========================
   HEADER / NAVBAR
   =========================== */

/* Header principal */
.cabecalho {
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 40;
  position: relative; /* Para o menu mobile absolute */
}

/* Container do header */
.cabecalho__container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .cabecalho__container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .cabecalho__container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Navegação desktop */
.cabecalho__container__nav {
  display: none;
  gap: 0rem;
  align-items: center;
}
@media (min-width: 768px) {
  .cabecalho__container__nav {
    display: flex;
  }
}

/* Botão mobile toggle */
.cabecalho__container__botao {
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .cabecalho__container__botao {
    display: none;
  }
}

/* Logo / Brand */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand);
  text-decoration: none;
  transition: opacity 200ms ease;
}
.site-brand:hover {
  opacity: 0.8;
}

.site-brand-sub {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-gray-600);
  margin-top: 0.25rem;
}

/* Links de navegação */
.nav__link {
  color: var(--color-gray-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 200ms ease, color 200ms ease;
  text-decoration: none;
}
.nav__link:hover {
  background-color: var(--color-gray-100);
  color: var(--brand);
}
.nav__link.active {
  background-color: #eff6ff;
  color: var(--brand);
}

/* Menu Mobile - Overlay (Sobreposto) */
.botao__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  flex-direction: column;
  gap: 0.5rem;
}

.botao__mobile a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease;
}

.botao__mobile a:hover,
.botao__mobile a:focus { 
  background-color: #eff6ff;
  color: #1e40af;
}

/* Quando o menu está aberto */
.botao__mobile.show {
  display: flex;
}

/* Esconde em desktop */
@media (min-width: 768px) {
  .botao__mobile { 
    display: none !important; 
  }
}

/* Ícone do botão mobile */
.botao__svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-gray-700);
}

/* ===========================
   FIM HEADER
   =========================== */