/* =========================================================
   Afeto & Farinha — identidade
   vinho #892619 · creme #F5E2CE · laranja #E0933F
   Títulos: Fraunces (substituto web da Wild Mango) · Texto: Source Sans 3
   ========================================================= */
:root {
  --vinho: #892619;
  --vinho-escuro: #5f1a10;
  --vinho-claro: #a8453a;
  --creme: #f5e2ce;
  --creme-claro: #fbf1e6;
  --laranja: #e0933f;
  --areia: #dda96b;
  --rosa: #c99c92;
  --tinta: #3d140d;
  --caramelo: #9a4a1c;      /* laranja escurecido p/ texto pequeno (AA) */
  --acento: #b8661f;        /* itálicos grandes sobre creme (AA large) */

  --bg: var(--creme);
  --fg: var(--vinho);

  --f-display: "Fraunces", "Georgia", serif;
  --f-texto: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --raio: 999px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-texto);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  transition: background-color .8s var(--ease), color .8s var(--ease);
  -webkit-font-smoothing: antialiased;
}
.js body.is-loading { overflow: hidden; }
html:not(.js) .loader { display: none; }
body[data-tema="vinho"] { --bg: var(--vinho); --fg: var(--creme); --acento: var(--laranja); }
body[data-tema="laranja"] { --bg: var(--areia); --fg: var(--vinho-escuro); --acento: var(--vinho); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

::selection { background: var(--vinho); color: var(--creme); }

/* ---------- marcas por máscara (cor livre) ---------- */
.selo-mask {
  display: block;
  background: currentColor;
  -webkit-mask: url(assets/selo.webp) center / contain no-repeat;
          mask: url(assets/selo.webp) center / contain no-repeat;
  aspect-ratio: 700 / 743;
}
.wordmark {
  display: block;
  width: 100%;
  aspect-ratio: 1400 / 754;
  background: url(assets/wordmark.webp) center / contain no-repeat;
}
.wordmark--creme {
  background: var(--creme);
  -webkit-mask: url(assets/wordmark.webp) center / contain no-repeat;
          mask: url(assets/wordmark.webp) center / contain no-repeat;
}

/* ---------- tipografia ---------- */
.olho {
  font-family: var(--f-texto);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  margin: 0 0 1.2rem;
  display: inline-flex; align-items: center; gap: .7em;
}
.olho::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.titulo-g, .titulo-m {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
}
.titulo-g { font-size: clamp(2.6rem, 7vw, 6.4rem); }
.titulo-m { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.02; }
.titulo-g em, .titulo-m em { font-style: italic; font-weight: 400; color: var(--acento); transition: color .8s var(--ease); }

/* ---------- botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.8em;
  border-radius: var(--raio);
  font-weight: 600; font-size: .95rem; letter-spacing: .04em;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
  background: none;
}
.botao:hover { transform: translateY(-2px); }
.botao:active { transform: translateY(0) scale(.98); }
.botao--cheio { background: var(--fg); color: var(--bg); }
.botao--cheio:hover { background: color-mix(in srgb, var(--fg) 82%, #000); }
.botao--vinho { background: var(--vinho); color: var(--creme); }
.botao--linha { border-color: currentColor; }
.botao--linha:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.sacola .botao--linha:hover { background: var(--vinho); border-color: var(--vinho); color: var(--creme); }
.botao--largo { width: 100%; }
.botao--wpp { background: #1f7a45; color: #fff; }
.botao--wpp:hover { background: #17633a; }
.botao[disabled] { opacity: .45; pointer-events: none; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--creme);
  color: var(--vinho);
  display: grid; place-items: center;
  transition: transform 1.1s var(--ease-in-out);
}
.loader__onda { position: absolute; left: 0; top: 100%; width: 100%; height: 80px; fill: var(--creme); }
.loader.is-out { transform: translateY(calc(-100% - 90px)); }
.loader__inner { display: grid; justify-items: center; gap: .6rem; width: min(420px, 82vw); }
.loader__art { width: 100%; height: auto; overflow: visible; }
.loader__art .draw {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: desenha 1.1s var(--ease) forwards;
}
.loader__art .prato .draw { animation-duration: 1.3s; }
.loader__art .prato .draw:nth-child(2) { animation-delay: .1s; }
.loader__art .prato .draw:nth-child(3) { animation-delay: .35s; }
.loader__art .prato .draw:nth-child(4) { animation-delay: .6s; }
.loader__art .prato .draw:nth-child(5) { animation-delay: .7s; }
.loader__art .garfo .draw { animation-delay: 1.9s; animation-duration: .7s; }
.loader__art .folha .draw { animation-delay: 2.15s; animation-duration: .6s; }
.loader__art .farelo .draw { animation-delay: 2.3s; animation-duration: .5s; }
.loader__art .vapor .draw { animation: desenha 1s var(--ease) 2.3s forwards, vapor 2.4s ease-in-out 3.3s infinite; }
.loader__art .vapor .draw:nth-child(2) { animation-delay: 2.45s, 3.5s; }
.loader__art .vapor .draw:nth-child(3) { animation-delay: 2.6s, 3.7s; }
.loader__art .fill-folha { fill: transparent; transition: fill .6s ease 2.6s; }
.loader.is-drawn .fill-folha { fill: #e7b27a; }
.loader__art .fita-fundo { opacity: 0; transition: opacity .8s ease; }
.loader.is-drawn .fita-fundo { opacity: 1; }
@keyframes desenha { to { stroke-dashoffset: 0; } }
@keyframes vapor { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-6px); opacity: .55; } }

.loader__nome {
  margin: .4rem 0 0;
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -.02em;
  line-height: 1;
}
.loader__nome span, .loader__nome em {
  display: inline-block; opacity: 0; transform: translateY(14px);
  animation: sobe .8s var(--ease) forwards;
}
.loader__nome span:first-child { animation-delay: .5s; }
.loader__nome em { font-style: italic; font-weight: 400; color: var(--acento); animation-delay: .65s; margin: 0 .08em; }
.loader__nome span:last-child { animation-delay: .8s; }
.loader__conta {
  margin: 0; font-size: .78rem; letter-spacing: .2em; font-variant-numeric: tabular-nums;
  opacity: .7;
}
@keyframes sobe { to { opacity: 1; transform: none; } }

/* =========================================================
   HEADER
   ========================================================= */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--gutter);
  color: var(--fg);
  transition: transform .5s var(--ease), color .6s, background-color .4s;
}
.topo.is-hidden { transform: translateY(-110%); }
.topo.is-solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topo__marca { width: 54px; color: var(--fg); transition: transform .6s var(--ease); }
.topo__marca:hover { transform: rotate(-20deg); }
.topo__nav { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); }
.topo__nav a {
  text-decoration: none; font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  position: relative; padding: .4em 0;
}
.topo__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.topo__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.sacola-btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 44px; padding: 0 .6em 0 1.2em;
  border-radius: var(--raio); border: 1.5px solid currentColor; background: none;
  font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
}
.sacola-btn__qtd {
  display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px;
  border-radius: 99px; background: var(--fg); color: var(--bg);
  font-size: .8rem; letter-spacing: 0;
}
.sacola-btn.is-pulse .sacola-btn__qtd { animation: pulso .6s var(--ease); }
@keyframes pulso { 40% { transform: scale(1.35); } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 110px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 30vw) 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: var(--gutter);
  overflow: hidden;
}
.hero__meta {
  grid-column: 1; grid-row: 1 / 3; align-self: start;
  display: grid; gap: .3rem; padding-top: 2vh;
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600;
}
.hero__meta span:last-child { opacity: .8; }
.hero__foto { grid-column: 2; grid-row: 1 / 3; position: relative; z-index: 2; align-self: start; }
.hero__foto-clip {
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4.3;
  box-shadow: 0 30px 60px -30px rgba(95, 26, 16, .45);
}
.hero__foto-clip img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; transform: scale(1.12); transition: transform 2.2s var(--ease); }
.is-ready .hero__foto-clip img { transform: scale(1); }
.hero__selo {
  position: absolute; width: clamp(96px, 11vw, 150px); right: -22%; bottom: 14%;
  color: var(--laranja); background-color: var(--laranja);
  animation: gira 22s linear infinite;
}
.hero__selo::after { content: none; }
@keyframes gira { to { transform: rotate(360deg); } }
.hero__titulo {
  grid-column: 1 / -1; grid-row: 2 / 4; align-self: end;
  margin: 0 calc(var(--gutter) * -1) 0;
  position: relative; z-index: 1;
  pointer-events: none;
}
.hero__titulo .wordmark { width: 108%; margin-left: -4%; transform: translateY(8%); }
.hero__rodape {
  grid-column: 3; grid-row: 1 / 3; align-self: start;
  display: grid; gap: 1.4rem; justify-items: start; padding-top: 2vh; position: relative; z-index: 3;
}
.hero__lead { margin: 0; max-width: 30ch; font-size: clamp(1rem, 1.2vw, 1.15rem); }

/* =========================================================
   FAIXA (marquee)
   ========================================================= */
.faixa {
  background: var(--vinho); color: var(--creme);
  overflow: hidden; padding: 1.1rem 0; position: relative; z-index: 3;
  transform: rotate(-1.5deg); margin: -10px -10px 0;
}
.faixa__trilho { display: flex; width: max-content; align-items: center; gap: 2.2rem; animation: corre 26s linear infinite; }
.faixa span { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic; font-size: clamp(1.4rem, 3vw, 2.4rem); white-space: nowrap; }
.faixa i {
  width: 34px; height: 34px; flex: none; background: var(--laranja);
  -webkit-mask: url(assets/laco.webp) center / contain no-repeat; mask: url(assets/laco.webp) center / contain no-repeat;
}
@keyframes corre { to { transform: translateX(-50%); } }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  position: relative;
  min-height: 120vh;
  padding: 22vh var(--gutter) 18vh;
  display: grid; align-content: center; justify-items: center; text-align: center;
}
.manifesto__laco {
  position: absolute; width: min(70vw, 760px); aspect-ratio: 1; left: 50%; top: 50%;
  translate: -50% -50%;
  background: currentColor; opacity: .08;
  -webkit-mask: url(assets/laco.webp) center / contain no-repeat; mask: url(assets/laco.webp) center / contain no-repeat;
  pointer-events: none;
}
.manifesto__olho { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 600; margin: 0 0 2.4rem; opacity: .8; }
.manifesto__texto {
  position: relative; margin: 0; max-width: 20ch;
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  font-weight: 500;
  font-size: clamp(2rem, 5.2vw, 4.6rem);
  line-height: 1.04; letter-spacing: -.02em;
}
.manifesto__texto .p { opacity: .16; transition: opacity .35s linear; }
.manifesto__texto .p.on { opacity: 1; }
.manifesto__texto .p.destaque { font-style: italic; color: var(--acento); }

/* =========================================================
   PROCESSO
   ========================================================= */
.processo { padding: 18vh var(--gutter) 14vh; }
.sec-cab { margin-bottom: clamp(3rem, 8vh, 6rem); }
.processo__grade {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.processo__foto { margin: 0; }
.processo__foto > div { border-radius: 20px; overflow: hidden; }
.processo__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.processo__foto:hover img { transform: scale(1.06); }
.processo__foto--a > div { aspect-ratio: 4 / 5; }
.processo__foto--b { margin-top: 30vh; }
.processo__foto--b > div { aspect-ratio: 1 / 1.1; border-radius: 999px 999px 20px 20px; }
.processo__foto figcaption { margin-top: .8rem; font-family: var(--f-display); font-style: italic; font-size: 1.05rem; opacity: .8; }
.processo__passos { list-style: none; margin: 8vh 0 0; padding: 0; display: grid; gap: 2.6rem; }
.processo__passos li { border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); padding-top: 1.2rem; display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1rem; }
.processo__passos .num { grid-row: 1 / 3; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--caramelo); }
.processo__passos h3 { margin: 0 0 .4rem; font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.processo__passos p { margin: 0; color: var(--tinta); opacity: .85; max-width: 38ch; }

/* =========================================================
   MASSAS — galeria horizontal fixada
   ========================================================= */
.massas { position: relative; height: 420vh; }
.massas__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); padding: 96px 0 4vh;
}
.massas__cab { padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; }
.massas__cab .titulo-g { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.massas__dica { margin: 0; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.massas__trilho {
  display: flex; gap: clamp(1rem, 2vw, 2rem);
  padding: 4vh var(--gutter) 0;
  will-change: transform;
  align-items: stretch;
}
.massa-card {
  flex: none;
  width: clamp(280px, 34vw, 520px);
  border-radius: 28px;
  padding: clamp(1.2rem, 2vw, 2rem);
  display: grid; grid-template-rows: auto 1fr auto; gap: 1rem;
  position: relative; overflow: hidden;
  max-height: 68vh;
}
.massa-card--creme { background: var(--creme-claro); color: var(--vinho); }
.massa-card--vinho { background: var(--vinho); color: var(--creme); }
.massa-card--laranja { background: var(--areia); color: var(--vinho-escuro); }
.massa-card__topo { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.massa-card__ilus { position: relative; display: grid; place-items: center; min-height: 0; }
.massa-card__ilus img { max-height: 34vh; width: auto; max-width: 82%; object-fit: contain; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.massa-card__ilus img + img { position: absolute; opacity: 0; transform: scale(.94) rotate(-4deg); }
.massa-card:hover .massa-card__ilus img:first-child { opacity: 0; transform: scale(1.04) rotate(3deg); }
.massa-card:hover .massa-card__ilus img + img { opacity: 1; transform: none; }
.massa-card__nome { margin: 0; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 700; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: .95; letter-spacing: -.02em; }
.massa-card__desc { margin: .4rem 0 0; max-width: 34ch; opacity: .85; font-size: .98rem; }
.massa-card--foto { display: block; padding: 0; width: clamp(260px, 28vw, 420px); }
.massa-card--foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.massa-card--foto:hover img { transform: scale(1.08); }
.massa-card--foto figcaption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: var(--creme-claro); color: var(--vinho); border-radius: 14px; padding: .7rem 1rem;
  font-family: var(--f-display); font-style: italic; font-size: 1.05rem;
}
.massa-card--padrao { background: var(--vinho) url(assets/padrao.webp) center / 140% auto; }

/* =========================================================
   CARDÁPIO
   ========================================================= */
.cardapio { padding: 14vh var(--gutter); }
.cardapio__moldura {
  --bg: var(--creme-claro); --fg: var(--vinho);
  position: relative;
  max-width: 1100px; margin: 0 auto;
  background: var(--creme-claro);
  border-radius: 32px;
  padding: clamp(1.4rem, 5vw, 5rem) clamp(1.2rem, 6vw, 6rem) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}
/* borda ondulada da identidade */
.cardapio__moldura::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 2.5px solid var(--vinho); border-radius: 26px;
}
.cardapio__moldura::after {
  content: ""; position: absolute; right: -12%; top: -6%; width: 60%; aspect-ratio: 1; pointer-events: none;
  background: var(--vinho); opacity: .05;
  -webkit-mask: url(assets/laco.webp) center / contain no-repeat; mask: url(assets/laco.webp) center / contain no-repeat;
}
.cardapio__cab { position: relative; text-align: center; margin-bottom: 2.4rem; }
.cardapio__titulo {
  margin: 0;
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 12rem);
  line-height: .8; letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--vinho) 40%, var(--rosa) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cardapio__sub { margin: 1.4rem auto 0; max-width: 46ch; }

.cardapio__abas {
  position: sticky; top: 76px; z-index: 5;
  display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap;
  padding: .6rem; margin: 0 auto 2.4rem; width: fit-content;
  background: color-mix(in srgb, var(--creme-claro) 85%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
}
.aba {
  border: 1.5px solid var(--vinho); background: none; color: var(--vinho);
  border-radius: 999px; min-height: 42px; padding: 0 1.1em;
  font-weight: 600; font-size: .85rem; letter-spacing: .05em;
  transition: background-color .3s, color .3s;
}
.aba.is-on, .aba:hover { background: var(--vinho); color: var(--creme); }

.cat { position: relative; margin-bottom: 3.2rem; scroll-margin-top: 150px; }
.cat__cab { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding-bottom: .7rem; margin-bottom: .6rem; }
.cat__cab::after { content: ""; flex-basis: 100%; height: 6px; background: radial-gradient(circle, var(--areia) 1.6px, transparent 2px) 0 50% / 12px 6px repeat-x; order: 3; }
.cat__titulo { margin: 0; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cat__nota { color: var(--caramelo); font-weight: 400; }

.item {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 1.2rem; align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--vinho) 22%, transparent);
}
.item:last-child { border-bottom: 0; }
.item__ilus { width: 88px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--creme); transition: background-color .4s, transform .5s var(--ease); }
.item__ilus img { width: 72%; height: 72%; object-fit: contain; }
.item:hover .item__ilus { background: #f2cfa6; transform: rotate(-8deg); }
.item--verde .item__ilus { background: #dfe4c4; }
.item__nome { margin: 0; font-weight: 700; font-size: 1.12rem; display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.item__preco { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.item__desc { margin: .15rem 0 0; color: var(--caramelo); font-weight: 400; font-size: 1.02rem; }
.item__acao { display: flex; align-items: center; }
.add {
  height: 46px; min-width: 46px; padding: 0 1.1em; border-radius: 999px;
  border: 1.5px solid var(--vinho); background: none; color: var(--vinho);
  font-weight: 600; font-size: .88rem;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
  display: inline-flex; align-items: center; gap: .4em;
}
.add:hover { background: var(--vinho); color: var(--creme); }
.passo-qtd { display: inline-flex; align-items: center; border-radius: 999px; background: var(--vinho); color: var(--creme); height: 46px; }
.passo-qtd button { width: 44px; height: 46px; border: 0; background: none; color: inherit; font-size: 1.3rem; line-height: 1; border-radius: 999px; }
.passo-qtd button:hover { background: var(--vinho-escuro); }
.passo-qtd output { min-width: 1.6rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.cardapio__nota { position: relative; margin: 1rem auto 0; max-width: 68ch; font-size: .92rem; opacity: .85; text-align: center; }

/* =========================================================
   ENCOMENDAS
   ========================================================= */
.encomendas { padding: 18vh var(--gutter) 16vh; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 2rem); counter-reset: p; }
.passos li { background: var(--creme-claro); color: var(--vinho); border-radius: 24px; padding: 1.6rem 1.4rem 1.8rem; min-height: 240px; display: flex; flex-direction: column; }
/* cartões claros: acento fixo */
.passos__n { --acento: #b8661f; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 4rem; line-height: 1; color: var(--acento); margin-bottom: auto; }
.passos h3 { margin: 1.4rem 0 .4rem; font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.passos p { margin: 0; color: var(--tinta); opacity: .85; }
.encomendas__acoes { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; }

/* =========================================================
   DETALHES (etiqueta)
   ========================================================= */
.detalhes { padding: 16vh var(--gutter); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.detalhes__img { transform: rotate(-3deg); filter: drop-shadow(0 30px 40px rgba(95, 26, 16, .25)); }
.detalhes__lista { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: .2rem; }
.detalhes__lista li { padding: .9rem 0; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-size: 1.08rem; }
.detalhes__lista strong { font-family: var(--f-display); font-style: italic; font-weight: 600; color: var(--caramelo); margin-right: .3em; }

/* =========================================================
   CONTATO + RODAPÉ
   ========================================================= */
.contato { padding: 14vh var(--gutter) 6vh; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contato__col { display: grid; gap: .8rem; align-content: start; }
.contato__link { display: flex; align-items: center; gap: .9rem; margin: 0; text-decoration: none; font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; line-height: 1.2; }
.contato__link img { width: 32px; height: 32px; object-fit: contain; flex: none; }
a.contato__link { transition: color .3s; }
a.contato__link:hover { color: var(--laranja); }

.rodape { position: relative; padding: clamp(120px, 12vw, 180px) var(--gutter) 28px; overflow: hidden; color: var(--creme); background: var(--vinho); }
.rodape .wordmark { width: 100%; margin-top: 2vh; }
.rodape__selo { position: absolute; right: var(--gutter); top: 0; width: clamp(90px, 10vw, 140px); color: var(--laranja); background-color: var(--laranja); }
.rodape__linha { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 0; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.rodape__linha a { text-decoration: none; }

/* =========================================================
   SACOLA
   ========================================================= */
.sacola { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.sacola.is-open { visibility: visible; }
.sacola__fundo { position: absolute; inset: 0; background: rgba(61, 20, 13, .45); opacity: 0; transition: opacity .5s var(--ease); }
.sacola.is-open .sacola__fundo { opacity: 1; }
.sacola__painel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(480px, 100%);
  --bg: var(--creme-claro); --fg: var(--vinho);
  background: var(--creme-claro); color: var(--vinho);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(100%); transition: transform .6s var(--ease);
  box-shadow: -30px 0 60px -30px rgba(61, 20, 13, .4);
}
.sacola.is-open .sacola__painel { transform: none; }
.sacola__cab { display: flex; align-items: center; gap: 1rem; padding: 18px 22px; border-bottom: 1px solid color-mix(in srgb, var(--vinho) 15%, transparent); }
.sacola__cab h2 { margin: 0; flex: 1; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: 1.7rem; }
.sacola__fechar { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; background: none; font-size: 1.5rem; line-height: 1; }
.sacola__voltar { border: 0; background: none; font-weight: 600; font-size: .9rem; padding: .4em 0; min-height: 44px; }
.sacola__passo { overflow-y: auto; padding: 8px 22px 20px; overscroll-behavior: contain; }
.sacola__itens { list-style: none; margin: 0; padding: 0; }
.s-item { display: grid; grid-template-columns: 56px 1fr auto; gap: .9rem; align-items: center; padding: 14px 0; border-bottom: 1px dashed color-mix(in srgb, var(--vinho) 20%, transparent); }
.s-item__ilus { width: 56px; height: 56px; border-radius: 50%; background: var(--creme); display: grid; place-items: center; }
.s-item__ilus img { width: 70%; height: 70%; object-fit: contain; }
.s-item h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.2; }
.s-item p { margin: .1rem 0 0; font-size: .88rem; opacity: .75; }
.s-item .passo-qtd { height: 38px; }
.s-item .passo-qtd button { width: 36px; height: 38px; font-size: 1.1rem; }
.sacola__vazia { display: none; text-align: center; padding: 3rem 1rem; justify-items: center; gap: 1rem; }
.sacola__vazia img { width: 140px; opacity: .9; }
.sacola__vazia p { margin: 0; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.25; }
.sacola.is-empty .sacola__vazia { display: grid; }
.sacola.is-empty .sacola__pe { display: none; }
.sacola__pe { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in srgb, var(--vinho) 15%, transparent); display: grid; gap: .7rem; background: var(--creme-claro); }
.sacola__total { display: flex; justify-content: space-between; align-items: baseline; }
.sacola__total span { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; }
.sacola__total strong { font-family: var(--f-display); font-size: 1.8rem; font-weight: 700; }
.sacola__obs { margin: -.4rem 0 .2rem; font-size: .85rem; opacity: .7; }
.botao--wpp img { width: 22px; height: 22px; }

/* formulário */
.form fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; min-width: 0; }
.form legend { padding: 0; margin: 0 0 .7rem; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.campo { display: grid; gap: .3rem; margin-bottom: .8rem; }
.campo > span { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.campo small { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }
.campo input, .campo textarea {
  font: inherit; font-size: 16px; color: var(--tinta);
  background: #fff; border: 1.5px solid color-mix(in srgb, var(--vinho) 25%, transparent);
  border-radius: 14px; padding: .8rem .95rem; min-height: 48px; width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.campo textarea { resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--vinho); box-shadow: 0 0 0 3px color-mix(in srgb, var(--laranja) 35%, transparent); }
.campo input[aria-invalid="true"] { border-color: #c0392b; background: #fff6f4; }
.opcoes { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.opcao { position: relative; }
.opcao input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcao span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em;
  border: 1.5px solid color-mix(in srgb, var(--vinho) 35%, transparent); border-radius: 999px;
  font-weight: 600; font-size: .92rem; transition: all .25s;
}
.opcao input:checked + span { background: var(--vinho); border-color: var(--vinho); color: var(--creme); }
.opcao input:focus-visible + span { outline: 2px solid var(--laranja); outline-offset: 2px; }
.endereco[hidden] { display: none; }
.dias { display: flex; gap: .5rem; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px .4rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.dia { position: relative; flex: none; scroll-snap-align: start; }
.dia input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dia span {
  display: grid; justify-items: center; gap: 0; width: 64px; padding: .55rem 0 .6rem;
  border: 1.5px solid color-mix(in srgb, var(--vinho) 30%, transparent); border-radius: 16px;
  transition: all .25s; line-height: 1.15;
}
.dia small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; opacity: .8; }
.dia b { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; }
.dia input:checked + span { background: var(--vinho); color: var(--creme); border-color: var(--vinho); }
.dia input:focus-visible + span { outline: 2px solid var(--laranja); outline-offset: 2px; }
.form__erro { color: #b23a2a; font-weight: 600; margin: 0; min-height: 1.2em; font-size: .92rem; }
.dias.is-invalid .dia span { border-color: #c0392b; }

/* aviso */
.aviso {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  transform: translate(-50%, calc(100% + 48px)); transition: transform .5s var(--ease);
  background: var(--vinho); color: var(--creme); border-radius: 999px; padding: .8rem 1.4rem;
  font-weight: 600; font-size: .92rem; box-shadow: 0 16px 40px -16px rgba(61, 20, 13, .6);
  max-width: calc(100vw - 32px); text-align: center;
}
.aviso.is-on { transform: translate(-50%, 0); }

/* =========================================================
   REVEAL
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(100% 0 0 0 round 20px); transition: clip-path 1.4s var(--ease-in-out); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0 round 0); }
.js .hero__foto-clip.reveal-img.is-in { clip-path: inset(0 0 0 0 round 999px 999px 24px 24px); }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 960px) {
  .topo__nav { display: none; }
  .hero {
    grid-template-columns: 1fr; grid-template-rows: auto auto auto auto;
    padding-top: 92px; gap: 1.4rem; min-height: auto;
  }
  .hero__meta { grid-column: 1; grid-row: 1; padding-top: 0; }
  .hero__foto { grid-column: 1; grid-row: 2; width: min(78%, 380px); justify-self: center; }
  .hero__selo { right: -14%; bottom: 6%; width: 96px; }
  .hero__titulo { grid-row: 3; margin-top: -16vw; }
  .hero__titulo .wordmark { transform: none; }
  .hero__rodape { grid-column: 1; grid-row: 4; padding-top: 0; }
  .processo__grade { grid-template-columns: 1fr 1fr; }
  .processo__passos { grid-column: 1 / -1; grid-row: 1; margin-top: 0; }
  .processo__foto--b { margin-top: 12vh; }
  .passos { grid-template-columns: 1fr 1fr; }
  .detalhes { grid-template-columns: 1fr; }
  .massas { height: auto; }
  .massas__pin { position: relative; height: auto; padding: 14vh 0 10vh; }
  .massas__trilho { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; transform: none !important; scrollbar-width: none; }
  .massas__trilho::-webkit-scrollbar { display: none; }
  .massa-card { scroll-snap-align: center; width: 78vw; max-height: none; min-height: 440px; }
  .massa-card--foto { width: 70vw; }
}
@media (max-width: 600px) {
  .sacola-btn > span:first-child { display: none; }
  .sacola-btn { padding: 0 .4em; border-width: 1.5px; }
  .topo__marca { width: 46px; }
  .processo__grade { grid-template-columns: 1fr; }
  .processo__foto--b { margin-top: 0; }
  .passos { grid-template-columns: 1fr; }
  .passos li { min-height: 0; }
  .passos__n { font-size: 3rem; margin-bottom: 0; }
  .item { grid-template-columns: 64px 1fr; row-gap: .7rem; }
  .item__ilus { width: 64px; }
  .item__acao { grid-column: 2; }
  .cardapio { padding-inline: 10px; }
  .cardapio__moldura { padding-inline: 1.2rem; }
  .cardapio__abas { top: 70px; }
  .aba { padding: 0 .9em; font-size: .8rem; }
  .contato { grid-template-columns: 1fr; }
  .manifesto { min-height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
}
