/* Bocaditos Linktree-style — minimalista e mobile-first */
:root {
  --color-base: #f5e5cc;
  --color-yellow: #e2ae3d;
  --color-red: #9f2632;
  --text-dark: #22150e;
  --text-light: #ffffff;
  --radius: 16px;
  --shadow-soft: 0 6px 22px rgba(0,0,0,0.08);
  --shadow-press: 0 2px 10px rgba(0,0,0,0.12);
  --logo-progress: 0;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
@font-face {
  font-family: "CobblerSansTest";
  src: url("assets/fonts/CobblerSansTest-Light-BF67590d2152717.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CobblerSansTest";
  src: url("assets/fonts/CobblerSansTest-Regular-BF67590d214469d.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CobblerSansTest";
  src: url("assets/fonts/CobblerSansTest-Medium-BF67590d21526fc.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CobblerSansTest";
  src: url("assets/fonts/CobblerSansTest-SemiBold-BF67590d2144dde.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CobblerSansTest";
  src: url("assets/fonts/CobblerSansTest-Bold-BF67590d215b3c6.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CobblerSansTest";
  src: url("assets/fonts/CobblerSansTest-Black-BF67590d215acda.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
body {
  margin: 0;
  color: var(--text-dark);
  font-family: "CobblerSansTest", system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(160deg, #f5e5cc 0%, #f1d8b3 35%, #e2ae3d 70%, #e8c781 90%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  place-items: center;
  padding: 28px 18px 34px;
}

.header { width: 100%; display: flex; justify-content: center; }
.logo {
  width: min(90vw, 336px);
  height: auto;
  display: block;
  margin: 8px auto 24px;
}

.tagline {
  font-family: "CobblerSansTest", system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  max-width: 620px;
  margin: 0 0 18px 0;
  color: #3a2417;
}

.links {
  width: 100%;
  max-width: 520px;
  display: grid;
  gap: 14px;
}

.backbar {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  width: auto;
}

.backbar .btn {
  width: auto;
  padding: 10px 12px;
}
.btn {
  font-family: "CobblerSansTest", system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow-soft);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 160ms ease;
  will-change: transform, filter;
}

.btn .btn-icon { display: grid; place-items: center; }
.btn .btn-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  vector-effect: non-scaling-stroke;
}
.btn .btn-text { flex: 1; }

.btn-red {
  background: var(--color-red);
  color: var(--text-light);
}
.btn-red:hover { filter: brightness(1.06); box-shadow: 0 8px 28px rgba(159,38,50,0.35); }
.btn-red:active { transform: scale(0.98); box-shadow: var(--shadow-press); }

.btn-yellow {
  background: var(--color-yellow);
  color: var(--text-dark);
}
.btn-yellow:hover { filter: brightness(1.04); box-shadow: 0 8px 28px rgba(226,174,61,0.35); }
.btn-yellow:active { transform: scale(0.98); box-shadow: var(--shadow-press); }

/* Hover sutil apenas em dispositivos com hover */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px) scale(1.015); }
}

/* Acessibilidade — reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.btn:focus-visible {
  outline: 3px solid #22150e;
  outline-offset: 3px;
}

.footer {
  margin-top: 20px;
  color: #5b4334;
}

/* Pequenos ajustes de tipografia para telas muito pequenas */
@media (max-width: 360px) {
  .btn { padding: 14px 16px; }
  .tagline { font-size: 0.98rem; }
}

/* Header sticky com animação suave da logo ao rolar */
.header { position: sticky; top: 0; z-index: 50; background: transparent; }
.logo-wrap { width: 100%; display: flex; justify-content: center; }
.logo {
  width: min(81.6vw, 384px);
  margin: 10px auto 22px;
  opacity: calc(1 - 0.85 * var(--logo-progress));
  transform: translateY(calc(-18px * var(--logo-progress))) scale(calc(1 - 0.15 * var(--logo-progress)));
  transition: opacity 140ms ease, transform 160ms ease;
  will-change: transform, opacity;
}
/* CTA topo */
.btn-top { max-width: 520px; margin: 0 auto 12px; }

/* Metadados sutis (horário) */
.meta {
  width: 100%;
  max-width: 520px;
  margin: 4px auto 10px;
  text-align: center;
  color: #6d5b4d;
  font-size: 0.88rem;
}
.meta .status {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.status-open {
  background: rgba(34, 197, 94, 0.18);
  color: #166534;
}
.status-closed {
  background: rgba(159, 38, 50, 0.18);
  color: #9f2632;
}

.menu {
  width: 100%;
  max-width: 620px;
  margin: 6px auto 0;
  padding: 0 4px;
}
.menu-title {
  font-weight: 800;
  font-size: 1.2rem;
  color: #3a2417;
  margin: 10px 0 8px;
}
.menu-section {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.menu-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
}
.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.menu-item-line {
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
  color: #3a2417;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.menu-item-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: #3a2417;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-item-price {
  font-weight: 800;
  color: #22150e;
  font-size: 0.95rem;
}
.menu-item-desc {
  margin: 4px 0 0;
  color: #6d5b4d;
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
