/* ============================================================
   Numax — Site Header unificado
   Menu mobile inclui Login + CTA via clone JS
   ============================================================ */

.site-header,
header.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.site-header__inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #E5E8EE;
  box-shadow: 0 14px 36px rgba(17, 30, 54, 0.08);
  pointer-events: auto;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-weight: 400;
  position: relative;
}

.site-header__logo {
  width: 118px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.site-header__logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: none;
}

.site-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(17, 30, 54, 0.72);
  font-size: 13px;
  font-weight: 400;
  font-family: inherit;
  flex-wrap: nowrap;
}

.site-header__link {
  transition: color 0.2s ease;
  white-space: nowrap;
  color: rgba(17, 30, 54, 0.78);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 13px;
  padding: 0;
  background: none;
  border: 0;
  min-height: 0;
  min-width: 0;
  text-decoration: none;
  line-height: 1.2;
}

.site-header__link:hover {
  color: #0055ad;
}

.site-header__link.is-current,
.site-header__link[aria-current="page"] {
  color: #0055ad;
  font-weight: 600;
}

.site-header__link.is-current::after,
.site-header__link[aria-current="page"]::after {
  display: none;
  content: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  flex-shrink: 0;
}

.site-header__login {
  color: #0055ad;
  text-decoration: none;
  font-weight: 400;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
  background: none;
  white-space: nowrap;
}

.site-header__login:hover {
  color: #003c7a;
}

.site-header__actions .btn,
.site-header__actions a.btn,
.site-header__actions .btn-primary,
.site-header__actions .btn--primary,
.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 0;
  background: #0055ad;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
  border: 0;
  transition: filter 0.2s ease;
}

.site-header__actions .btn:hover,
.site-header__cta:hover {
  filter: brightness(1.08);
  transform: none;
}

.site-header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #E5E8EE;
  border-radius: 999px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.site-header__toggle span {
  width: 18px;
  height: 1px;
  background: #111E36;
  display: block;
}

/* ============================================================
   MOBILE (< 1100px) — !important pra vencer cascata de CSSs
   de páginas que tinham overrides locais
   ============================================================ */
@media (max-width: 1100px) {
  .site-header__menu {
    display: none !important;
  }
  .site-header__toggle {
    display: inline-flex !important;
  }
  .site-header__actions {
    display: none !important;
  }

  /* Menu mobile aberto: overlay full-width abaixo do header */
  .site-header__menu.is-open {
    position: fixed !important;
    display: flex !important;
    left: 20px !important;
    right: 20px !important;
    top: 90px !important;
    padding: 18px !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 14px 36px rgba(17, 30, 54, 0.12) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    font-size: 14px !important;
    z-index: 999 !important;
  }

  /* Links de navegação dentro do menu mobile */
  .site-header__menu.is-open .site-header__link {
    font-size: 15px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(17, 30, 54, 0.06);
    text-align: left;
  }

  /* Bloco de Login + CTA — clonado via JS pra dentro do menu */
  .site-header__menu .site-header__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(17, 30, 54, 0.08);
  }
  .site-header__menu .site-header__mobile-actions .site-header__login {
    font-size: 15px;
    padding: 10px 4px;
    text-align: center;
    color: #0055ad;
    font-weight: 500;
  }
  .site-header__menu .site-header__mobile-actions .btn,
  .site-header__menu .site-header__mobile-actions a.btn,
  .site-header__menu .site-header__mobile-actions .btn-primary,
  .site-header__menu .site-header__mobile-actions .site-header__cta {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
  }
  .site-header__inner {
    border-radius: 24px;
    width: calc(100% - 24px);
  }
  .site-header__menu.is-open {
    top: 80px !important;
    left: 12px !important;
    right: 12px !important;
  }
}
