/*
  Header principal moderno:
  - alinhamento horizontal de logo/menu/acao
  - blur de 4px no fundo
  - transicoes suaves para interacoes premium
*/

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: #bfc3c800;
  border-bottom-color: rgba(18, 51, 44, 0.12);
  box-shadow: 0 8px 26px rgba(5, 19, 31, 0.12);
}

@media (min-width: 1025px) {
  .site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 244, 247, 0.95) 100%);
    border-bottom-color: rgba(18, 51, 44, 0.12);
    box-shadow: 0 10px 24px #2dc2a691;
  }
}

.header-container {
  width: min(1680px, calc(100% - 2rem));
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1.3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: -1.1rem;
}

.brand img {
  display: block;
  height: auto;
  transition: transform 0.35s ease, filter 0.35s ease;
  margin-left: 20px;
}

.brand:hover img,
.brand:focus-visible img {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.06) saturate(1.08) drop-shadow(0 0 10px rgba(53, 213, 187, 0.45));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 242, 238, 0.35);
  border-radius: 10px;
  background: rgba(9, 24, 21, 0.35);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #f8f8f8;
  border-radius: 2px;
}

.site-header.is-scrolled .menu-toggle {
  border-color: rgba(18, 51, 44, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

.site-header.is-scrolled .menu-toggle span {
  background: #16342e;
}

.site-header .btn-primary {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 152px;
  padding-inline: 1.35rem;
}

/* Ajuste fino de posicionamento da logo para a esquerda */
@media (min-width: 961px) {
  .site-header .brand {
    margin-left: -1.6rem;
  }
}

@media (min-width: 1280px) {
  .site-header .brand {
    margin-left: -2.25rem;
  }
}
