/* Cabeçalho compartilhado (site inteiro). Compacto: logo, opções de navegação e Entrar; menu hambúrguer no mobile. */
.sh { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--page-gutter); border-bottom: 1px solid var(--line); background: var(--cream); position: sticky; top: 0; z-index: 40; margin: 0; }
#site-header:empty { min-height: var(--header-height); }
.sh-brand { display: block; width: 132px; flex-shrink: 0; }
.sh-brand img { width: 100%; height: auto; object-fit: contain; }
.sh-actions { display: flex; align-items: center; gap: 8px; }
.sh-login { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--wine); color: var(--wine); font-size: 14px; font-weight: 600; background: transparent; line-height: 1; }
.sh-login:hover { background: var(--wine); color: #fff8ee; }
.sh-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; display: flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center; padding: 0; cursor: pointer; }
.sh-toggle span { width: 17px; height: 1.5px; background: var(--wine); transition: transform .2s; }
.sh-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.sh-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.sh-nav { display: none; position: fixed; inset: var(--header-height) 0 0 0; top: var(--header-height); left: 0; right: 0; bottom: 0; width: auto; border: 0; background: var(--cream); padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; flex-direction: column; gap: 0; z-index: 39; }
.sh-nav.open { display: flex; }
.sh-nav a.sh-link { display: flex; align-items: center; min-height: 56px; font-size: 18px; font-family: var(--display); border-bottom: 1px solid var(--line); color: var(--ink); }
.sh-nav a.sh-link[aria-current="page"] { color: var(--wine); font-weight: 600; }
.sh-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.sh-menu-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; border: 1px solid var(--wine); line-height: 1.1; text-align: center; padding: 0 12px; }
.sh-menu-actions .sh-enter { color: var(--wine); background: transparent; }
.sh-menu-actions .sh-signup { background: var(--wine); color: #fff8ee; }
body.nav-open { overflow: hidden; }
@media (max-width: 359px) { .sh-brand { width: 120px; } .sh-login { padding-inline: 12px; font-size: 13px; } }
@media (min-width: 360px) { .sh-brand { width: 150px; } }
@media (min-width: 1200px) {
  .sh { height: var(--header-height); padding-inline: max(32px, calc((100vw - var(--content-max)) / 2)); }
  #site-header:empty { min-height: var(--header-height); }
  .sh-brand { width: 190px; }
  .sh-toggle { display: none; }
  .sh-nav, .sh-nav.open { display: flex; position: static; inset: auto; flex-direction: row; align-items: center; gap: 18px; padding: 0; overflow: visible; background: none; flex: 1; justify-content: flex-end; }
  .sh-nav a.sh-link { min-height: 44px; font-family: var(--sans); font-size: 15px; border: 0; }
  .sh-menu-actions { display: none; }
  .sh-nav a.sh-link:hover { color: var(--wine); }
  .sh-login { padding: 0 26px; min-height: 46px; font-size: 15px; }
}
.sh-languages { display:flex; flex-wrap:wrap; gap:12px; padding-block:12px; }
.sh-languages a { display:inline-flex; align-items:center; min-height:44px; font-size:13px; }
.sh-languages [aria-current="true"] { color:var(--wine); text-decoration:underline; text-underline-offset:5px; }

/* Rodapé único para a home e as páginas públicas. */
.sf { border-top: 1px solid var(--line); margin-top: var(--section-space); }
.sf-inner { width: min(var(--content-max), calc(100% - 40px)); margin-inline: auto; padding: 36px 0 calc(32px + var(--safe-bottom)); display: grid; gap: 20px; }
.sf-brand { display: block; width: 190px; }
.sf-brand img { display: block; width: 100%; height: auto; }
.sf-tag { color: var(--muted); font-size: 15px; max-width: 420px; margin: 0; }
.sf-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.sf-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink); }
.sf-links a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }
.sf-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.sf small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.sf-top { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--wine); font-size: 20px; }
.home-page .sf { margin-top: 0; }
@media (min-width: 700px) { .sf-inner { width: min(var(--content-max), calc(100% - 64px)); } }
@media (max-width: 759px) { body.has-sticky .sf { padding-bottom: calc(84px + var(--safe-bottom)); } }
