/* Cabeçalho único do site (arviabim.com.br). Mesmo visual em todas as páginas.
   Markup gerado por site-prototipo/cabecalho.py; comportamento em assets/cabecalho.js.
   Tudo com prefixo .sh para não colidir com o CSS de cada página.
   Tema escuro só nas páginas que têm tema escuro: elas põem a classe "tem-escuro" no <html>. */
.sh {
  --sh-bg: rgba(255,255,255,.92); --sh-ink: #1A2235; --sh-muted: #5A6478; --sh-line: #DEE4ED; --sh-soft: #EEF3FC;
  --sh-accent: #2E63C9; --sh-on-accent: #FFFFFF; --sh-menu: #FFFFFF;
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: var(--sh-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sh-line); transition: box-shadow .2s ease;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.4;
}
@media (prefers-color-scheme: dark) {
  html.tem-escuro:not([data-theme="light"]) .sh { --sh-bg: rgba(23,32,51,.92); --sh-ink: #E6ECF5; --sh-muted: #9AA6BA; --sh-line: #27334B; --sh-soft: #1B2A47; --sh-accent: #7CA6EF; --sh-on-accent: #0F1522; --sh-menu: #172033 }
}
html.tem-escuro[data-theme="dark"] .sh { --sh-bg: rgba(23,32,51,.92); --sh-ink: #E6ECF5; --sh-muted: #9AA6BA; --sh-line: #27334B; --sh-soft: #1B2A47; --sh-accent: #7CA6EF; --sh-on-accent: #0F1522; --sh-menu: #172033 }
.sh.scrolled { box-shadow: 0 10px 28px -16px rgba(15,23,42,.22) }
.sh *, .sh *::before, .sh *::after { box-sizing: border-box }
.sh-in { max-width: 1180px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); transition: height .2s ease }
.sh.scrolled .sh-in { height: 56px }
.sh-logo { display: flex; align-items: center; flex: none; border-radius: 6px }
.sh-logo img { height: 24px; width: auto; display: block }
.sh-logo .sh-l-light { display: none }
@media (prefers-color-scheme: dark) { html.tem-escuro:not([data-theme="light"]) .sh-logo .sh-l-dark { display: none } html.tem-escuro:not([data-theme="light"]) .sh-logo .sh-l-light { display: block } }
html.tem-escuro[data-theme="dark"] .sh-logo .sh-l-dark { display: none } html.tem-escuro[data-theme="dark"] .sh-logo .sh-l-light { display: block }
.sh-nav { display: flex; align-items: center; gap: 4px; margin-left: auto }
.sh-item { position: relative }
.sh-link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px;
  color: var(--sh-muted); text-decoration: none; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer }
.sh-link:hover, .sh-item.open > .sh-link { background: var(--sh-soft); color: var(--sh-ink) }
.sh-link[aria-current] { color: var(--sh-accent); font-weight: 600 }
.sh-link[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 2px; border-radius: 2px; background: var(--sh-accent); transition: bottom .2s ease }
.sh.scrolled .sh-link[aria-current]::after { bottom: -8px }
.sh-link .chev { width: 10px; height: 10px; transition: transform .15s ease }
.sh-item.open .chev { transform: rotate(180deg) }
.sh-menu { display: none; position: absolute; top: calc(100% + 10px); right: -8px; width: min(420px, calc(100vw - 32px));
  background: var(--sh-menu); border: 1px solid var(--sh-line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(15,23,42,.35); padding: 8px; z-index: 101 }
.sh-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px }
.sh-item.open .sh-menu { display: block }
@media (hover: hover) { .sh-item.sh-has:hover .sh-menu { display: block } .sh-item.sh-has:hover .chev { transform: rotate(180deg) } }
.sh-menu a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 11px 12px; border-radius: 8px; text-decoration: none; color: var(--sh-ink) }
.sh-menu a:hover, .sh-menu a:focus-visible { background: var(--sh-soft) }
.sh-menu a[aria-current] strong { color: var(--sh-accent) }
.sh-menu .n { grid-row: span 2; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--sh-muted); padding-top: 3px }
.sh-menu strong { font-size: 15px; font-weight: 600 }
.sh-menu small { font-size: 13.5px; color: var(--sh-muted); line-height: 1.45 }
.sh-menu .sh-foot { display: block; margin-top: 4px; padding: 10px 12px; border-top: 1px solid var(--sh-line); border-radius: 0; font-size: 13.5px; color: var(--sh-accent); font-weight: 600 }
.sh-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; margin-left: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px;
  background: var(--sh-accent); color: var(--sh-on-accent); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: transform .15s ease, filter .15s ease }
.sh-cta:hover { transform: translateY(-1px); filter: brightness(1.06) }
.sh-cta svg { width: 16px; height: 16px; flex: none }
.sh a:focus-visible, .sh button:focus-visible { outline: 2px solid var(--sh-accent); outline-offset: 2px }
/* link secundário antes do botão (ex.: "Entrar", no Apps) */
.sh-extra { flex: none; margin-left: 8px; color: var(--sh-muted); text-decoration: none; font-weight: 500; padding: 8px 6px; border-radius: 6px; white-space: nowrap }
.sh-extra:hover { color: var(--sh-ink) }
@media (max-width: 760px) { .sh-extra { display: none } }
/* cabeçalho mínimo (páginas de funil: maturidade, diagnóstico, pré-diagnóstico) */
.sh-min .sh-voltar { margin-left: auto; color: var(--sh-muted); text-decoration: none; font-weight: 500; padding: 8px 4px; border-radius: 6px }
.sh-min .sh-voltar:hover { color: var(--sh-ink) }
/* celular */
@media (max-width: 760px) { .sh-cta span { display: none } .sh-cta { padding: 0; width: 44px; min-height: 44px } .sh-cta.sh-cta-txt span { display: inline } .sh-cta.sh-cta-txt { width: auto; padding: 0 12px } }
@media (max-width: 560px) {
  .sh-in { gap: 8px } .sh-nav { gap: 0 } .sh-link { padding: 0 8px } .sh-logo img { height: 20px }
  .sh-cta { display: none } .sh-item.sh-largo { display: none } .sh-link { font-size: 14px }
  .sh-item.sh-has { position: static }
  .sh-menu { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 64px); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: auto }
  .sh.scrolled .sh-menu { top: calc(env(safe-area-inset-top, 0px) + 56px) }
}
@media (prefers-reduced-motion: reduce) { .sh, .sh-in, .sh-link .chev, .sh-link[aria-current]::after, .sh-cta { transition: none } }
/* páginas com CSS genérico para <header> (ex.: Apps) não mexem no cabeçalho */
header.sh { margin: 0; padding: 0 }
.sh-nav .sh-link { white-space: nowrap }

/* Instagram (19/11/2026): ícone no cabeçalho e links com ícone pelo site */
.sh-ig { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin-left: 4px;
  border-radius: 10px; color: var(--sh-muted); transition: background .15s ease, color .15s ease }
.sh-ig:hover { background: var(--sh-soft); color: var(--sh-ink) }
.sh-ig svg { width: 20px; height: 20px }
@media (max-width: 560px) { .sh-ig { width: 36px; height: 36px; margin-left: 0 } }
@media (max-width: 420px) { .sh .sh-in { gap: 4px } .sh .sh-nav .sh-link { padding: 0 6px; font-size: 13.5px } .sh .sh-logo img { height: 18px } .sh-ig { width: 30px } }
@media (max-width: 350px) { .sh-ig { display: none } }
.ig-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600 }
.ig-link .ig-ic { width: 18px; height: 18px; flex: none }
footer .ig-link { font-weight: inherit; gap: 6px }
footer .ig-link .ig-ic { width: 15px; height: 15px }
.ig-mais { margin: 16px 0 0; text-align: center }
.ig-ok { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(127,127,127,.25) }
