/* =========================================================
   AQUAG · HEADER
   Header fixo, transparente no topo e "compacto/opaco" após
   rolar (classe .aq-scrolled, alternada por site-header.js).
   Menu mobile em hambúrguer com painel deslizante.
   ========================================================= */

#aq-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: padding .35s var(--aq-ease), background-color .35s var(--aq-ease), box-shadow .35s var(--aq-ease), border-color .35s var(--aq-ease);
  border-bottom: 1px solid transparent;
}

#aq-header.aq-scrolled {
  padding: 10px 0;
  background: rgba(3, 11, 23, .95);
  border-bottom-color: rgba(255, 255, 255, .07);
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, .6);
}

.aq-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aq-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--aq-font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--aq-white);
}

.aq-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--aq-gradient-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aq-navy-950);
  box-shadow: 0 8px 24px -8px rgba(34, 211, 238, .6);
}

.aq-nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 1024px) {
  .aq-nav-desktop { display: flex; }
}

.aq-nav-link {
  position: relative;
  padding: 9px 14px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--aq-slate-300);
  border-radius: var(--aq-radius-btn);
  transition: color .2s, background-color .2s;
}

/* Entre 1024 e 1180px o menu fica apertado: links mais compactos. */
@media (min-width: 1024px) and (max-width: 1180px) {
  .aq-nav-desktop { gap: 0; }
  .aq-nav-link { padding: 9px 10px; font-size: .82rem; }
}

.aq-nav-link:hover { color: var(--aq-white); background: rgba(255, 255, 255, .06); }

.aq-nav-link.aq-active { color: var(--aq-cyan-300); }

.aq-nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--aq-gradient-sky);
  transform: translateX(-50%) scaleX(0);
  transition: transform .3s var(--aq-ease);
}

.aq-nav-link.aq-active::after { transform: translateX(-50%) scaleX(1); }

.aq-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aq-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--aq-white);
}

@media (min-width: 1024px) {
  .aq-burger { display: none; }
}

/* --- Painel mobile --- */

#aq-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(2, 8, 18, .55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--aq-ease);
}

#aq-mobile-panel.aq-open {
  opacity: 1;
  pointer-events: auto;
}

.aq-mobile-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--aq-navy-900);
  border-left: 1px solid rgba(255, 255, 255, .08);
  padding: 24px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .35s var(--aq-ease);
  overflow-y: auto;
}

#aq-mobile-panel.aq-open .aq-mobile-sheet { transform: translateX(0); }

.aq-mobile-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.aq-mobile-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aq-white);
}

.aq-mobile-link {
  padding: 13px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--aq-slate-300);
}

.aq-mobile-link:hover, .aq-mobile-link.aq-active { color: var(--aq-white); background: rgba(255, 255, 255, .06); }

.aq-mobile-divider {
  height: 1px;
  background: rgba(255, 255, 255, .08);
  margin: 10px 0;
}

.aq-mobile-portal {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--aq-radius-btn);
  font-family: var(--aq-font-display);
  font-weight: 600;
  background: var(--aq-gradient-sky);
  color: var(--aq-navy-950);
}
