/* Magrelo Lanches Maria Celina
   A página é pintada como a loja: parede amarela, balcão vermelho e a noite das artes. */
:root {
  --parede: #FFDD00;
  --parede-2: #FFEA5C;
  --vermelho: #BE0F0A;
  --vermelho-2: #8F0A06;
  --chapa: #240704;
  --chapa-2: #3B0E08;
  --branco: #FFFFFF;
  --f-placa: 'Ranchers', 'Arial Narrow', Impact, sans-serif;
  --f-txt: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --ease-enter: cubic-bezier(.16, .84, .3, 1);
  --ease-mola: cubic-bezier(.3, 1.5, .5, 1);
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--chapa); color: var(--chapa); font-family: var(--f-txt); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--f-placa); font-weight: 400; line-height: 1.04; }
h2 { font-size: clamp(38px, 11.5vw, 50px); }
h3 { font-size: clamp(27px, 8vw, 33px); }
.pagina { max-width: 560px; margin: 0 auto; background: var(--parede); overflow: hidden; overflow: clip; }
section[id] { scroll-margin-top: 12px; }
:focus-visible { outline: 3px solid var(--chapa); outline-offset: 3px; border-radius: 6px; }
.caminhos :focus-visible, .final :focus-visible, .casal :focus-visible, .promo :focus-visible, .extras :focus-visible, .rodape :focus-visible, .balcao :focus-visible { outline-color: var(--branco); }

.pular { position: fixed; top: 8px; left: 8px; z-index: 30; padding: 10px 14px; background: var(--chapa); color: var(--branco); border-radius: 8px; transform: translateY(-200%); }
.pular:focus { transform: none; }
.marco { position: absolute; top: 160px; left: 0; width: 1px; height: 1px; }

/* ---------- Cena 1: parede e balcão ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--parede); overflow: hidden; overflow: clip; }
.parede { padding: calc(env(safe-area-inset-top) + 18px) var(--gutter) 0; text-align: center; }
.placa { width: min(76%, 310px); margin: 0 auto; border-radius: 18px; box-shadow: 0 0 0 4px var(--chapa), 0 12px 0 -4px rgba(143, 10, 6, .45); }
h1 { margin: 18px auto 0; max-width: 15em; color: var(--vermelho); font-size: clamp(33px, 10vw, 44px); }
.apoio { margin-top: 10px; font-size: 17px; font-weight: 600; }

.cena { position: relative; flex: 1 1 auto; min-height: clamp(214px, 66vw, 290px); }
.mascote { position: absolute; left: max(-6px, calc(50% - 212px)); bottom: -8px; width: clamp(188px, 61vw, 264px); z-index: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mascote-gesto { position: relative; transform-origin: 44% 100%; }
.mascote img { width: 100%; }
.olho { position: absolute; display: block; border-radius: 50%; overflow: hidden; pointer-events: none; }
.olho-e { left: 33.2%; top: 40.2%; width: 17%; height: 17%; }
.olho-d { left: 47.5%; top: 38.6%; width: 13.8%; height: 15.2%; }
.pupila { position: absolute; display: block; border-radius: 50%; background: #120605; }
.olho-e .pupila { left: 59%; top: 49%; width: 32%; height: 29.6%; }
.olho-d .pupila { left: 57.5%; top: 55%; width: 35%; height: 29.2%; }
.palpebra { position: absolute; inset: -2px; display: block; background: #FBB15F; transform: translateY(-104%); }
.dog { position: absolute; right: max(3px, calc(50% - 212px)); bottom: -6px; width: clamp(196px, 60vw, 270px); z-index: 3; filter: drop-shadow(0 7px 4px rgba(70, 5, 0, .38)); }

.balcao { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; padding: 14px 6px calc(env(safe-area-inset-bottom) + 12px); background: var(--vermelho); border-top: 12px solid #E32A1F; box-shadow: inset 0 3px 0 rgba(36, 7, 4, .25); }
.balcao a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; color: var(--branco); font-weight: 800; font-size: 16px; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Abertura: o Magrelo sobe detrás do balcão, acompanha o dog com os olhos e dá uma piscada */
.js .hero:not(.pronto) .mascote { transform: translateY(72%); animation: seguro 0s 2.6s forwards; }
.js .hero:not(.pronto) .dog { transform: translateX(120vw); animation: seguro 0s 2.6s forwards; }
@keyframes seguro { to { transform: none; } }
.js .hero.abertura:not(.pronto) .mascote { animation: sobe 500ms var(--ease-mola) 90ms both; }
.js .hero.abertura:not(.pronto) .dog { animation: desliza 600ms var(--ease-enter) 520ms both; }
.js .hero.abertura:not(.pronto) .pupila { animation: acompanha 1120ms ease-in-out 150ms both; }
.js .hero.abertura:not(.pronto) .mascote-gesto { animation: acena 340ms ease-out 1120ms both; }
.js .hero.abertura:not(.pronto) .olho-e .palpebra { animation: piscada 240ms ease-in-out 1280ms both; }
.js .hero.sem-abertura:not(.pronto) .mascote,
.js .hero.sem-abertura:not(.pronto) .dog { transform: none; animation: aparece 200ms both; }
@keyframes sobe { from { transform: translateY(72%); } to { transform: none; } }
@keyframes desliza {
  0% { transform: translateX(120vw); }
  80% { transform: translateX(-7px); }
  100% { transform: none; }
}
@keyframes acompanha {
  0%, 26% { transform: translate(-150%, -50%); }
  70% { transform: translate(40%, 26%); }
  100% { transform: none; }
}
@keyframes acena {
  0%, 100% { transform: none; }
  45% { transform: rotate(3.4deg); }
}
@keyframes piscada {
  0%, 100% { transform: translateY(-104%); }
  45%, 60% { transform: translateY(0); }
}
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.mascote.is-eco .mascote-gesto { animation: acena 340ms ease-out both; }
.mascote.is-eco .olho-e .palpebra { animation: piscada 240ms ease-in-out 60ms both; }
.dog.is-eco { animation: empurra 300ms ease-out; }
@keyframes empurra { 40% { transform: translateX(-9px); } }

/* ---------- Botões ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 18px; border-radius: 14px; background: var(--branco); color: var(--chapa); font-weight: 800; font-size: 17px; text-decoration: none; box-shadow: 0 4px 0 rgba(36, 7, 4, .55); transition: transform var(--motion-fast) ease-out, box-shadow var(--motion-fast) ease-out; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn i { font-size: 21px; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(36, 7, 4, .55); }
.btn-sim { background: var(--parede); }
.btn-claro { background: var(--branco); box-shadow: 0 4px 0 var(--vermelho-2); }
.btn-verm { background: var(--vermelho); color: var(--branco); box-shadow: 0 4px 0 var(--vermelho-2); }
.pede { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 12px; background: var(--parede); color: var(--chapa); font-weight: 800; text-decoration: none; transition: transform var(--motion-fast) ease-out; touch-action: manipulation; }
.pede:active { transform: scale(.97); }

.caminhos { display: grid; gap: 14px; padding: 8px var(--gutter) 34px; background: var(--vermelho); }

/* ---------- Cena 2: promoções na noite das artes ---------- */
.promo { padding: 42px var(--gutter) 46px; background: var(--chapa); color: var(--branco); }
.promo h2 { color: var(--parede); }
.promo-apoio { margin-top: 8px; }
.oferta { margin-top: 28px; padding-bottom: 28px; border-bottom: 2px dashed rgba(255, 221, 0, .4); }
.oferta img { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-left: calc(-1 * var(--gutter)); }
.oferta-txt { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; margin: 14px 0 14px; }
.oferta-preco { color: var(--parede); font-family: var(--f-placa); font-size: clamp(38px, 11.5vw, 50px); line-height: 1; }
.dias-titulo { margin-top: 36px; color: var(--parede); font-size: clamp(32px, 9.6vw, 40px); }
.dias-foto { width: calc(100% + 2 * var(--gutter)); max-width: none; margin: 16px 0 6px calc(-1 * var(--gutter)); }
.dia { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: center; min-height: 72px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); color: inherit; text-decoration: none; touch-action: manipulation; transition: background-color var(--motion-fast) linear; }
.dia:active { background: var(--chapa-2); }
.dia-nome { grid-column: 1; font-size: 15px; color: #FFE9A8; }
.dia-lanche { grid-column: 1; font-weight: 800; font-size: 18px; }
.dia-preco { grid-column: 2; grid-row: 1 / span 2; color: var(--parede); font-family: var(--f-placa); font-size: 30px; white-space: nowrap; }
.selo-hoje[hidden] { display: none; }
.selo-hoje { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--parede); color: var(--chapa); font-weight: 800; font-size: 13px; }
.dias .is-hoje .dia { margin: 0 -10px; padding-inline: 10px; background: var(--vermelho); border-bottom-color: transparent; border-radius: 12px; }

/* ---------- Cena 3: cardápio ---------- */
.cardapio { padding: 42px var(--gutter) 40px; background: var(--parede); }
.cardapio h2 { color: var(--vermelho); }
.cardapio-apoio { margin-top: 8px; font-weight: 600; }
.abas { display: none; }
.js .abas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.aba { min-height: 48px; padding: 0 14px; border: 2px solid var(--vermelho); border-radius: 12px; background: transparent; color: var(--vermelho-2); font: 800 15px/1.1 var(--f-txt); cursor: pointer; touch-action: manipulation; transition: background-color var(--motion-fast) linear, color var(--motion-fast) linear; }
.aba[aria-selected='true'] { background: var(--vermelho); color: var(--branco); }
.painel { margin-top: 26px; }
.js .painel { margin-top: 18px; }
.js .painel[hidden] { display: none; }
.painel h3 { margin-top: 24px; color: var(--vermelho); }
.painel h3:first-child { margin-top: 0; }
.js .painel-titulo { display: none; }
.js .painel-titulo + h3 { margin-top: 0; }
.nota { margin: 2px 0 8px; font-size: 15px; font-weight: 600; }
.lista { margin-top: 4px; }
.linha { display: block; padding: 12px 0; border-bottom: 1px solid rgba(143, 10, 6, .35); color: inherit; text-decoration: none; touch-action: manipulation; transition: background-color var(--motion-fast) linear; }
.linha:active { background: var(--parede-2); }
.linha-topo { display: flex; align-items: baseline; gap: 7px; }
.n { flex: none; min-width: 1.5em; color: var(--vermelho); font-weight: 800; font-size: 16px; }
.nome { font-weight: 800; font-size: 17px; line-height: 1.25; }
.pontos { flex: 1 1 14px; min-width: 14px; border-bottom: 2px dotted rgba(36, 7, 4, .55); transform: translateY(-3px); }
.preco { flex: none; color: var(--vermelho); font-weight: 800; font-size: 17px; white-space: nowrap; }
.desc { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; }
.adicionais { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 4px 22px; margin-top: 8px; font-weight: 600; }
.adicionais li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(143, 10, 6, .35); }

/* ---------- Cena 4: açaí e desafio ---------- */
.extras { padding: 42px var(--gutter) 46px; background: var(--chapa); color: var(--branco); }
.extra h2 { margin-top: 18px; color: var(--parede); }
.extra p { margin: 8px 0 14px; }
.extra > img { border-radius: 14px; }
.extra-lado { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 40px; }
.extra-lado img { border-radius: 14px; }
.extra-lado h2 { margin-top: 0; font-size: clamp(30px, 9vw, 40px); }
.extra-lado .pede { padding: 8px 14px; line-height: 1.2; }

/* ---------- Cena 5: o casal ---------- */
.casal { padding: 42px var(--gutter) 40px; background: var(--vermelho); color: var(--branco); text-align: center; }
.casal img { width: min(82%, 340px); margin: 0 auto; border-radius: 14px; box-shadow: 0 0 0 4px var(--parede); }
.casal h2 { margin-top: 24px; color: var(--parede); }
.casal p { margin-top: 10px; }

/* ---------- Cena 6: a casa ---------- */
.casa { padding: 42px var(--gutter) 44px; background: var(--parede); }
.casa h2 { color: var(--vermelho); }
.casa h3 { margin-top: 32px; color: var(--vermelho); }
.foto-casa { margin: 18px calc(-1 * var(--gutter)) 0; }
.foto-casa img { width: 100%; }
.foto-salao { margin-inline: 0; }
.foto-salao img { border-radius: 14px; box-shadow: 0 0 0 4px var(--vermelho); }
.fatos { margin-top: 16px; font-weight: 600; }
.fatos li { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.fatos i { width: 24px; color: var(--vermelho); font-size: 20px; text-align: center; }
.fala { margin-top: 20px; padding-left: 16px; border-left: 5px solid var(--vermelho); }
.fala p { font-weight: 800; font-size: 19px; line-height: 1.3; }
.fala cite { display: block; margin-top: 2px; font-style: normal; font-size: 14px; }
.horas { width: 100%; margin-top: 8px; border-collapse: collapse; }
.horas th, .horas td { padding: 10px 8px; border-bottom: 1px solid rgba(143, 10, 6, .35); text-align: left; font-weight: 600; }
.horas th { font-weight: 800; }
.horas td { text-align: right; }
.horas .is-hoje th, .horas .is-hoje td { background: var(--vermelho); color: var(--branco); }
address { margin-top: 8px; font-style: normal; font-weight: 600; }
.mapa { margin-top: 16px; }
.mapa iframe { display: block; width: 100%; height: 300px; border: 0; border-radius: 14px; box-shadow: 0 0 0 4px var(--vermelho); }
.casa .btn-verm { margin-top: 16px; }

/* ---------- CTA final e rodapé ---------- */
.final { display: grid; gap: 14px; padding: 42px var(--gutter) 40px; background: var(--vermelho); color: var(--branco); text-align: center; }
.final h2 { color: var(--parede); }
.outros { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; margin-top: 4px; }
.outros a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 2px; font-weight: 800; text-underline-offset: 4px; }

.rodape { padding: 26px var(--gutter) calc(env(safe-area-inset-bottom) + 28px); background: var(--chapa); color: var(--branco); text-align: center; font-size: 14px; }
.credito { display: flex; width: fit-content; align-items: center; gap: 14px; min-height: 44px; margin: 18px auto 0; text-align: left; font-size: 13px; line-height: 1.35; color: var(--branco); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.credito-txt strong { display: block; font-size: 15px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.selo-b2 { --seal-ink: currentColor; --seal-accent: var(--parede); --seal-ring: 0.4 1.4; --seal-font: var(--f-txt); flex: none; width: 72px; height: 72px; overflow: visible; transition: rotate 320ms cubic-bezier(.22, 1, .36, 1); }
.selo-borda, .selo-anel { fill: none; stroke: var(--seal-ink); }
.selo-borda { stroke-width: 1; }
.selo-anel { stroke-width: .7; stroke-dasharray: var(--seal-ring); opacity: .75; }
.selo-texto { fill: var(--seal-ink); font-family: var(--seal-font); font-size: 6.3px; font-weight: 800; letter-spacing: .8px; }
.selo-b { fill: var(--seal-ink); }
.selo-acento { fill: var(--seal-accent); }
.credito:active .selo-b2 { rotate: -10deg; }
.selo-giro { transform-box: view-box; transform-origin: 50px 50px; }
@keyframes selo-gira { to { transform: rotate(360deg); } }
@keyframes selo-flutua { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: no-preference) {
  .selo-giro { animation: selo-gira 24s linear infinite; }
  .selo-b2 { animation: selo-flutua 4.8s ease-in-out infinite; }
  .selo-b2.is-still, .selo-b2.is-still .selo-giro, .is-page-hidden .selo-b2, .is-page-hidden .selo-giro { animation-play-state: paused; }
}

/* ---------- CTA flutuante ---------- */
.flutuante { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 14px); z-index: 20; display: none; align-items: center; justify-content: center; gap: 10px; width: min(calc(100% - 32px), 420px); min-height: 56px; padding: 0 18px; border-radius: 999px; background: var(--parede); color: var(--chapa); font-weight: 800; font-size: 17px; text-decoration: none; box-shadow: 0 0 0 3px var(--chapa), 0 10px 22px rgba(36, 7, 4, .45); visibility: hidden; opacity: 0; transform: translate(-50%, 14px); transition: opacity var(--motion-standard) ease-out, transform var(--motion-standard) var(--ease-enter), visibility 0s var(--motion-standard); touch-action: manipulation; }
.flutuante i { font-size: 22px; }
.js .flutuante { display: flex; }
.flutuante.is-visivel { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition-delay: 0s; }

/* ---------- Menos movimento: o Magrelo já está no balcão e o dog já chegou ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero:not(.pronto) .mascote, .js .hero:not(.pronto) .dog { transform: none; animation: aparece 200ms both; }
  .js .hero:not(.pronto) .pupila, .js .hero:not(.pronto) .palpebra, .js .hero:not(.pronto) .mascote-gesto { animation: none; }
  .hero.pronto .mascote, .hero.pronto .dog { animation: aparece 200ms both; }
  .mascote.is-eco .mascote-gesto, .mascote.is-eco .palpebra, .dog.is-eco { animation: none; }
  .flutuante { transform: translate(-50%, 0); transition: opacity 200ms, visibility 0s 200ms; }
  .btn, .pede, .aba, .linha, .dia { transition: none; }
  .credito:active .selo-b2 { rotate: none; }
}
