/* Componente: Cabeçalho e Navegação Responsiva */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: env(safe-area-inset-top, 0px) var(--pad) 0;
  color: #ffffff;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.hdr.solid,
.hdr.menu-open {
  background: rgba(11, 11, 11, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hdr-in {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand b {
  font: italic 800 1.35rem / 1 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand b i {
  color: var(--red-on-dark);
  font-style: italic;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-left: auto;
}

.nav a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a.on {
  border-color: var(--red);
}

.nav .nav-mobile-cta {
  display: none;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hdr .btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 1rem;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.65);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 960px) {
  .hdr-actions {
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px var(--pad) 24px;
    background: rgba(11, 11, 11, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav .nav-mobile-cta {
    display: inline-flex;
    margin-top: 16px;
    align-self: flex-start;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hdr-cta {
    display: none;
  }
}

@media (max-width: 420px) {
  .hdr-in {
    gap: 10px;
  }

  .brand b {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hdr,
  .nav a,
  .icon-btn {
    transition: none;
  }
}
