/* Versão 1, Vitrine: cardápio impresso de padaria fina. */
:root {
  --cor-fundo: var(--creme);
  --cor-texto: var(--cacau);
  --cor-texto-suave: var(--cacau-medio);
  --cor-superficie: #FFFBF5;
  --cor-valor-borda: #B9A58F;
  --cor-foco: var(--acao);
  --cor-faixa: #EADFCC;
  --cor-faixa-texto: var(--cacau);
  --cor-abas: var(--creme);
  --cor-abas-texto: var(--cacau);
  --cor-abas-marca: var(--acao);
  --cor-ver-pedido: var(--cacau);
  --raio-botao: .25rem;
}
#abas { border-top: 1px solid var(--cacau); border-bottom: 3px double var(--cacau); }

.topo { position: relative; padding: .75rem 1rem .5rem; text-align: center; overflow: hidden; }
.topo-letra { display: flex; justify-content: flex-end; }
.topo-logo { width: 10.5rem; margin: -.5rem auto .5rem; }
.topo-linha { height: .375rem; margin: 0 auto; max-width: 16rem; border-top: 3px double var(--cacau); }
.topo h1 { margin: .5rem 0 0; font-family: var(--fonte-titulo); font-size: 3.25rem; font-weight: 800; line-height: 1.05; }
.topo-casa { font-size: 1.125rem; letter-spacing: .01em; }
.topo-frase { max-width: 22rem; margin: .875rem auto 0; font-size: 1.25rem; line-height: 1.35; }
.topo-prato { display: block; width: 108%; max-width: 30rem; height: auto; margin: 1rem -16% 0 auto; filter: drop-shadow(0 1.125rem 1rem rgba(59, 42, 31, .3)); }
.topo-compacto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .625rem 1rem; }
.topo-compacto img { width: 5.5rem; }
.topo-compacto + .secao { padding-top: .25rem; }

.trigo { position: absolute; z-index: -1; width: 14rem; height: auto; opacity: .09; pointer-events: none; }
.trigo-topo { top: -.5rem; right: -2.5rem; }
.trigo-meio { top: 45%; left: -3.5rem; transform: scaleX(-1); }
main#app { position: relative; z-index: 0; }

.secao { position: relative; padding-top: 1.75rem; overflow: hidden; }
.palavra {
  display: block; padding: 0 .5rem; margin-bottom: -.5em;
  font-family: var(--fonte-titulo); font-size: clamp(1.5rem, calc(88vw / (var(--letras) * .56)), 5.5rem); font-weight: 800; line-height: 1;
  color: rgba(59, 42, 31, .07); white-space: nowrap; pointer-events: none;
}
.faixa-titulo {
  position: relative; display: inline-block; max-width: calc(100% - 2rem);
  padding: .4375rem 3rem .4375rem 1rem;
  background: var(--cacau); color: var(--creme);
  font-family: var(--fonte-titulo); font-size: 1.75rem; font-weight: 700; line-height: 1.15;
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.25rem) 50%, 100% 100%, 0 100%);
}
.secao-frase { padding: .75rem 1rem 0; font-size: 1.25rem; line-height: 1.35; }
.secao-aviso { padding: .5rem 1rem 0; font-weight: 700; }

/* Item: a grade da linha de cima deixa a margem do texto fixa e o prato sair pela borda. */
.item { overflow: hidden; padding: 1.25rem 0 1.5rem; border-bottom: 1px solid #D8C8B2; }
.item:last-child { border-bottom: 0; }
.item-topo { display: grid; grid-template-columns: minmax(0, 1fr) 37%; column-gap: .5rem; align-items: center; padding-left: 1rem; }
.item-texto h3 { font-family: var(--fonte-titulo); font-size: 1.75rem; font-weight: 700; line-height: 1.08; }
.preco-linha { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .375rem; margin-top: .5rem; }
.preco-linha .pontos { flex: 1 1 .75rem; min-width: .75rem; border-bottom: 2px dotted var(--cacau-medio); transform: translateY(-.25rem); }
.preco-linha strong { font-size: 1.375rem; font-weight: 700; }
.preco-confirmar { margin-top: .5rem; font-weight: 700; line-height: 1.25; }
.prato { position: relative; width: 122%; justify-self: start; }
.prato::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -3%; height: 12%; z-index: -1;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 42, 31, .34), rgba(59, 42, 31, 0));
}
.prato img { width: 100%; height: auto; max-height: 11rem; object-fit: contain; object-position: center bottom; }
.prato-moldura::after { display: none; }
.prato-moldura img {
  aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: .3125rem solid var(--branco-quente);
  outline: 1px solid var(--cacau-medio); outline-offset: .1875rem;
  box-shadow: 0 .625rem 1.125rem rgba(59, 42, 31, .28);
}
.item-base { padding: .875rem 1rem 0; }
.item-base .desc { color: var(--cacau-medio); }
.item-base .no-pedido { margin-top: .625rem; font-weight: 700; }
.item-base .btn { display: flex; width: 100%; margin-top: .75rem; }

/* Momento forte: a única foto grande da versão */
.momento { position: relative; margin-top: 1rem; }
.momento img { width: 100%; }
.momento-etiqueta {
  position: absolute; left: 1rem; bottom: 1rem; max-width: calc(100% - 2rem);
  padding: .375rem .875rem; border: 1px solid var(--cacau-medio); outline: .1875rem solid var(--creme);
  background: var(--creme); color: var(--cacau); border-radius: .25rem;
  font-size: 1.375rem; font-weight: 700; line-height: 1.2;
}
.momento-etiqueta span { display: inline-block; }
.momento-etiqueta b { font-family: var(--fonte-titulo); font-size: 1.625rem; font-weight: 700; }

/* Cartão que leva a outra página */
.convite { position: relative; margin: 1.75rem 1rem 0; padding: 1.125rem 1rem 1rem; border: 1px solid var(--cacau); outline: 1px solid var(--cacau); outline-offset: .1875rem; background: rgba(255, 251, 245, .6); }
.convite h2 { font-family: var(--fonte-titulo); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.convite p { margin: .375rem 0 .875rem; }
.ver-todas { padding: .25rem 1rem 0; }

.rodape { margin-top: 2rem; padding: 1.25rem 1rem; border-top: 3px double var(--cacau); }
.rodape p + p { margin-top: .625rem; }
.rodape strong { display: block; }
.escolha { padding: .5rem 1rem 2rem; text-align: center; }
.escolha p { font-family: var(--fonte-titulo); font-size: 1.75rem; font-weight: 700; margin-bottom: .625rem; }

/* Painel de escolha, subindo de baixo */
.folha { z-index: 35; display: flex; flex-direction: column; overflow: hidden; animation: subir .22s ease-out; }
.folha .camada-topo { flex: none; }
.folha-corpo { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 40rem; margin: 0 auto; }
.folha-rolagem { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 1rem; }
.folha-rodape { flex: none; padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom)); background: var(--cor-fundo); border-top: 1px solid var(--cor-valor-borda); }
.folha-foto { width: 100%; height: auto; max-height: 34vh; max-height: 34svh; object-fit: cover; }
.folha-texto { padding: 1rem 1rem 0; }
.folha-texto h2 { font-family: var(--fonte-titulo); font-size: 2.125rem; font-weight: 800; line-height: 1.08; }
.folha-texto .desc { margin-top: .5rem; color: var(--cacau-medio); }
.folha-texto .aviso { margin-top: .5rem; font-weight: 700; }
.folha-controles { padding: 1rem 1rem 0; }
.folha-controles .grupo + .grupo { margin-top: 1rem; }
.folha-preco { margin-top: .875rem; font-size: 1.375rem; font-weight: 700; }
.folha-serve { margin-top: .625rem; font-weight: 700; }
.folha-no-pedido { margin-top: .625rem; font-weight: 700; }
.folha-confirmar { margin-top: .875rem; font-weight: 700; }
.folha-adicionar { margin-top: .625rem; }
/* Tela muito baixa, como zoom alto: o painel inteiro rola, porque o rodapé não caberia fixo. */
@media (max-height: 26rem) {
  .folha { display: block; overflow-y: auto; }
  .folha-corpo { display: block; }
  .folha-rolagem { overflow: visible; }
}
@keyframes subir { from { transform: translateY(2.5rem); opacity: .4; } to { transform: none; opacity: 1; } }
