/* ════════════════════════════════════════════════════════════════
                            Header
════════════════════════════════════════════════════════════════ */
/* Barra de navegação sticky */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(4, 18, 43, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: box-shadow 0.3s;
}

/* Sombra (headerScroll.js) */
.header.is-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

/* logo | nav | actions | mobile */
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: 100%;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Navegação desktop */
.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--dur);
}

/* Linha sublinhada no hover */
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
  box-shadow: 0 0 8px rgba(0, 198, 255, 0.6);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

/* Botões de ação */
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Botão mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 201;
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}

/* Animação em X */
.hamburger.is-open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
