/* Mormaço Café — demonstração Vorgal Estúdio
   Mobile-first. Ordem: base, componentes, seções, pedido, movimento. */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --espresso: #231813;
  --cream: #f3e9da;
  --paper: #faf4ea;
  --sand: #eadbc4;
  --copper: #b76e43;
  --copper-ink: #94502a;   /* cobre escurecido: 4,7:1 sobre o creme */
  --copper-light: #dba07a; /* para fundos escuros */
  --sage: #a9ac86;
  --ink-soft: #5b4a40;
  --line: rgba(35, 24, 19, 0.14);

  --font-d: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-b: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gut: clamp(16px, 4.4vw, 48px);
  --header-h: 60px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus: var(--copper-ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html:not(.js) [data-needs-js] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) - 1px);
  scrollbar-gutter: stable;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font: 400 1rem/1.55 var(--font-b);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, dl, dd, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--espresso); color: var(--cream); text-decoration: none;
}
.skip:focus { top: 8px; }
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 12px; }
.noscript { margin: 0; padding: 12px var(--gut); background: var(--sand); font-size: 0.9rem; }

/* ---------- tipografia compartilhada ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper-ink);
}
.section-head h2, .story h2 {
  margin-top: 10px;
  font: 400 clamp(2.1rem, 8vw, 3.75rem)/1.04 var(--font-d);
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.section-head h2 em, .story h2 em { font-weight: 300; }
.section-head__aside { margin-top: 14px; max-width: 38ch; color: var(--ink-soft); }

.price { font: 500 1.2rem/1 var(--font-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price--lg { font-size: 1.6rem; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--espresso); color: var(--cream); }
.btn--solid:hover { background: var(--copper-ink); }
.btn--outline { border-color: var(--espresso); background: transparent; }
.btn--outline:hover { background: var(--espresso); color: var(--cream); }
.btn--header { min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn.is-done { background: #4b5a32; color: #fff; }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.link:hover { color: var(--copper-ink); }
.link-btn {
  min-height: 44px; padding: 0 4px; border: 0; background: none;
  font-size: 0.875rem; text-decoration: underline; text-underline-offset: 4px;
  color: var(--ink-soft);
}
.link-btn:hover { color: var(--espresso); }
.link-btn[data-armed='true'] { color: #9c2f1c; font-weight: 600; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent;
  transition: background-color 0.2s;
}
.icon-btn:hover { background: rgba(35, 24, 19, 0.08); }
.badge {
  position: absolute; top: 3px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--copper-ink); color: #fff;
  font-size: 0.6875rem; font-weight: 600; line-height: 18px; text-align: center;
}
.round-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid currentColor; border-radius: 50%; background: transparent;
  transition: background-color 0.25s, color 0.25s, transform 0.2s var(--ease);
}
.round-btn:hover { background: var(--v-ink); color: var(--v-bg); }
.round-btn:active { transform: scale(0.94); }

/* adicionar / quantidade */
.add {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px 0 13px;
  border: 1px solid var(--espresso); border-radius: 999px; background: transparent;
  font-size: 0.875rem; font-weight: 500;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.add span { font-size: 1.15rem; line-height: 1; }
.add:hover { background: var(--espresso); color: var(--cream); }
.add:active { transform: scale(0.95); }

.stepper {
  display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--espresso); color: var(--cream);
}
.stepper__btn {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none;
  font-size: 1.2rem; line-height: 1;
  transition: background-color 0.2s;
}
.stepper__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper__btn:focus-visible { outline-color: var(--copper-light); outline-offset: -4px; border-radius: 50%; }
.stepper__qty { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper--compact { background: transparent; color: var(--espresso); border: 1px solid var(--line); }
.stepper--compact .stepper__btn { width: 42px; height: 42px; }
.stepper--compact .stepper__btn:hover:not(:disabled) { background: rgba(35, 24, 19, 0.08); }
.stepper--compact .stepper__btn:focus-visible { outline-color: var(--focus); }

/* ---------- cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: var(--header-h); padding: 0 var(--gut);
  background: var(--cream);
  transition: box-shadow 0.3s;
}
.header.is-scrolled, .header.is-nav-open { box-shadow: 0 1px 0 var(--line); }
.logo {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 500 1.4rem/1 var(--font-d); letter-spacing: -0.02em; text-decoration: none;
}
.logo__mark { color: var(--copper); flex: none; }
.header__actions { display: flex; align-items: center; gap: 2px; }
.header__actions .btn { margin-right: 4px; }

.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  padding: 4px var(--gut) 20px;
  background: var(--cream); box-shadow: 0 18px 30px -22px rgba(35, 24, 19, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.is-nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 54px; border-bottom: 1px solid var(--line);
  font: 400 1.5rem/1 var(--font-d); text-decoration: none;
}
.nav a::after { content: '→'; font: 400 1rem var(--font-b); color: var(--copper-ink); }

.nav-toggle__bars, .nav-toggle__bars::before {
  display: block; width: 20px; height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav-toggle__bars { transform: translateY(-3.5px); }
.nav-toggle__bars::before { content: ''; transform: translateY(7px); }
[aria-expanded='true'] .nav-toggle__bars { transform: rotate(45deg); }
[aria-expanded='true'] .nav-toggle__bars::before { transform: rotate(-90deg); }

html:not(.js) .header { height: auto; flex-wrap: wrap; padding-block: 8px; }
html:not(.js) .nav {
  position: static; order: 3; width: 100%; padding: 0; box-shadow: none;
  opacity: 1; visibility: visible; transform: none;
}
html:not(.js) .nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
html:not(.js) .nav a { min-height: 44px; border: 0; font: 500 0.95rem var(--font-b); }
html:not(.js) .nav a::after { content: none; }

@media (min-width: 900px) {
  :root { --header-h: 68px; }
  .nav, html:not(.js) .nav {
    position: static; order: 0; width: auto; padding: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav ul { display: flex; gap: 34px; }
  .nav a { min-height: 44px; border: 0; font: 500 0.95rem var(--font-b); position: relative; }
  .nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s var(--ease);
  }
  .nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
  .nav-toggle { display: none; }
  .logo { font-size: 1.55rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 18px var(--gut) 0; overflow: clip; }
.hero__title { margin-top: 10px; }
.hero__word {
  display: block; margin-left: -0.04em;
  font: 400 clamp(4.2rem, 21vw, 7.5rem)/0.88 var(--font-d);
  letter-spacing: -0.05em;
}
.hero__sub {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
  font: 500 0.75rem/1 var(--font-b); letter-spacing: 0.32em; text-transform: uppercase;
}
.hero__sub::before { content: ''; flex: 1; height: 1px; background: currentColor; opacity: 0.35; }
.hero__lead {
  margin-top: 20px; max-width: 21ch;
  font: 400 1.4rem/1.22 var(--font-d); letter-spacing: -0.01em;
}
.hero__lead em { color: var(--copper-ink); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 20px; }

.hero__stage { position: relative; margin-top: 30px; }
.hero__photo {
  position: relative; z-index: 1; width: 80%; margin-left: auto;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 0 0; background: #c9a887;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__sun {
  position: absolute; left: -9%; top: 12%;
  width: 52%; aspect-ratio: 1; border-radius: 50%; background: var(--copper);
}
.hero__note {
  position: absolute; z-index: 2; left: 0; bottom: 26px;
  padding: 12px 16px 13px; border-radius: 14px;
  background: var(--paper); box-shadow: 0 16px 30px -18px rgba(35, 24, 19, 0.5);
}
.hero__note .eyebrow { font-size: 0.6875rem; }
.hero__note-name { margin-top: 4px; font: 500 1.25rem/1.15 var(--font-d); }
.hero__note-desc { font-size: 0.8125rem; color: var(--ink-soft); }

@media (min-width: 600px) {
  .hero__lead { max-width: 26ch; font-size: 1.6rem; }
  .hero__photo { width: 62%; }
  .hero__sun { left: 6%; width: 40%; }
  .hero__note { left: 8%; }
}

@media (min-width: 960px) {
  .hero {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
    grid-template-rows: auto auto 1fr auto; align-items: start;
    max-width: 1440px; margin-inline: auto; padding-top: 28px;
    min-height: min(800px, calc(100svh - var(--header-h)));
  }
  .hero__eyebrow { grid-column: 1 / 8; grid-row: 1; }
  .hero__title { grid-column: 1 / 10; grid-row: 2; position: relative; z-index: 3; margin-top: 14px; }
  .hero__word { font-size: clamp(9rem, 17.2vw, 17rem); line-height: 0.84; }
  .hero__sub { margin-top: clamp(44px, 4.4vw, 64px); max-width: 78%; }
  .hero__lead { grid-column: 1 / 6; grid-row: 3; align-self: end; margin-top: 40px; max-width: 22ch; font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
  .hero__cta { grid-column: 1 / 7; grid-row: 4; margin: 26px 0 56px; }
  .hero__stage { grid-column: 8 / 13; grid-row: 1 / 5; align-self: end; margin-top: 0; height: 100%; display: flex; align-items: flex-end; justify-content: flex-end; }
  .hero__photo { width: min(100%, 440px); margin: 0; max-height: calc(100% - 12px); }
  .hero__sun { left: auto; right: min(60%, 310px); top: auto; bottom: 36%; width: min(46%, 240px); }
  .hero__note { left: 0; bottom: 56px; white-space: nowrap; }
}

/* ---------- vitrine ---------- */
.vitrine {
  --v-bg: var(--sand); --v-ink: var(--espresso);
  --focus: var(--v-ink);
  padding: 56px 0 44px; overflow: clip;
  background: var(--v-bg); color: var(--v-ink);
  transition: background-color 0.7s var(--ease), color 0.5s;
}
.vitrine[data-theme='cobre'] { --v-bg: #c98a5e; }
.vitrine[data-theme='salvia'] { --v-bg: var(--sage); }
.vitrine[data-theme='espresso'] { --v-bg: var(--espresso); --v-ink: var(--cream); }
.vitrine .eyebrow, .vitrine h2 em { color: inherit; }
.vitrine .btn--solid { background: var(--v-ink); color: var(--v-bg); transition: background-color 0.5s, color 0.5s, transform 0.2s var(--ease); }
.vitrine .btn--solid:hover { opacity: 0.88; }
.vitrine .btn.is-done { background: var(--v-ink); color: var(--v-bg); }

.vitrine__slides { display: grid; gap: 40px; margin-top: 30px; }
.slide { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; }
.slide__ghost {
  position: absolute; top: 14%; left: 50%; translate: -50% 0;
  font: italic 300 clamp(6rem, 34vw, 19rem)/1 var(--font-d);
  letter-spacing: -0.04em; white-space: nowrap; opacity: 0.14;
  pointer-events: none; user-select: none;
}
html:not(.js) .slide__ghost { display: none; }
.slide__media {
  position: relative; z-index: 1; width: min(62vw, 270px); aspect-ratio: 4 / 5;
  overflow: hidden; border-radius: 999px;
  box-shadow: 0 34px 50px -34px rgba(35, 24, 19, 0.7);
}
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__text { position: relative; z-index: 1; max-width: 420px; }
.slide__count { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; }
.slide__count span { opacity: 0.6; }
.slide__name { margin-top: 6px; font: 400 clamp(2rem, 8vw, 3.2rem)/1.05 var(--font-d); letter-spacing: -0.02em; }
.slide__note { margin-top: 10px; color: color-mix(in srgb, var(--v-ink) 88%, var(--v-bg)); min-height: 4.65em; }
.slide__buy { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }

.js .vitrine__slides { gap: 0; touch-action: pan-y; }
.js .slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}
.js .slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.js .slide__ghost { transform: translateX(7%); transition: transform 1.1s var(--ease); }
.js .slide__media { transform: translateY(16px) scale(0.95); transition: transform 0.8s var(--ease); }
.js .slide__text { transform: translateY(10px); transition: transform 0.7s var(--ease); }
.js .slide.is-active :is(.slide__ghost, .slide__media, .slide__text) { transform: none; }

.vitrine__controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; }
.vitrine__thumbs { display: flex; gap: 10px; }
.thumb {
  width: 44px; height: 44px; padding: 0; overflow: hidden; flex: none;
  border: 0; border-radius: 50%; background: none; opacity: 0.55;
  transition: opacity 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.9; }
.thumb[aria-current='true'] { opacity: 1; box-shadow: 0 0 0 2px var(--v-bg), 0 0 0 3.5px var(--v-ink); }
.thumb:focus-visible { border-radius: 50%; outline-offset: 5px; }

@media (min-width: 900px) {
  .vitrine { padding: 96px 0 80px; }
  .vitrine .wrap { position: relative; }
  .vitrine__slides { margin-top: 12px; }
  .slide {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
    justify-items: start; gap: 40px; text-align: left; min-height: 520px;
  }
  .slide__ghost { top: 50%; left: 58%; translate: -50% -50%; }
  .slide__media { grid-column: 2; grid-row: 1; justify-self: center; width: min(100%, 370px); }
  .slide__text { grid-column: 1; grid-row: 1; padding-bottom: 76px; }
  .slide__buy { justify-content: flex-start; margin-top: 24px; }
  .slide__note { font-size: 1.0625rem; min-height: 0; }
  .vitrine__controls { position: absolute; left: var(--gut); bottom: 8px; margin: 0; z-index: 2; }
  html:not(.js) .slide { min-height: 0; }
}

/* ---------- cardápio ---------- */
.menu { padding: 64px 0 72px; }
.menu__filters {
  display: flex; gap: 8px; min-height: 64px;
  margin: 22px calc(var(--gut) * -1) 0; padding: 4px var(--gut) 14px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  /* esmaece a borda onde ainda há categorias fora da tela (valores definidos em menu-ui.js) */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent);
}
@media (max-width: 719px) {
  .menu__filters { gap: 6px; }
  .chip { padding: 0 14px; }
}
.menu__filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 17px;
  border: 1px solid rgba(35, 24, 19, 0.28); border-radius: 999px; background: transparent;
  font-size: 0.9rem; font-weight: 500; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: var(--espresso); }
.chip[aria-pressed='true'] { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }

.menu__list { display: grid; margin-top: 4px; }
.item {
  display: grid; grid-template-columns: 88px minmax(0, 1fr);
  grid-template-areas: 'img body' 'img foot';
  column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--line);
}
.item__img {
  grid-area: img; width: 88px; height: 112px; object-fit: cover;
  border-radius: 14px; background: var(--sand);
}
.item__body { grid-area: body; }
.item__name { font: 500 1.2rem/1.2 var(--font-d); letter-spacing: -0.01em; }
.item__desc { margin-top: 4px; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }
.item__foot {
  grid-area: foot; align-self: end;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; margin-top: 8px;
}
.item.is-in-cart .item__name::after {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px;
  border-radius: 50%; background: var(--copper); vertical-align: middle;
}

@media (min-width: 720px) {
  .menu__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .menu__filters { overflow: visible; flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 900px) {
  .menu { padding: 104px 0 112px; }
  .section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .section-head--split .section-head__aside { margin: 0 0 8px; }
}
@media (min-width: 1100px) {
  .menu__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; margin-top: 16px; }
  .item {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: 'img' 'body' 'foot';
    grid-template-rows: auto 1fr auto; padding: 0; border: 0;
  }
  .item__img { width: 100%; height: auto; aspect-ratio: 5 / 4; border-radius: 18px; margin-bottom: 16px; transition: transform 0.6s var(--ease); }
  .item:hover .item__img { transform: scale(1.015); }
  .item__name { font-size: 1.4rem; }
  .item__foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
}

/* ---------- história ---------- */
.story {
  --focus: var(--cream);
  padding: 72px 0 84px; background: var(--espresso); color: var(--cream); overflow: clip;
}
.story .eyebrow { color: var(--copper-light); }
.story h2 em { color: var(--copper-light); }
.story__media { position: relative; padding-bottom: 44px; }
.story__photo { width: 76%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: #3a2a22; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__photo--small {
  position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1;
  border: 6px solid var(--espresso); border-radius: 22px;
}
.story__text { margin-top: 36px; }
.story__text > p:not(.eyebrow) { margin-top: 18px; max-width: 52ch; color: rgba(243, 233, 218, 0.84); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(243, 233, 218, 0.2); }
.facts strong { display: block; font: 400 clamp(1.6rem, 6.4vw, 2.6rem)/1 var(--font-d); color: var(--copper-light); white-space: nowrap; }
.facts span { display: block; margin-top: 8px; font-size: 0.8125rem; line-height: 1.35; color: rgba(243, 233, 218, 0.8); }

@media (min-width: 900px) {
  .story { padding: 120px 0 128px; }
  .story__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: center; }
  .story__media { padding-bottom: 64px; }
  .story__photo { width: 80%; }
  .story__photo--small { width: 36%; }
  .story__text { margin-top: 0; }
}

/* ---------- ambiente ---------- */
.place { padding: 72px 0 80px; }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin-top: 32px; }
.mosaic__item img { width: 100%; object-fit: cover; border-radius: 16px; background: var(--sand); aspect-ratio: 4 / 5; }
.mosaic__item figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-soft); }
.mosaic__item--a, .mosaic__item--d { grid-column: 1 / -1; }
.mosaic__item--a img { aspect-ratio: 5 / 4; }
.mosaic__item--d img { aspect-ratio: 16 / 10; object-position: 50% 62%; }

@media (min-width: 900px) {
  .place { padding: 112px 0 128px; }
  .mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; margin-top: 56px; align-items: start; }
  .mosaic__item--a { grid-column: 1 / 8; }
  .mosaic__item--a img { aspect-ratio: 16 / 11; }
  .mosaic__item--b { grid-column: 9 / 13; margin-top: 72px; }
  .mosaic__item--c { grid-column: 2 / 5; }
  .mosaic__item--d { grid-column: 6 / 12; margin-top: -96px; }
  .mosaic__item--d img { aspect-ratio: 16 / 10; }
}

/* ---------- rodapé ---------- */
.footer {
  --focus: var(--cream);
  position: relative; overflow: clip;
  padding: 56px 0 0; background: var(--espresso); color: rgba(243, 233, 218, 0.84);
  font-size: 0.9rem;
}
.footer__grid { display: grid; gap: 32px; }
.footer__logo { font: 500 2rem/1 var(--font-d); letter-spacing: -0.02em; color: var(--cream); margin-bottom: 8px; }
.footer__logo span { font: 500 0.7rem var(--font-b); letter-spacing: 0.3em; text-transform: uppercase; margin-left: 6px; color: var(--copper-light); }
.footer__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--cream); }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__notice { padding-top: 24px; border-top: 1px solid rgba(243, 233, 218, 0.18); max-width: 62ch; }
.footer__notice strong { color: var(--cream); }
.footer__credit { margin-top: 12px; font-size: 0.8125rem; color: rgba(243, 233, 218, 0.72); }
.footer__ghost {
  margin: 28px 0 -0.24em; padding-bottom: 84px;
  font: italic 300 clamp(5rem, 27vw, 24rem)/0.8 var(--font-d); letter-spacing: -0.05em;
  text-align: center; white-space: nowrap; color: rgba(243, 233, 218, 0.07);
  user-select: none;
}
@media (min-width: 900px) {
  .footer { padding-top: 88px; }
  .footer__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 48px; }
  .footer__notice { padding-top: 0; border: 0; }
  .footer__ghost { padding-bottom: 0.06em; margin: 48px 0 0; line-height: 1; }
}

/* ---------- pedido: atalho flutuante ---------- */
.pill {
  position: fixed; z-index: 40; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 18px 0 8px;
  border: 0; border-radius: 999px; background: var(--espresso); color: var(--cream);
  font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 0 0 2px var(--cream), 0 16px 30px -12px rgba(35, 24, 19, 0.6);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.pill:hover { background: #3a2920; }
.pill:active { transform: scale(0.97); }
.pill:focus-visible { outline-offset: 5px; border-radius: 999px; }
.pill__count {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px;
  background: var(--copper); color: var(--espresso); font-weight: 600; font-variant-numeric: tabular-nums;
}
.pill__total { padding-left: 10px; border-left: 1px solid rgba(243, 233, 218, 0.3); font-variant-numeric: tabular-nums; }

/* ---------- pedido: painel ---------- */
.cart {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--espresso);
  overflow: hidden;
  transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
}
.cart::backdrop { background: rgba(35, 24, 19, 0.52); opacity: 0; transition: opacity 0.35s, display 0.4s allow-discrete, overlay 0.4s allow-discrete; }
.cart[open]::backdrop { opacity: 1; }
@starting-style { .cart[open]::backdrop { opacity: 0; } }

.cart__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; max-height: min(88dvh, 720px);
  border-radius: 22px 22px 0 0; background: var(--paper);
  transform: translateY(100%); transition: transform 0.4s var(--ease);
}
.cart[open] .cart__panel { transform: none; }
@starting-style { .cart[open] .cart__panel { transform: translateY(100%); } }

.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 8px 20px; }
.cart__head h2 { font: 400 1.75rem/1 var(--font-d); letter-spacing: -0.02em; }
.cart__empty { padding: 20px 20px max(32px, env(safe-area-inset-bottom)); }
.cart__empty-title { font: 400 1.4rem/1.2 var(--font-d); }
.cart__empty p + p { margin-top: 6px; color: var(--ink-soft); }
.cart__empty .btn { margin-top: 20px; }
.cart__filled { display: contents; }
.cart__scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px;
  /* sombras que só aparecem quando há mais itens acima ou abaixo */
  background:
    linear-gradient(var(--paper) 40%, transparent) top / 100% 28px no-repeat local,
    linear-gradient(transparent, var(--paper) 60%) bottom / 100% 28px no-repeat local,
    linear-gradient(rgba(35, 24, 19, 0.16), transparent) top / 100% 10px no-repeat scroll,
    linear-gradient(transparent, rgba(35, 24, 19, 0.16)) bottom / 100% 10px no-repeat scroll,
    var(--paper);
}

.line {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-areas: 'img info total' 'img controls controls';
  column-gap: 12px; padding: 14px 0; border-top: 1px solid var(--line);
}
.line__img { grid-area: img; width: 52px; height: 66px; object-fit: cover; border-radius: 10px; }
.line__info { grid-area: info; }
.line__name { font: 500 1.0625rem/1.2 var(--font-d); }
.line__unit { font-size: 0.8125rem; color: var(--ink-soft); }
.line__total { grid-area: total; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line__controls { grid-area: controls; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.mode { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.mode label { flex: 1; position: relative; }
.mode input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mode span {
  display: grid; place-items: center; min-height: 44px; border: 1px solid rgba(35, 24, 19, 0.28); border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; transition: background-color 0.2s, color 0.2s;
}
.mode input:checked + span { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.mode input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.cart__foot { padding: 14px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.totals div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 2px 0; font-size: 0.9rem; color: var(--ink-soft); }
.totals dd { font-variant-numeric: tabular-nums; }
.totals .totals__total { margin: 4px 0 14px; color: var(--espresso); font-weight: 500; }
.totals__total dd { font: 500 1.7rem/1 var(--font-d); }
.cart__fallback { margin-top: 12px; font-size: 0.875rem; }
.cart__fallback textarea { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 0.8125rem/1.4 ui-monospace, Consolas, monospace; resize: vertical; }
.cart__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.cart__meta p, .cart__storage { font-size: 0.75rem; color: var(--ink-soft); text-align: right; }
.cart__storage { margin-top: 6px; text-align: left; }

@media (min-width: 760px) {
  .cart__panel {
    left: auto; top: 0; width: 430px; max-height: none;
    border-radius: 0; transform: translateX(100%);
    box-shadow: -30px 0 60px -40px rgba(35, 24, 19, 0.6);
  }
  @starting-style { .cart[open] .cart__panel { transform: translateX(100%); } }
  .cart__head { padding: 24px 20px 12px 28px; }
  .cart__scroll { padding-inline: 28px; }
  .cart__foot, .cart__empty { padding-inline: 28px; }
  .pill { right: 24px; bottom: 24px; }
}

/* ---------- telas estreitas (320 a 359 px) ---------- */
.slide__buy, .item__foot { flex-wrap: wrap; }
.slide__buy { row-gap: 10px; }
.item__foot { row-gap: 6px; }
@media (max-width: 359px) {
  .btn--header { display: none; }            /* o cardápio segue no menu e no hero */
  .vitrine__controls, .vitrine__thumbs { gap: 4px; }
  .item { grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; }
  .item__img { width: 72px; height: 92px; }
  .add { padding: 0 13px 0 10px; }
  .pill { right: 12px; gap: 8px; padding-right: 14px; }
}

/* ---------- movimento ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(0.22em); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); } to { clip-path: inset(0 0 0 0 round 999px 999px 0 0); } }
@keyframes settle { from { transform: scale(1.14); } }
@keyframes sunrise { from { opacity: 0; transform: translateY(34%) scale(0.86); } }
@keyframes item-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes bump { 40% { transform: scale(1.07); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero__word { animation: rise 1s var(--ease) both; }
  .hero__eyebrow { animation: fade-up 0.8s var(--ease) 0.05s both; }
  .hero__sub { animation: fade-up 0.8s var(--ease) 0.3s both; }
  .hero__lead { animation: fade-up 0.8s var(--ease) 0.4s both; }
  .hero__cta { animation: fade-up 0.8s var(--ease) 0.5s both; }
  .hero__photo { animation: unveil 1.2s var(--ease) 0.15s both; }
  .hero__photo img { animation: settle 1.8s var(--ease) 0.15s both; }
  .hero__sun { animation: sunrise 1.3s var(--ease) 0.45s both; }
  .hero__note { animation: fade-up 0.8s var(--ease) 0.95s both; }

  .item.is-entering { animation: item-in 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
  .pill.is-bumped { animation: bump 0.4s var(--ease); }

  .reveal-on [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
  .reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0s !important;
  }
}
