/* ══════════════════════════════════════════════════════════════════════════
   No Manches — Mexican Street Food · override de tema
   Carrega DEPOIS de style.css. Redefine a paleta (creme + dourado mostarda +
   vermelho mexicano), aplica Bebas Neue aos títulos e Inter ao corpo, e
   estiliza as features novas: hero escuro, happy hour vermelho, variantes de
   taco (×2 / ×3), notas de secção e avisos do menu.
   ══════════════════════════════════════════════════════════════════════════ */

/* Bebas Neue auto-hospedada + pré-carregada (ver <head>): como é condensada,
   o swap tardio a partir de um fallback largo remetia o hero 54px (CLS ~0.1).
   Servida da mesma origem chega antes do paint → sem swap. Sem 3ª parte. */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/bebas-neue-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/bebas-neue-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Paleta creme/mostarda */
  --bg:          #FEFCF5;   /* creme quente */
  --bg-alt:      #F6EFDF;
  --surface:     #FFFFFF;
  --text:        #1A1A1A;   /* preto grafite */
  --text-muted:  #6B6B6B;
  --muted:       #9A8C72;
  --border:      #E8E0D0;
  --border-soft: #F1EADB;

  /* Dourado mostarda (também derivado por applyBrandColors a partir do brandColor) */
  --accent:        #C8952A;
  --accent-dark:   #A67820;
  --accent-bright: #E0B24A;

  --gold:        #C8952A;
  --gold-bright: #E4B24C;
  --gold-deep:   #A67820;

  /* Zona escura (banner) em grafite, não navy */
  --navy:     #1A1A1A;
  --navy-mid: #262626;

  /* Vermelho mexicano / terra cota */
  --mx-red:      #D64C2B;
  --mx-red-dark: #B23A1F;

  /* Tipografia: Inter no corpo, Bebas Neue nos títulos */
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Bebas Neue', 'Inter', sans-serif;

  --shadow-elite: 0 20px 50px -10px rgba(200, 149, 42, 0.22), 0 8px 16px -4px rgba(200, 149, 42, 0.12);
}

body { background: var(--bg); }

/* ── Títulos em Bebas Neue (grunge, uppercase) ────────────────────────────── */
.hero-name,
.menu-section-title,
.category-tab,
.special-banner-headline,
.special-banner-label,
.section-title-elite,
.most-ordered-title,
.wine-header .section-title,
.favorites-title,
.menu-do-dia-label,
.item-modal-name,
.cart-title {
  font-family: var(--font-heading) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0.02em;
}

.menu-section-title,
.section-title-elite,
.most-ordered-title,
.wine-header .section-title {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sublinhado decorativo das secções em dourado */
.menu-section-title::after { background: var(--accent) !important; opacity: 0.9; }

.category-tab {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 15px;
}
.category-tab.active { color: var(--accent-dark); }

/* ── Reserva de espaço (CLS): script.js (defer) injecta o carrossel
   "mais pedidos" e o menu depois do primeiro paint. Reservar a altura
   final da secção evita empurrar o conteúdo visível (CLS ~0.8 → ~0). */
#section-most-ordered { min-height: 404px; }
.most-ordered-title { min-height: 34px; }
.most-ordered-sub   { min-height: 20px; }

/* ── HERO escuro (grafite) com taco em linha branca ───────────────────────── */
.hero { background: #1A1A1A; height: 300px; }
.hero-image { background-image: none !important; background: #1A1A1A; }
.hero-overlay {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(200,149,42,0.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 45%, rgba(0,0,0,0.55) 100%);
}

/* Logo = ilustração da mão a salgar (círculo escuro funde-se no hero) */
.hero-logo {
  width: 92px;
  height: 92px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  margin-bottom: 6px;
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.hero-name {
  font-size: 54px;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}

/* Subtítulo "Mexican Street Food" em dourado, letra a letra */
.hero-tagline {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  opacity: 1;
  margin-top: 8px;
}

/* Instagram handle no fundo do hero, discreto */
.hero-stamp {
  font-family: var(--font-ui);
  border: none;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
  font-size: 10px;
  padding: 0;
  margin-top: 12px;
  margin-bottom: 0;
  text-transform: none;
}

/* ── HAPPY HOUR — banner vermelho mexicano + countdown ────────────────────── */
.special-banner { background: linear-gradient(135deg, var(--mx-red) 0%, var(--mx-red-dark) 100%); }
.special-banner::before { background: linear-gradient(90deg, transparent 0%, var(--gold-bright) 45%, rgba(255,255,255,0.25) 100%); }
.banner-art { display: none; }   /* esconde o peixe da Marisca */

.special-banner-label { color: #FFE9C7; font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.14em; }
.special-banner-headline {
  font-family: var(--font-heading) !important;
  font-style: normal !important;
  font-size: 30px;
  letter-spacing: 0.02em;
  color: #fff;
}
.special-banner-text { font-family: var(--font-ui); font-style: normal; color: rgba(255,255,255,0.9); font-weight: 500; }

.special-cd { background: rgba(0,0,0,0.18); border-color: rgba(255,255,255,0.28); }
.special-cd-top { color: #FFE9C7 !important; }

/* ── VARIANTES DE TACO (×2 / ×3) — toggle em pill ─────────────────────────── */
.taco-variants {
  display: flex;
  gap: 8px;
  margin: 10px 0 4px;
  flex-wrap: wrap;
}
.taco-variant {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 13px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-ui);
  line-height: 1;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.taco-variant:active { transform: scale(0.95); }
.taco-variant-lbl   { font-weight: 700; font-size: 14px; color: var(--text); }
.taco-variant-price { font-weight: 600; font-size: 13px; color: var(--accent-dark); }
.taco-variant.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px -2px rgba(200,149,42,0.45);
}
.taco-variant.active .taco-variant-lbl,
.taco-variant.active .taco-variant-price { color: #fff; }

.menu-item--variants .menu-item-meta { margin-top: 2px; }

/* ── Nota de secção (ex.: "+€1,50 para queijo gratinado") ─────────────────── */
.menu-section-note {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-muted);
  margin: -2px 0 14px;
}

/* ── Menu do Dia + aviso de alergénios (fim do menu) ──────────────────────── */
.menu-do-dia {
  margin: 22px var(--s3, 18px) 6px;
  padding: 16px 18px;
  background: var(--bg-alt);
  border: 1px dashed var(--accent);
  border-radius: 14px;
}
.menu-do-dia-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.menu-do-dia-label {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.menu-do-dia-price {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 16px;
  color: var(--accent-dark);
  white-space: nowrap;
}
.menu-do-dia-desc {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 6px;
}
.menu-allergen-notice {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin: 14px var(--s3, 18px) 8px;
}

/* ── Ajustes finos de marca ───────────────────────────────────────────────── */
.menu-item-price,
.most-ordered-card-price,
.item-modal-price { color: var(--accent-dark); font-weight: 700; }

/* Placeholder de foto em creme/dourado em vez de azul */
.menu-item-photo.is-placeholder {
  background: linear-gradient(135deg, #FBF3E2 0%, #F2E4C6 100%);
  color: var(--accent-dark);
}

/* ── Remover o azul-oceano da Marisca (hexes hardcoded) ───────────────────── */

/* Barra de navegação rápida: creme em vez de azul-claro */
.quick-nav { background: rgba(254, 252, 245, 0.96); }

/* Zona escura (banner + mais pedidos) em grafite */
.dark-zone { background-color: #1A1A1A; }

/* Onda que liga a zona escura ao menu → preenchida a creme */
.dark-zone::after {
  background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%2C40%20C18%2C22%2035%2C52%2050%2C32%20C65%2C14%2082%2C44%20100%2C26%20L100%2C100%20L0%2C100%20Z%22%20fill%3D%22%23FEFCF5%22%2F%3E%3C%2Fsvg%3E");
}

/* Badge dos "mais pedidos" a dourado em vez de azul-turquesa */
.most-ordered-card-badge { color: rgba(228, 178, 76, 0.85); }

/* Cartão Wi-Fi em grafite com contorno dourado */
.wifi-card {
  background: linear-gradient(135deg, #1F1F1F 0%, #2A2A2A 100%);
  border-color: rgba(200, 149, 42, 0.4);
}

/* ── Sombras quentes (o Marisca usava azul-marinho) ───────────────────────── */
:root {
  --shadow-sm: 0 1px 2px rgba(60, 40, 15, 0.06);
  --shadow-md: 0 4px 16px rgba(60, 40, 15, 0.10);
  --shadow-lg: 0 12px 40px rgba(60, 40, 15, 0.14);
  --shadow-elite: 0 20px 50px -10px rgba(200, 149, 42, 0.22), 0 8px 16px -4px rgba(180, 90, 40, 0.14);
}

/* ── Rodapé grafite com "papel picado" mexicano no topo ───────────────────── */
.footer {
  background: linear-gradient(180deg, #201d1a 0%, #171514 55%, #0F0E0D 100%) !important;
}
/* Substitui a onda azul por uma fiada de bandeirolas (papel picado) */
.footer::before {
  height: 46px;
  background-image: url("./img/papel-picado.svg");
  background-size: 132px 46px;
  background-repeat: repeat-x;
  background-position: top center;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.35));
}

/* ── Botões flutuantes (chamar empregado + voltar ao topo) em grafite/ouro ── */
#nexo-call-staff-btn,
.back-to-top {
  background: #1A1A1A !important;
  border-color: rgba(200, 149, 42, 0.5) !important;
  box-shadow: 0 6px 22px rgba(60, 40, 15, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   ILUSTRAÇÕES — pequenos ícones mexicanos (line-art) ao longo do menu.
   Um por secção, antes do título, com sombra suave para dar profundidade.
   ══════════════════════════════════════════════════════════════════════════ */
.menu-section-title::before,
.wine-header .section-title::before {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.42em;
  vertical-align: -0.16em;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 2px 2px rgba(60, 40, 15, 0.22));
}
#section-antojitos   .menu-section-title::before { background-image: url("./img/ic-antojitos.svg"); }
#section-totopos     .menu-section-title::before { background-image: url("./img/ic-totopos.svg"); }
#section-quesadillas .menu-section-title::before { background-image: url("./img/ic-quesadillas.svg"); }
#section-tacos       .menu-section-title::before { background-image: url("./img/ic-tacos.svg"); }
#section-sobremesa   .menu-section-title::before { background-image: url("./img/ic-sobremesa.svg"); }
.wine-header .section-title::before {
  background-image: url("./img/ic-drinks.svg");
  /* o template pinta este ::before como barra dourada sólida (background:
     var(--accent)) — sem isto o copo ficava dourado-sobre-dourado = quadrado */
  background-color: transparent;
  border-radius: 0;
}

/* Ícone do hero com sombra própria (profundidade sobre o fundo escuro) */
.hero-logo img { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }

/* Papel de fundo com ingredientes mexicanos (dourado, muito subtil) atrás dos Drinks */
.wine-section {
  background:
    linear-gradient(180deg, rgba(254,252,245,0.94) 0%, rgba(254,252,245,0.85) 100%),
    url("./img/pattern-ingredientes.webp");
  background-size: auto, 230px 230px;
  background-repeat: no-repeat, repeat;
  background-position: top, top left;
}

/* Emoji/taco do banner Happy Hour com leve sombra */
.special-banner-headline { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }

/* Placeholder das bebidas (Drinks): grafite + garrafa dourada, não azul */
.wine-card-photo:not(.has-image) {
  background: linear-gradient(135deg, #2A2724 0%, #1A1A1A 100%);
  color: var(--gold-bright);
}

/* Wi-Fi card: tirar o azul-ciano da Marisca → dourado */
.wifi-icon { background: rgba(200, 149, 42, 0.14) !important; color: var(--gold-bright) !important; }
.wifi-hint { color: var(--gold-bright) !important; }
/* Troca o "carimbo" de coordenadas da praia por um toque mexicano, em dourado */
.wifi-card::after {
  content: "¡BUEN PROVECHO!" !important;
  color: rgba(228, 178, 76, 0.5) !important;
  font-family: var(--font-heading) !important;
  letter-spacing: 0.12em !important;
}
.wifi-card:active { background: linear-gradient(135deg, #2A2724 0%, #171514 100%) !important; }

/* Placeholders dos modais (item / bebida) em grafite, não azul */
.item-modal-photo.is-placeholder,
.wine-modal-photo.is-placeholder {
  background: linear-gradient(135deg, #2A2724 0%, #1A1A1A 100%) !important;
  color: var(--gold-bright);
}

/* Sombra do botão "Avaliar" em quente (era azul-marinho) */
.btn-review { box-shadow: 0 6px 18px rgba(200, 149, 42, 0.4) !important; }


/* ══════════════════════════════════════════════════════════════════════════
   IDENTIDADE VISUAL v2 — "cartel de taqueria" (lotería / rotulação mexicana)
   Tipografia de rua nos pratos, molduras de lotería nos cartões, fita serape,
   greca asteca a fechar secções e papel picado no hero. Sem novos pedidos de
   rede: 1 SVG inline (greca) + gradientes CSS.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1 · TIPOGRAFIA DE RUA ──────────────────────────────────────────────────
   Os nomes dos pratos vinham do template Marisca em serif itálico (elegante,
   marítimo — errado aqui). Quadro de taqueria: Bebas, caixa alta, direito. */
.menu-item-name,
.most-ordered-card-name,
.wine-card-name,
.favorite-name {
  font-family: var(--font-heading) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.menu-item-name        { font-size: 22px; }
.most-ordered-card-name{ font-size: 21px; letter-spacing: 0.04em; }
.wine-card-name        { font-size: 18px; }

/* Preços como numerário de quadro de giz — Bebas, dourado queimado */
.menu-item-price,
.most-ordered-card-price,
.item-modal-price {
  font-family: var(--font-heading) !important;
  font-weight: 400 !important;
  font-size: 21px;
  letter-spacing: 0.03em;
}

/* ── 2 · TÍTULOS DE SECÇÃO — rotulação com sombra deslocada (sign painting) */
.menu-section-title,
.wine-header .section-title {
  text-shadow: 2px 2px 0 rgba(214, 76, 43, 0.18);
}
/* Sublinhado = fita serape (vermelho · dourado · verde), sem animação */
.menu-section-title::after {
  height: 4px !important;
  width: 56px !important;
  background: linear-gradient(90deg,
    var(--mx-red) 0 33%, var(--accent) 33% 67%, #3F7A47 67% 100%) !important;
  animation: none !important;
}

/* Nome do restaurante no hero com o mesmo deslocado, mais assumido */
.hero-name {
  text-shadow: 3px 3px 0 rgba(214, 76, 43, 0.4), 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* ── 3 · HERO — papel picado pendurado no tecto + fita serape na base ────── */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 26px;
  z-index: 1;                      /* sobre o fundo, sob os botões de idioma */
  background-image: url("./img/papel-picado.svg");
  background-size: 76px 26px;
  background-repeat: repeat-x;
  background-position: top center;
  opacity: 0.85;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  z-index: 3;
  background: repeating-linear-gradient(90deg,
    #B23A1F 0 20px,  #D64C2B 20px 36px, #E4B24C 36px 50px, #FEFCF5 50px 56px,
    #3F7A47 56px 72px, #FEFCF5 72px 78px, #C8952A 78px 96px);
  pointer-events: none;
}

/* ── 4 · LISTA DO MENU — separadores tracejados quentes (menu de papel) ──── */
.menu-item { border-bottom: 1.5px dashed rgba(200, 149, 42, 0.4); }
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: rgba(200, 149, 42, 0.05); }

/* Greca asteca a fechar cada secção (SVG inline, dourado suave) */
.menu-section::after {
  content: '';
  display: block;
  height: 9px;
  width: 176px;
  margin: 26px auto 0;
  opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2022%209%22%3E%3Cpath%20d%3D%22M0%208%20H3%20V2%20H8%20V8%20H14%20V2%20H19%20V8%20H22%22%20fill%3D%22none%22%20stroke%3D%22%23C8952A%22%20stroke-width%3D%221.5%22%2F%3E%3C%2Fsvg%3E") repeat-x center / 22px 9px;
}

/* ── 5 · CARTÕES COM MOLDURA DE LOTERÍA (linha dupla com respiro) ────────── */
.wine-card {
  background: #FFFEF8;
  border: 1px solid rgba(200, 149, 42, 0.32);
  box-shadow:
    inset 0 0 0 3px #FFFEF8,
    inset 0 0 0 4px rgba(200, 149, 42, 0.18),
    0 4px 16px rgba(60, 40, 15, 0.07);
}

/* Mais pedidos (zona escura): filete dourado interior + número em vermelho */
.most-ordered-card {
  border-color: rgba(228, 178, 76, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(228, 178, 76, 0.2);
}
.most-ordered-rank { color: var(--mx-red); opacity: 1; }

/* Menu do Dia como cartel: moldura dupla sólida, preço em vermelho */
.menu-do-dia {
  border: 2px solid rgba(200, 149, 42, 0.75);
  box-shadow: inset 0 0 0 4px var(--bg-alt), inset 0 0 0 5px rgba(200, 149, 42, 0.45);
}
.menu-do-dia-price { color: var(--mx-red); font-family: var(--font-heading); font-size: 20px; font-weight: 400; }

/* ── 6 · DETALHES PICANTES ────────────────────────────────────────────────── */
/* Underline deslizante das tabs = fita serape */
.tab-ink {
  background: linear-gradient(90deg,
    var(--mx-red) 0 33%, var(--accent) 33% 67%, #3F7A47 67% 100%) !important;
}

/* Badge POPULAR a vermelho chili (era outline neutro) */
.item-badge-popular {
  color: var(--mx-red) !important;
  border-color: rgba(214, 76, 43, 0.45) !important;
  background: rgba(214, 76, 43, 0.06);
}

/* ── 7 · LIMPEZA — últimos azuis Marisca no carrinho partilhado ──────────── */
.nexo-shared-trigger {
  background: rgba(200, 149, 42, 0.07) !important;
  border-color: rgba(200, 149, 42, 0.28) !important;
}
.shared-cart-code-chip {
  background: rgba(200, 149, 42, 0.12) !important;
  border-color: rgba(200, 149, 42, 0.3) !important;
  color: var(--accent-dark) !important;
}
.shared-cart-leave-btn {
  border-color: rgba(200, 149, 42, 0.35) !important;
  color: var(--accent-dark) !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   IDENTIDADE VISUAL v3 — fundos com padrão + micro-animações
   Tudo CSS puro, sem novos assets nem JS. Respeita prefers-reduced-motion.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── FUNDO — papel de taqueria: ingredientes dourados quase invisíveis ───── */
body {
  background:
    linear-gradient(rgba(254, 252, 245, 0.955), rgba(254, 252, 245, 0.955)),
    url("./img/pattern-ingredientes.webp") top left / 240px 240px repeat;
}

/* Happy hour: textura de manta tecida (diagonais subtis) sobre o vermelho */
.special-banner {
  background:
    repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, 0.05) 0 10px, rgba(0, 0, 0, 0.045) 10px 20px),
    linear-gradient(135deg, var(--mx-red) 0%, var(--mx-red-dark) 100%);
}

/* ── MICRO-ANIMAÇÕES ──────────────────────────────────────────────────────── */

/* Papel picado do hero a balançar com a brisa */
@keyframes nm-sway {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(7px); }
}
.hero::before { animation: nm-sway 7s ease-in-out infinite; }

/* Fita serape da base do hero a "tecer" (um ciclo = um repeat → seamless) */
@keyframes nm-weave { to { background-position-x: 96px; } }
.hero::after { animation: nm-weave 9s linear infinite; }

/* Linha dourada do banner Happy Hour a respirar */
@keyframes nm-breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.special-banner::before { animation: nm-breathe 3.5s ease-in-out infinite; }

/* Logo (mão a salgar) — sacode o sal quando se toca */
@keyframes nm-shake {
  0%, 100% { transform: rotate(0); }
  20%      { transform: rotate(-9deg) translateY(-2px); }
  40%      { transform: rotate(8deg); }
  60%      { transform: rotate(-6deg) translateY(-1px); }
  80%      { transform: rotate(4deg); }
}
.hero-logo:active img { animation: nm-shake 0.55s ease; }

/* Estrelas da avaliação: pop com spring ao acender (glow já é dourado) */
@keyframes nm-star-pop {
  0%   { transform: scale(0.7) rotate(-12deg); }
  60%  { transform: scale(1.3) rotate(4deg); }
  100% { transform: scale(1.14) rotate(0); }
}
.star-btn.lit { animation: nm-star-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Variante de taco (×2/×3): salta ligeiro ao seleccionar */
@keyframes nm-pop {
  0%   { transform: scale(0.9); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.taco-variant.active { animation: nm-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Ícones das secções: pequena vénia quando a secção é tocada no título */
.menu-section-title:active::before { transform: rotate(-10deg) scale(1.12); }
.menu-section-title::before { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ── Acessibilidade: sem movimento para quem o pediu ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after,
  .special-banner::before,
  .star-btn.lit, .taco-variant.active,
  .hero-logo:active img {
    animation: none !important;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   IDENTIDADE VISUAL v4 — assets oficiais do cliente
   Lettering "NO MANCHES" (prato) no hero + greca autêntica nos separadores.
   ══════════════════════════════════════════════════════════════════════════ */

/* Hero: wordmark desenhado pelo cliente em vez de texto Bebas.
   O texto fica no DOM (acessibilidade/SEO) mas invisível. */
.hero { height: 340px; }
/* O lock-up oficial (prato + lettering) substitui a dupla logo+texto;
   a mão a salgar continua no resto do menu (placeholder, favicon, etc.) */
.hero-logo { display: none; }
.hero-name {
  display: block;
  width: min(250px, 70vw);
  height: 140px;
  margin-top: 26px;   /* respiro sob o papel picado */
  background: url("./img/wordmark.webp") center / contain no-repeat;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(3px 3px 0 rgba(214, 76, 43, 0.4)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  margin: 0 auto;
  overflow: hidden;
}
.hero-tagline { margin-top: 2px; }

/* Separador de secções: greca oficial do cliente (substitui o SVG genérico) */
.menu-section::after {
  height: 14px;
  width: 214px;   /* ~1,5 períodos × 142px — formas sólidas, legíveis em miniatura */
  opacity: 0.5;
  background: url("./img/greca-banda.webp") repeat-x center / auto 14px;
}

/* O easter egg do "sacode o sal" muda da mão (escondida) para o lettering */
.hero-name { transition: transform 0.2s; }
.hero-name:active { animation: nm-shake 0.55s ease; }


/* ══════════════════════════════════════════════════════════════════════════
   IDENTIDADE VISUAL v5 — abertura do hero (wow) + vídeo no fim do menu
   ══════════════════════════════════════════════════════════════════════════ */

/* ── HERO: sequência de entrada (uma vez por carregamento) ────────────────
   1. papel picado cai e fica a balançar
   2. o prato "NO MANCHES" é CARIMBADO (escala + rotação, spring)
   3. clarão dourado atrás do carimbo
   4. tagline abre o espaçamento; meta sobe em fade
   5. fita serape varre da esquerda e fica a tecer                          */

/* textura: ingredientes dourados quase invisíveis sobre o grafite */
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: url("./img/pattern-ingredientes.webp") top left / 300px 300px repeat;
  opacity: 0.05;
}

@keyframes nm-drop {
  from { transform: translateY(-34px); opacity: 0; }
  to   { transform: translateY(0); opacity: 0.85; }
}
.hero::before {
  animation: nm-drop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards,
             nm-sway 7s ease-in-out 0.9s infinite;
}

@keyframes nm-stamp {
  0%   { opacity: 0; transform: scale(1.7) rotate(-5deg); }
  55%  { opacity: 1; transform: scale(0.94) rotate(1.5deg); }
  75%  { transform: scale(1.05) rotate(-0.6deg); }
  100% { transform: scale(1) rotate(0); }
}
.hero-name { animation: nm-stamp 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s backwards; }

/* clarão dourado no momento do carimbo */
@keyframes nm-burst {
  0%   { opacity: 0; transform: scale(0.3); }
  30%  { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.7); }
}
.hero-overlay::before {
  content: '';
  position: absolute;
  left: 50%; top: 34%;
  width: 300px; height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 178, 76, 0.6) 0%, transparent 62%);
  animation: nm-burst 1s ease-out 0.55s backwards;
  opacity: 0;
  pointer-events: none;
}

/* faíscas douradas a piscar junto ao prato (cantina à noite) */
.hero-overlay::after {
  content: '✦';
  position: absolute;
  left: 14%; top: 24%;
  color: rgba(228, 178, 76, 0.85);
  font-size: 15px;
  text-shadow: 52vw 9vh 0 rgba(228, 178, 76, 0.6),
               -2vw 22vh 0 rgba(228, 178, 76, 0.4);
  animation: nm-twinkle 3.2s ease-in-out 1.4s infinite;
  pointer-events: none;
}
@keyframes nm-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1.15); }
}

@keyframes nm-open-track {
  from { opacity: 0; letter-spacing: 0.5em; }
  to   { opacity: 1; letter-spacing: 0.2em; }
}
.hero-tagline { animation: nm-open-track 0.7s ease-out 0.85s backwards; }

@keyframes nm-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-meta  { animation: nm-rise 0.5s ease-out 1.05s backwards; }
.hero-stamp { animation: nm-rise 0.5s ease-out 1.2s backwards; }

@keyframes nm-wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero::after {
  transform-origin: left;
  animation: nm-wipe 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s backwards,
             nm-weave 9s linear 1.5s infinite;
}

/* ── VÍDEO — moldura de lotería, revela ao chegar lá ─────────────────────── */
.nm-video-section {
  padding: 30px var(--s3, 18px) 40px;
  text-align: center;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.nm-video-section.nm-in { opacity: 1; transform: translateY(0); }

.nm-video-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mx-red);
  margin-bottom: 2px;
}
.nm-video-title {
  font-family: var(--font-heading);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-shadow: 2px 2px 0 rgba(214, 76, 43, 0.18);
  margin-bottom: 4px;
}
/* mesma fita serape dos títulos de secção */
.nm-video-head::after {
  content: '';
  display: block;
  height: 4px; width: 56px;
  margin: 7px auto 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mx-red) 0 33%, var(--accent) 33% 67%, #3F7A47 67% 100%);
}

.nm-video-frame {
  display: inline-block;
  max-width: 290px;
  width: 76vw;
  border-radius: 18px;
  padding: 5px;                               /* respiro da moldura dupla */
  background: #FFFEF8;
  border: 1px solid rgba(200, 149, 42, 0.4);
  box-shadow:
    inset 0 0 0 4px #FFFEF8,
    inset 0 0 0 5px rgba(200, 149, 42, 0.25),
    0 18px 44px -14px rgba(60, 40, 15, 0.35);
}
.nm-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 13px;
  background: #1A1A1A;
}

.nm-video-ig {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-dark);
  border: 1.5px solid rgba(200, 149, 42, 0.4);
  border-radius: 100px;
  padding: 9px 18px;
  transition: background 0.15s, color 0.15s;
}
.nm-video-ig:active { background: var(--accent); color: #fff; }

/* ── Reduced motion: menu aparece pronto, vídeo fica com poster ──────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-name, .hero-tagline, .hero-meta, .hero-stamp,
  .hero-overlay::before, .hero-overlay::after {
    animation: none !important;
    opacity: 1;
  }
  .hero-overlay::before { opacity: 0; }
  .nm-video-section { opacity: 1; transform: none; transition: none; }
}

/* Tagline "Mexican Street Food" removida — o prato desenhado já diz tudo */
.hero-tagline { display: none; }
.hero { height: 315px; }


/* ══════════════════════════════════════════════════════════════════════════
   IDENTIDADE VISUAL v6 — prompt de adicionais + vídeo compacto com fallback
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Prompt "queres juntar queijo gratinado?" (bottom sheet) ─────────────── */
#nm-extra-sheet {
  position: fixed; inset: 0; z-index: 720;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
#nm-extra-sheet.show { opacity: 1; }

.nm-extra-card {
  width: 100%; max-width: 430px;
  background: var(--bg, #FEFCF5);
  border: 1px solid rgba(200, 149, 42, 0.4);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  box-shadow: inset 0 0 0 4px var(--bg, #FEFCF5), inset 0 0 0 5px rgba(200, 149, 42, 0.25),
              0 -12px 40px rgba(0, 0, 0, 0.25);
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#nm-extra-sheet.show .nm-extra-card { transform: translateY(0); }

.nm-extra-emoji { font-size: 34px; margin-bottom: 6px; }
.nm-extra-q {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.15;
}
.nm-extra-for {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 4px 0 16px;
}
.nm-extra-actions { display: flex; flex-direction: column; gap: 9px; }
.nm-extra-yes {
  background: var(--accent); color: #fff;
  border: none; border-radius: 12px;
  padding: 14px; font-size: 15px; font-weight: 800;
  font-family: var(--font-ui); cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(200, 149, 42, 0.6);
  transition: transform 0.12s;
}
.nm-extra-yes:active { transform: scale(0.97); }
.nm-extra-no {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--text-muted); padding: 8px;
}

/* ── Vídeo: mais compacto (performance/atenção) + fallback ▶ ─────────────── */
.nm-video-frame { max-width: 236px; width: 62vw; cursor: pointer; position: relative; }

.nm-video-frame.nm-video-tap::after {
  content: '▶';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 13px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #nm-extra-sheet, .nm-extra-card { transition: none; }
}
