/* ======================================================
   NOVO CABEÇALHO
   Altere apenas estas cores para mudar o visual completo.
====================================================== */

.site-header {
  --header-azul: #12385f;
  --header-azul-claro: #1d527f;
  --header-dourado: #c9a227;
  --header-dourado-hover: #ddb43a;
  --header-branco: #fcfbf7;
  --header-fundo-menu: #f2f6f8;
  --header-texto: #173e61;
  --header-borda: #e2e8ef;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  background: var(--header-branco);
  box-shadow: 0 2px 12px rgba(18, 56, 95, 0.12);
}

body {
  padding-top: 137px;
}

/* O menu fixo não encobre o título do formulário ao usar o atalho #newsletter. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

/* Estrutura comum */

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header__container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* Barra superior */

.site-header__top {
  height: 42px;
  background: var(--header-azul);
  color: var(--header-branco);
}

.site-header__top .site-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__contact,
.site-header__social {
  display: flex;
  align-items: center;
}

.site-header__contact {
  gap: 24px;
  font-size: 13px;
}

.site-header__contact a,
.site-header__social a {
  color: var(--header-branco);
  text-decoration: none;
}

.site-header__contact i {
  margin-right: 6px;
  color: var(--header-dourado);
}

.site-header__social {
  gap: 16px;
}

.site-header__social a {
  font-size: 17px;
  transition: color 0.2s ease;
}

.site-header__social a:hover {
  color: var(--header-dourado);
}

/* Área principal */

.site-header__main {
  height: 95px;
  border-bottom: 3px solid var(--header-dourado);
  /* Fundo sólido mantém a navegação sempre legível em qualquer página. */
  background: var(--header-branco);
}

.site-header__navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-width: 0;
}

.site-header__logo {
  display: flex;
  flex: 0 0 auto;
  width: 230px;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header__logo img {
  display: block;
  width: 220px;
  max-width: 28vw;
  max-height: 62px;
  object-fit: contain;
  /* Não aplicamos filtros: o preto original deve permanecer elegante e legível. */
  filter: none;
}

/* Menu para desktop */

.site-header__desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__desktop-nav > a,
.site-header__services summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  color: var(--header-texto);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-header__desktop-nav > a:hover,
.site-header__services summary:hover {
  color: var(--header-dourado);
  background: var(--header-fundo-menu);
}

.site-header__services {
  position: relative;
}

.site-header__services summary {
  list-style: none;
}

.site-header__services summary::-webkit-details-marker {
  display: none;
}

.site-header__services summary i {
  margin-left: 8px;
  font-size: 11px;
  transition: transform 0.2s ease;
}

.site-header__services[open] summary i {
  transform: rotate(180deg);
}

.site-header__services-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  padding: 10px;
  border: 1px solid var(--header-borda);
  border-radius: 12px;
  background: var(--header-branco);
  box-shadow: 0 12px 28px rgba(18, 56, 95, 0.16);
}

.site-header__services-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #244a6d;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.site-header__services-menu a:hover {
  color: var(--header-azul);
  background: #f3f6f8;
}

.site-header__services-menu i {
  width: 19px;
  color: var(--header-dourado);
  text-align: center;
}

/* Divide os menus de conteúdo (Serviços/Blog) dos links institucionais. */
.site-header__utility-start {
  position: relative;
  margin-left: 8px;
}

.site-header__utility-start::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -8px;
  width: 1px;
  background: var(--header-borda);
}

.site-header__whatsapp {
  margin-left: 8px;
  border-radius: 24px;
  background: var(--header-dourado);
  color: var(--header-azul) !important;
}

/* CTA DE NEWSLETTER — destacado, mas mais discreto que o contato via WhatsApp. */
.site-header__newsletter {
  margin-left: 3px;
  border: 1px solid var(--header-dourado);
  border-radius: 24px;
  color: var(--header-azul) !important;
}

.site-header__newsletter:hover {
  background: #fff9e8 !important;
  color: var(--header-azul) !important;
}

.site-header__newsletter i {
  margin-right: 5px;
  color: var(--header-dourado);
}

.site-header__whatsapp:hover {
  background: var(--header-dourado-hover) !important;
  color: var(--header-azul) !important;
}

.site-header__whatsapp i {
  margin-right: 5px;
}

/* Menu mobile: escondido no desktop */

.site-header__mobile-menu {
  display: none;
}

/* Tablet e celular */

@media (max-width: 992px) {
  /* Mantém o botão sempre dentro da linha do cabeçalho.
     Estas regras neutralizam estilos antigos que possam existir no site. */
  .site-header__navigation > .site-header__mobile-menu {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    transform: none !important;
    float: none !important;
  }

  .site-header__desktop-nav {
    display: none;
  }

  .site-header__mobile-menu {
    position: relative;
    display: block;
    flex: 0 0 48px;
  }

  .site-header__mobile-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 54px;
    margin: 0 !important;
    border-radius: 10px;
    color: var(--header-azul);
    cursor: pointer;
    list-style: none;
  }

  .site-header__mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .site-header__mobile-menu summary:hover {
    background: var(--header-fundo-menu);
  }

  .site-header__mobile-menu summary i {
    font-size: 25px;
  }

  .site-header__mobile-nav {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 10000;
    width: min(330px, calc(100vw - 32px));
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--header-borda);
    border-radius: 14px;
    background: var(--header-branco);
    box-shadow: 0 16px 35px rgba(18, 56, 95, 0.2);
  }

  .site-header__mobile-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: 8px;
    color: #244a6d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  .site-header__mobile-nav a:hover {
    background: #f3f6f8;
    color: var(--header-dourado);
  }

  .site-header__mobile-nav a i {
    width: 18px;
    color: var(--header-dourado);
    text-align: center;
  }

  .site-header__mobile-title {
    display: block;
    margin: 12px 8px 5px;
    padding-top: 12px;
    border-top: 1px solid var(--header-borda);
    color: var(--header-dourado);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  /* No menu empilhado, o separador vertical do desktop torna-se horizontal. */
  .site-header__mobile-nav .site-header__utility-start {
    margin: 8px 0 0;
    padding-top: 20px;
  }

  .site-header__mobile-nav .site-header__utility-start::before {
    top: 4px;
    right: 8px;
    bottom: auto;
    left: 8px;
    width: auto;
    height: 1px;
  }

  .site-header__mobile-whatsapp {
    justify-content: center;
    margin-top: 8px;
    background: var(--header-dourado);
    color: var(--header-azul) !important;
  }

  .site-header__mobile-newsletter {
    justify-content: center;
    margin-top: 8px;
    border: 1px solid var(--header-dourado);
    color: var(--header-azul) !important;
  }
}

/* Celular */

@media (max-width: 600px) {
  body {
    padding-top: 76px;
  }

  .site-header__top {
    display: none;
  }

  .site-header__main {
    height: 76px;
    border-bottom-width: 2px;
  }

  .site-header__container {
    width: min(100% - 32px, 1180px);
  }

  .site-header__logo img {
    width: 178px;
    max-width: 52vw;
    max-height: 48px;
  }

  .site-header__logo {
    width: 185px;
    padding: 0;
  }

  .site-header__mobile-menu summary {
    width: 48px;
    height: 50px;
  }
}
