:root {
  --green-950: #11341e;
  --green-800: #174d2a;
  --green-700: #1f6637;
  --green-500: #3e934d;
  --green-100: #e9f3e8;
  --cream: #f7f2e7;
  --paper: #fffdf8;
  --wood: #68412b;
  --yellow: #f2c35d;
  --ink: #1e261f;
  --muted: #68716a;
  --line: #dfe4dc;
  --danger: #a74134;
  --shadow: 0 22px 60px rgba(25, 55, 31, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 12% 4%, rgba(242,195,93,.16), transparent 24rem), var(--cream); font-family: "DM Sans", sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.topbar { position: sticky; z-index: 20; top: 0; display: flex; justify-content: space-between; align-items: center; min-height: 82px; padding: 10px max(20px, calc((100vw - 1160px) / 2)); background: rgba(247,242,231,.92); border-bottom: 1px solid rgba(23,77,42,.1); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 58px; height: 58px; border-radius: 18px; object-fit: cover; box-shadow: 0 5px 16px rgba(27,64,34,.12); }
.brand span { display: grid; }
.brand strong { font-family: Fraunces, serif; color: var(--green-800); font-size: 20px; }
.brand small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 800; }

.primary-button, .outline-button, .text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; padding: 0 20px; border: 0; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.primary-button { color: #fff; background: var(--green-800); box-shadow: 0 10px 22px rgba(23,77,42,.22); }
.primary-button:hover { background: var(--green-700); transform: translateY(-2px); }
.outline-button { color: var(--green-800); background: transparent; border: 1px solid rgba(23,77,42,.3); }
.outline-button:hover { background: var(--green-100); }
.text-button { color: var(--green-800); background: transparent; padding-inline: 8px; text-decoration: underline; text-underline-offset: 5px; }

.hero { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; min-height: 620px; padding-block: 70px; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--green-700); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Fraunces, serif; color: var(--green-950); font-size: clamp(52px, 7vw, 86px); line-height: .94; letter-spacing: -.045em; }
.hero h1 em { color: var(--green-500); font-style: normal; }
.hero-copy > p { max-width: 590px; margin: 28px 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 16px; }
.service-meta { display: flex; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; font-weight: 700; }
.service-meta span:first-child { color: var(--green-700); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.hero-visual::before { content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 8px, rgba(255,255,255,.1) 8px 10px), var(--green-800); box-shadow: var(--shadow); }
.logo-orbit { position: relative; width: 300px; height: 300px; padding: 18px; border-radius: 50%; background: #fff; transform: rotate(3deg); box-shadow: 0 30px 60px rgba(9,45,24,.28); }
.logo-orbit img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.floating-note { position: absolute; right: 0; bottom: 42px; display: grid; padding: 14px 18px; border-radius: 16px; background: var(--yellow); color: var(--green-950); box-shadow: 0 12px 30px rgba(73,51,17,.18); transform: rotate(-4deg); }
.floating-note small { margin-top: 3px; opacity: .74; }

.daily-menu, .builder { padding-block: 72px; }
.daily-menu { border-radius: 34px; padding-inline: 42px; background: var(--green-950); color: #fff; box-shadow: var(--shadow); }
.section-heading, .builder-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading .eyebrow { color: #8fd19b; }
.section-heading h2, .builder-heading h2 { margin: 0; font-family: Fraunces, serif; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.section-heading time { color: #c9dacb; font-weight: 700; }
.menu-layout { display: grid; grid-template-columns: minmax(260px, .75fr) 1.25fr; gap: 38px; }
.menu-photo { position: relative; overflow: hidden; align-self: start; border: 0; border-radius: 20px; padding: 0; background: #fff; box-shadow: 0 15px 40px rgba(0,0,0,.22); }
.menu-photo img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; }
.menu-photo span { position: absolute; right: 12px; bottom: 12px; border-radius: 999px; padding: 8px 12px; background: rgba(17,52,30,.9); color: #fff; font-size: 11px; font-weight: 800; }
.database-menu-card { display: grid; gap: 18px; }
.dynamic-menu-brand { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 14px; background: linear-gradient(120deg, rgba(255,255,255,.11), rgba(255,255,255,.045)); }
.dynamic-menu-brand img { width: 96px; height: 96px; border: 4px solid #fff; border-radius: 18px; object-fit: cover; }
.dynamic-menu-brand div { display: grid; gap: 4px; }
.dynamic-menu-brand span { color: #91d39c; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.dynamic-menu-brand strong { font-family: Fraunces, serif; font-size: 24px; }
.dynamic-menu-brand small { max-width: 540px; color: #c9dacb; line-height: 1.45; }
.dynamic-menu-brand button { min-height: 42px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 0 16px; color: #fff; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; }
.dynamic-menu-brand button:hover { background: rgba(255,255,255,.16); }
.availability { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.availability-group { border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.07); }
.availability-group h3 { margin: 0 0 12px; color: #a5dfa7; font-family: Fraunces, serif; font-size: 22px; }
.availability-group ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.availability-group li { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #f5f8f4; font-size: 14px; }
.availability-group li.unavailable { color: #9aa79c; text-decoration: line-through; }
.availability-mark { font-weight: 900; }
.available .availability-mark { color: #8ee19b; }
.unavailable .availability-mark { color: #e58c7e; }
.loading-card { grid-column: 1 / -1; padding: 30px; color: #cfdbd0; text-align: center; }
.menu-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.menu-prices section { border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.07); }
.menu-prices h3 { margin: 0 0 12px; color: #a5dfa7; font-family: Fraunces, serif; font-size: 20px; }
.menu-prices section > div { display: grid; grid-template-columns: 34px auto 1fr; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); padding: 10px 0; }
.menu-prices section > div:first-of-type { border-top: 0; padding-top: 0; }
.menu-prices section > div:last-child { padding-bottom: 0; }
.menu-prices strong { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: var(--green-950); background: var(--yellow); }
.menu-prices span { color: #fff; font-weight: 900; white-space: nowrap; }
.menu-prices small { color: #bacabd; line-height: 1.35; }
.dynamic-menu-note { margin: 0; border-left: 3px solid var(--yellow); padding: 11px 14px; color: #d8e3d9; background: rgba(255,255,255,.045); font-size: 13px; line-height: 1.5; }
.dynamic-menu-note:empty { display: none; }

.builder-heading { align-items: center; }
.builder-heading .eyebrow { margin-bottom: 8px; }
.progress-label { min-width: 210px; color: var(--muted); font-size: 12px; font-weight: 800; text-align: right; }
.progress-label > div { overflow: hidden; height: 6px; margin-top: 8px; border-radius: 999px; background: #dce3d9; }
.progress-label i { display: block; width: 14%; height: 100%; border-radius: inherit; background: var(--green-500); transition: width .3s; }
#orderForm { display: grid; gap: 18px; }
.step-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: rgba(255,253,248,.94); box-shadow: 0 8px 24px rgba(26,54,30,.05); transition: opacity .2s, transform .2s; }
.step-card > header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.step-card > header > div { flex: 1; }
.step-card h3 { margin: 0; font-family: Fraunces, serif; color: var(--green-950); font-size: 26px; }
.step-card header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.step-number { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: var(--green-800); font-weight: 900; }
.counter { border-radius: 999px; padding: 7px 10px; color: var(--green-800); background: var(--green-100); font-size: 12px; }
.step-card.locked { opacity: .52; }
.step-card.locked::after { content: "Complete a etapa anterior para continuar"; display: block; border-radius: 12px; padding: 10px; color: var(--muted); background: #f0f1ec; text-align: center; font-size: 12px; font-weight: 700; }
.step-card.locked .food-grid, .step-card.locked .packaging-grid, .step-card.locked .checkout-layout { display: none; }

.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.size-option, .food-option, .packaging-option { position: relative; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-align: left; transition: border .2s, transform .2s, box-shadow .2s; }
.size-option { min-height: 170px; padding: 18px; }
.size-option:hover, .food-option:not(:disabled):hover, .packaging-option:hover { transform: translateY(-2px); border-color: #95b89c; box-shadow: 0 10px 24px rgba(28,74,39,.1); }
.size-option.selected, .food-option.selected, .packaging-option.selected { border: 2px solid var(--green-700); background: #f2f8ef; box-shadow: 0 10px 24px rgba(28,74,39,.1); }
.size-badge { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 14px; border-radius: 14px; color: #fff; background: var(--green-800); font-family: Fraunces, serif; font-size: 25px; }
.size-option strong, .packaging-option strong { display: block; font-size: 16px; }
.size-option small, .packaging-option small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.35; }
.size-option em { display: block; margin-top: 10px; color: var(--green-700); font-size: 12px; font-style: normal; font-weight: 800; }

.food-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.food-card { position: relative; min-width: 0; }
.food-card .food-option { width: 100%; height: 100%; }
.food-option { overflow: hidden; min-height: 86px; padding: 14px 14px 14px 46px; }
.food-option::before { content: ""; position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; border: 2px solid #aeb8ad; border-radius: 7px; }
.food-option.selected::before { border-color: var(--green-700); background: var(--green-700); box-shadow: inset 0 0 0 4px #fff; }
.food-option strong { display: block; }
.food-option small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.food-option:disabled { cursor: not-allowed; opacity: .48; background: #f1f1ed; }
.food-option:disabled::after { content: "Indisponivel"; display: block; margin-top: 6px; color: var(--danger); font-size: 11px; font-weight: 800; }
.photo-grid .food-option.has-photo { min-height: 190px; padding: 0 0 14px; }
.photo-grid .food-option.has-photo::before { z-index: 2; left: 12px; top: 12px; border-color: #fff; background-color: rgba(255,255,255,.75); }
.photo-grid .food-option.has-photo.selected::before { background-color: var(--green-700); }
.food-option img { width: 100%; height: 118px; margin-bottom: 12px; object-fit: cover; }
.food-option.has-photo strong, .food-option.has-photo small { padding-inline: 14px; }
.photo-button { position: absolute; z-index: 3; right: 8px; top: 8px; border: 0; border-radius: 999px; padding: 7px 9px; color: var(--green-950); background: rgba(255,255,255,.9); font-size: 10px; font-weight: 900; }

.packaging-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.packaging-option { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 18px; }
.package-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; color: var(--green-800); background: var(--green-100); font-size: 28px; }
.packaging-option b { color: var(--green-800); font-size: 18px; }

.checkout-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; }
.form-fields { display: grid; gap: 16px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; color: var(--ink); background: #fff; outline: none; }
input:focus, textarea:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(62,147,77,.12); }
textarea { resize: vertical; }
fieldset { margin: 0; border: 0; padding: 0; }
legend { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.choice-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.payment-row { grid-template-columns: repeat(3, 1fr); }
.choice-row label { display: block; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; }
.choice-row input:checked + span { border: 2px solid var(--green-700); color: var(--green-800); background: var(--green-100); font-weight: 800; }
.quantity-control { display: inline-grid; grid-template-columns: 46px 70px 46px; width: fit-content; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.quantity-control button { border: 0; color: var(--green-800); background: var(--green-100); font-size: 24px; }
.quantity-control strong { display: grid; place-items: center; color: var(--ink); font-size: 18px; }
.order-summary { position: sticky; top: 100px; align-self: start; border-radius: 20px; padding: 22px; color: #fff; background: var(--green-950); }
.order-summary .eyebrow { color: #8fd19b; }
.order-summary p { color: #c6d3c7; font-size: 13px; }
.order-summary ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.order-summary li strong { color: #a7dfa9; }
.summary-total { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
.summary-total strong { font-family: Fraunces, serif; color: var(--yellow); font-size: 26px; }
.submit-button { width: 100%; color: var(--green-950); background: var(--yellow); box-shadow: none; }
.submit-button:hover { background: #ffd87d; }
.order-summary > small { display: block; margin-top: 12px; color: #9daf9f; text-align: center; }

footer { margin-top: 40px; padding: 36px 0; color: #d8e2d9; background: var(--green-950); }
footer .shell { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
footer img { width: 70px; height: 70px; border-radius: 18px; object-fit: cover; }
footer p { margin: 0; line-height: 1.6; }

dialog { width: min(520px, calc(100% - 28px)); border: 0; border-radius: 26px; padding: 28px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(10,36,18,.34); }
dialog::backdrop { background: rgba(10,32,17,.64); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 5; right: 14px; top: 14px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; color: var(--green-950); background: rgba(255,255,255,.9); font-size: 24px; }
.welcome-dialog { text-align: center; }
.welcome-dialog > img { width: 130px; height: 130px; margin: 0 auto 18px; border-radius: 30px; object-fit: cover; }
dialog h2 { margin: 4px 0 10px; font-family: Fraunces, serif; color: var(--green-950); font-size: 32px; line-height: 1.1; }
dialog p { color: var(--muted); line-height: 1.5; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 16px; }
.welcome-dialog > small { color: var(--muted); }
.photo-dialog { width: min(820px, calc(100% - 28px)); max-height: 90vh; overflow: auto; }
.photo-dialog > img { max-height: 70vh; margin: auto; border-radius: 16px; object-fit: contain; }
.photo-dialog > div { margin-top: 16px; text-align: center; }
.tracking-dialog form { display: grid; gap: 12px; margin: 22px 0; }
#trackingResult { display: grid; gap: 10px; }
.tracking-order { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
.tracking-order header { display: flex; justify-content: space-between; gap: 10px; }
.tracking-order header strong { color: var(--green-800); }
.status-pill { border-radius: 999px; padding: 5px 8px; color: var(--green-800); background: var(--green-100); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.message-dialog { text-align: center; }
.dialog-icon { display: grid; width: 72px; height: 72px; margin: 0 auto 16px; place-items: center; border-radius: 50%; color: #fff; background: var(--green-500); font-size: 34px; }
.message-dialog .primary-button { width: 100%; margin-top: 12px; }
.payment-dialog { width: min(580px, calc(100% - 28px)); text-align: center; }
.payment-dialog > p { margin-bottom: 20px; }
.payment-dialog > div[hidden] { display: none; }
#pixPayment, #cardPayment { display: grid; gap: 12px; }
.pix-qr { display: grid; min-height: 250px; place-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 14px; background: #fff; }
.pix-qr[hidden] { display: none; }
.pix-qr img { width: min(270px, 100%); aspect-ratio: 1; object-fit: contain; }
#pixCode { resize: none; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
#copyPixButton, #pixTicketLink, #cardPaymentLink { width: 100%; }
.payment-card-icon { display: grid; width: 86px; height: 68px; margin: 4px auto; place-items: center; border-radius: 16px; color: var(--green-950); background: var(--yellow); font-size: 38px; }
#cardPayment p { margin: 4px 0 10px; color: var(--muted); }
#paymentOrderCode { display: block; margin-top: 18px; color: var(--muted); font-weight: 800; }

.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 54px; }
  .hero-visual { min-height: 410px; }
  .menu-layout, .checkout-layout { grid-template-columns: 1fr; }
  .menu-photo { width: min(420px, 100%); margin-inline: auto; }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .order-summary { position: static; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1160px); }
  .topbar { min-height: 68px; padding-inline: 12px; }
  .brand img { width: 46px; height: 46px; border-radius: 14px; }
  .brand strong { font-size: 17px; }
  .brand small { display: none; }
  .topbar .outline-button { min-height: 40px; padding: 0 13px; font-size: 12px; }
  .hero { padding-block: 42px; }
  .hero h1 { font-size: 49px; }
  .hero-copy > p { margin: 20px 0; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .service-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .hero-visual { min-height: 320px; }
  .hero-visual::before { width: 280px; height: 280px; }
  .logo-orbit { width: 220px; height: 220px; }
  .floating-note { right: 8px; bottom: 12px; }
  .daily-menu { width: 100%; border-radius: 28px; padding: 44px 18px; }
  .section-heading, .builder-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2, .builder-heading h2 { font-size: 38px; }
  .progress-label { width: 100%; text-align: left; }
  .availability { grid-template-columns: 1fr; }
  .dynamic-menu-brand { grid-template-columns: 72px 1fr; align-items: start; }
  .dynamic-menu-brand img { width: 72px; height: 72px; }
  .dynamic-menu-brand strong { font-size: 20px; }
  .dynamic-menu-brand button { grid-column: 1 / -1; width: 100%; }
  .menu-prices { grid-template-columns: 1fr; }
  .menu-prices section > div { grid-template-columns: 34px auto; }
  .menu-prices small { grid-column: 1 / -1; }
  .daily-menu, .builder { padding-block: 48px; }
  .step-card { border-radius: 20px; padding: 18px; }
  .step-card > header { align-items: flex-start; }
  .step-card h3 { font-size: 22px; }
  .step-number { flex-basis: 36px; width: 36px; height: 36px; }
  .size-grid, .packaging-grid, .two-columns { grid-template-columns: 1fr; }
  .size-option { min-height: 0; }
  .food-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .food-option { min-height: 94px; padding-right: 9px; font-size: 13px; }
  .photo-grid .food-option.has-photo { min-height: 178px; }
  .choice-row, .payment-row { grid-template-columns: 1fr; }
  footer .shell { grid-template-columns: auto 1fr; }
  footer .shell p:last-child { grid-column: 1 / -1; }
  dialog { padding: 22px; }
  .dialog-actions { grid-template-columns: 1fr; }
}
