/* ============================================================
   FOOD FLOW — brand book v1.0
   ============================================================ */
:root {
  --verde: #0E3B2C;
  --folha: #1E7A56;
  --pimenta: #FF4B24;
  --gema: #FFC53D;
  --papel: #F4F6F1;
  --carvao: #14201B;

  --verde-2: #124a37;          /* verde um tom acima, para cards sobre o fundo */
  --linha-clara: rgba(244, 246, 241, .16);
  --linha-escura: rgba(20, 32, 27, .18);

  --f-titulo: "Bricolage Grotesque", system-ui, sans-serif;
  --f-texto: "Figtree", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;

  --raio: 14px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--carvao);
  font: 400 1.0625rem/1.6 var(--f-texto);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--f-titulo);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8.5vw, 6.5rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.75rem); }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }

/* O ponto de marca: todo H1/H2 fecha com pimenta */
.dot { color: var(--pimenta); font-weight: inherit; }

p { margin: 0 0 1em; }
.big { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 36ch; }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; max-width: 34ch; opacity: .9; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gema);
  margin-bottom: 1.25rem;
}
.sec--papel .eyebrow { color: var(--folha); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: 900px; }

section { padding: clamp(72px, 11vw, 140px) 0; }
.sec--verde { background: var(--verde); color: var(--papel); }
.sec--papel { background: var(--papel); color: var(--carvao); }

.split { display: grid; gap: clamp(40px, 6vw, 88px); grid-template-columns: 1fr; align-items: center; }
.split--top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1.05rem/1 var(--f-texto);
  padding: 1.05em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--gema); outline-offset: 3px;
}
.btn--pimenta { background: var(--pimenta); color: #fff; }
.btn--pimenta:hover { background: #e83d18; }
.btn--ghost { border-color: var(--linha-clara); color: var(--papel); }
.btn--ghost:hover { border-color: var(--papel); }
.btn--sm { padding: .7em 1.1em; font-size: .95rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- Logo (placeholder até chegar o SVG) ---------- */
.logo {
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--papel);
  line-height: 1;
}
.logo span { color: var(--gema); margin-left: .12em; }
.logo i { color: var(--pimenta); font-style: normal; }
.logo--sm { font-size: 1.2rem; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 59, 44, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha-clara);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.nav { display: none; gap: 28px; }
.nav a { color: var(--papel); text-decoration: none; font-weight: 500; opacity: .8; }
.nav a:hover { opacity: 1; }
@media (min-width: 760px) { .nav { display: flex; } }

/* ---------- Comanda (recibo térmico) ---------- */
.comanda {
  --serrilha: 8px;
  position: relative;
  background: var(--papel);
  color: var(--carvao);
  font-family: var(--f-mono);
  font-size: .9rem;
  line-height: 1.5;
  padding: 28px 24px 30px;
  border-left: 1px dashed var(--linha-escura);
  border-right: 1px dashed var(--linha-escura);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
  /* bordas serrilhadas em cima e embaixo, como papel rasgado */
  -webkit-mask:
    radial-gradient(var(--serrilha) at 50% 0, #0000 97%, #000) 50% 0 / calc(var(--serrilha) * 2) 51% repeat-x,
    radial-gradient(var(--serrilha) at 50% 100%, #0000 97%, #000) 50% 100% / calc(var(--serrilha) * 2) 51% repeat-x;
          mask:
    radial-gradient(var(--serrilha) at 50% 0, #0000 97%, #000) 50% 0 / calc(var(--serrilha) * 2) 51% repeat-x,
    radial-gradient(var(--serrilha) at 50% 100%, #0000 97%, #000) 50% 100% / calc(var(--serrilha) * 2) 51% repeat-x;
}
.comanda__head { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; letter-spacing: .08em; }
.comanda__head strong { font-weight: 500; }
.comanda__rule { border-top: 2px dashed var(--linha-escura); margin: 14px 0; }
.comanda__lines { list-style: none; padding: 0; margin: 0; }
.comanda__lines li { display: flex; justify-content: space-between; gap: 8px; }
.comanda__lines li span:first-child::after {
  content: " ........................................";
  opacity: .35;
  white-space: nowrap;
}
.comanda__lines li { overflow: hidden; white-space: nowrap; }
.comanda__lines li span:first-child { overflow: hidden; text-overflow: clip; flex: 1; }
.comanda h3 { font-family: var(--f-titulo); font-size: 1.45rem; margin: .2em 0 .45em; }
.comanda p { font-family: var(--f-texto); font-size: 1rem; line-height: 1.5; }
.comanda__total { display: flex; justify-content: space-between; font-family: var(--f-mono) !important; font-weight: 500; font-size: 1rem; margin: 0; }
.comanda__foot { text-align: center; opacity: .55; margin: 14px 0 0; font-family: var(--f-mono) !important; font-size: .78rem !important; }
.saiu { color: var(--folha); }
.comanda__flag {
  display: inline-block; background: var(--gema); color: var(--carvao);
  padding: 2px 8px; font-size: .75rem !important; letter-spacing: .1em; margin: 0 0 .4em;
  font-family: var(--f-mono) !important;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 120px); overflow: hidden; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.35fr 1fr; } }
.hero h1 { margin-bottom: .3em; }
.hero__art { display: flex; justify-content: center; }
.comanda--hero { width: min(100%, 330px); transform: rotate(3deg); }
@media (prefers-reduced-motion: no-preference) {
  .comanda--hero { animation: imprime .9s cubic-bezier(.2, .8, .2, 1) both .2s; }
  @keyframes imprime {
    from { transform: translateY(-40px) rotate(3deg); opacity: 0; }
    to   { transform: translateY(0) rotate(3deg); opacity: 1; }
  }
}

/* ---------- Problema ---------- */
.problema h2 { max-width: 16ch; }
.problema .big { max-width: 44ch; }

/* ---------- Cozinha aberta ---------- */
.ritmo { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--linha-clara); }
.ritmo li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--linha-clara); }
.ritmo .mono { color: var(--gema); font-size: .8rem; min-width: 76px; }

.chat {
  background: var(--verde-2);
  border: 1px solid var(--linha-clara);
  border-radius: 22px;
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  justify-self: center;
}
.chat__top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--linha-clara); }
.chat__top small { display: block; opacity: .6; font-size: .8rem; }
.chat__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--folha); font-family: var(--f-titulo); font-weight: 800; font-size: .95rem;
}
.chat__body { padding: 20px 18px 26px; }
.chat__day { text-align: center; font-size: .72rem; opacity: .55; margin-bottom: 14px; letter-spacing: .12em; }
.bubble {
  position: relative;
  background: var(--papel); color: var(--carvao);
  border-radius: 4px 18px 18px 18px;
  padding: 14px 16px 26px;
  max-width: 92%;
}
.bubble p { margin: 0 0 .45em; line-height: 1.45; }
.bubble p:last-of-type { margin-bottom: 0; font-weight: 600; }
.bubble b { font-weight: 700; }
.bubble__time { position: absolute; right: 12px; bottom: 6px; font-size: .7rem; opacity: .5; }

/* ---------- Para quem é ---------- */
.quem__title { max-width: 20ch; margin-bottom: 1.2em; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  font-family: var(--f-mono); font-size: .9rem;
  border: 1.5px solid var(--carvao);
  padding: .55em 1em; border-radius: 999px;
}

/* ---------- Serviços ---------- */
.comandas {
  display: grid; gap: 40px 28px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 56px;
  align-items: start;
}
.comandas .comanda { transition: transform .2s ease; }
.comandas .comanda:nth-child(1) { transform: rotate(-1.6deg); }
.comandas .comanda:nth-child(2) { transform: rotate(1.2deg); margin-top: 18px; }
.comandas .comanda:nth-child(3) { transform: rotate(-.8deg); }
.comandas .comanda:nth-child(4) { transform: rotate(1.8deg); margin-top: 12px; }
.comandas .comanda:hover { transform: rotate(0) translateY(-4px); }

/* ---------- Como funciona ---------- */
.passos h2 { max-width: 18ch; }
.pedidos {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: none;
}
.pedidos li {
  position: relative;
  background: #fff;
  border: 1.5px dashed var(--linha-escura);
  border-radius: var(--raio);
  padding: 26px 22px 28px;
}
.pedidos li:last-child { border: 2px solid var(--folha); }
.pedidos__n {
  display: inline-block;
  font-size: .78rem;
  color: var(--folha);
  border-bottom: 2px solid var(--gema);
  padding-bottom: 4px;
  margin-bottom: 18px;
  letter-spacing: .1em;
}
.pedidos p { margin: 0; opacity: .8; }

/* ---------- Prova social ---------- */
.depoimentos {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 48px;
}
.depo {
  margin: 0;
  border: 1.5px dashed var(--linha-clara);
  border-radius: var(--raio);
  padding: 26px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 280px;
}
.depo__foto {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--verde-2);
  border: 1.5px dashed var(--linha-clara);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .7rem; opacity: .6;
}
.depo blockquote { margin: 0; font-size: 1.2rem; font-family: var(--f-titulo); font-weight: 600; opacity: .55; flex: 1; }
.depo figcaption { display: flex; flex-direction: column; gap: 2px; }
.depo figcaption .mono { font-size: .8rem; opacity: .6; }

/* ---------- Contato ---------- */
.contato h2 { max-width: 14ch; }
.canais { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--linha-escura); }
.canais li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--linha-escura); }
.canais .mono { font-size: .78rem; min-width: 96px; color: var(--folha); letter-spacing: .1em; }
.canais a { font-weight: 600; font-size: 1.1rem; text-decoration-color: var(--pimenta); text-underline-offset: 4px; }

.comanda--form {
  transform: rotate(-1deg);
  background: #fff;
  padding: 32px 26px 36px;
  max-width: 480px;
  width: 100%;
  justify-self: center;
}
.form label {
  display: block;
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.form input, .form select {
  display: block; width: 100%;
  margin-top: 6px;
  font: 500 1.05rem/1.3 var(--f-texto);
  text-transform: none; letter-spacing: 0;
  color: var(--carvao);
  background: var(--papel);
  border: 1.5px solid transparent;
  border-bottom: 2px dashed var(--linha-escura);
  border-radius: 8px 8px 0 0;
  padding: 12px 12px;
  appearance: none;
}
.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--carvao) 50%), linear-gradient(135deg, var(--carvao) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.form input:focus, .form select:focus { border-bottom-color: var(--folha); outline: none; }
.form [aria-invalid="true"] { border-bottom-color: var(--pimenta); }
.form .btn { margin-top: 10px; }
.form__status { font-family: var(--f-mono); font-size: .85rem; margin: 14px 0 0; min-height: 1.3em; }
.form__status.ok { color: var(--folha); }
.form__status.erro { color: #c4300f; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--carvao); color: var(--papel); padding: 36px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; opacity: .75; font-size: .95rem; }
.footer a { text-decoration-color: var(--pimenta); text-underline-offset: 4px; }
