/* ============================================================
   Gourmet Express — site público
   Direção: cardápio editorial · papel quente · vinho & brasa
   ============================================================ */

:root {
  --paper: #faf6ef;
  --cream: #f2eadd;
  --sand: #e7dccb;
  --ink: #29191a;
  --ink-soft: #7d6a64;
  --wine-900: #4a100f;
  --wine-800: #5e1513;
  --wine-700: #731b18;
  --wine-600: #8a2320;
  --wine-100: #f4e2e0;
  --wine-50: #faf0ee;
  --ember-600: #d9481f;
  --ember-500: #e85c2b;
  --ember-100: #fde8de;
  --leaf-700: #2c6e49;
  --leaf-100: #e0efe5;
  --gold-700: #9a6a1c;
  --gold-100: #f7ecd6;
  --display: "Fraunces", serif;
  --body: "Albert Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* grão de papel sutil em toda a página */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 52rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; }
em { font-style: italic; }

a { color: inherit; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0.6rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--wine-700); color: var(--paper); box-shadow: 0 1px 6px rgba(74, 16, 15, 0.28); }
.btn-solid:hover { background: var(--wine-600); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--wine-700); background: var(--wine-50); }
.btn-outline { border-color: var(--sand); background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.btn-outline:hover { border-color: var(--wine-700); color: var(--wine-700); }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-under {
  border: none; background: none; padding: 0.85rem 0.25rem;
  color: var(--ink-soft); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--sand); border-radius: 0;
}
.btn-under:hover { color: var(--wine-700); border-bottom-color: var(--wine-700); }

.fineprint { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.topbar-in { display: flex; align-items: center; gap: 2rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand img { height: 2.4rem; width: 2.4rem; border-radius: 0.55rem; }
.brand span {
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  line-height: 1.05; color: var(--wine-800); letter-spacing: 0.01em;
}
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a {
  font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--wine-700); }
.topbar-cta { display: flex; gap: 0.5rem; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--sand);
  border-radius: 0.5rem; font-size: 1.1rem; padding: 0.3rem 0.65rem; cursor: pointer; color: var(--ink);
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::after {
  /* brasa difusa no canto */
  content: ""; position: absolute; right: -18rem; top: -14rem; width: 42rem; height: 42rem;
  background: radial-gradient(closest-side, rgba(232, 92, 43, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem;
  align-items: center; padding-top: 5rem; padding-bottom: 4rem;
}
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember-600); margin-bottom: 1.2rem;
}
.eyebrow::before { content: "— "; color: var(--sand); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); font-weight: 600; color: var(--ink); }
.hero h1 em { color: var(--wine-700); }
.lead { margin-top: 1.4rem; font-size: 1.1rem; color: var(--ink-soft); max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.hero .fineprint { margin-top: 0.9rem; }

/* comandas */
.hero-art { position: relative; min-height: 26rem; z-index: 2; }
.ticket {
  position: absolute; width: 16.5rem; background: #fffdf8;
  border: 1px solid var(--sand); border-radius: 0.45rem;
  box-shadow: 0 14px 34px rgba(41, 25, 26, 0.13);
  padding: 0.9rem 1rem 0.7rem;
  font-size: 0.82rem;
}
.ticket::before {
  /* picote no topo */
  content: ""; position: absolute; top: -1px; left: 0.6rem; right: 0.6rem; height: 0;
  border-top: 2px dashed var(--sand);
}
.t1 { left: 6%; top: 0; transform: rotate(-2.5deg); z-index: 3; }
.t2 { right: 0; top: 32%; transform: rotate(1.8deg); z-index: 2; }
.t3 { left: 12%; bottom: 0; transform: rotate(-1deg); z-index: 1; }
.ticket-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--sand); padding-bottom: 0.45rem; margin-bottom: 0.55rem;
}
.tag { font-family: var(--body); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 99px; }
.tag-new { background: var(--gold-100); color: var(--gold-700); }
.tag-prep { background: var(--wine-100); color: var(--wine-700); }
.tag-ready { background: var(--leaf-100); color: var(--leaf-700); }
.ticket-line { display: flex; justify-content: space-between; color: var(--ink); padding: 0.12rem 0; }
.ticket-line span:last-child { color: var(--sand); }
.ticket-note { margin-top: 0.35rem; font-style: italic; color: var(--ink-soft); font-size: 0.76rem; }
.ticket-foot { margin-top: 0.55rem; border-top: 1px dashed var(--sand); padding-top: 0.4rem; color: var(--ink-soft); font-size: 0.72rem; }

.hero-chip {
  position: absolute; font-size: 0.72rem; font-weight: 600; padding: 0.4rem 0.8rem;
  border-radius: 99px; box-shadow: 0 6px 18px rgba(41, 25, 26, 0.12); white-space: nowrap;
}
.chip-a { right: 4%; top: 6%; background: var(--ember-100); color: var(--ember-600); transform: rotate(2deg); }
.chip-b { right: 14%; bottom: 12%; background: var(--leaf-100); color: var(--leaf-700); transform: rotate(-2deg); }

.hero-rule {
  display: flex; align-items: center; gap: 1rem; padding-bottom: 0.4rem;
  color: var(--ink-soft); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.hero-rule::before, .hero-rule::after { content: ""; flex: 1; border-top: 1px solid var(--sand); }

/* ---------- faixa de números ---------- */
.strip { border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); background: var(--cream); }
.strip-in {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding-top: 1.6rem; padding-bottom: 1.6rem; text-align: center;
}
.stat strong { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--wine-700); }
.stat span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- "pratos" (seções) ---------- */
.course { padding: 5.5rem 0; }
.course-alt { background: var(--cream); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.course-head { margin-bottom: 3rem; max-width: 36rem; }
.course-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.course-n {
  display: inline-block; font-family: var(--display); font-style: italic; font-size: 1rem;
  color: var(--ember-600); margin-bottom: 0.8rem;
}
.course-n::after { content: " ·"; color: var(--sand); }
.course h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--ink); }
.course-sub { margin-top: 0.8rem; color: var(--ink-soft); }

/* fluxo */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: flow; }
.flow li { position: relative; padding-top: 1.2rem; }
.flow li::before { content: ""; position: absolute; top: 0; left: 0; width: 2.6rem; border-top: 3px solid var(--wine-700); }
.flow-n { font-family: var(--display); font-style: italic; color: var(--ink-soft); font-size: 0.95rem; }
.flow h3 { font-size: 1.18rem; margin: 0.4rem 0 0.5rem; }
.flow p { font-size: 0.92rem; color: var(--ink-soft); }

/* módulos */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--sand); border-radius: 1rem;
  padding: 1.6rem 1.5rem; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(41, 25, 26, 0.09); border-color: rgba(115, 27, 24, 0.3); }
.card-icon { font-size: 1.5rem; }
.card h3 { font-size: 1.25rem; margin: 0.7rem 0 0.5rem; }
.card p { font-size: 0.92rem; color: var(--ink-soft); }

/* modos */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.mode {
  border: 1px solid var(--sand); border-radius: 1rem; padding: 1.8rem 1.6rem;
  background: rgba(255, 255, 255, 0.6);
}
.mode-featured { background: var(--wine-800); border-color: var(--wine-800); color: var(--paper); transform: translateY(-0.6rem); box-shadow: 0 18px 40px rgba(74, 16, 15, 0.25); }
.mode-n { font-family: var(--display); font-style: italic; color: var(--ember-500); }
.mode h3 { font-size: 1.3rem; margin: 0.5rem 0 0.6rem; }
.mode p { font-size: 0.92rem; color: var(--ink-soft); }
.mode-featured p { color: rgba(250, 246, 239, 0.75); }
.mode-tag { margin-top: 1rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--gold-700); }
.mode-featured .mode-tag { color: var(--gold-100); }
.modes-note { margin-top: 2.2rem; text-align: center; font-style: italic; font-family: var(--display); color: var(--ink-soft); }

/* ---------- planos (cardápio) ---------- */
.course-menu { background: var(--wine-900); color: var(--paper); }
.course-menu .course-n { color: var(--ember-500); }
.course-menu h2 { color: var(--paper); }
.course-menu .course-sub { color: rgba(250, 246, 239, 0.6); }

.menu-card {
  background: var(--paper); color: var(--ink); border-radius: 1.2rem;
  padding: 2.6rem 2.4rem; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--sand);
  position: relative;
}
.menu-card::before {
  content: "· menu ·"; position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  background: var(--ember-500); color: var(--paper); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; padding: 0.3rem 1.1rem; border-radius: 99px;
}
.plan { padding: 1.7rem 0.4rem; border-bottom: 1px dashed var(--sand); position: relative; }
.plan:last-child { border-bottom: none; }
.plan-line { display: flex; align-items: baseline; gap: 0.8rem; }
.plan-line h3 { font-size: 1.45rem; white-space: nowrap; }
.plan-line h3 em { font-size: 1rem; color: var(--ink-soft); }
.dots { flex: 1; border-bottom: 2px dotted var(--sand); transform: translateY(-0.3rem); }
.price { font-family: var(--display); font-size: 1.45rem; color: var(--wine-700); white-space: nowrap; }
.price em { font-style: normal; font-size: 0.85rem; color: var(--ink-soft); }
.plan p { margin: 0.6rem 0 1rem; font-size: 0.92rem; color: var(--ink-soft); max-width: 38rem; }
.plan-featured { background: var(--wine-50); margin: 0 -1.2rem; padding: 1.7rem 1.6rem; border-radius: 0.9rem; border-bottom: none; }
.plan-featured + .plan { border-top: 1px dashed var(--sand); }
.plan-badge {
  display: inline-block; margin-bottom: 0.6rem; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-700);
  background: var(--gold-100); padding: 0.25rem 0.7rem; border-radius: 99px;
}
.menu-foot { margin-top: 1.6rem; text-align: center; font-size: 0.78rem; color: rgba(250, 246, 239, 0.55); }

/* ---------- fechamento + cadastro ---------- */
.closing { padding: 5.5rem 0; }
.closing-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.closing h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.closing h2 em { color: var(--wine-700); }
.closing-steps { list-style: none; margin-top: 2rem; display: grid; gap: 0.9rem; }
.closing-steps li { display: flex; align-items: center; gap: 0.9rem; color: var(--ink-soft); font-size: 0.95rem; }
.closing-steps span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--wine-700); color: var(--paper);
  font-family: var(--display); font-size: 0.9rem; flex-shrink: 0;
}
.signup {
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--sand); border-radius: 1.2rem;
  padding: 2.2rem 2rem; box-shadow: 0 18px 44px rgba(41, 25, 26, 0.1);
  display: grid; gap: 1rem;
}
.signup h3 { font-size: 1.5rem; }
.signup label { display: grid; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.signup input {
  font: inherit; font-size: 0.95rem; color: var(--ink);
  border: 1px solid var(--sand); border-radius: 0.6rem; padding: 0.65rem 0.85rem;
  background: #fffdf8; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.signup input:focus { border-color: var(--wine-700); box-shadow: 0 0 0 3px rgba(115, 27, 24, 0.12); }
.signup .fineprint { text-align: center; }

/* ---------- rodapé ---------- */
.footer { background: var(--ink); color: rgba(250, 246, 239, 0.7); }
.footer-in {
  display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 2.5rem;
  padding-top: 3.2rem; padding-bottom: 3.2rem; font-size: 0.85rem;
}
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-brand img { width: 2.6rem; height: 2.6rem; border-radius: 0.6rem; }
.footer-brand strong { font-family: var(--display); font-size: 1.05rem; color: var(--paper); }
.footer-nav { display: grid; gap: 0.5rem; align-content: start; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--ember-500); }
.footer-meta { display: grid; gap: 0.4rem; align-content: start; }
.footer-group a { color: rgba(250, 246, 239, 0.85); }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.4s; }
/* manter as rotações das comandas no estado final */
.ticket.reveal { transform: translateY(14px); }
.t1.reveal.in { transform: rotate(-2.5deg); }
.t2.reveal.in { transform: rotate(1.8deg); }
.t3.reveal.in { transform: rotate(-1deg); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsivo ---------- */
@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 3.2rem; }
  .hero-art { min-height: 24rem; max-width: 26rem; margin: 0 auto; width: 100%; }
  .strip-in { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: 1fr; }
  .mode-featured { transform: none; }
  .closing-in { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 44rem) {
  .nav, .topbar-cta { display: none; }
  .nav-toggle { display: block; }
  .topbar.open .nav {
    display: grid; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--sand);
    padding: 1rem 1.5rem; gap: 0.9rem;
  }
  .flow { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .menu-card { padding: 2rem 1.4rem; }
  .plan-line { flex-wrap: wrap; }
  .dots { min-width: 2rem; }
}
