/*
 * header.css — Header fixo transparente do tema (global, todas as páginas).
 * Carregado sem condição via ai_theme_enqueue_assets().
 * Comportamento: transparente no topo, vira branco ao rolar (js/header.js).
 * Tokens de cor/tipografia ficam no :root de style.css.
 */

html { scroll-behavior: smooth; }

.hd-header,
.mobile-sidebar { font-family: var(--tf-font); }

.hd-header a { text-decoration: none; }
.hd-header a:hover { text-decoration: none; }

#home { scroll-margin-top: 90px; }

/* ===== HEADER (fixo transparente) ===== */
.hd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hd-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #edeef5;
  box-shadow: 0 6px 22px -18px rgba(10, 20, 107, 0.5);
}
.hd {
  max-width: var(--tf-container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: height .3s ease;
}
.hd-header.is-scrolled .hd { height: 74px; }

.hd-logo-link { display: flex; align-items: center; flex: none; }
.hd-logo { height: 42px; width: auto; display: block; transition: height .3s ease; }
.hd-header.is-scrolled .hd-logo { height: 42px; }
.hd-logo--navy { display: none; }
.hd-header.is-scrolled .hd-logo--white { display: none; }
.hd-header.is-scrolled .hd-logo--navy { display: block; }

.hd-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--tf-white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.hd-header.is-scrolled .hd-badge {
  color: var(--tf-navy);
  border: 1px solid #e2e4f0;
  background: transparent;
}
.hd-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tf-yellow);
  box-shadow: 0 0 0 3px rgba(254, 219, 0, 0.28);
}

.hd-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.hd-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 26px;
}
.hd-nav-list li { margin: 0; }
.hd-nav-link,
.hd-nav-list a {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  transition: color .3s ease;
}
.hd-nav-link:hover,
.hd-nav-list a:hover { color: var(--tf-yellow); }
.hd-header.is-scrolled .hd-nav-link,
.hd-header.is-scrolled .hd-nav-list a { color: #2a2f5c; }
.hd-header.is-scrolled .hd-nav-link:hover,
.hd-header.is-scrolled .hd-nav-list a:hover { color: var(--tf-blue); }

.hd-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tf-yellow);
  color: var(--tf-navy);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(254, 219, 0, 0.4);
}
.hd-cta:hover { color: var(--tf-navy); }

/* Burguer reaproveita .mobile-menu-toggle + js/mobile-menu.js */
.hd-header .hd-burger {
  display: none;
  width: auto; height: auto;
  padding: 6px;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: var(--tf-white);
  transition: color .3s ease;
}
.hd-header.is-scrolled .hd-burger { color: var(--tf-navy); }

/* CTA do menu mobile off-canvas */
.hd-cta--mobile {
  display: flex;
  justify-content: center;
  width: 100%;
  box-shadow: none;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 960px) {
  .hd-nav, .hd-badge, .hd-cta { display: none; }
  .hd-header .hd-burger { display: inline-flex; margin-left: auto; }
}
@media (max-width: 640px) {
  .hd { padding-left: 20px; padding-right: 20px; height: 60px; }
}
