@font-face { font-family: Pica Titular; src: url(assets/titular.ttf) format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: Pica Text; src: url(assets/text.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #171912;
  --olive: #7f8c28;
  --olive-dark: #4a541b;
  --gold: #d3b124;
  --light-gold: #f0d34d;
  --cream: #f4f0e7;
  --paper: #fffdf7;
  --line: #dbd5c6;
  --muted: #58594c;
  --head: "Pica Titular", Arial, sans-serif;
  --body: "Pica Text", Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 600 1rem/1.53 var(--body); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #536724; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: .5rem; transform: translateY(-160%); z-index: 3; background: var(--paper); padding: .5rem 1rem; }
.skip:focus { transform: none; }

.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner, .workspace, footer, .hero { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.top-inner { min-height: 84px; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; flex: 0 0 auto; align-items: center; }
.brand img { display: block; width: 125px; height: auto; }
.top-label { margin-left: auto; color: var(--muted); font-size: .9rem; }
.help { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; border: 1px solid var(--olive-dark); color: var(--olive-dark); padding: .52rem 1rem; border-radius: 100px; text-decoration: none; }

.hero { display: grid; grid-template-columns: 1fr 1.08fr; overflow: hidden; min-height: 285px; margin-block: 34px 26px; border-radius: 22px; background: var(--ink); color: var(--paper); }
.hero-copy { position: relative; z-index: 1; padding: 28px clamp(22px, 4vw, 54px); align-self: center; }
.eyebrow { margin: 0 0 .65rem; color: var(--light-gold); font-size: .8rem; letter-spacing: .12em; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -.037em; line-height: 1.06; }
h1 { margin: 0; font-size: clamp(2.5rem, 5.2vw, 4.65rem); }
h1 em { color: var(--light-gold); font-style: normal; }
.hero-copy > :last-child { margin-bottom: 0; color: var(--cream); }
.hero-photo { position: relative; min-height: 100%; isolation: isolate; }
.food { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 60%; }
.hero-photo::after { content: ""; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, transparent 36%), linear-gradient(0deg, #17191265, transparent 72%); }
.pica { position: absolute; z-index: 1; inset: auto 7% 7% auto; width: clamp(100px, 14vw, 175px); height: auto; filter: drop-shadow(0 10px 24px #14110980); transform: rotate(7deg); }

.step-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.step-nav button { display: flex; align-items: center; gap: .65rem; text-align: left; min-height: 53px; padding: .55rem .9rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 11px; }
.step-nav button[aria-current] { color: var(--paper); background: var(--olive-dark); border-color: var(--olive-dark); }
.step-nav button:disabled { color: var(--muted); cursor: default; }
.step-nav button > span:first-child { flex: 0 0 1.7rem; display: grid; place-items: center; border-radius: 50%; width: 1.7rem; height: 1.7rem; background: var(--cream); color: var(--ink); font-size: .85rem; }
.step-nav [aria-current] > span:first-child { background: var(--light-gold); }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, .47fr); gap: 22px; align-items: start; }
.sheet, .summary { border: 1px solid var(--line); border-radius: 18px; }
.sheet { background: var(--paper); padding: clamp(20px, 3.2vw, 36px); }
.step h2 { margin: 0; font-size: clamp(1.95rem, 3.5vw, 3rem); }
.step h2:focus { outline: none; }
.intro { margin: .55rem 0 1.45rem; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: block; font-size: .93rem; }
input, select, textarea { min-width: 0; width: 100%; border: 1px solid #b9b6a7; border-radius: 9px; background: white; color: var(--ink); padding: .64rem .7rem; min-height: 45px; }
label > :is(input, select, textarea) { display: block; margin-top: .32rem; }
select { appearance: none; padding-right: 2rem; background: white no-repeat right .95rem center / .65rem .65rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%234a541b' stroke-width='1.8'/%3E%3C/svg%3E"); }
textarea { resize: vertical; }
.optional, .counts label span + span { font-size: .8rem; color: var(--muted); }
.optional { margin-left: .3rem; }
fieldset { min-width: 0; margin: 1.4rem 0 0; padding: 0; border: 0; }
legend { font: 800 1.4rem/1.2 var(--head); margin: 0 0 .7rem; padding: 0; }
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.counts label span + span { display: block; }
.field-error { margin: .7rem 0 0; color: #962719; }

.actions { display: flex; justify-content: flex-end; gap: .65rem; border-top: 1px solid var(--line); padding-top: 1.15rem; margin-top: 1.45rem; }
:is(.actions, .budget-actions) button { min-height: 46px; padding: .57rem 1.25rem; border-radius: 50px; border: 1px solid transparent; }
:is(.actions, .budget-actions) .primary { color: var(--ink); background: var(--light-gold); border-color: #b39320; }
:is(.actions, .budget-actions) .primary:hover:not(:disabled) { background: #e6c52d; }
.actions .back { margin-right: auto; }
:is(.actions, .budget-actions) .back { color: var(--olive-dark); background: transparent; border-color: #a9aa91; }
:is(.actions, .budget-actions) .primary:disabled { color: #626052; background: #ebe8de; border-color: #d4d0c3; cursor: default; }

.summary { position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow: auto; padding: 23px; background: #e8ebd4; border-color: #c5cb9a; }
.summary h2 { margin: 0 0 .38rem; font-size: 1.65rem; }
#summary-event { margin: 0; color: #40482a; }
.total-row { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; padding-top: .85rem; margin-top: .95rem; border-top: 1px solid #b9c287; }
.total-row strong { font: 800 1.45rem/1.1 var(--head); white-space: nowrap; }
.summary-note { margin: .55rem 0 0; color: #40482a; font-size: .85rem; }
.summary-items:not(:empty) { margin-top: 1rem; }
.line-item { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .35rem 0; font-size: .92rem; }
.line-item strong { white-space: nowrap; }

.catalog-group { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 .6rem; overflow: clip; }
.catalog-group > summary { min-height: 50px; display: flex; align-items: center; gap: .7rem; padding: .62rem 1rem; background: #f5f2e7; color: var(--ink); font: 800 1.1rem/1.2 var(--head); list-style: none; }
.catalog-group > summary::-webkit-details-marker { display: none; }
.catalog-group > summary::after { content: ""; width: .56rem; height: .56rem; margin-left: auto; border-right: 2px solid var(--olive-dark); border-bottom: 2px solid var(--olive-dark); transform: rotate(45deg); }
.catalog-group[open] > summary::after { transform: rotate(225deg); }
.catalog-group > summary:focus-visible { outline-offset: -4px; }
.catalog-group .catalog-body { padding: .25rem 1rem; }
.catalog-body > p { margin: .6rem 0; color: var(--muted); font-size: .92rem; }
.catalog-row { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.catalog-row:last-child { border-bottom: 0; }
.item-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .75rem; cursor: pointer; }
.item-choice input { width: 19px; min-height: 19px; height: 19px; accent-color: var(--olive-dark); margin: .13rem 0 0; }
.item-choice small { display: block; font-size: .81rem; color: var(--muted); margin-top: .15rem; }
.item-price { text-align: right; white-space: nowrap; }
.quantity-field { width: 9rem; margin: .65rem 0 0 1.95rem; }
.notes { margin-top: 1.05rem; }
.review-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; margin: 0 0 1.35rem; padding: .8rem 1rem; border-radius: 9px; background: var(--cream); }
.review-data dt { color: var(--muted); font-size: .83rem; }
.review-data dd { margin: 0; overflow-wrap: anywhere; }
#request-form { margin-top: 1.35rem; border-top: 1px solid var(--line); padding-top: .25rem; }
.step h3 { margin: 1rem 0 .35rem; font-size: 1.3rem; }
.contact-copy, .privacy, .delivery-status { color: var(--muted); }
.privacy, .delivery-status { font-size: .88rem; }
.delivery-status { padding: .6rem .8rem; border: 1px solid #d5ca99; border-radius: 8px; background: #f7f0d7; }
.delivery-status:empty { display: none; }
footer { margin-block: 34px 22px; display: flex; justify-content: space-between; gap: .4rem 1rem; padding-top: .85rem; border-top: 1px solid var(--line); flex-wrap: wrap; font-size: .9rem; }

@media (max-width: 810px) {
  .top-inner, .workspace, footer, .hero { width: calc(100% - 34px); }
  .columns { grid-template-columns: 1fr; gap: 13px; }
  .summary { position: static; max-height: none; overflow: visible; }
  .hero { margin-top: 19px; }
}
@media (max-width: 520px) {
  .top-inner { min-height: 66px; justify-content: space-between; }
  .brand img { width: 100px; }
  .top-label { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 245px; position: relative; }
  .hero-copy { max-width: 80%; padding: 20px; }
  .hero-photo { position: absolute; inset: 0; }
  .hero-photo::after { background: linear-gradient(90deg, #171912 8%, #171912c9 56%, #17191218); }
  .pica { inset: auto 2% 2% auto; width: 83px; }
  .step-nav button { min-height: 56px; padding: .35rem; gap: .3rem; font-size: .8rem; line-height: 1.12; }
  .step-nav button > span:first-child { flex-basis: 1.32rem; height: 1.32rem; font-size: .75rem; }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields { grid-template-columns: 1fr; }
  .item-choice { grid-template-columns: auto 1fr; gap: .4rem .55rem; }
  .item-price { grid-column: 2; text-align: left; }
  .actions button { padding-inline: .82rem; }
}
.recovery { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.recovery > summary { color: var(--olive-dark); }
.recovery .fields { margin: .75rem 0; }
.recovery button { color: var(--olive-dark); background: transparent; border: 1px solid #a9aa91; border-radius: 30px; padding: .45rem .85rem; }
.recovery p { margin: .65rem 0 0; }
.recovery p:empty { display: none; }
@media (max-width: 520px) { .submit-actions { flex-wrap: wrap; } }

.language-bar { display: flex; justify-content: flex-end; gap: .36rem; width: min(1120px, calc(100% - 64px)); margin-inline: auto; padding: .5rem 0 0; }
.language-bar button { display: inline-flex; align-items: center; gap: .32rem; padding: .3rem .46rem; min-height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: .79rem; }
.language-bar button[aria-pressed="true"] { border-color: var(--olive-dark); background: #e8ebd4; color: var(--olive-dark); }
.flag { display: inline-grid; place-items: center; min-width: 1.1rem; height: .75rem; font-size: 1rem; line-height: 1; }
.flag-ca { border-radius: 2px; background: repeating-linear-gradient(to bottom, #f8d349 0 11.12%, #c82926 11.12% 22.22%); }
.help svg { flex: 0 0 auto; color: #168043; }
.summary-status { display: inline-block; margin: 0 0 .65rem; padding: .28rem .52rem; border-radius: 6px; background: #dce2b9; color: #39441c; font-size: .8rem; }
.summary-guests { margin: .3rem 0 0; color: #40482a; font-size: .9rem; }
.summary-items { max-height: 9.25rem; overflow: auto; }
.promotion-form { margin-top: .95rem; }
.promotion-field { display: flex; gap: .45rem; margin-top: .3rem; }
.promotion-field input { flex: 1; width: 0; }
.promotion-field button { border: 1px solid #a9aa91; border-radius: 9px; color: var(--olive-dark); background: var(--paper); padding: .35rem .7rem; }
#promotion-status:empty { display: none; }
.budget-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .52rem; }
.summary-actions { margin-top: .9rem; }
.budget-actions button { padding-inline: .5rem; }
.budget-actions .back:disabled, .summary-save:disabled { color: #57594a; cursor: default; opacity: .8; }
.summary-save { width: 100%; margin-top: .55rem; padding: .5rem; border-radius: 8px; border: 1px solid #b0b78c; background: transparent; color: var(--olive-dark); font-size: .87rem; }
.summary-conditions { margin-top: .8rem; padding-top: .75rem; border-top: 1px solid #b9c287; color: #40482a; font-size: .9rem; }
.summary-conditions p { margin: .4rem 0 0; }
.summary-help { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .8rem; padding-top: .7rem; color: #40482a; font-size: .9rem; }
.summary-help strong { flex-basis: 100%; }
.mobile-budget { display: none; }

@media (max-width: 810px) {
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .language-bar { width: calc(100% - 34px); }
  .summary-actions { display: none; }
  .summary-items { max-height: none; }
  .mobile-budget { position: fixed; z-index: 2; inset: auto 0 0; display: grid; grid-template-columns: minmax(5.1rem, 1fr) minmax(0, 1fr) minmax(5.75rem, 1fr); align-items: center; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 15px #26291012; padding: .55rem max(17px, env(safe-area-inset-right)) calc(.55rem + env(safe-area-inset-bottom)) max(17px, env(safe-area-inset-left)); }
  .mobile-total { min-width: 0; display: grid; justify-items: center; font-size: .78rem; line-height: 1.2; color: var(--olive-dark); text-decoration: none; }
  .mobile-total span { text-decoration: underline; }
  .mobile-total strong { white-space: nowrap; font-size: .92rem; color: var(--ink); }
}

.municipality-field { min-width: 0; }
.municipality-picker { position: relative; margin-top: .32rem; }
.municipality-results {
  position: absolute;
  z-index: 3;
  inset: calc(100% + 4px) 0 auto;
  max-height: 250px;
  overflow: auto;
  margin: 0;
  padding: .2rem;
  list-style: none;
  border: 1px solid #aeb77a;
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 7px 22px #26291024;
}
.municipality-results [role="option"] {
  display: grid;
  padding: .48rem .6rem;
  border-radius: 6px;
  color: var(--ink);
  line-height: 1.3;
  cursor: pointer;
}
.municipality-results [role="option"]:hover,
.municipality-results [aria-selected="true"] { background: #e8ebd4; }
.municipality-results span { margin-top: .18rem; font-size: .8rem; color: var(--muted); }
.transport-note { margin: .28rem 0 0; color: var(--muted); font-size: .83rem; }
#transport-status { color: var(--olive-dark); }
.transport-credit { margin: .28rem 0 0; color: var(--muted); font-size: .77rem; }
.summary-transport { margin-top: .85rem; }
