/* Template "gastronomia-balcao" — pele do ID Café.
   Manhã de sol ao balcão: azul de azulejo, leite, café, terracota.
   Regras do brand-kit.md: ondas e padrão de azulejo; cartões 20px; preços em círculos. */
:root {
  --azul: #8FA6B5;
  --azul-claro: #A9BCC8;
  --leite: #EFE6D8;
  --cafe: #3B2416;
  --terracota: #B5562F;        /* botão principal, ondas */
  --terracota-texto: #9A4524;  /* preços e links */
  --bolacha: #D9C4A5;
  --verde: #2F6B3A;
  --linha: rgba(59, 36, 22, .16);
  --botao-sombra: #8C3F1F;

  --display: "Fraunces", Georgia, serif;
  --texto: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --margem: 20px;
  --raio: 20px;
  --azulejo:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, .22) 0 9px, transparent 10px) 0 0 / 28px 28px,
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .22) 0 9px, transparent 10px) 0 0 / 28px 28px,
    radial-gradient(circle at 50% 50%, rgba(59, 36, 22, .08) 0 3px, transparent 4px) 0 0 / 28px 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #D7CCBB; color: var(--cafe); font: 400 16px/1.55 var(--texto); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cafe); outline-offset: 3px; }

.bio { position: relative; max-width: 480px; min-height: 100vh; margin: 0 auto; background: var(--leite); overflow: hidden; }

.onda { display: block; width: 100%; height: 10px; }
.onda path { fill: none; stroke: var(--terracota); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- Monograma ---------- */
.mono { display: inline-flex; flex-direction: column; align-items: center; }
.mono__letras { font: 600 120px/0.8 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: -.04em; }
.mono__descritor { margin-top: 8px; font: 600 22px/1 var(--display); font-variation-settings: "SOFT" 100; }
.mono .onda { width: 104px; margin-top: 6px; }
.mono--pequeno .mono__letras { font-size: 54px; }
.mono--pequeno .mono__descritor { font-size: 14px; margin-top: 4px; }
.mono--pequeno .onda { width: 56px; }

/* ---------- Capa ---------- */
.capa { padding: 18px var(--margem) 72px; background: var(--azulejo), var(--azul); text-align: center; }
.estado {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--leite); font: 700 13px var(--texto);
}
.estado__ponto { width: 9px; height: 9px; border-radius: 50%; background: #8A7F75; }
.estado--aberto .estado__ponto { background: var(--verde); box-shadow: 0 0 0 0 rgba(47, 107, 58, .5); animation: pulso 2s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 8px rgba(47, 107, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 107, 58, 0); } }
.capa__titulo { margin-top: 26px; font-weight: 600; }
.capa__frase { max-width: 17em; margin: 18px auto 0; font: italic 500 23px/1.25 var(--display); font-variation-settings: "SOFT" 100; text-wrap: balance; }
.capa__local { margin-top: 10px; font: 700 13px var(--texto); letter-spacing: .04em; }

/* foto com recorte ondulado em cima, a "entrar" na capa */
.capa__foto { margin: -44px var(--margem) 0; }
.capa__foto img {
  width: 100%; aspect-ratio: 4 / 3.8; object-fit: cover; object-position: 50% 52%;
  border-radius: 0 0 var(--raio) var(--raio);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q 6.25 0 12.5 4 T 25 4 T 37.5 4 T 50 4 T 62.5 4 T 75 4 T 87.5 4 T 100 4 V 100 H 0 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q 6.25 0 12.5 4 T 25 4 T 37.5 4 T 50 4 T 62.5 4 T 75 4 T 87.5 4 T 100 4 V 100 H 0 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.selos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 16px var(--margem) 0; }
.selos li { padding: 5px 12px; border: 1.5px solid var(--cafe); border-radius: 999px; font: 700 12.5px var(--texto); }

/* ---------- Botões ---------- */
.acoes { display: grid; gap: 10px; padding: 18px var(--margem) 0; }
.principal {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 62px; padding: 10px 20px; border-radius: var(--raio);
  background: var(--terracota); color: #fff; text-decoration: none;
  box-shadow: 0 5px 0 var(--botao-sombra);
  transition: transform .15s ease, box-shadow .15s ease;
}
.principal:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--botao-sombra); }
.principal svg { width: 24px; height: 24px; flex: none; }
.principal__txt { display: flex; flex-direction: column; text-align: left; font: 600 19px/1.15 var(--display); font-variation-settings: "SOFT" 100; }
.principal__txt small { font: 600 13px var(--texto); opacity: .92; }
.principal--escuro { margin-top: 14px; min-height: 54px; background: var(--cafe); box-shadow: 0 5px 0 #1E120A; font: 600 17px var(--display); font-variation-settings: "SOFT" 100; }
.principal--escuro:active { box-shadow: 0 1px 0 #1E120A; }
.secundarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.secundario { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--raio); background: var(--bolacha); font: 700 14.5px var(--texto); text-decoration: none; transition: background-color .2s ease; }
.secundario svg { width: 19px; height: 19px; }

/* ---------- Menu ---------- */
.menu { margin-top: 40px; padding: 0 var(--margem) 30px; background: #F6F0E6; }
.azulejo { height: 28px; margin: 0 calc(-1 * var(--margem)); background: var(--azulejo), var(--azul); }
.titulo { margin-bottom: 14px; font: 600 34px/1.05 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: -.02em; }
.menu .titulo { margin-top: 26px; }
.menu__grupo { padding: 16px 18px 12px; margin-bottom: 12px; border-radius: var(--raio); background: #fff; box-shadow: 0 1px 0 var(--linha); }
.menu__grupo h3 { display: inline-flex; flex-direction: column; margin-bottom: 6px; font: 600 22px/1.1 var(--display); font-variation-settings: "SOFT" 100; }
.menu__grupo h3 .onda { margin-top: 4px; }
.menu__lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 0; border-bottom: 1px dashed var(--linha); }
.menu__lista li:last-child { border-bottom: 0; }
.menu__lista small { display: block; font-size: 13px; opacity: .8; }
.preco {
  display: grid; place-items: center; flex: none;
  min-width: 58px; height: 36px; padding: 0 10px; border-radius: 999px;
  background: var(--leite); color: var(--terracota-texto);
  font: 800 13.5px var(--texto); font-variant-numeric: tabular-nums;
}
.menu__nota { margin-top: 8px; font-size: 13.5px; }
.texto-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--terracota-texto); text-underline-offset: 4px; }
.texto-link svg { width: 16px; height: 16px; }

/* ---------- Destaque ---------- */
.destaque { margin: 34px var(--margem) 0; border-radius: var(--raio); background: var(--bolacha); overflow: hidden; }
.destaque__foto { position: relative; }
.destaque__foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 60%; }
.destaque__preco {
  position: absolute; right: 14px; bottom: -30px;
  display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%;
  background: var(--terracota-texto); color: #fff;
  font: 600 19px var(--display); font-variation-settings: "SOFT" 100;
  border: 4px solid var(--bolacha); transform: rotate(-6deg);
}
.destaque__txt { padding: 20px 18px 22px; }
.etiqueta { display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--texto); }
.etiqueta svg { width: 18px; height: 18px; }
.destaque__titulo { margin: 6px 0 8px; padding-right: 80px; font: 600 30px/1.05 var(--display); font-variation-settings: "SOFT" 100; }

/* ---------- Sobre ---------- */
.bloco { padding: 44px var(--margem) 0; }
.sobre { display: grid; grid-template-columns: 40% 1fr; gap: 16px; align-items: center; }
.sobre__foto { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; object-position: 50% 25%; border-radius: var(--raio); }
.sobre p { font-size: 15px; }

/* ---------- Informações ---------- */
.quadros { display: grid; gap: 10px; }
.quadro { padding: 16px 18px; border-radius: var(--raio); background: #fff; }
.quadro h3 { margin-bottom: 6px; font: 600 19px var(--display); font-variation-settings: "SOFT" 100; }
.horas li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; margin: 0 -10px; border-radius: 12px; }
.horas li.hoje { background: var(--leite); }
.horas em { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--cafe); color: var(--leite); font: 700 11px var(--texto); font-style: normal; vertical-align: 2px; }
.horas b { font-weight: 700; text-align: right; }

/* ---------- Rodapé ---------- */
.rodape { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 48px; padding: 0 var(--margem) 104px; text-align: center; font: 700 12.5px var(--texto); }
.rodape .azulejo { align-self: stretch; margin-bottom: 26px; }
.rodape__assinatura { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 400; text-underline-offset: 4px; }

/* ---------- Barra fixa ---------- */
.barra {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 10;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: min(calc(100% - 24px), 456px); min-height: 56px; border-radius: var(--raio);
  background: var(--terracota); color: #fff;
  font: 600 18px var(--display); font-variation-settings: "SOFT" 100; text-decoration: none;
  box-shadow: 0 5px 0 var(--botao-sombra), 0 18px 30px -16px rgba(59, 36, 22, .7);
  transform: translate(-50%, 160%); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.barra svg { width: 22px; height: 22px; }
.barra--visivel { transform: translate(-50%, 0); }

/* movimento: descontraído, a "assentar" na mesa */
.revelar { opacity: 0; transform: translateY(18px) rotate(-1deg); transition: opacity .5s ease, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.revelar--in { opacity: 1; transform: none; }

@media (hover: hover) {
  .principal:hover { filter: brightness(.92); }
  .secundario:hover { filter: brightness(.95); }
}
@media (min-width: 520px) {
  body { padding: 28px 0; }
  .bio { min-height: 0; border-radius: 28px; box-shadow: 0 40px 90px -40px rgba(59, 36, 22, .5); }
}
@media (prefers-reduced-motion: reduce) {
  .revelar { opacity: 1; transform: none; }
  .estado--aberto .estado__ponto { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Paletas do simulador (data-paleta no <html>) ---------- */
:root[data-paleta="2"] { /* Mostarda */
  --azul: #E2B95A;
  --azul-claro: #EBCB80;
  --leite: #F4EEDF;
  --cafe: #33261A;
  --terracota: #2F5A7A;
  --terracota-texto: #2F5A7A;
  --bolacha: #E7D8B4;
  --botao-sombra: #1E3D54;
}
:root[data-paleta="3"] { /* Rosa-velho */
  --azul: #D9A6A1;
  --azul-claro: #E5BDB9;
  --leite: #F6EDE8;
  --cafe: #3A2420;
  --terracota: #7A4A3A;
  --terracota-texto: #7A4A3A;
  --bolacha: #EBCFC4;
  --botao-sombra: #4F2E23;
}
