/* Fornalha Lanches · demonstração Bonafí */
@font-face { font-family: "Bricolage"; font-weight: 400; font-style: normal; font-display: swap; src: url("fontes/bricolage-texto-regular.woff") format("woff"); }
@font-face { font-family: "Bricolage"; font-weight: 700; font-style: normal; font-display: swap; src: url("fontes/bricolage-texto-bold.woff") format("woff"); }
@font-face { font-family: "Bricolage"; font-weight: 800; font-style: normal; font-display: swap; src: url("fontes/bricolage-titulo-extrabold.woff") format("woff"); }

:root {
  --azul: #1F3A4D;
  --mostarda: #F0B323;
  --brasa: #C8381E;
  --kraft: #EADBC0;
  --papel: #FBF6EA;
  --carvao: #23201D;
  --folha: #2F6B3F;
  --barra-h: 110px;
  --raio: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: "Bricolage", system-ui, sans-serif; font-weight: 400; font-size: 1rem; line-height: 1.5; color: var(--carvao); background: var(--kraft); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 .75rem; }
a { color: inherit; }
.miolo { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }

:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }
.topo :focus-visible, .rodape :focus-visible { outline-color: var(--mostarda); }

.pular { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--mostarda); color: var(--carvao); font-weight: 700; padding: 12px 16px; border-radius: 8px; }
.pular:focus { top: 8px; }

/* ícones de contorno grosso */
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2.4; flex: none; }

/* selo */
.selo { display: inline-block; margin: 0 0 16px; padding: 6px 14px; background: var(--mostarda); color: var(--carvao); font-weight: 700; font-size: .9375rem; border-radius: 999px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; border: 3px solid transparent; text-align: center; }
.btn-principal { background: var(--mostarda); color: var(--carvao); }
.btn-contorno { border-color: var(--papel); color: var(--papel); background: transparent; }
.btn-azul { background: var(--azul); color: var(--papel); }
.btn:hover { filter: brightness(1.07); }

/* topo */
.topo { background: var(--azul); color: var(--papel); padding: 20px 0 24px; }
.topo-grade { display: grid; gap: 20px; }
.logo { width: min(300px, 78%); height: auto; margin-bottom: 14px; }
.topo h1 { font-weight: 800; font-size: clamp(2rem, 8vw, 3.25rem); letter-spacing: -.01em; max-width: 14ch; margin-bottom: 14px; }
.historia { max-width: 56ch; }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.botoes .btn { flex: 1 1 200px; }
.topo-foto { width: 100%; height: 220px; object-fit: cover; object-position: 50% 40%; border-radius: var(--raio); border: 3px solid var(--mostarda); }
.aviso { margin: 20px 0 0; padding: 12px 16px; background: var(--papel); color: var(--carvao); border-left: 6px solid var(--mostarda); border-radius: 8px; max-width: 70ch; }

/* barra fixa: atalhos + régua */
.barra { position: sticky; top: 0; z-index: 20; background: var(--kraft); border-bottom: 3px solid var(--azul); }
.barra-nav ul { display: flex; gap: 8px; margin: 0; padding: 8px 16px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; max-width: 1100px; margin-inline: auto; }
.barra-nav li { flex: none; scroll-snap-align: start; }
.barra-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--azul); color: var(--papel); font-weight: 700; text-decoration: none; white-space: nowrap; }
.barra-nav a[aria-current="true"] { background: var(--mostarda); color: var(--carvao); }
.regua { display: flex; align-items: center; gap: 10px; max-width: 1100px; margin: 0 auto; padding: 2px 16px 8px; font-weight: 700; font-size: .9375rem; }
.regua-ponta { flex: none; }
.regua-trilho { position: relative; flex: 1; height: 12px; border: 3px solid var(--carvao); border-radius: 999px; background: var(--papel); --p: 0; }
.regua-marcador { position: absolute; top: 50%; left: calc(var(--p) * (100% - 30px)); width: 30px; height: 30px; margin-top: -15px; display: grid; place-items: center; background: var(--mostarda); color: var(--carvao); border: 3px solid var(--carvao); border-radius: 50%; }
.regua-marcador .ic { width: 16px; height: 16px; }

/* cardápio */
.secao { padding-top: 28px; scroll-margin-top: var(--barra-h); }
.secao h2, .bloco h2 { font-weight: 800; font-size: 2rem; color: var(--azul); margin-bottom: 4px; }
.secao-nota { margin: 0 0 12px; }
.secao-foto { width: 100%; height: 170px; object-fit: cover; border-radius: var(--raio); border: 3px solid var(--azul); margin: 10px 0 14px; }
.lista { display: grid; gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.item { position: relative; background: var(--papel); border: 3px solid var(--azul); border-radius: var(--raio); padding: 14px 16px; box-shadow: 4px 4px 0 var(--azul); }
.item-destaque { border-color: var(--brasa); box-shadow: 4px 4px 0 var(--brasa); }
.item-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item h3 { font-weight: 700; font-size: 1.1875rem; line-height: 1.25; }
.preco { font-weight: 800; font-size: 1.5rem; white-space: nowrap; text-align: right; }
.item-desc { margin: 6px 0 0; max-width: 60ch; }
.item-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.etiqueta { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .9375rem; }
.etiqueta .ic { width: 1.1em; height: 1.1em; }
.et-vegano { background: var(--folha); color: var(--papel); }
.et-vegetariano { background: var(--papel); color: var(--folha); border: 2px solid var(--folha); }
.et-picante { background: var(--brasa); color: var(--papel); }
.et-destaque { background: var(--brasa); color: var(--papel); }
.chamas { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-weight: 700; font-size: .875rem; }
.chamas .ic { width: 22px; height: 22px; stroke: var(--carvao); fill: var(--mostarda); }
.chamas .ic.apagada { fill: none; opacity: .35; }
.chamas-texto { margin-right: 6px; }

/* blocos */
.bloco { padding: 36px 0 4px; scroll-margin-top: var(--barra-h); }
.duas { display: grid; gap: 14px; margin-top: 12px; }
.cartao { background: var(--papel); border: 3px solid var(--azul); border-radius: var(--raio); padding: 16px; }
.cartao h3 { font-weight: 800; font-size: 1.375rem; margin-bottom: 8px; color: var(--azul); }
.horarios { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.horarios dt { font-weight: 700; }
.horarios dd { margin: 0; text-align: right; }
address { font-style: normal; margin-bottom: 8px; }
.nota { font-size: .9375rem; }
.link-forte { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--azul); }
.qr-cartao { display: grid; gap: 16px; align-items: center; margin-top: 12px; }
.qr-cartao img { width: 200px; height: 200px; border: 3px solid var(--carvao); border-radius: 8px; background: #fff; }
.qr-links { display: flex; flex-wrap: wrap; gap: 10px; }
#faq details { background: var(--papel); border: 3px solid var(--azul); border-radius: var(--raio); margin-top: 12px; }
#faq summary { min-height: 48px; display: flex; align-items: center; padding: 8px 16px; font-weight: 700; cursor: pointer; }
#faq details p { padding: 0 16px; margin: 0 0 14px; max-width: 60ch; }

/* rodapé */
.rodape { margin-top: 48px; background: var(--azul); color: var(--papel); padding: 28px 0 40px; }
.rodape-aviso { max-width: 70ch; }
.rodape-assinatura { font-weight: 700; }
.rodape a { text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.creditos summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.creditos summary::after { content: "+"; margin-left: 10px; font-weight: 800; font-size: 1.25rem; }
.creditos[open] summary::after { content: "−"; }
.creditos { max-width: 70ch; font-size: .9375rem; }
.creditos li { margin-bottom: 6px; }

.aviso-toque { position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; background: var(--carvao); color: var(--papel); border-radius: 12px; font-weight: 700; opacity: 0; pointer-events: none; }
.aviso-toque.visivel { opacity: 1; }

@media (min-width: 760px) {
  .topo { padding: 36px 0 32px; }
  .topo-grade { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
  .topo-foto { height: 380px; }
  .botoes .btn { flex: 0 0 auto; }
  .lista { grid-template-columns: 1fr 1fr; gap: 18px; }
  .secao-foto { height: 240px; }
  .duas { grid-template-columns: 1fr 1fr; }
  .qr-cartao { grid-template-columns: auto 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .aviso-toque { transition: opacity .2s; }
}
