/* ===== TOKENS ===== */
:root {
  --cream: #F4EDE1;       /* fundo */
  --cream-2: #EAE0CF;
  --card: #FBF7F0;
  --ink: #221815;         /* 14.9:1 sobre --cream */
  --muted: #6A5A52;       /* 5.6:1 sobre --cream */
  --wine: #6E1F2B;        /* marca e CTAs (8.8:1 com --cream) */
  --wine-2: #5A1822;
  --blue: #1E4F8C;        /* só no motivo de azulejo e detalhes */
  --on-dark: #F4EDE1;
  --muted-dark: #D8C9B8;
  --line: rgba(34, 24, 21, .16);
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --max: 1240px;
  --bar-h: 30px;
  --nav-h: 72px;
  --top: calc(var(--bar-h) + var(--nav-h));
  --radius: 18px;
  /* azulejo em SVG (sem imagem externa) */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Crect width='56' height='56' fill='%23F4EDE1'/%3E%3Cg fill='none' stroke='%231E4F8C' stroke-width='2'%3E%3Ccircle cx='28' cy='28' r='10'/%3E%3Cpath d='M28 4v10M28 42v10M4 28h10M42 28h10'/%3E%3Cpath d='M0 0l14 14M56 0L42 14M0 56l14-14M56 56L42 42'/%3E%3C/g%3E%3Ccircle cx='28' cy='28' r='3' fill='%231E4F8C'/%3E%3C/svg%3E");
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top); overflow-x: clip; }
body { background: var(--cream); color: var(--ink); font: 400 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; background: var(--cream-2); }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.chef :focus-visible, .reserve :focus-visible, .footer :focus-visible { outline-color: var(--on-dark); }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: 16px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--cream); transform: translateY(-200%); }
.skip:focus { transform: none; }

.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.eyebrow--light { color: var(--muted-dark); }
.h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; letter-spacing: -.01em; }

/* ===== BOTÕES ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 54px; padding: 0 1.6rem; border: 0; border-radius: 999px; background: var(--wine); color: var(--on-dark); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--wine-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }
.btn--small { min-height: 44px; padding: 0 1.2rem; font-size: .95rem; }
.btn--light { background: var(--cream); color: var(--wine); }
.btn--light:hover { background: #fff; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--wine); }

/* ===== HEADER ===== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; }
.demo-bar { height: var(--bar-h); display: flex; align-items: center; justify-content: center; padding: 0 16px; background: var(--ink); color: var(--cream); font-size: 13px; white-space: nowrap; overflow: hidden; }
.demo-bar__short { display: none; }
.nav-wrap { background: rgba(244, 237, 225, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font: 400 1.45rem/1 var(--serif); text-decoration: none; color: var(--ink); }
.logo__mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--wine); color: var(--cream); font: 400 1.3rem/1 var(--serif); padding-bottom: 4px; }
.logo--light { color: var(--on-dark); }
.logo--light .logo__mark { background: var(--cream); color: var(--wine); }
.nav__links { display: flex; align-items: center; gap: 1.7rem; font-weight: 500; font-size: .98rem; }
.nav__links a:not(.btn) { text-decoration: none; }
.nav__links a:not(.btn):hover { color: var(--wine); }
.burger { display: none; width: 48px; height: 48px; border: 0; background: none; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: .25s; }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero { padding: calc(var(--top) + clamp(2rem, 5vw, 4rem)) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero__title { font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1.02; letter-spacing: -.02em; margin: 1rem 0 1.4rem; }
.hero__title em { font-style: normal; color: var(--wine); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px; text-decoration-color: rgba(110, 31, 43, .35); }
.hero__lead { max-width: 33rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.hero__facts strong { color: var(--ink); font-weight: 700; }
.hero__media { position: relative; margin: 0; }
.hero__media > img { width: 100%; aspect-ratio: 11 / 13; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); }
.hero__chef { position: absolute; left: -2rem; bottom: 2rem; right: 3rem; display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: 16px; background: var(--card); box-shadow: 0 18px 50px rgba(60, 30, 20, .18); font-size: .95rem; line-height: 1.45; }
.hero__chef img { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; }
.hero__chef strong { display: block; font: 400 1.1rem var(--serif); }
.hero__chef em { font-style: normal; font-weight: 600; color: var(--wine); }

/* faixa de azulejo */
.tiles { height: 56px; background: var(--tile) left center / 56px 56px repeat-x; border-block: 1px solid var(--blue); }
.tiles--dark { border-color: transparent; }

/* ===== SEÇÕES ===== */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head .h2 { margin-top: .7rem; }
.section-head__lead { margin-top: .9rem; color: var(--muted); }

/* cardápio */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tab { min-height: 46px; padding: 0 1.3rem; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; transition: background .2s, color .2s; }
.tab:hover { background: var(--cream-2); }
.tab.is-active { background: var(--ink); color: var(--cream); }
.panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.panel[hidden] { display: none; }
.panel.is-active { animation: fadeUp .45s ease both; }
.panel__photo { margin: 0; }
.panel__photo img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; border-radius: var(--radius); }
.dishes li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px dashed rgba(34, 24, 21, .28); }
.dishes li:first-child { padding-top: 0; }
.dishes h3 { font-size: 1.35rem; line-height: 1.25; }
.dishes p { margin-top: .25rem; font-size: 1rem; color: var(--muted); }
.price { flex: none; font: 400 1.25rem var(--serif); color: var(--wine); white-space: nowrap; }
.tag { display: inline-block; margin-left: .4rem; padding: .1rem .55rem; border-radius: 999px; background: var(--blue); color: #fff; font: 700 .68rem/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.menu-note { margin-top: 1.6rem; font-size: .92rem; color: var(--muted); }

/* chef (persona) */
.chef { background: var(--wine); color: var(--on-dark); }
.chef__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.chef__photos { position: relative; padding-bottom: 3rem; }
.chef__main { width: 82%; aspect-ratio: 9 / 11; object-fit: cover; border-radius: var(--radius); }
.chef__small { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--wine); }
.chef__copy .h2 { margin-top: .7rem; }
.quote { margin: 1.4rem 0 1.6rem; font: 400 clamp(1.3rem, 2.2vw, 1.7rem)/1.4 var(--serif); }
.chef__copy > p:not(.eyebrow):not(.signature) { color: var(--muted-dark); max-width: 36rem; }
.chef__copy > p + p { margin-top: 1rem; }
.chef__facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; border-top: 1px solid rgba(244, 237, 225, .3); }
.chef__facts li { padding: 1rem 1rem 0 0; font-size: .92rem; color: var(--muted-dark); }
.chef__facts li + li { padding-left: 1rem; border-left: 1px solid rgba(244, 237, 225, .2); }
.chef__facts strong { display: block; font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--serif); color: var(--on-dark); }
.signature { margin-top: 1.6rem; font: italic 400 1.6rem var(--serif); opacity: .9; }

/* a casa: bento com fotos e legenda */
.bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
.bento figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); min-height: 240px; }
.bento__big { grid-row: 1 / span 2; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bento figure:hover img { transform: scale(1.03); }
.bento figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.4rem 1.2rem; background: linear-gradient(transparent, rgba(20, 12, 10, .82)); color: var(--on-dark); font-size: .98rem; }
.bento figcaption strong { display: block; font: 400 1.35rem var(--serif); }

/* avaliações */
.reviews { background: var(--cream-2); }
.reviews__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; }
.reviews__head .h2 { margin-top: .7rem; }
.rating { text-align: right; }
.rating strong { font: 400 3.2rem/1 var(--serif); color: var(--wine); margin-right: .5rem; }
.rating span { color: #B7791F; font-size: 1.2rem; letter-spacing: .1em; }
.rating small { display: block; color: var(--muted); font-size: .88rem; }
.reviews__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 1.8rem; border-radius: var(--radius); background: var(--card); }
.review p { font: 400 1.15rem/1.5 var(--serif); }
.review footer { font-weight: 600; font-size: .95rem; }
.review footer span { font-weight: 400; color: var(--muted); }

/* reservar */
.reserve { position: relative; padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--wine-2) url("https://images.unsplash.com/photo-1601118964938-228a89955311?w=1800&q=60&auto=format") center / cover no-repeat; color: var(--on-dark); }
.reserve::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58, 14, 22, .94) 30%, rgba(58, 14, 22, .7)); }
.reserve__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.reserve__copy .h2 { margin: .7rem 0 1rem; }
.reserve__copy > p { color: var(--muted-dark); max-width: 30rem; }
.reserve__notes { margin-top: 1.5rem; display: grid; gap: .5rem; font-size: .95rem; color: var(--muted-dark); }
.reserve__notes li::before { content: "·"; margin-right: .6rem; color: var(--on-dark); }
.booker { display: grid; gap: 1.4rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.booker fieldset { border: 0; display: grid; gap: .7rem; }
.booker legend { margin-bottom: .6rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-width: 64px; min-height: 48px; padding: .4rem .9rem; border: 1.5px solid rgba(34, 24, 21, .25); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; line-height: 1.15; transition: border-color .2s, background .2s, color .2s; }
.chip small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.chip:hover:not(:disabled) { border-color: var(--wine); }
.chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: var(--on-dark); }
.chip[aria-pressed="true"] small { color: var(--muted-dark); }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.chip.is-off { text-decoration: line-through; }
.booker__hint { font-size: .88rem; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 1rem; }
.stepper__btn { width: 48px; height: 48px; border: 1.5px solid rgba(34, 24, 21, .25); border-radius: 50%; background: #fff; font-size: 1.4rem; cursor: pointer; }
.stepper__btn:hover { border-color: var(--wine); }
.stepper output { min-width: 2.2ch; text-align: center; font: 400 1.8rem var(--serif); }
.booker__summary { padding: .9rem 1rem; border-radius: 12px; background: var(--cream-2); font-weight: 500; }
.booker__summary.is-error { background: #FBE3E1; color: #8A1C12; }
.booker__submit { background: var(--wine); color: var(--on-dark); width: 100%; }
.booker__submit:hover { background: var(--wine-2); }

/* visite */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(2rem, 6vw, 5rem); }
.visit .h2 { margin-top: .7rem; }
.visit__addr { margin: 1rem 0 1.6rem; color: var(--muted); }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 600; }
.hours dd { color: var(--muted); text-align: right; }
.faq-list { align-self: end; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; list-style: none; font: 400 1.2rem var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--wine); transition: transform .25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 2rem 1.2rem 0; color: var(--muted); }

/* rodapé */
.footer { background: var(--ink); color: var(--muted-dark); font-size: .95rem; }
.footer .tiles { opacity: .9; }
.footer__grid { display: grid; grid-template-columns: 1.1fr .8fr 1.3fr; gap: 2rem; padding: 3rem 0 2.5rem; }
.footer .logo { margin-bottom: 1rem; }
.footer nav { display: grid; gap: .35rem; }
.footer a { color: var(--on-dark); }

/* CTA fixo (mobile) */
.sticky-cta { display: none; }

/* aviso da demo */
.demo-dialog { max-width: min(480px, calc(100% - 32px)); margin: auto; padding: 2.4rem 2.2rem 2.2rem; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.demo-dialog::backdrop { background: rgba(34, 24, 21, .6); }
.demo-dialog h2 { font-size: 1.8rem; line-height: 1.15; margin: .7rem 0 .9rem; }
.demo-dialog p { font-size: 1rem; color: var(--muted); }
.demo-dialog__msg { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--cream-2); color: var(--ink) !important; white-space: pre-line; }
.demo-dialog a { display: inline-block; margin-top: 1.4rem; font-weight: 700; color: var(--wine); }
.demo-dialog__close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; }

/* entradas ao rolar (só com JS e sem "reduzir movimento") */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .hero__copy > *, .hero__media { animation: fadeUp .8s cubic-bezier(.2, .8, .2, 1) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__copy > :nth-child(5) { animation-delay: .24s; }
  .hero__media { animation-delay: .15s; }
  .tiles { animation: tiles 40s linear infinite; }
}
@keyframes tiles { to { background-position: 560px center; } }

/* ===== RESPONSIVO ===== */
@media (max-width: 1000px) {
  .burger { display: block; }
  .nav__links { position: fixed; top: var(--top); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 24px 2rem; background: var(--cream); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a:not(.btn) { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--line); font: 400 1.5rem var(--serif); }
  .nav__links .btn { margin-top: 1.5rem; width: 100%; }
  .reviews__list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero__grid, .panel, .chef__grid, .reserve__grid, .visit, .footer__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .hero__chef { left: 1rem; right: 1rem; }
  .panel__photo { max-width: 460px; }
  .panel__photo img { aspect-ratio: 16 / 10; }
  .chef__photos { max-width: 480px; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .bento__big { grid-row: auto; }
  .reviews__head { flex-direction: column; align-items: flex-start; }
  .rating { text-align: left; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 17px; }
  .container { width: calc(100% - 32px); }
  .demo-bar__long { display: none; } .demo-bar__short { display: inline; }
  .hero__title { font-size: clamp(2.7rem, 12.5vw, 3.5rem); }
  .hero__actions .btn { width: 100%; }
  .hero__media > img { border-radius: 140px 140px var(--radius) var(--radius); }
  .hero__chef { position: relative; left: 0; right: 0; bottom: 0; margin: -3rem 1rem 0; }
  .dishes h3 { font-size: 1.2rem; }
  .chef__facts li, .chef__facts li + li { padding: .9rem .5rem 0 0; }
  .chef__facts li + li { padding-left: .6rem; }
  .chef__facts li { font-size: .82rem; }
  .chip { min-width: 58px; padding: .4rem .7rem; }
  .faq p { padding-right: 0; }
  .sticky-cta { display: inline-flex; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; box-shadow: 0 10px 30px rgba(58, 14, 22, .35); transition: transform .3s, opacity .3s; }
  .sticky-cta:not(.is-on) { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .menu-open .sticky-cta { display: none; }
  .footer__grid { padding-bottom: 6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
