/* Tasca Hoje Há — site de demonstração da Cradle Studio.
   Ideia: o papel «Hoje há» colado na janela é a própria página. Papel cor de osso sobre castanho-tabaco,
   um bloco verde-azeitona para a ação e uma única faixa ocre. Sem contornos finos, sem sombras, sem gradientes. */

:root {
  --bg: #472913;
  --surface: #55321a;
  --ink: #e4e0cf;
  --muted: #c2b092;
  --accent: #525e1b;
  --accent-ink: #e4e0cf;
  --paper: #e4e0cf;
  --paper-2: #d6d0b9;
  --paper-ink: #2b170a;
  --paper-muted: #63492f;
  --ochre: #c79a3e;
  --ochre-ink: #2b170a;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --pad: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(120px, 20vw, 208px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "General Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-body); line-height: 1.45; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
::selection { background: var(--ochre); color: var(--ochre-ink); }

html[data-lang="pt"] [data-l="en"], html[data-lang="en"] [data-l="pt"] { display: none !important; }

h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.02em; line-height: 0.95; text-wrap: balance; }
h3 { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }

/* ---------- Botões: uma só forma, cantos retos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; text-decoration: none; text-align: center;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:hover { background: #606e22; }
.btn:active { transform: translateY(2px); }
.btn--paper { background: var(--paper); color: var(--paper-ink); }
.btn--paper:hover { background: #f1eee0; }
.btn--ghost { background: var(--paper-2); color: var(--paper-ink); }
.btn--ghost:hover { background: #c9c2a8; }
.btn--wide { display: flex; width: 100%; }

/* ---------- Faixa de demonstração e língua ---------- */
.demo-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px var(--pad); background: var(--ochre); color: var(--ochre-ink);
  font-size: var(--step-small); font-weight: 500;
}
.demo-bar a { text-underline-offset: 3px; }
.lang { display: flex; }
.lang button { min-height: 36px; padding: 0 12px; border: 0; background: transparent; cursor: pointer; font-weight: 500; }
.lang button[aria-pressed="true"] { background: var(--ochre-ink); color: var(--ochre); }
.lang button:hover { background: var(--paper); color: var(--paper-ink); }
.lang__full { display: none; }
@media (min-width: 720px) { .lang__full { display: inline; } .lang__short { display: none; } }

/* ---------- Barra de cima ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 8px var(--pad); background: var(--bg);
}
.top__name { font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: none; }
.top__links { display: none; }
.top__links a { text-decoration: none; padding: 12px 4px; }
.top__links a:hover, .foot a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 3px; }
.top__cta { min-height: 44px; padding: 0 18px; }
@media (min-width: 900px) {
  .top { grid-template-columns: 1fr auto 1fr; }
  .top__links { display: flex; gap: 28px; }
  .top__cta { justify-self: end; }
}

main { position: relative; z-index: 2; background: var(--bg); }

/* ---------- 1. O papel na janela ---------- */
.sheet { background: var(--paper); color: var(--paper-ink); }
.hero { position: relative; padding: 96px 12px 12px; overflow: hidden; }
.hero picture { position: absolute; inset: 0; }
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero__sheet {
  position: relative; container-type: inline-size;
  width: 100%; max-width: 660px; margin: 0 auto;
  padding: 28px 20px 32px; text-align: center;
}
.today { font-weight: 700; letter-spacing: -0.02em; line-height: 0.92; font-size: 11.2cqw; }
.today__a, .today__b { display: block; white-space: nowrap; }
.today__lead { max-width: 30ch; margin: 22px auto 0; font-size: var(--step-lead); line-height: 1.3; text-wrap: balance; }
.today__status { margin: 18px 0 22px; font-weight: 500; }
.today__status::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--accent); transform: rotate(45deg); vertical-align: 1px; }
.today__status.is-closed::before { background: var(--paper-muted); }

.week__title { margin: 56px 0 14px; font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.1; }
.week { text-align: left; }
.week li { display: grid; grid-template-columns: 6.2em 1fr auto; gap: 10px; align-items: baseline; padding: 11px 14px; }
.week li:nth-child(odd) { background: var(--paper-2); }
.week li.is-today { background: var(--accent); color: var(--accent-ink); }
.week__day { font-weight: 500; }
.week__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.week__note { margin-top: 18px; color: var(--paper-muted); font-size: var(--step-small); }

@media (min-width: 900px) {
  .hero { padding: 150px var(--pad) 72px; }
  .hero__sheet { padding: 56px 56px 48px; }
  .today__a { transform: translateX(-5cqw); }
  .today__b { transform: translateX(5cqw); }
}

/* ---------- 2. Um prato por dia ---------- */
.plate { display: flex; flex-direction: column; gap: 24px; padding: var(--gap-section) var(--pad) 0; }
.plate__text, .plate__head { display: contents; }
.plate__head h2 { order: 1; }
.plate__photo { order: 2; }
.days { order: 3; }
.dishes { order: 4; }
.cells { order: 5; }
.plate__photo { position: relative; aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.plate__photo img { width: 100%; height: 100%; object-fit: cover; }
html.js .plate__photo img { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms ease; }
html.js .plate__photo img.is-on { opacity: 1; }
html:not(.js) .plate__photo { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: transparent; }
.days { display: none; }
html.js .days { display: flex; flex-wrap: wrap; gap: 4px; }
.days button {
  min-width: 52px; min-height: 48px; padding: 0 10px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font-size: var(--step-body); font-weight: 500;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.days button:hover { background: #63401f; }
.days button:active { transform: translateY(2px); }
.days button[aria-selected="true"] { background: var(--paper); color: var(--paper-ink); }
.dish + .dish { margin-top: 28px; }
html.js .dish { display: none; margin-top: 0; }
html.js .dish.is-on { display: block; }
.dish h3 { font-size: var(--step-head); letter-spacing: -0.02em; line-height: 0.95; }
.dish p { max-width: 34ch; margin-top: 18px; }
.dish__price { font-weight: 500; font-variant-numeric: tabular-nums; }
.cells { display: grid; gap: 6px; }
.cell {
  display: flex; align-items: center; min-height: 60px; padding: 0 22px;
  background: var(--surface); color: var(--ink); font-weight: 500; text-decoration: none;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.cell:hover { background: #63401f; }
.cell:active { transform: translateY(2px); }
.cell--paper { background: var(--paper); color: var(--paper-ink); }
.cell--paper:hover { background: #f1eee0; }

@media (min-width: 900px) {
  .plate { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
  .plate__photo { order: 0; }
  .plate__text { display: flex; flex-direction: column; gap: 44px; padding: 8px 0; }
  .plate__head { display: block; }
  .cells { margin-top: auto; }
  html.js .days { margin-top: 24px; }
  .cells { grid-template-columns: 1fr 1fr; }
  .cell { min-height: 72px; }
}

/* ---------- 3. Ementa ---------- */
.menu { display: grid; gap: 32px; padding: var(--gap-section) var(--pad) 0; }
.menu__col { container-type: inline-size; min-width: 0; }
.menu__word { font-size: 27.2cqw; line-height: 0.8; letter-spacing: -0.04em; white-space: nowrap; margin-left: -0.04em; }
.menu__word .menu__word--en { font-size: 1.3em; }
.menu__intro { max-width: 46ch; margin: 28px 0 20px; color: var(--muted); }
.bar { background: var(--surface); }
.bar + .bar { margin-top: 6px; }
.bar summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 18px; cursor: pointer; list-style: none; font-weight: 500;
  transition: background-color 160ms ease;
}
.bar summary::-webkit-details-marker { display: none; }
.bar summary:hover { background: #63401f; }
.bar summary::after { content: "+"; font-size: var(--step-lead); font-weight: 500; line-height: 1; transition: transform 240ms var(--ease-out); }
.bar[open] summary::after { transform: rotate(45deg); }
.items { padding: 6px 18px 22px; }
.items li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; }
.items li + li { margin-top: 14px; }
.it b { display: block; font-weight: 500; }
.it i { display: block; font-style: normal; color: var(--muted); font-size: var(--step-small); margin-top: 1px; }
.pr { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr::after { content: " €"; }
.menu__photo img { width: 100%; }

@media (min-width: 900px) {
  .menu { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
  .menu__photo { position: sticky; top: 92px; }
  .menu__photo img { max-height: calc(100vh - 120px); object-fit: cover; }
}

/* ---------- 4. Onde fica ---------- */
.visit { position: relative; margin-top: var(--gap-section); }
.visit__photo { width: 100%; height: 70svh; min-height: 380px; object-fit: cover; }
.visit__card {
  position: relative; margin: -80px 16px 0; padding: 28px 24px 24px;
  background: var(--paper); color: var(--paper-ink);
}
.visit__card h2 { font-size: var(--step-head); }
.visit__addr { margin: 18px 0 20px; font-size: var(--step-lead); line-height: 1.3; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.hours dt { font-weight: 500; }
.hours dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.visit__tel { margin: 18px 0 22px; font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .visit__photo { height: 100svh; }
  .visit__card { position: absolute; top: 60px; right: 60px; width: 400px; margin: 0; padding: 32px; }
}

/* ---------- 5. Pedir mesa e como chegar: a única faixa ocre ---------- */
.book { display: grid; gap: 40px; padding: clamp(56px, 8vw, 120px) var(--pad); background: var(--ochre); color: var(--ochre-ink); }
.slip { padding: 28px 20px 30px; background: var(--paper); color: var(--paper-ink); }
.slip > p { max-width: 38ch; margin: 16px 0 24px; }
#book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.field { grid-column: 1 / -1; display: grid; gap: 6px; }
.field--half { grid-column: auto; }
.field label { font-size: var(--step-small); font-weight: 500; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-radius: 0;
  background: var(--paper-2); color: var(--paper-ink);
}
.book__day { grid-column: 1 / -1; padding: 14px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.book__actions { grid-column: 1 / -1; display: grid; gap: 6px; }
.notice { grid-column: 1 / -1; padding: 14px 16px; background: var(--paper-ink); color: var(--paper); }
.way h3 { font-size: var(--step-head); letter-spacing: -0.02em; line-height: 0.95; }
.way__map { width: 100%; height: auto; margin: 24px 0 20px; }
.way__list li + li { margin-top: 10px; }
.way__list li { max-width: 46ch; }

@media (min-width: 560px) { .book__actions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .book { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .slip { padding: 44px 44px 48px; }
}

/* ---------- 6. Carta ---------- */
.letter { padding: var(--gap-section) 0; }
.letter__sheet { position: relative; max-width: 640px; margin: 0 auto; padding: 32px 24px 0; }
.letter__pic { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.letter__sheet h2 { margin: 24px 0 22px; }
.letter__sheet p { line-height: 1.55; }
.letter__sheet p + p { margin-top: 1.1em; }
.letter mark { background: var(--ochre); color: var(--ochre-ink); padding: 0 4px; }
.letter__sign { margin-top: 30px; font-size: var(--step-lead); font-weight: 500; }
.letter__sheet p.letter__role { margin-top: 0; color: var(--paper-muted); font-size: var(--step-small); }
.tear {
  display: grid; gap: 14px; align-items: center;
  margin: 34px -24px 0; padding: 20px 24px 24px;
  border-top: 5px dotted var(--bg);
}
.tear__mail { font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .letter__sheet { padding: 60px 60px 0; }
  .tear { grid-template-columns: 1fr auto; margin: 44px -60px 0; padding: 22px 60px 26px; }
}

/* ---------- 7. O verso do postal ---------- */
.foot { position: relative; z-index: 1; padding: 0 var(--pad) var(--pad); background: var(--bg); }
.foot__edge { position: absolute; top: 0; left: var(--pad); width: calc(100% - 2 * var(--pad)); z-index: 1; }
.foot__card { position: relative; display: grid; gap: 32px; padding: 44px 24px 28px; background: var(--paper); color: var(--paper-ink); }
.foot__bye { font-size: var(--step-head); }
.foot__msg p { max-width: 36ch; margin-top: 14px; }
.foot__addr ul { font-size: var(--step-lead); line-height: 1.3; }
.foot__addr li + li { margin-top: 12px; }
.foot__addr li { overflow-wrap: anywhere; }
.foot__stamp { width: 76px; height: 101px; object-fit: cover; margin-bottom: 20px; }
.foot__demo { font-size: var(--step-small); color: var(--paper-ink); }
.foot__demo p { max-width: 68ch; }
.foot__demo p + p { margin-top: 8px; }

@media (min-width: 900px) {
  .foot__card { grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 6vw, 96px); padding: 72px clamp(32px, 5vw, 72px) 32px; }
  .foot__addr { position: relative; padding-right: 120px; }
  .foot__stamp { position: absolute; top: 0; right: 0; width: 88px; height: 117px; margin: 0; }
  .foot__demo { grid-column: 1 / -1; }
}


/* ---------- Movimento ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
@media (prefers-reduced-motion: no-preference) {
  html.js .hero__photo { animation: drift 28s ease-in-out infinite alternate; }
  html.js .hero__sheet > * { animation: rise 800ms var(--ease-out) both; }
  html.js .hero__sheet > *:nth-child(2) { animation-delay: 80ms; }
  html.js .hero__sheet > *:nth-child(3) { animation-delay: 160ms; }
  html.js .hero__sheet > *:nth-child(4) { animation-delay: 240ms; }
  html.js .hero__sheet > *:nth-child(n+5) { animation-delay: 320ms; }
  html.js [data-reveal] > *, html.js [data-reveal] .bar, html.js [data-reveal] .letter__sheet > * {
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms ease, transform 900ms var(--ease-out);
  }
  html.js [data-reveal].is-in > *, html.js [data-reveal].is-in .bar, html.js [data-reveal].is-in .letter__sheet > * { opacity: 1; transform: none; }
  html.js [data-reveal].is-in > *:nth-child(2) { transition-delay: 90ms; }
  html.js [data-reveal].is-in > *:nth-child(3) { transition-delay: 180ms; }
  html.js [data-reveal].is-in .bar:nth-of-type(2), html.js [data-reveal].is-in .letter__sheet > *:nth-child(2) { transition-delay: 70ms; }
  html.js [data-reveal].is-in .bar:nth-of-type(3), html.js [data-reveal].is-in .letter__sheet > *:nth-child(3) { transition-delay: 140ms; }
  html.js [data-reveal].is-in .bar:nth-of-type(4), html.js [data-reveal].is-in .letter__sheet > *:nth-child(4) { transition-delay: 210ms; }
  html.js [data-reveal].is-in .bar:nth-of-type(5), html.js [data-reveal].is-in .letter__sheet > *:nth-child(n+5) { transition-delay: 280ms; }
  html.js [data-reveal].is-in .bar:nth-of-type(6) { transition-delay: 350ms; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
