/* Poke Loko - site de pedidos
   Mesma identidade do cardapio em PDF: papel, couro, ouro e ferrugem.
   Rye no titulo, Oswald nos nomes e precos, Barlow nos textos. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* display:flex/grid nas regras abaixo venceria o atributo hidden sem isto */
[hidden] { display: none !important; }

:root {
  --papel:   #F3E7D2;
  --cartao:  #FDF7EC;
  --linha:   #D6C4A4;
  --tinta:   #231710;
  --tinta2:  #6E5A46;
  --escuro:  #1B110A;
  --ferrugem:#A6301F;
  --ouro:    #C08A2C;
  --ouro-cl: #E4B45A;
  --verde:   #1E7A45;
  --verde-cl:#25A65B;

  --raio: 10px;
  --sombra: 0 4px 12px rgba(60, 38, 16, .13);
  --largura: 1100px;
  --barra-altura: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: 118px; }

body {
  background: var(--papel);
  color: var(--tinta);
  font-family: Barlow, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.travado { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }

.ic-wa, .ic-ig, .ic-st { width: 1em; height: 1em; vertical-align: -.15em; }

/* ---------------- cabecalho ---------------- */
.topo {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 16px;
  background: var(--escuro); color: var(--papel);
  border-bottom: 2px solid var(--ouro);
}
.topo .marca { font-family: Rye, Georgia, serif; font-size: 19px; letter-spacing: .01em; }
.topo .contatos { display: flex; align-items: center; gap: 16px; font-size: 22px; }
.topo .contatos a { color: var(--ouro-cl); display: flex; padding: 4px; }

/* ---------------- capa ---------------- */
.capa { position: relative; background: var(--escuro); overflow: hidden; }
.capa-foto {
  width: 100%; height: 340px; object-fit: cover;
  opacity: .55;
}
.capa-txt {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px 20px 74px; color: var(--papel);
  background: linear-gradient(180deg, rgba(27,17,10,.86) 0%, rgba(27,17,10,.36) 42%,
              rgba(27,17,10,.94) 100%);
}
.fio { display: flex; align-items: center; gap: 10px; color: var(--ouro); width: min(100%, 420px); }
.fio::before, .fio::after {
  content: ""; flex: 1; height: 3px;
  border-top: 1px solid currentColor; border-bottom: 1px solid currentColor;
}
.fio span {
  font-family: Oswald, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
}
.capa h1 {
  font-family: Rye, Georgia, serif; font-weight: 400; font-size: clamp(38px, 12vw, 62px);
  line-height: 1.02; margin-top: 14px; text-shadow: 0 2px 0 rgba(0,0,0,.5);
}
.capa h1 em { font-style: normal; display: block; color: var(--ouro-cl); }
.chamada {
  font-family: Oswald, sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: #D9C7A6; margin-top: 12px;
}
.brasao { width: 108px; height: 108px; margin-top: 14px;
          filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.brasao .aro-ext { fill: var(--escuro); stroke: var(--ouro); stroke-width: 2.5; }
.brasao .aro-int { fill: none; stroke: var(--ouro); stroke-width: 1; }
.brasao .arco {
  font-family: Oswald, sans-serif; font-size: 15px; font-weight: 600;
  letter-spacing: 2.4px; fill: var(--ouro-cl); text-anchor: middle;
}
.brasao .marca { font-family: Rye, Georgia, serif; font-size: 28px; fill: var(--papel); text-anchor: middle; }
.brasao .regua { stroke: var(--ouro); stroke-width: 1.2; }

/* ---------------- atalhos das secoes ---------------- */
.atalhos {
  position: sticky; top: 52px; z-index: 30;
  background: var(--papel); border-bottom: 1px solid var(--linha);
}
.atalhos-caixa { position: relative; max-width: var(--largura); margin: 0 auto; }
.atalhos-rolo {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
  scrollbar-width: none; scroll-behavior: smooth;
  scroll-padding-left: 16px; scroll-padding-right: 44px;
}

/* setas do menu: so aparecem quando ha secao escondida daquele lado */
.seta {
  position: absolute; top: 0; bottom: 0; width: 46px; z-index: 2;
  display: flex; align-items: center; color: var(--escuro);
}
.seta .ic-seta { width: 20px; height: 20px; }
.seta-dir {
  right: 0; justify-content: flex-end; padding-right: 8px;
  background: linear-gradient(270deg, var(--papel) 0%, var(--papel) 48%, rgba(243,231,210,0) 100%);
}
.seta-esq {
  left: 0; justify-content: flex-start; padding-left: 8px;
  background: linear-gradient(90deg, var(--papel) 0%, var(--papel) 48%, rgba(243,231,210,0) 100%);
}
.seta-esq .ic-seta { transform: rotate(180deg); }
.seta:active .ic-seta { transform: scale(.85); }
.seta-esq:active .ic-seta { transform: rotate(180deg) scale(.85); }
.atalhos-rolo::-webkit-scrollbar { display: none; }
.atalhos-rolo a {
  flex: none; padding: 7px 14px; border: 1px solid var(--linha); border-radius: 999px;
  background: var(--cartao); white-space: nowrap;
  font-family: Oswald, sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.atalhos-rolo a:active { background: var(--escuro); color: var(--papel); }

/* ---------------- secoes ---------------- */
main { max-width: var(--largura); margin: 0 auto; padding: 24px 16px calc(var(--barra-altura) + 28px); }
.secao + .secao { margin-top: 34px; }

.faixa {
  background: var(--escuro); color: var(--papel); border-radius: var(--raio);
  padding: 14px 18px 16px; text-align: center; margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(224,180,90,.35);
}
.faixa .sup {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: Oswald, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--ouro-cl);
}
.faixa h2 { font-family: Rye, Georgia, serif; font-weight: 400; font-size: 24px; margin-top: 6px; }

.grade { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grade { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grade { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- card ---------------- */
.card {
  background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio);
  overflow: hidden; box-shadow: var(--sombra);
  display: flex; flex-direction: column;
}
.card.pulsa { animation: pulsa .32s ease; }
@keyframes pulsa { 50% { transform: scale(.985); box-shadow: 0 0 0 3px var(--ouro-cl); } }

/* o background e a previa borrada da propria foto, embutida no HTML:
   enquanto a imagem nao chega o card mostra o borrao, nunca um retangulo preto */
.ph {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  /* longhands de proposito: no atalho o navegador ignorou size/repeat
     e a previa de 24px ficava ladrilhada */
  background-color: #0B0B0D;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 2px solid var(--ouro);
}
.ph img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .25s ease;
}
.ph img.veio { opacity: 1; }

.body { padding: 14px 16px 12px; flex: 1; }
.selo {
  display: block; font-family: Oswald, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ouro); margin-bottom: 6px;
}
.linha { display: flex; align-items: flex-end; gap: 8px; }
.card h3 {
  font-family: Oswald, sans-serif; font-size: 19px; font-weight: 600; line-height: 1.1;
  text-transform: uppercase;
}
.guia { flex: 1; border-bottom: 1.5px dotted var(--tinta2); opacity: .5; margin-bottom: 4px; min-width: 12px; }
.preco {
  font-family: Oswald, sans-serif; font-size: 21px; font-weight: 700; line-height: 1;
  color: var(--ferrugem); white-space: nowrap;
}
.preco i { font-style: normal; font-size: 13px; font-weight: 600; opacity: .65; margin-right: 2px; }
.desc { font-size: 14.5px; line-height: 1.5; color: var(--tinta2); margin-top: 9px; }

/* ---------------- botao de adicionar / passo ---------------- */
.acao { border-top: 2px solid var(--ouro); background: var(--escuro); }
.acao .add {
  width: 100%; padding: 14px 0; color: var(--papel);
  font-family: Oswald, sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.acao .add:hover { background: #2A1A10; }

.passo { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; }
.passo button {
  width: 42px; height: 42px; border-radius: 8px; flex: none;
  background: var(--ouro); color: var(--escuro);
  font-family: Oswald, sans-serif; font-size: 24px; font-weight: 700; line-height: 1;
}
.passo button:hover { background: var(--ouro-cl); }
.passo .qtd {
  font-family: Oswald, sans-serif; font-size: 20px; font-weight: 700; color: var(--papel);
  min-width: 3ch; text-align: center;
}

/* ---------------- rodape ---------------- */
.rodape {
  background: var(--escuro); color: var(--papel); text-align: center;
  padding: 34px 20px calc(var(--barra-altura) + 34px);
  border-top: 2px solid var(--ouro);
}
.rod-t { font-family: Rye, Georgia, serif; font-size: 24px; color: var(--ouro-cl); }
.rod-s { font-size: 14px; color: #C4B096; margin-top: 10px; line-height: 1.6; }
.rod-zap {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 20px;
  background: var(--papel); color: var(--escuro); border: 2px solid var(--ouro);
  border-radius: 999px; padding: 12px 28px;
  font-family: Oswald, sans-serif; font-size: 20px; font-weight: 700;
}
.rod-zap .ic-wa { color: var(--verde); }
.rod-ig {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px;
  font-family: Oswald, sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: .08em; color: var(--ouro-cl);
}
.rod-pdf {
  display: inline-block; margin-top: 20px; color: #A08C6E;
  font-size: 13px; border-bottom: 1px dotted currentColor; padding-bottom: 2px;
}

/* ---------------- barra fixa do pedido ---------------- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(243,231,210,0) 0%, var(--papel) 42%);
}
.barra-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  max-width: var(--largura); margin: 0 auto; padding: 14px 18px;
  background: var(--verde); color: #fff; border-radius: var(--raio);
  border: 2px solid #0F5C31; box-shadow: 0 6px 16px rgba(15, 92, 49, .35);
}
.barra-btn:hover { background: var(--verde-cl); }
.barra-qtd {
  flex: none; min-width: 30px; height: 30px; border-radius: 999px;
  background: rgba(255,255,255,.22); display: grid; place-items: center; padding: 0 8px;
  font-family: Oswald, sans-serif; font-size: 16px; font-weight: 700;
}
.barra-txt {
  flex: 1; text-align: left;
  font-family: Oswald, sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.barra-total { font-family: Oswald, sans-serif; font-size: 20px; font-weight: 700; }

/* ---------------- gaveta do pedido ---------------- */
.veu { position: fixed; inset: 0; z-index: 50; background: rgba(20, 12, 6, .62); }

.gaveta {
  position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
  max-height: 90dvh; display: flex; flex-direction: column;
  background: var(--papel); border-top: 3px solid var(--ouro);
  border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.35);
}
@media (min-width: 720px) {
  .gaveta { left: auto; right: 0; top: 0; bottom: 0; width: 440px; max-height: none;
            border-radius: 0; border-top: 0; border-left: 3px solid var(--ouro); }
}

.gaveta-topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: var(--escuro); color: var(--papel);
  border-radius: 13px 13px 0 0;
}
@media (min-width: 720px) { .gaveta-topo { border-radius: 0; } }
.gaveta-topo h2 { font-family: Rye, Georgia, serif; font-weight: 400; font-size: 21px; color: var(--ouro-cl); }
.fechar { font-size: 30px; line-height: 1; color: var(--papel); padding: 0 6px; }

.gaveta-rolo { overflow-y: auto; padding: 16px 18px 8px; -webkit-overflow-scrolling: touch; }

.lista-pedido { list-style: none; }
.lista-pedido li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 12px 0; border-bottom: 1px dotted var(--linha);
}
.lp-nome { font-family: Oswald, sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; }
.lp-unit { font-size: 13px; color: var(--tinta2); }
.lp-preco {
  align-self: center; text-align: right;
  font-family: Oswald, sans-serif; font-size: 18px; font-weight: 700; color: var(--ferrugem);
}
.lp-passo { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.lp-passo button {
  width: 32px; height: 32px; border-radius: 7px; background: var(--escuro); color: var(--ouro-cl);
  font-family: Oswald, sans-serif; font-size: 19px; font-weight: 700; line-height: 1;
}
.lp-passo .n { font-family: Oswald, sans-serif; font-weight: 700; min-width: 2ch; text-align: center; }

.vazio { padding: 26px 0; text-align: center; color: var(--tinta2); }

.soma {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--escuro);
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em;
}
.soma strong { font-size: 26px; letter-spacing: 0; color: var(--ferrugem); }

.campos { margin-top: 20px; }
.campos label {
  display: block; margin-bottom: 6px;
  font-family: Oswald, sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.campos label span { color: var(--tinta2); font-weight: 500; letter-spacing: .06em; }
.campos input, .campos textarea {
  width: 100%; padding: 12px 13px; background: var(--cartao);
  border: 1.5px solid var(--linha); border-radius: 8px; font-size: 16px;
}
.campos input:focus, .campos textarea:focus { border-color: var(--ouro); outline: none; }
.campos textarea { resize: vertical; margin-bottom: 4px; }
.campos label[for="obs"] { margin-top: 16px; }
.campos input.ruim { border-color: var(--ferrugem); background: #FDF0EC; }
.erro { color: var(--ferrugem); font-size: 13.5px; margin-top: 6px; }

.gaveta-pe {
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha); background: var(--cartao);
}
.enviar {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 16px 0; background: var(--verde); color: #fff;
  border: 2px solid #0F5C31; border-radius: var(--raio);
  font-family: Oswald, sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.enviar:hover { background: var(--verde-cl); }
.enviar[disabled] { opacity: .5; cursor: not-allowed; }
.enviar .ic-wa { font-size: 21px; }
.aviso { text-align: center; font-size: 12.5px; color: var(--tinta2); margin-top: 9px; }

/* ---------------- avisinho ---------------- */
.aviso-flutuante {
  position: fixed; left: 50%; bottom: calc(var(--barra-altura) + 16px); z-index: 60;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  background: var(--escuro); color: var(--papel);
  border: 1.5px solid var(--ouro); border-radius: 999px; padding: 10px 20px;
  font-family: Oswald, sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease;
}
.aviso-flutuante.aparece { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
