/* =========================================================
   HILL VALLEY 6.10 — HEADER SYSTEM
   Camada exclusiva do cabeçalho. Não altera o modal do Marty.
   Zero vertical = centro real da faixa. Valor positivo sobe; negativo desce.
   ========================================================= */
.site-header{
  top:12px!important;
  width:min(var(--header-max,1120px),96vw)!important;
  display:grid!important;
  align-items:center!important;
  border-radius:18px!important;
}
.site-header .brand,.site-header nav,.site-header .header-actions{align-self:center!important}
.site-header .brand{display:flex!important;align-items:center!important;justify-self:start!important;height:100%!important;min-width:0!important}
.site-header .brand img{display:block!important;object-fit:contain!important;object-position:left center!important}
.site-header nav{justify-self:center!important;align-items:center!important}
.site-header .header-actions{justify-self:end!important;display:flex!important;align-items:center!important;align-self:stretch!important;height:100%!important;margin:0!important}
.site-header nav a{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  line-height:1!important;
}
.site-header nav a::after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:100%!important;
  bottom:calc(-1 * var(--hv-underline-gap,7px))!important;
  height:var(--hv-underline-thickness,1px)!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,var(--amber),transparent)!important;
  transition:right .30s ease!important;
}
.site-header nav a:hover::after,.site-header nav a:focus-visible::after{right:0!important}

/* CTA visual padronizado entre site principal e Insights. Só o botão-gatilho. */
.site-header .marty-launch{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  border:1px solid color-mix(in srgb,var(--marty-cta,#c83d36) 72%,#fff 0%)!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--marty-cta,#c83d36) 92%,#fff 4%),color-mix(in srgb,var(--marty-cta,#c83d36) 74%,#000 26%))!important;
  color:#fff!important;
  font-family:var(--sans)!important;
  font-weight:850!important;
  line-height:1!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  box-shadow:0 12px 30px color-mix(in srgb,var(--marty-cta,#c83d36) 24%,transparent)!important;
  transform-origin:center!important;
  transition:transform .24s ease,filter .24s ease,box-shadow .24s ease!important;
}
@keyframes hvHeaderMartyPulseV6{
  0%,100%{box-shadow:0 12px 30px color-mix(in srgb,var(--marty-cta,#c83d36) 22%,transparent)}
  50%{box-shadow:0 15px 38px color-mix(in srgb,var(--marty-cta,#c83d36) 38%,transparent),0 0 0 7px color-mix(in srgb,var(--marty-cta,#c83d36) 7%,transparent)}
}
.site-header .marty-launch.is-pulsing{animation:hvHeaderMartyPulseV6 2.75s ease-in-out infinite!important}
.site-header .marty-launch[data-style-desktop="compact"],.site-header .marty-launch[data-style-mobile="compact"]{border-radius:12px!important;box-shadow:none!important}
.site-header .marty-launch[data-style-desktop="outline"],.site-header .marty-launch[data-style-mobile="outline"]{background:rgba(12,15,18,.42)!important;border-color:color-mix(in srgb,var(--marty-cta,#c83d36) 68%,rgba(255,255,255,.18))!important;box-shadow:inset 0 1px rgba(255,255,255,.08)!important}

@media(min-width:761px){
  .site-header{
    height:var(--hv-header-h-d,62px)!important;
    padding:0 var(--hv-header-pad-d,20px)!important;
    grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr)!important;
    column-gap:var(--hv-actions-gap-d,10px)!important;
  }
  .site-header .brand{transform:translate(var(--hv-logo-offset-d,0px),calc(0px - var(--hv-logo-offset-y-d,0px)))!important}
  .site-header .brand img{width:var(--logo-desktop,260px)!important;max-width:100%!important;max-height:calc(var(--hv-header-h-d,62px) - 14px)!important}
  .site-header nav{display:flex!important;height:100%!important;align-self:stretch!important;align-items:center!important;gap:var(--hv-nav-gap-d,24px)!important;transform:translate(var(--hv-nav-offset-d,0px),calc(0px - var(--hv-nav-offset-y-d,0px)))!important}
  .site-header nav a{font-size:var(--nav-font,10px)!important}
  .site-header .header-actions{gap:var(--hv-actions-gap-d,10px)!important;transform:none!important}
  .site-header .marty-launch{
    min-height:var(--hv-marty-h-d,46px)!important;height:var(--hv-marty-h-d,46px)!important;
    padding:0 var(--hv-marty-pad-d,25px)!important;max-width:var(--hv-marty-max-d,280px)!important;
    font-size:var(--hv-marty-font-d,11px)!important;
    transform:translate(var(--hv-marty-offset-d,0px),calc(0px - var(--hv-marty-offset-y-d,0px)))!important;
  }
  .site-header .marty-launch:hover{transform:translate(var(--hv-marty-offset-d,0px),calc(0px - var(--hv-marty-offset-y-d,0px) - 1px)) scale(1.025)!important;filter:brightness(1.08)!important}
}

@media(max-width:760px){
  .site-header{
    height:var(--hv-header-h-m,58px)!important;
    padding:0 var(--hv-header-pad-m,17px)!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    column-gap:var(--hv-actions-gap-m,8px)!important;
  }
  .site-header .brand{transform:translate(var(--hv-logo-offset-m,0px),calc(0px - var(--hv-logo-offset-y-m,0px)))!important}
  .site-header .brand img{width:min(var(--logo-mobile,188px),100%)!important;max-width:100%!important;max-height:calc(var(--hv-header-h-m,58px) - 12px)!important}
  .site-header .header-actions{gap:var(--hv-actions-gap-m,8px)!important;transform:none!important;min-width:max-content!important}
  .site-header .marty-launch{
    min-height:var(--hv-marty-h-m,40px)!important;height:var(--hv-marty-h-m,40px)!important;
    padding:0 var(--hv-marty-pad-m,14px)!important;max-width:var(--hv-marty-max-m,160px)!important;
    font-size:var(--hv-marty-font-m,10px)!important;overflow:hidden!important;text-overflow:ellipsis!important;
    transform:translate(var(--hv-marty-offset-m,0px),calc(0px - var(--hv-marty-offset-y-m,0px)))!important;
  }
  .site-header .marty-label-desktop{display:none!important}.site-header .marty-label-mobile{display:inline!important}
  .site-header .menu-toggle{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:var(--hv-menu-toggle-m,42px)!important;height:var(--hv-menu-toggle-m,42px)!important;min-width:var(--hv-menu-toggle-m,42px)!important;
    padding:0!important;transform:translate(var(--hv-menu-toggle-x-m,0px),calc(0px - var(--hv-menu-toggle-y-m,0px)))!important;
  }
  .site-header nav{top:calc(12px + var(--hv-header-h-m,58px) + 12px)!important}
  .site-header nav a{font-size:var(--hv-nav-font-m,11px)!important}
}
@media(prefers-reduced-motion:reduce){.site-header .marty-launch.is-pulsing{animation:none!important}}


/* =========================================================
   6.3 — LOGO SIZE FIX
   A arte da assinatura possui respiro transparente no arquivo.
   Por isso a largura configurada não pode ser limitada pela altura
   da faixa. O usuário controla tamanho e posição de forma independente.
   ========================================================= */
.site-header .brand{overflow:visible!important}
.site-header .brand img{height:auto!important;max-height:none!important;max-width:none!important;object-fit:contain!important;transform-origin:left center!important}
@media(min-width:761px){
  .site-header .brand img{width:var(--logo-desktop,260px)!important}
}
@media(max-width:760px){
  .site-header .brand{overflow:visible!important}
  .site-header .brand img{width:var(--logo-mobile,188px)!important;max-width:none!important;max-height:none!important}
}


/* =========================================================
   6.3 — LOGO CONTROL HARD FIX
   Última camada do header. O slider passa a ser a autoridade final
   sobre a largura da assinatura; nenhuma regra antiga de site.css,
   altura da faixa ou max-width pode reduzir o valor salvo.
   ========================================================= */
.site-header .brand{
  overflow:visible!important;
  min-width:0!important;
  width:auto!important;
}
.site-header .brand img,
.site-header .brand>img,
.brand img{
  display:block!important;
  height:auto!important;
  max-height:none!important;
  max-width:none!important;
  min-width:0!important;
  flex:0 0 auto!important;
  object-fit:contain!important;
  object-position:left center!important;
  transform:none!important;
}
@media(min-width:761px){
  .site-header .brand img,.site-header .brand>img,.brand img{
    width:var(--logo-desktop,260px)!important;
  }
  .site-header .brand{
    transform:translate(var(--hv-logo-offset-d,0px),calc(0px - var(--hv-logo-offset-y-d,0px)))!important;
  }
}
@media(max-width:760px){
  .site-header .brand img,.site-header .brand>img,.brand img{
    width:var(--logo-mobile,188px)!important;
  }
  .site-header .brand{
    transform:translate(var(--hv-logo-offset-m,0px),calc(0px - var(--hv-logo-offset-y-m,0px)))!important;
  }
}

/* =========================================================
   6.9 — MARTY ATTENTION PULSE
   Pulso perceptível sem alterar escala, posição ou alinhamento do CTA.
   ========================================================= */
@keyframes hvMartyAttention68{
  0%,18%,100%{outline-color:color-mix(in srgb,var(--marty-cta,#c83d36) 52%,transparent);outline-offset:0}
  72%{outline-color:transparent;outline-offset:9px}
}
.site-header .marty-launch.is-pulsing{
  outline:1px solid transparent!important;
  animation:hvMartyAttention68 2.15s ease-out infinite!important;
}
@media(prefers-reduced-motion:reduce){.site-header .marty-launch.is-pulsing{animation:none!important;outline-color:transparent!important}}


/* =========================================================
   6.10 — MOBILE MENU ATTACHED TO THE HEADER
   O dropdown ocupa a mesma largura da faixa e nasce imediatamente
   abaixo dela. Evita o menu estreito/flutuante no centro da tela.
   ========================================================= */
@media(max-width:760px){
  .site-header{overflow:visible!important}
  .site-header nav{
    position:absolute!important;
    top:calc(100% + 10px)!important;
    left:0!important;right:0!important;
    width:100%!important;max-width:none!important;
    margin:0!important;padding:12px!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:var(--hv-mobile-menu-item-gap,8px)!important;
    border:1px solid rgba(246,196,83,.22)!important;border-radius:16px!important;
    background:linear-gradient(180deg,rgba(7,11,15,.985),rgba(4,7,10,.975))!important;
    box-shadow:0 22px 58px rgba(0,0,0,.48)!important;
    -webkit-backdrop-filter:blur(24px)!important;backdrop-filter:blur(24px)!important;
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
    transform:translate3d(0,-8px,0)!important;
    transition:opacity .24s ease,transform .28s ease,visibility .24s ease!important;
    max-height:calc(100svh - var(--hv-header-h-m,58px) - 42px)!important;overflow:auto!important;
  }
  .site-header.open nav{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translate3d(0,0,0)!important}
  .site-header nav a{
    width:100%!important;min-height:var(--hv-mobile-menu-item-height,52px)!important;
    display:flex!important;align-items:center!important;
    justify-content:var(--hv-mobile-menu-align,flex-start)!important;
    text-align:var(--hv-mobile-menu-text-align,left)!important;
    padding:0 14px!important;border:1px solid rgba(255,255,255,.045)!important;border-radius:11px!important;
    background:rgba(255,255,255,.018)!important;color:#cbd2d7!important;
    font-size:var(--hv-nav-font-m,11px)!important;letter-spacing:.12em!important;
  }
  .site-header nav a:hover,.site-header nav a:focus-visible{background:rgba(246,196,83,.07)!important;border-color:rgba(246,196,83,.16)!important;color:#fff!important;outline:none!important}
}
