/* ══════════════════════════════════════════
   ASPENE-SE — header.css
   Header unificado para todas as páginas
   ══════════════════════════════════════════ */

/* Reset conflitos do style.css antigo */
.header { top: 0 !important; position: sticky !important; }
.header-inner { display: none !important; }

/* ── Estrutura principal ── */
.header {
  background: #fff;
  border-bottom: 1px solid #E8ECF2;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  z-index: 1000;
  top: 0;
}

.header-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Logo ── */
.header-logo { flex-shrink: 0; text-decoration: none; }
.header-logo img { height: 44px; width: auto; display: block; }

/* ── Nav desktop ── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-item { position: relative; }

.header-nav .nav-link {
  display: block;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 500;
  color: #2D3748;
  border-radius: 5px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
  font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
  background: #F0F4FA;
  color: #003A6E;
}

/* ── Dropdown ── */
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,40,100,.12);
  min-width: 200px;
  padding: 6px 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: #2D3748;
  text-decoration: none;
  transition: background .1s, color .1s;
}

.dropdown a:hover { background: #F0F4FA; color: #003A6E; }

/* ── Header util (pix | remessa | login) ── */
.header-util {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.util-link {
  font-size: 11px;
  color: #B0B7C3;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
  letter-spacing: .02em;
}

.util-link:hover { color: #596475; }

.util-sep { color: #DDE3EE; font-size: 13px; }

.header-login {
  padding: 7px 16px;
  border-radius: 5px;
  background: #003A6E;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}

.header-login:hover { background: #005A9C; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #2D3748;
  border-radius: 2px;
  transition: all .25s;
}

/* ── Mobile nav ── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #E8ECF2;
  padding: 0 24px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s;
}

.mobile-nav.open { max-height: 600px; }

.mobile-nav a {
  padding: 11px 0;
  font-size: 14px;
  font-weight: 500;
  color: #2D3748;
  border-bottom: 1px solid #F0F4FA;
  display: block;
  text-decoration: none;
}

.mobile-nav a:last-child { border-bottom: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .header-top { padding: 0 20px; gap: 16px; }
}

@media (max-width: 900px) {
  .header-nav { display: none !important; }
  .header-util { display: none !important; }
  .hamburger { display: flex !important; }
  .mobile-nav { display: flex; }
}

@media (max-width: 480px) {
  .header-top { padding: 0 16px; }
  .header-logo img { height: 38px; }
}
