/* Guará · cozinha de fogo
   Tema: escuro único (decisão de marca: restaurante noturno, fotos low-key).
   Forma: imagens e blocos retos (radius 0); elementos interativos em pílula.
   Z-index: nav 50 · preview 40 · grain 60 · loader 100 */

:root {
  --bg: #0f0d0c;
  --bg-2: #171413;
  --fg: #efe9e2;
  --muted: #9a918a;
  --line: rgb(239 233 226 / .14);
  --ember: #e5482e;
  --ember-ink: #160a07;

  --pad: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* grão de filme, fixo e fora do fluxo de scroll */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; color: var(--ember); }
::selection { background: var(--ember); color: var(--ember-ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.display {
  margin: 0;
  font-weight: 800;
  font-variation-settings: "wdth" 70;
  font-size: clamp(2.75rem, 1.5rem + 6vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.display em { font-variation-settings: "wdth" 70; padding-right: .04em; }

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- botões ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 1px solid var(--ember);
  border-radius: 999px;
  background: var(--ember);
  color: var(--ember-ink);
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate(var(--bx), var(--by));
  transition: transform .5s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--fg);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--fg); }
.btn:active { scale: .97; }
.btn--ghost { background: transparent; color: var(--fg); border-color: rgb(239 233 226 / .45); }
.btn--ghost:hover { color: var(--ember-ink); }
.btn--small { min-height: 2.5rem; padding: 0 1.15rem; font-size: .9rem; }
.btn--big { min-height: 4rem; padding: 0 2.5rem; font-size: 1.1rem; }

/* ---------- loader ---------- */
.loader { display: none; }
.motion .loader {
  display: flex;
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--bg);
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--pad);
}
.loader__count {
  font-weight: 800;
  font-variation-settings: "wdth" 62;
  font-size: clamp(5rem, 18vw, 16rem);
  line-height: .8;
  font-variant-numeric: tabular-nums;
}
.loader__bar { width: min(30vw, 18rem); height: 2px; background: var(--line); margin-bottom: 1rem; }
.loader__bar span { display: block; height: 100%; background: var(--ember); transform-origin: left; transform: scaleX(0); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(4.25rem + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pad) 0;
  transition: transform .6s var(--ease), background-color .4s;
}
.nav.is-scrolled { background: rgb(15 13 12 / .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo {
  justify-self: start;
  font-weight: 800;
  font-variation-settings: "wdth" 70;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__links { display: flex; gap: 2.25rem; }
.nav__links a {
  text-decoration: none;
  font-size: .95rem;
  color: var(--muted);
  transition: color .3s;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .3s, background-size .5s var(--ease);
}
.nav__links a:hover { color: var(--fg); background-size: 100% 1px; }
.nav .btn { justify-self: end; }
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 6rem var(--pad) 0;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: 70% 50%; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(15 13 12 / .92) 0%, rgb(15 13 12 / .55) 38%, transparent 65%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero__content { position: relative; z-index: 1; align-self: center; max-width: 40rem; }
.hero__title {
  margin: 0 0 1.5rem;
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  font-size: clamp(3rem, 1.6rem + 5.6vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.hero__title em { font-variation-settings: "wdth" 72; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }
.hero__sub { margin: 0 0 2rem; max-width: 30rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: rgb(239 233 226 / .82); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__wordmark {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between;
  margin: 0 calc(var(--pad) * -.15);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: clamp(5rem, 33vw, 38rem);
  line-height: .8;
  letter-spacing: -.02em;
  color: var(--fg);
  overflow: hidden;
  padding-top: .2em;
  margin-top: -.2em;
  user-select: none;
}
@media (max-width: 760px) {
  .hero { padding-top: 5rem; }
  .hero__content { align-self: end; padding-bottom: 2rem; }
  .hero__media img { object-position: 60% 30%; }
  .hero__media::after {
    background: linear-gradient(0deg, var(--bg) 6%, rgb(15 13 12 / .82) 42%, rgb(15 13 12 / .3) 100%);
  }
  .btn--ghost { background: rgb(15 13 12 / .5); }
}
.hero__wordmark span { display: inline-block; }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(7rem, 18vw, 14rem) var(--pad); }
.manifesto__text {
  margin: 0;
  max-width: 22ch;
  font-weight: 500;
  font-variation-settings: "wdth" 85;
  font-size: clamp(2rem, 1rem + 3.6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.015em;
}
.manifesto__text .w { transition: none; }
.motion .manifesto__text .w { opacity: .14; }

/* ---------- fogo (pan horizontal) ---------- */
.fire { position: relative; padding-block: 2rem 6rem; }
.fire__track { display: grid; gap: 4rem; padding-inline: var(--pad); }
.fire__intro { max-width: 34rem; }
.fire__intro p { color: var(--muted); max-width: 28rem; margin: 1.5rem 0 0; }
.fire__panel h3 {
  margin: 1.25rem 0 .5rem;
  font-weight: 800;
  font-variation-settings: "wdth" 70;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  line-height: 1;
  text-transform: uppercase;
}
.fire__panel p { margin: 0; color: var(--muted); max-width: 26rem; }
.fire__img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.fire__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; }

@media (min-width: 900px) {
  .fire { height: 100dvh; padding: 0; overflow: hidden; }
  .fire__track {
    display: flex; align-items: center;
    gap: clamp(3rem, 6vw, 7rem);
    height: 100%;
    width: max-content;
    padding-inline: var(--pad) 12vw;
  }
  .fire__intro { flex: 0 0 auto; width: 38vw; }
  .fire__panel { flex: 0 0 auto; width: clamp(18rem, 26vw, 26rem); }
  .fire__panel--low { margin-top: 18vh; }
  .fire__img { aspect-ratio: 3 / 4; }
}

/* ---------- menu ---------- */
.menu { position: relative; padding: clamp(6rem, 14vw, 11rem) var(--pad); }
.menu__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.menu__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: c; }
.menu__item {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  grid-template-areas: "thumb title" "thumb desc";
  column-gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.menu__thumb { grid-area: thumb; width: 4.5rem; aspect-ratio: 1; object-fit: cover; }
.menu__item h3 {
  grid-area: title;
  margin: 0;
  font-weight: 700;
  font-variation-settings: "wdth" 75;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.01em;
  transition: color .4s var(--ease), transform .6s var(--ease);
}
.menu__item p { grid-area: desc; margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }
.menu__price { margin: 2.5rem 0 0; color: var(--muted); }

@media (hover: hover) and (min-width: 900px) {
  .menu__item {
    grid-template-columns: 1fr minmax(16rem, 26rem);
    grid-template-areas: "title desc";
    padding: 2.25rem 0;
    cursor: default;
  }
  .menu__thumb { display: none; }
  .menu__item p { margin: 0; text-align: right; justify-self: end; transition: color .4s; }
  .menu__list:hover .menu__item h3 { color: rgb(239 233 226 / .3); }
  .menu__list .menu__item:hover h3 { color: var(--ember); transform: translateX(1.5rem); }
  .menu__list .menu__item:hover p { color: var(--fg); }
}

.menu__preview {
  position: fixed; left: 0; top: 0;
  z-index: 40;
  width: clamp(14rem, 20vw, 20rem);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  translate: -50% -50%;
}
.menu__preview-inner { width: 100%; height: 100%; overflow: hidden; scale: .6; transition: scale .6s var(--ease); }
.menu__preview.is-on .menu__preview-inner { scale: 1; }
.menu__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 899px) { .menu__preview { display: none; } }

/* ---------- casa (zoom) ---------- */
.casa { position: relative; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; }
.casa__frame { position: absolute; inset: 0; overflow: hidden; }
.casa__frame img { width: 100%; height: 100%; object-fit: cover; }
.casa__frame::after { content: ""; position: absolute; inset: 0; background: rgb(15 13 12 / .45); }
.casa__title { position: relative; z-index: 1; text-align: center; padding-inline: var(--pad); }
.motion .casa__frame { clip-path: inset(18% 22% round 0); }

/* ---------- chef ---------- */
.chef {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem var(--pad);
  padding: clamp(7rem, 16vw, 13rem) var(--pad);
  align-items: end;
}
.chef__media { grid-column: 2 / span 5; margin: 0; overflow: hidden; aspect-ratio: 3 / 4; }
.chef__media img { width: 100%; height: 118%; object-fit: cover; }
.chef__body { grid-column: 8 / span 5; padding-bottom: 2rem; }
.chef__quote { margin: 0; }
.chef__quote p {
  margin: 0;
  font-weight: 500;
  font-variation-settings: "wdth" 88;
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -.01em;
}
.chef__name { margin: 2rem 0 0; font-weight: 700; }
.chef__name span { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 899px) {
  .chef { grid-template-columns: 1fr; }
  .chef__media, .chef__body { grid-column: 1; }
  .chef__media { width: 85%; }
}

/* ---------- reserva ---------- */
.reserva { padding: clamp(6rem, 12vw, 10rem) var(--pad) clamp(5rem, 10vw, 8rem); background: var(--bg-2); }
.reserva__title { font-size: clamp(3.5rem, 1rem + 11vw, 13rem); margin-bottom: clamp(3rem, 6vw, 5rem); }
.reserva__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(3rem, 7vw, 8rem); align-items: start; }
.reserva__info { margin: 0; display: grid; gap: 2rem; }
.reserva__info dt { color: var(--muted); font-size: .9rem; margin-bottom: .35rem; }
.reserva__info dd { margin: 0; font-size: 1.15rem; }

.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.5rem; }
.field { display: grid; gap: .5rem; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label { font-size: .9rem; color: rgb(239 233 226 / .78); }
.field input, .field select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 .1rem;
  border: 0;
  border-bottom: 1px solid rgb(239 233 226 / .38);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: 400 1.15rem var(--font);
  color-scheme: dark;
  transition: border-color .3s;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23efe9e2' stroke-width='1.5'/%3E%3C/svg%3E") right .25rem center no-repeat; }
.field select option { background: var(--bg-2); }
.field input::placeholder { color: rgb(239 233 226 / .45); }
.field input:focus, .field select:focus { outline: none; border-color: var(--ember); }
.field input:focus-visible, .field select:focus-visible { box-shadow: 0 2px 0 var(--ember); }
.field.is-invalid input, .field.is-invalid select { border-color: #ff7a5c; }
.field__error { margin: 0; min-height: 1.2em; font-size: .85rem; color: #ff8e74; }
.form__foot { grid-column: span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: .5rem; }
.form__status { margin: 0; color: var(--muted); }
.form__status.is-ok { color: var(--fg); }
.btn.is-loading { pointer-events: none; opacity: .7; }

@media (max-width: 899px) {
  .reserva__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field--half { grid-column: span 2; }
}

/* ---------- footer ---------- */
.footer { padding: 4rem var(--pad) 0; overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; color: var(--muted); padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer__cols p { margin: 0; }
.footer__cols a { text-decoration: none; transition: color .3s; }
.footer__cols a:hover { color: var(--ember); }
.footer__mark {
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: clamp(6rem, 33vw, 38rem);
  line-height: .78;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ember);
  margin-top: 2rem;
  margin-bottom: -.06em;
  user-select: none;
}
@media (max-width: 640px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------- estados iniciais de animação (só com motion) ---------- */
.motion .hero__title .line > span,
.motion .hero__wordmark span { transform: translateY(110%); }
.motion [data-fade] { opacity: 0; transform: translateY(1.5rem); }
.motion .hero__media { clip-path: inset(0 0 100% 0); }
.motion [data-reveal] { opacity: 0; transform: translateY(2.5rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
