:root {
  --cream: #fbf8f4;
  --paper: #ffffff;
  --ink: #2e2a27;
  --muted: #7a716a;
  --line: #ebe3d9;
  --rose: #b23a63;
  --rose-soft: #f7e6ea;
  --sage: #5f7a5b;
  --gold: #c79a55;
  --wood1: #b98a5e;
  --wood2: #a37450;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(46, 42, 39, .08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: clip; font-variant-numeric: lining-nums; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h1 em { font-style: italic; color: var(--rose); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.6rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 500; color: var(--sage); margin: 0 0 .7rem; }
.sub, .lead { color: var(--muted); max-width: 46ch; }
.lead { font-size: 1.1rem; margin: 1.2rem 0 1.8rem; }

.ribbon { background: var(--ink); color: #f3ece4; text-align: center; font-size: .78rem; letter-spacing: .04em; padding: .45rem 1rem; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; padding: .85rem clamp(1rem, 4vw, 3rem); background: rgba(251, 248, 244, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; letter-spacing: .01em; }
.logo-tag { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .top .btn-small { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; cursor: pointer; text-decoration: none; background: var(--ink); color: #fff; font: 500 .95rem var(--sans); letter-spacing: .02em; padding: .95rem 1.5rem; border-radius: 999px; transition: transform .15s, background .2s, opacity .2s; }
.btn:hover { transform: translateY(-1px); background: #000; }
.btn:focus-visible, .chip:focus-visible, .add:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: .6rem 1.1rem; font-size: .88rem; }
.btn-wa { width: 100%; background: var(--sage); }
.btn-wa:hover { background: #4d664a; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem) 3rem; max-width: 1240px; margin: 0 auto; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-img { position: relative; }
.hero-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 220px 220px var(--radius) var(--radius); box-shadow: var(--shadow); }
.hero-badge { position: absolute; left: -1.2rem; bottom: 2rem; background: var(--paper); border-radius: 14px; padding: .8rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.1; }
.hero-badge strong { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--rose); }
.hero-badge span { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-img { max-width: 440px; margin: 0 auto; } .hero-badge { left: .5rem; } }

/* como funciona */
.how { background: var(--rose-soft); padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem); }
.how-head { text-align: center; max-width: 1100px; margin: 0 auto 2.5rem; }
.how-head .eyebrow { color: var(--rose); }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; position: relative; }
.step { position: relative; background: var(--paper); border-radius: 22px; padding: 2rem 1.8rem 2.2rem; box-shadow: 0 14px 40px rgba(178, 58, 99, .10); transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(178, 58, 99, .16); }
.step-n { display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); font-weight: 600; margin-bottom: 1.1rem; }
.step-ico { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 16px; background: var(--rose); margin-bottom: 1.2rem; }
.step-ico svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.65rem; margin-bottom: .5rem; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -1.15rem; width: .8rem; height: .8rem; border-top: 2px solid var(--rose); border-right: 2px solid var(--rose); transform: translateY(-50%) rotate(45deg); opacity: .5; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .step { padding: 1.5rem 1.4rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
  .step-n { grid-column: 2; margin-bottom: .2rem; }
  .step-ico { grid-row: 1 / span 3; grid-column: 1; margin: 0; width: 3rem; height: 3rem; }
  .step h3, .step p { grid-column: 2; }
  .step h3 { font-size: 1.4rem; }
  .step:not(:last-child)::after { display: none; }
}

/* sections */
.section { padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem); max-width: 1240px; margin: 0 auto; }
.section-head { margin-bottom: 2rem; }
.section-head .sub { margin-top: .8rem; }

/* gallery */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: .8rem; }
.g-item { position: relative; display: block; overflow: hidden; border-radius: 14px; text-decoration: none; color: inherit; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 20, 20, .55), transparent 55%); opacity: 0; transition: opacity .3s; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.g-cap { position: absolute; left: .8rem; bottom: .8rem; z-index: 1; background: rgba(255,255,255,.92); font-size: .78rem; letter-spacing: .04em; padding: .3rem .7rem; border-radius: 999px; }
.g-cta { position: absolute; right: .9rem; bottom: .85rem; z-index: 1; color: #fff; font-size: .85rem; font-weight: 500; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.g-item:hover .g-cta, .g-item:focus-visible .g-cta { opacity: 1; transform: none; }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-hint { text-align: center; color: var(--muted); font-size: .9rem; margin: 1.2rem 0 0; }
@media (hover: none) { .g-cta { opacity: 1; transform: none; font-size: .78rem; } .g-item::after { opacity: .8; } }
@media (max-width: 760px) { .galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; } .g-wide { grid-row: span 1; } .g-item:last-child { grid-column: span 2; } .g-cta { display: none; } }

/* menu */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--muted); padding: .5rem 1rem; border-radius: 999px; font: 500 .9rem var(--sans); cursor: pointer; transition: all .2s; }
.chip[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--rose-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { font-size: 1.35rem; }
.serve { font-size: .82rem; color: var(--sage); font-weight: 500; }
.card details { font-size: .88rem; color: var(--muted); }
.card summary { cursor: pointer; color: var(--ink); font-size: .85rem; }
.card details ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.var select { width: 100%; font: 400 .9rem var(--sans); color: var(--ink); padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); cursor: pointer; }
.var select:focus { outline: 2px solid var(--gold); }
.card-img { position: relative; }
.tag { position: absolute; top: .8rem; left: .8rem; background: #a3262a; color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.card.destaque { border-color: #e7c9b5; }
.price small { font-family: var(--sans); font-size: .72rem; font-weight: 400; color: var(--muted); display: block; line-height: 1; }
.floatbar.off { display: none; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; }
.price { font-family: var(--sans); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.add { border: 0; background: var(--rose); color: #fff; border-radius: 999px; padding: .6rem 1rem; font: 500 .88rem var(--sans); cursor: pointer; transition: background .2s, transform .15s; }
.add:hover { background: #962d52; }
.add.added { background: var(--sage); }
.qty { display: inline-flex; align-items: center; gap: .2rem; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 2rem; height: 2rem; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); border-radius: 50%; }
.qty button:hover { background: var(--rose-soft); }
.qty span { min-width: 1.4rem; text-align: center; font-weight: 500; }

/* mesa */
.mesa-section { max-width: 1240px; }
.mesa-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .mesa-wrap { grid-template-columns: 1fr; } }
.table { position: relative; aspect-ratio: 16/11; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.18), transparent 60%),
    repeating-linear-gradient(92deg, rgba(0,0,0,.05) 0 2px, transparent 2px 38px),
    repeating-linear-gradient(90deg, var(--wood1) 0 140px, var(--wood2) 140px 142px),
    var(--wood1);
  box-shadow: inset 0 0 60px rgba(60, 35, 15, .35), var(--shadow); }
@media (max-width: 600px) { .table { aspect-ratio: 1 / 1; } }
.table::after { content: ""; position: absolute; inset: 6% 5%; border-radius: 20px; border: 2px dashed rgba(255,255,255,.18); pointer-events: none; }
.table-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; gap: .8rem; z-index: 2; }
.table-empty p { font-family: var(--serif); font-size: 1.7rem; font-style: italic; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.table-empty .btn { background: rgba(255,255,255,.95); color: var(--ink); }
.plate { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; padding: 4px; background: #fff; box-shadow: 0 14px 26px rgba(40, 22, 8, .45), 0 0 0 6px rgba(255,255,255,.25); animation: drop .55s cubic-bezier(.2, 1.3, .4, 1) both; transition: left .5s, top .5s, width .5s, height .5s; }
.plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.plate .count { position: absolute; top: -.3rem; right: -.3rem; min-width: 1.8rem; height: 1.8rem; padding: 0 .4rem; border-radius: 999px; background: var(--rose); color: #fff; font-size: .85rem; font-weight: 600; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.plate.pop { animation: pop .35s ease; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -120%) scale(.6) rotate(-12deg); } to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); } }
@keyframes pop { 50% { transform: translate(-50%, -50%) scale(1.08); } }

.summary, .estimate { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.summary h3 { margin-bottom: .8rem; }
.lines { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .6rem; max-height: 260px; overflow: auto; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; align-items: center; font-size: .92rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.lines li .lp { font-weight: 500; }
.lines li .qty { grid-column: 1; justify-self: start; }
.lines .empty { color: var(--muted); font-style: italic; border: 0; }
.totals { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); }
.totals strong { color: var(--ink); font-weight: 500; }
.totals .total strong { font-family: var(--sans); font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.field { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 .9rem; border: 0; padding: 0; }
.field > span, .field legend { font-size: .82rem; color: var(--muted); font-weight: 500; padding: 0; }
.field input, .field select { font: 400 1rem var(--sans); color: var(--ink); padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--gold); border-color: transparent; }
.fine { font-size: .78rem; color: var(--muted); margin: .7rem 0 0; text-align: center; }

/* eventos */
.eventos { background: none; }
.evento-banner { width: 100%; height: clamp(220px, 32vw, 380px); object-fit: cover; object-position: center; border-radius: var(--radius); margin-bottom: 1.5rem; }
.evento-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .evento-wrap { grid-template-columns: 1fr; } }
.evento-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .evento-form { grid-template-columns: 1fr; } }
.toggle { display: flex; flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.toggle legend { width: 100%; margin-bottom: .35rem; }
.toggle label { flex: 1; }
.toggle input { position: absolute; opacity: 0; }
.toggle label span { display: block; text-align: center; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--cream); font-size: .92rem; transition: all .2s; }
.toggle input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.toggle input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.est-total { font-family: var(--sans); font-size: 2.6rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; line-height: 1; margin-bottom: 1rem; }
.est-lines { list-style: none; margin: 0 0 1rem; padding: 0; font-size: .92rem; }
.est-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.est-lines li b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.est-warn { background: var(--rose-soft); color: #7d2244; border-radius: 10px; padding: .7rem .9rem; font-size: .88rem; }

/* presentes + sobre */
.presente-card { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--rose-soft); border-radius: 28px; overflow: hidden; }
.presente-text { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; justify-content: center; }
.presente-text p { color: #5c4a4f; margin: 0; max-width: 40ch; }
.presente-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
@media (max-width: 760px) { .presente-card { grid-template-columns: 1fr; } }
.sobre { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.sobre img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.sobre p { color: var(--muted); max-width: 48ch; }
@media (max-width: 760px) { .sobre { grid-template-columns: 1fr; } }

/* footer */
.foot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 3.5rem clamp(1rem, 5vw, 4rem) 6.5rem; border-top: 1px solid var(--line); background: var(--paper); }
.foot .logo-name { font-size: 2.2rem; }
.foot p { margin: .6rem 0 0; color: var(--muted); font-size: .95rem; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.foot-links a { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; padding: .7rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--ink); transition: background .2s, border-color .2s, color .2s; }
.foot-links a:hover { background: var(--cream); border-color: #d9cbbd; transform: translateY(-1px); }
.foot-links svg.brand { width: 1.6rem; height: 1.6rem; flex: none; }
.foot-links a { transition: background .2s, border-color .2s, transform .2s; }
.foot .foot-copy { font-size: .8rem; margin-top: 1.6rem; }
.btn-wa-top .ico { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* floating bar (mobile) */
.floatbar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 1rem; background: var(--ink); color: #fff; text-decoration: none; padding: .8rem 1.3rem; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: .92rem; white-space: nowrap; animation: rise .35s ease; }
.floatbar strong { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.floatgo { color: var(--gold); }
@keyframes rise { from { transform: translate(-50%, 120%); } }

.toast { position: fixed; top: 5rem; left: 50%; transform: translate(-50%, -20px); background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); padding: .6rem 1.1rem; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .3s; z-index: 40; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
