/* Cardápio público: leitura em pé, no celular, com uma mão. */
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('/assets/fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('/assets/fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('/assets/fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('/assets/fonts/manrope-latin-800-normal.woff2') format('woff2'); }

:root {
  --paper: #f7f4ef;
  --card: #ffffff;
  --ink: #1d1a16;
  --soft: #6b645a;
  --line: #e7e1d7;
  --out: #b3261e;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 132px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.5 Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- cabeçalho ---------- */
.mh {
  padding: max(24px, env(safe-area-inset-top)) 20px 20px;
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
  border-bottom: 1px solid var(--line);
}
.mh-top { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto; }
.mh-logo { width: 56px; height: 56px; flex: none; border-radius: 16px; object-fit: contain; background: #fff; box-shadow: 0 6px 16px -10px rgb(0 0 0 / 40%); }
.mh-initial { display: grid; place-items: center; background: var(--accent); color: #fff; font: 700 26px/1 var(--serif); }
.mh-id { min-width: 0; flex: 1; }
.mh-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.mh h1 { font: 700 clamp(22px, 6vw, 30px)/1.1 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.mh-table {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}
.mh-table strong { font-size: 15px; }
.mh-intro { max-width: 760px; margin: 14px auto 0; color: var(--soft); font-size: 14.5px; }

/* ---------- busca e categorias (fixas ao rolar) ---------- */
.mnav {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 0 10px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.msearch { position: relative; display: block; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.msearch svg { position: absolute; left: 34px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--soft); stroke-width: 1.9; stroke-linecap: round; }
.msearch input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* evita o zoom do Safari no iPhone */
}
.msearch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.mchips {
  display: flex;
  gap: 8px;
  max-width: 760px;
  margin: 10px auto 0;
  padding: 0 20px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.mchips::-webkit-scrollbar { display: none; }
.mchip {
  flex: none;
  scroll-snap-align: start;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.mchip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- itens ---------- */
.mlist { max-width: 760px; margin: 0 auto; padding: 8px 20px 24px; }
.msec { padding-top: 22px; }
.msec h2 { font: 700 22px/1.2 var(--serif); padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.msec ul { list-style: none; margin: 0; padding: 0; }
.mitem { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mitem-text { min-width: 0; flex: 1; }
.mitem h3 { font-size: 16.5px; font-weight: 800; line-height: 1.3; }
.mitem-text > p:not(.mprice) {
  margin-top: 4px;
  color: var(--soft);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mprice { margin-top: 8px; font-weight: 800; font-size: 15.5px; font-variant-numeric: tabular-nums; color: var(--accent); }
.mbadge { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; }
.mitem-photo { width: 92px; height: 92px; flex: none; border-radius: 14px; object-fit: cover; background: var(--line); }
.mitem.is-out h3, .mitem.is-out .mitem-text > p:not(.mprice) { color: #9a938a; }
.mitem.is-out .mprice { color: var(--out); font-size: 13.5px; }
.mitem.is-out .mitem-photo { filter: grayscale(1); opacity: 0.55; }
.mempty { padding: 40px 0; text-align: center; color: var(--soft); }

/* ---------- PDF ou foto ---------- */
.mfile { max-width: 760px; margin: 0 auto; padding: 20px; }
.mfile-open { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-decoration: none; box-shadow: 0 10px 24px -18px rgb(0 0 0 / 45%); }
.mfile-open strong { display: block; font-size: 17px; }
.mfile-open small { color: var(--soft); font-size: 13.5px; }
.mfile-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; }
.mfile-frame { display: none; width: 100%; height: 80vh; margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mfile-image { width: 100%; border-radius: 14px; box-shadow: 0 10px 24px -18px rgb(0 0 0 / 45%); }
@media (min-width: 900px) { .mfile-frame { display: block; } }

/* ---------- rodapé ---------- */
.mfoot { max-width: 760px; margin: 0 auto; padding: 8px 20px calc(40px + env(safe-area-inset-bottom)); text-align: center; color: var(--soft); font-size: 13.5px; }
.mfoot-note { padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.mfoot-link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
.mfoot-sign { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; text-decoration: none; opacity: 0.7; font-size: 12px; }
.mfoot-sign img { height: 15px; width: auto; }
.mfoot-sign:hover { opacity: 1; }

/* ---------- módulos da mesa (quando ligados) ---------- */
.mservice { position: fixed; inset: auto 0 0; z-index: 10; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.mservice-btn { flex: 1; min-height: 48px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 800 15px Manrope, system-ui, sans-serif; }
.mservice-btn.is-alt { background: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mchip { transition: none; } }
