/* Home navigation, shared by internal routes. */

body[data-shared-home-header] { padding-top: 112px; }
body.menu-open { overflow: hidden; }
.home-header.site-header {
  position: fixed; inset: 12px auto auto 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 1200px; z-index: 50;
  border: 0; border-radius: 999px; background: rgb(248 245 238 / .92);
  color: #073e37; backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgb(7 62 55 / .14);
  font-family: 'Instrument Sans', Arial, sans-serif;
}
.home-header .navigation { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: calc(100% - 48px); margin: auto; height: 76px; min-height: 76px; }
/* Logo: no topo escuro, a versão completa negativa (58 px de altura); na pílula clara,
   o wordmark positivo. A caixa tem o tamanho do nome; a completa fica presa ao topo e o
   slogan pende abaixo (compensado pela margem), então o nome das duas versões coincide
   e a troca é só o slogan sumindo enquanto a caixa encolhe.
   Proporções: wordmark 5554 × 856, completa 5554 × 1506. */
.home-header .header-brand-link {
  --logo-w: 176px; --logo-h: 27px; --logo-tail: 0px;
  position: relative; display: block; flex-shrink: 0;
  width: var(--logo-w); height: var(--logo-h); margin-bottom: var(--logo-tail);
  transition: width .4s cubic-bezier(.22, 1, .36, 1), height .4s cubic-bezier(.22, 1, .36, 1), margin .4s cubic-bezier(.22, 1, .36, 1);
}
body:not([data-shared-home-header]) .home-header:not(.is-scrolled) .header-brand-link { --logo-w: 214px; --logo-h: 33px; --logo-tail: 25px; }
.home-header .header-logo { position: absolute; inset: 0 auto auto 0; width: 100%; height: auto; max-width: none; object-fit: fill; transition: opacity .4s cubic-bezier(.22, 1, .36, 1); }
.home-header .header-logo-negative { opacity: 0; }
.home-header .header-logo-positive { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .home-header .header-brand-link, .home-header .header-logo { transition: none; } }

.home-header .active-wave { display: none; }
.home-header .navigation nav { display: flex; gap: 24px; font-size: 15px; }
.home-header a { color: inherit; text-decoration: none; }
.home-header .navigation nav a { padding: 12px 0; }
.home-header nav a { display: inline-flex; align-items: center; gap: 8px; }
.home-header .header-icon { width: 18px; height: 18px; flex-shrink: 0; transform: none !important; }
.home-header dialog .header-icon { width: 24px; height: 24px; }
.home-header .menu-toggle { margin-left: auto; }
@keyframes header-icon-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-header .header-icon > * {
    stroke-dasharray: 1; stroke-dashoffset: 0;
    animation: header-icon-draw .9s ease-in-out both;
  }
  .home-header a:is(:hover, :focus-visible) .header-icon > * {
    animation: header-icon-draw-hover .65s ease-in-out both;
  }
}
@keyframes header-icon-draw-hover {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.home-header .navigation nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: #c8994f; text-underline-offset: 8px; }
.home-header .phone { font-size: 14px; white-space: nowrap; }
.home-header .phone { display: inline-flex; align-items: center; gap: 8px; }
.home-header .phone .bc-icon { width: 18px; height: 18px; }
/* Internal pages: same light pill at the top and after scrolling.
   Home (no data-shared-home-header): keeps its dark top state until it floats. */
body:not([data-shared-home-header]) .home-header.site-header:not(.is-scrolled) {
  background: rgb(7 62 55 / .9); color: #f8f5ee;
}
body:not([data-shared-home-header]) .home-header:not(.is-scrolled) .header-logo-negative { opacity: 1; }
body:not([data-shared-home-header]) .home-header:not(.is-scrolled) .header-logo-positive { opacity: 0; }
.home-header .budget { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; padding: 10px 20px; border: 1px solid #c8994f; border-radius: 100px; background: #c8994f; color: #073e37; font-size: 14px; transition: background-color .25s ease, border-color .25s ease; }
body .home-header .budget { color: #073e37; font-weight: 700; white-space: nowrap; }
body .home-header .budget:is(:hover, :focus-visible) {  border-color: #b3853f; color: #073e37; }
body[data-shared-home-header] .home-header .budget { font-weight: 700; box-shadow: 0 7px 22px rgb(7 62 55 / .15); border-radius: 100px; }
/* global.css draws a square layer (::before) and fixed heights on .site-header; keep the home's pill. */
body[data-shared-home-header] .home-header.site-header { height: auto; border-radius: 999px; background: rgb(248 245 238 / .92); }
body[data-shared-home-header] .home-header.site-header::before { content: none; }
.home-header .mobile-wa, .home-header .menu-toggle { display: none; }
.home-header .menu-toggle, .home-header .menu-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.home-header dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; border-radius: 0; background: #073e37; color: #f8f5ee; }
.home-header dialog::backdrop { background: #073e37; }
.home-header .menu-top { display: flex; align-items: center; justify-content: space-between; }
.home-header .menu-top img { width: 170px; height: 46px; object-fit: contain; }
.home-header dialog nav { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; font-size: 28px; }
@media (max-width: 1100px) { .home-header .phone { display: none; } .home-header .navigation { gap: 16px; } .home-header .navigation nav { gap: 16px; } }
@media (max-width: 700px) {
  .home-header.site-header { width: calc(100% - 24px); }
  .home-header .navigation { width: calc(100% - 32px); gap: 8px; }
  /* Celular: completa com 46 px de altura no topo; wordmark de 150 px na pílula. */
  .home-header .header-brand-link { --logo-w: 150px; --logo-h: 23px; }
  body:not([data-shared-home-header]) .home-header:not(.is-scrolled) .header-brand-link { --logo-w: 170px; --logo-h: 26px; --logo-tail: 20px; }
  .home-header .navigation nav, .home-header .navigation .budget { display: none; }
  .home-header .mobile-wa { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: auto; }
  .home-header .menu-toggle { display: block; padding: 4px; }
}
