/* ===========================================================================
   Navegação do Balneário Termas do Caldas
   ---------------------------------------------------------------------------
   REGRA GERAL
     ≥ 1024px  →  barra horizontal com ÍCONE + RÓTULO. Sem hambúrguer.
     < 1024px  →  hambúrguer com painel de itens nomeados. Sem barra.

   O CTA "Planejar Visita" fica visível em todas as larguras: é a ação de
   conversão e não deve depender de abrir menu.

   POR QUE TANTO !important AQUI
     O Tailwind Play CDN injeta o <style> dele DEPOIS destes <link>. Como as
     classes utilitárias (hidden, xl:flex) têm a mesma especificidade que
     estes seletores, a ordem do cascade decidiria e o Tailwind venceria.
     O !important é o que garante que o ponto de corte real seja 1024px, e
     não o xl (1280px) que está escrito no HTML.
   =========================================================================== */

.site-header {
  border-bottom-width: 1px !important;
  border-bottom-color: #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(6, 21, 51, 0.07) !important;
}

.site-header > div {
  gap: 0.75rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.site-header > div > a:first-child img {
  width: 3rem;
  height: 3rem;
}

/* --------------------------------------------------------- barra desktop -- */

.site-header .desktop-navigation {
  display: none !important;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  gap: clamp(0.15rem, 0.9vw, 0.6rem);
}

@media (min-width: 1024px) {
  .site-header .desktop-navigation { display: flex !important; }
}

.site-header .desktop-navigation > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0 0.7rem !important;
  border: 0 !important;
  border-radius: 9999px;
  color: #0f2547 !important;
  background: transparent;
  white-space: nowrap;
}

.site-header .desktop-navigation > a:hover {
  color: #0f2547 !important;
  background: rgba(0, 163, 224, 0.1);
}

.site-header .desktop-navigation > a[aria-current="page"] {
  color: #ffffff !important;
  background: #00a3e0;
  box-shadow: 0 5px 14px rgba(0, 163, 224, 0.24);
}

.site-header .desktop-navigation > a > i {
  display: block;
  width: auto;
  color: #ffbf00 !important;
  font-size: 0.95rem;
}

/* O item ativo é um "pill" azul: o ícone amarelo perderia contraste ali. */
.site-header .desktop-navigation > a[aria-current="page"] > i {
  color: #ffffff !important;
}

/* Os rótulos voltam a ser visíveis. Ícone sozinho obriga a adivinhar —
   "lupa com gráfico" para Transparência e "ondas" para O Balneário eram os
   piores casos. O <span> continua no HTML, então o leitor de tela nunca
   deixou de ler; o problema era só de quem enxerga. */
.site-header .desktop-navigation > a > span {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  border: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Entre 1024 e 1180px os sete rótulos ficam apertados: apenas encolhemos um
   pouco em vez de voltar a esconder texto. */
@media (min-width: 1024px) and (max-width: 1180px) {
  .site-header .desktop-navigation > a { padding: 0 0.45rem !important; gap: 0.3rem; }
  .site-header .desktop-navigation > a > span { font-size: 0.7rem; }
  .site-header .desktop-navigation > a > i { font-size: 0.85rem; }
}

/* ------------------------------------------------------------------ CTA --- */

/* Mesmas cores do botao "Planejar Minha Visita" que aparece no corpo das
   paginas: amarelo da marca com texto navy e o brilho suave. Antes o do
   cabecalho era azul com texto branco e destoava dele. */
.site-header .visit-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-height: 2.75rem;
  padding: 0 1.1rem !important;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 9999px;
  font-weight: 900;
  background: #ffb800 !important;               /* caldas-yellow */
  color: #061533 !important;                    /* caldas-navy   */
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.4) !important;  /* shadow-glow */
  transition: background-color .2s ease, transform .2s ease;
}

/* hover:bg-amber-400, igual ao botao do corpo da pagina */
.site-header .visit-cta:hover {
  background: #fbbf24 !important;
  transform: translateY(-1px);
}

.site-header .visit-cta[aria-current="page"] {
  background: #ffb800 !important;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.55) !important;
}

.site-header .visit-cta i {
  display: block !important;
  font-size: 1rem;
  color: #061533;                               /* icone acompanha o texto */
}

/* -------------------------------------------------- hambúrguer e painel --- */

/* Some no desktop, aparece abaixo de 1024px. */
.site-header #menu-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  color: #061533;
  background: #fff;
}

.site-header #menu-btn:hover { background: #f8fafc; }

@media (min-width: 1024px) {
  .site-header #menu-btn { display: none !important; }
  .site-header .mobile-navigation { display: none !important; }
}

/* O painel é aberto/fechado por JS, que troca as classes .hidden e .flex.
   Por isso NÃO forçamos display aqui: apenas garantimos que .hidden vença. */
@media (max-width: 1023px) {
  .site-header .mobile-navigation.hidden { display: none !important; }
}

.site-header .mobile-navigation > a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 1.25rem;
  border-left: 4px solid transparent;
  font-weight: 700;
  color: #334155;
}

.site-header .mobile-navigation > a:hover { background: #f8fafc; }

.site-header .mobile-navigation > a[aria-current="page"] {
  color: #00a3e0;
  border-left-color: #00a3e0;
  background: rgba(0, 163, 224, 0.06);
}

.site-header .mobile-navigation > a > i {
  width: 1.25rem;
  text-align: center;
  color: #ffbf00;
}

/* Telas bem estreitas: o rótulo do CTA vira só "Visitar" via classes do
   HTML; aqui só apertamos o respiro para tudo caber em uma linha. */
@media (max-width: 380px) {
  .site-header > div { gap: 0.4rem; padding-inline: 0.6rem; }
  .site-header > div > a:first-child img { width: 2.5rem; height: 2.5rem; }
  .site-header .visit-cta { padding: 0 0.7rem !important; }
}
