/* Cabeçalho único em todas as páginas: as placas de rua da home (MK-01B), sem redesenhar.
   Na home ele flutua sobre a foto; nas demais vira uma barra fixa translúcida. O mesmo <header> fica vivo
   durante a navegação (shell.js), por isso o som da rua não é interrompido ao trocar de página.
   Tudo prefixado com .site-head para vencer o CSS próprio de cada página, qualquer que seja a ordem. */
body > header.site-head { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gutter); background: rgba(8,8,8,.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(245,245,242,.08); }
body[data-page=home] > header.site-head { position: absolute; top: 0; left: 0; right: 0; align-items: flex-start; padding: 26px var(--gutter);
  background: none; backdrop-filter: none; border-bottom: 0; }
.site-head .logo { display: block; }
.site-head .logo img { height: 30px; display: block; }
body[data-page=home] .site-head .logo img { margin-top: 10px; }

.site-head .plates { display: flex; gap: 10px; }
.site-head .plate { --r: 0deg; background: var(--paper); color: var(--ink); font: 400 19px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  padding: 12px 16px 11px; border: 3px solid var(--ink); outline: 2px solid var(--paper); box-shadow: 0 6px 0 rgba(0,0,0,.45); display: flex; gap: 10px; align-items: center;
  transform: rotate(var(--r)); transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; cursor: pointer; }
.site-head .plate .ar { color: var(--red); font-family: var(--f-body); font-weight: 800; display: inline-block; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.site-head .plate.red, .site-head .plate.on { background: var(--red); color: #fff; outline-color: var(--red); }
.site-head .plate.red .ar, .site-head .plate.on .ar { color: #fff; }
.site-head .plate:nth-child(1) { --r: -2deg; } .site-head .plate:nth-child(2) { --r: 1.6deg; } .site-head .plate:nth-child(3) { --r: -1deg; } .site-head .plate:nth-child(4) { --r: 2.2deg; }
.site-head .plate:hover { transform: rotate(calc(var(--r) * -1.6)) translateY(-5px) scale(1.06); box-shadow: 0 12px 0 rgba(0,0,0,.45); }
.site-head .plate:nth-child(1):hover .ar { transform: translateX(4px); }
.site-head .plate:nth-child(2):hover .ar { transform: translate(-3px,-3px); }
.site-head .plate:nth-child(3):hover .ar { transform: rotate(-14deg); }
.site-head .plate:nth-child(4):hover .ar { transform: translate(3px,-3px); }
.site-head .plate:focus-visible, .site-head .chip:focus-visible, .site-head .burger:focus-visible, .site-head .logo:focus-visible { outline: 3px solid var(--sticker-yellow); outline-offset: 3px; }

.site-head .hud { display: flex; gap: 10px; align-items: center; }
.site-head .chip { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); border: 1.5px solid rgba(245,245,242,.6);
  padding: 12px 14px; background: rgba(0,0,0,.4); display: flex; gap: 8px; align-items: center; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.site-head .chip b { background: var(--red); color: #fff; padding: 2px 6px; display: inline-block; }
.chip b:empty { display: none; } /* contador ainda não lido do aparelho: sem "0" piscando */
/* MK-04 R2: "Pôr na sacola" não abre a gaveta; o contador carimba (transform só no próprio número, sem mexer no layout) */
.site-head .chip b.bump { animation: shell-bump 420ms cubic-bezier(.22,1,.36,1); }
@keyframes shell-bump { 0% { transform: scale(1) rotate(0); } 35% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1) rotate(0); } }
[data-add].is-added, #add-bag.is-added { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
.site-head .chip:hover { border-color: var(--paper); transform: rotate(-1.5deg); }
.site-head .snd em { font-style: normal; }
.site-head .snd .eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 14px; height: 12px; }
.site-head .snd .eq i { flex: 1; height: 3px; background: #666; transition: background .2s; }
.site-head .snd.on { border-color: var(--red); background: rgba(229,35,41,.18); }
.site-head .snd.on em { color: #FF4A4F; } /* "on" pequeno no preto: 4.5:1 */
.site-head .snd.on .eq i { background: var(--red); animation: shell-eq .9s ease-in-out infinite alternate; }
.site-head .snd.on .eq i:nth-child(2) { animation-duration: .62s; } .site-head .snd.on .eq i:nth-child(3) { animation-duration: .78s; }
@keyframes shell-eq { from { height: 3px; } to { height: 12px; } }
.site-head .burger { display: none; text-decoration: none; }
.site-head .logo { flex-shrink: 0; }

/* Tablet / celular deitado / notebook pequeno: as 4 placas + rádio + sacola pedem ~1170px.
   Abaixo disso o cabeçalho vira o compacto (logo + rádio + sacola + menu), como no celular. */
@media (min-width: 601px) and (max-width: 1180px) {
  .site-head .plates { display: none; }
  .site-head .burger { display: grid; place-items: center; width: 46px; height: 44px; background: var(--paper); color: var(--ink); font: 400 17px/1 var(--f-display);
    border: 3px solid var(--ink); outline: 2px solid var(--paper); }
}

@media (max-width: 600px) {
  body > header.site-head { padding: 12px var(--gutter); }
  body[data-page=home] > header.site-head { padding: 16px var(--gutter); }
  .site-head .logo img { height: 18px; } body[data-page=home] .site-head .logo img { margin-top: 4px; }
  .site-head .plates { display: none; }
  .site-head .logo { flex-shrink: 1; min-width: 0; } .site-head .logo img { max-width: 100%; }
  .site-head .hud { gap: 8px; flex-shrink: 0; }
  .site-head .snd .lbl, .site-head .snd .car { display: none; } .site-head .snd { padding: 0 12px; min-width: 44px; justify-content: center; }
  .site-head .chip { padding: 0 10px; min-height: 44px; font-size: 11px; }
  .site-head .burger { display: grid; place-items: center; width: 44px; height: 44px; background: var(--paper); color: var(--ink); font: 400 15px/1 var(--f-display);
    border: 3px solid var(--ink); outline: 2px solid var(--paper); }
}

/* Menu em gaveta (≤1180px): mesmo visual da tela de menu (MK-09), por cima da página atual */
.nav-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0;
  background: #0b0b0b; color: var(--paper); overflow-y: auto; }
.nav-drawer::backdrop { background: rgba(0,0,0,.6); }
.nav-drawer[open] { display: flex; flex-direction: column; padding: 14px var(--gutter) 28px; animation: nd-in .22s cubic-bezier(.22,1,.36,1); }
@keyframes nd-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.nav-drawer .nd-hd { display: flex; justify-content: space-between; align-items: center; }
.nav-drawer .nd-hd img { height: 20px; }
.nav-drawer .nd-x { width: 44px; height: 44px; display: grid; place-items: center; background: var(--red); color: #fff; font: 700 16px/1 var(--f-body); border: 3px solid var(--ink); outline: 2px solid var(--red); cursor: pointer; }
.nav-drawer nav { display: grid; gap: 14px; margin: 30px 0 24px; }
.nav-drawer .plate { --r: 0deg; background: var(--paper); color: var(--ink); font: 400 28px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  padding: 14px 18px 12px; border: 3px solid var(--ink); outline: 2px solid var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 12px; transform: rotate(var(--r)); }
.nav-drawer .plate:nth-child(odd) { --r: -1deg; } .nav-drawer .plate:nth-child(even) { --r: 1deg; }
.nav-drawer .plate .ar { color: var(--red); font-family: var(--f-body); font-weight: 800; }
.nav-drawer .plate small { font: 400 14px/1 var(--f-term); color: #666; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.nav-drawer .plate.on { background: var(--red); color: #fff; outline-color: var(--red); } .nav-drawer .plate.on .ar { color: #ffd0d0; } .nav-drawer .plate.on small { color: #fff; }
.nav-drawer .nd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav-drawer .chip { justify-content: center; min-height: 48px; font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--paper);
  border: 1.5px solid rgba(245,245,242,.6); background: rgba(0,0,0,.4); display: flex; gap: 8px; align-items: center; text-decoration: none; cursor: pointer; }
.nav-drawer .chip b { background: var(--red); color: #fff; padding: 2px 6px; }
.nav-drawer .chip .eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 14px; height: 12px; } .nav-drawer .chip .eq i { flex: 1; height: 6px; background: #666; }
.nav-drawer .nd-soc { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; } .nav-drawer .nd-soc a { flex: 1; text-align: center; justify-content: center; min-height: 48px; }
.nav-drawer .nd-line { margin-top: auto; padding-top: 26px; font: 400 15px/1.4 var(--f-type, var(--f-body)); color: #bbb; }
.nav-drawer a:focus-visible, .nav-drawer button:focus-visible { outline: 3px solid var(--sticker-yellow); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Foto atrás do hero das páginas internas */
.hero-photo { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; display: flex; background: #0B0B0B; }
.hero-bg img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.42) contrast(1.15); }
.hero-bg.solo img { filter: brightness(.5) saturate(.85); object-position: 60% 40%; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,11,.8), rgba(11,11,11,.25) 75%), linear-gradient(0deg, #0B0B0B, transparent 38%); }
@media (max-width: 600px) { .hero-bg img:nth-child(n+3) { display: none; } }

/* Barra fina de progresso (só aparece se a página demorar) e anúncio para leitor de tela */
#route-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--red); z-index: 100; transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; transition: opacity .2s; }
#route-bar.on { opacity: 1; transform: scaleX(.85); transition: transform 1.8s ease-out, opacity .2s; }
.route-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .nav-drawer[open] { animation: none; }
  .site-head .plate, .site-head .plate .ar, .site-head .chip { transition: none; }
  .site-head .snd.on .eq i { animation: none; height: 8px; }
  .site-head .chip b.bump { animation: none; }
  #route-bar.on { transition: opacity .2s; transform: scaleX(1); }
}
