:root {
  --ink: #16130d;
  --paper: #ece2cf;
  --paper-dim: #ded2ba;
  --vermillion: #bf3421;
  --muted: #7c7360;
  --line: rgba(22, 19, 13, 0.16);
  --serif: "Shippori Mincho", serif;
  --sans: "Zen Kaku Gothic Antique", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Lenis: o scroll suave é controlado por JS, então desligamos o do navegador */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* paper grain — quebra o look "chapado" de gradiente de IA */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.reduce-motion .grain { display: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: var(--paper);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand-kanji { font-family: var(--serif); font-size: 26px; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.nav-links a:hover { border-color: currentColor; }


.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  /* fica acima do overlay .nav-links (fixed) senão o X não recebe o clique */
  position: relative;
  z-index: 2;
}
.burger span {
  width: 26px; height: 2px;
  background: var(--paper);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 96px clamp(20px, 5vw, 64px) 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 40px;
  background: var(--ink);
  color: var(--paper);
}

.hero-lockup { max-width: 620px; }

.kicker {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(46px, 8vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}
/* padding dá respiro pro topo/base das letras dentro da máscara;
   margem negativa cancela isso no layout, mantendo as linhas coladas */
.hero-title .line { display: block; overflow: hidden; padding: 0.14em 0.04em; margin: -0.14em -0.04em; }
.hero-title .line > span { display: block; }
.hero-title .accent { color: var(--vermillion); }

.hero-sub {
  margin-top: 30px;
  max-width: 420px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--paper-dim);
}

.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }

.btn-solid {
  background: var(--vermillion);
  color: var(--paper);
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 2px;
  font-size: 16px;
  letter-spacing: 0.03em;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}
.btn-solid:hover { transform: translateY(-2px); background: #a82a19; }

.btn-ghost { text-decoration: none; font-size: 16px; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.hero-media {
  position: relative;
  align-self: start; /* topo da imagem alinha com o topo do texto */
  justify-self: end; /* menor que a coluna: encosta à direita, junto do 寿司·刺身 */
  margin-right: 50px; /* desloca a imagem 50px pra esquerda */
  width: 100%;
  /* como é quadrada, largura = altura. Vai até o limite do hero: a altura útil
     é 100vh − 96px(topo) − 40px(base). Assim ocupa o máximo sem cortar embaixo.
     O cap de 860px evita ficar gigante em telas muito altas. */
  max-width: min(860px, calc(100vh - 136px));
  overflow: hidden;
  perspective: 900px; /* dá profundidade ao tilt 3D com o cursor */
}
.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1; /* a foto é 626x626 (quadrada) — quadrado = imagem inteira, sem corte */
  object-fit: cover;
  object-position: center;
  scale: 1; /* sem zoom: a foto é quadrada e aparece inteira, sem cortar prato/tigela */
  will-change: transform;
  transform-origin: center;
}
.hero-media figcaption {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 19, 13, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  padding: 10px 14px;
  font-size: 14px;
}
.hero-media figcaption b { color: var(--vermillion); }

.hero-vert {
  position: absolute;
  right: clamp(6px, 2vw, 20px);
  top: 40%; /* na vertical central da imagem, ao lado do prato */
  writing-mode: vertical-rl;
  font-family: var(--serif);
  letter-spacing: 0.3em;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--vermillion);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ---------- CHAPTERS ---------- */
.chapter {
  position: relative;
  padding: clamp(70px, 12vh, 140px) clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.chapter-index {
  position: absolute;
  top: clamp(24px, 5vh, 48px);
  right: clamp(20px, 5vw, 64px);
  font-family: var(--serif);
  font-size: clamp(60px, 12vw, 150px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--paper-dim);
  opacity: 0.7;
  pointer-events: none;
}

.chapter-label {
  display: inline-block;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 20px;
}

.chapter-head h2,
.chapter h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.08;
  max-width: 15ch;
}

.chapter-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 60px; margin-top: 48px; }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.5; font-family: var(--serif); }
.chapter-body p { color: var(--muted); line-height: 1.7; font-size: 17px; }
.chapter-body .lead { color: var(--ink); }

.facts { list-style: none; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 48px; margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-size: clamp(40px, 6vw, 68px); line-height: 1; color: var(--vermillion); }
.facts span { font-size: 15px; color: var(--muted); }

/* split (chef) — copy à esquerda, imagem à direita (surge no scroll) */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 72px); align-items: center; background: var(--ink); color: var(--paper); overflow: hidden; }
.split .chapter-index { -webkit-text-stroke-color: rgba(236, 226, 207, 0.28); }
.split-media { order: -1; } /* imagem à esquerda, texto à direita (movimento espelhado) */
.split-copy, .split-media { will-change: transform; }
.split-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; } /* quadrado = imagem inteira */
.split blockquote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.25;
  margin-bottom: 28px;
}
.split-copy p { color: var(--paper-dim); line-height: 1.7; font-size: 17px; max-width: 46ch; }
.split .chapter-label { color: #e8846f; }
.sign { margin-top: 22px; font-family: var(--serif); font-style: italic; color: var(--paper) !important; }

/* ---------- CARTA ---------- */
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; margin-top: 54px; align-items: start; }
.menu-col h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.menu-col h3 span { font-size: 15px; color: var(--muted); font-family: var(--sans); }
.menu-col ul { list-style: none; }
.menu-col li { display: flex; align-items: baseline; gap: 8px; padding: 13px 0; font-size: 18px; }
.dish { font-family: var(--serif); white-space: nowrap; }
.dots { flex: 1; border-bottom: 1px dotted var(--muted); transform: translateY(-4px); min-width: 20px; }
.price { font-family: var(--serif); font-size: 19px; }
.price::before { content: "R$ "; font-size: 13px; color: var(--muted); }

.menu-omakase {
  grid-column: 1 / -1;
  background: var(--ink);
  color: var(--paper);
  padding: 40px clamp(28px, 4vw, 52px);
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.menu-omakase .chapter-label { color: #e8846f; }
.menu-omakase h3 { font-family: var(--serif); font-size: clamp(38px, 6vw, 64px); }
.menu-omakase p { color: var(--paper-dim); max-width: 46ch; line-height: 1.6; }
.omakase-price { font-family: var(--serif); font-size: 34px; color: var(--paper) !important; margin-top: 8px; }
.omakase-price span { font-size: 16px; color: var(--muted); }

/* ---------- RESERVA ---------- */
.reserva { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.reserva-copy { grid-row: span 2; }
.hours { margin: 36px 0; display: grid; gap: 2px; max-width: 340px; }
.hours div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.hours dt { font-family: var(--serif); }
.hours dd { color: var(--muted); }
address { font-style: normal; line-height: 1.8; font-size: 17px; }
address a { color: var(--vermillion); }

.reserva-form { display: grid; gap: 16px; align-content: start; }
.reserva-form label { display: grid; gap: 7px; font-size: 14px; letter-spacing: 0.03em; color: var(--muted); }
.reserva-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reserva-form input,
.reserva-form select {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  padding: 13px 14px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
}
.reserva-form input:focus,
.reserva-form select:focus { outline: 2px solid var(--vermillion); outline-offset: -1px; }
.reserva-form .btn-solid { margin-top: 6px; justify-self: start; }
.form-note { min-height: 1.2em; font-size: 15px; color: var(--vermillion); }
.form-note.ok { color: #2f7a3a; }

.map { align-self: stretch; min-height: 260px; border: 1px solid var(--ink); }
.map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; filter: grayscale(0.4) contrast(1.05); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 8vh, 90px) clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer .brand-kanji { font-family: var(--serif); font-size: clamp(60px, 10vw, 130px); color: var(--vermillion); line-height: 0.8; }
.footer-cols { display: flex; gap: clamp(30px, 6vw, 80px); flex-wrap: wrap; }
.footer-cols p { line-height: 1.8; font-size: 15px; color: var(--paper-dim); }
.footer-cols a { color: var(--paper); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-cols a:hover { border-color: currentColor; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .nav { mix-blend-mode: normal; background: var(--ink); }
  .burger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 24px;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
  }
  .nav-links a { font-family: var(--serif); }
  body.menu-open .nav-links { transform: translateY(0); }
  /* trava o scroll nativo do fundo (reduce-motion não usa Lenis) */
  body.menu-open { overflow: hidden; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  .hero { grid-template-columns: 1fr; padding-top: 110px; align-items: start; }
  .hero-lockup { padding-bottom: 0; order: 1; }
  .hero-media { order: 2; margin-bottom: 0; max-width: 460px; justify-self: center; margin-right: 0; }
  .hero-vert { display: none; }

  .chapter-body { grid-template-columns: 1fr; }
  .facts { gap: 30px 40px; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: 0; } /* empilhado: texto acima da imagem, como antes */
  .split-media img { min-height: 320px; }
  .menu { grid-template-columns: 1fr; }
  .reserva { grid-template-columns: 1fr; }
  .reserva-copy { grid-row: auto; }
}

@media (max-width: 480px) {
  .facts { flex-direction: column; gap: 22px; }
  .hero-actions { gap: 16px; }
  .reserva-form .row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
