/* ============================================================
   Aristo — chrome compartilhado (header/menu unico)
   Fonte unica da identidade de navegacao para TODAS as paginas.
   Injetado por site.js como <site-header>. O footer usa
   footer-shared.css (tambem injetado como <site-footer>).
   Paleta: navy #041633, azul marca #0473e3, vidro DAE6F2.
   ============================================================ */

/* o host reserva a altura do pill fixo (16 topo + 70 altura + folga),
   entao o conteudo comeca abaixo dele em qualquer layout de pagina */
site-header { display: block; width: 100%; height: 118px; align-self: stretch; flex: 0 0 auto; }
site-footer { display: block; width: 100%; align-self: stretch; }

/* pill de vidro, fixo (permanece no topo ao rolar, como na home) */
.ar-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  box-sizing: border-box;
  width: min(1140px, calc(100% - 48px));
  height: 70px;
  padding: 0 12px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: rgba(218, 230, 242, 0.72);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(4, 22, 51, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  font-family: "Inter", Helvetica, sans-serif;
}

.ar-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.ar-logo img { height: 30px; width: auto; display: block; }

.ar-nav {
  display: inline-flex;
  align-items: center;
  gap: 40px;
}

.ar-nav a {
  position: relative;
  font-weight: 400;
  font-size: 16px;
  color: #041633;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.ar-nav a:hover { color: #0473e3; }

/* item da pagina atual */
.ar-nav a[aria-current="page"] { color: #0473e3; font-weight: 600; }
.ar-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: #0473e3;
}

/* botao de login (mesma identidade do index: retangulo navy)
   selector com .ar-header p/ vencer .ar-nav a (o link mora dentro da nav) */
.ar-header .ar-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #041633;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.1px;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.ar-header .ar-login:hover { background-color: #0473e3; color: #ffffff; }
.ar-header .ar-login img { width: 20px; height: 20px; display: block; }

/* hamburguer (mobile) */
.ar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: #041633;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.ar-header.nav-open .ar-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ar-header.nav-open .ar-toggle span:nth-child(2) { opacity: 0; }
.ar-header.nav-open .ar-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  site-header { height: 84px; }
  .ar-header {
    width: calc(100% - 32px);
    padding: 0 8px 0 20px;
    flex-wrap: wrap;
    overflow: visible;
  }
  .ar-toggle { display: flex; }

  .ar-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .ar-header.nav-open { height: auto; padding-bottom: 16px; }
  .ar-header.nav-open .ar-nav {
    max-height: 480px;
    opacity: 1;
    padding-top: 8px;
    border-top: 1px solid rgba(4, 22, 51, 0.12);
    margin-top: 4px;
  }
  .ar-nav a { padding: 12px 8px; font-size: 17px; }
  .ar-nav a[aria-current="page"]::after { display: none; }
  .ar-login { width: 100%; justify-content: center; margin-top: 6px; padding: 14px 16px; }
}
