/* Catering menu flip-book (/catering/menu). Pages are designed at 480 x 700 px and scaled. */

.bro-main { background: var(--cream); }
.bro-intro { text-align: center; padding: clamp(28px, 5vw, 48px) 0 8px; }
.bro-intro h1 { margin: 6px 0 0; }
.bro-hint { margin: 6px 0 0; color: var(--ink-soft); font-size: .95rem; }

/* the "table" the book sits on */
.bro-stage {
  position: relative; display: flex; justify-content: center; align-items: center;
  padding: 26px 16px 22px; min-height: 420px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .06), transparent 65%),
    linear-gradient(160deg, #2c4216 0%, #223012 55%, #1a250d 100%);
}
.bro-fit { position: relative; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .45)); }
.bro-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #f4efe2; font-weight: 700; }
.bro-loading a { color: #f0c46a; }

.bro-book { position: absolute; top: 0; left: 0; transform-origin: 0 0; perspective: 2600px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bro-leaf {
  position: absolute; top: 0; width: var(--pw, 480px); height: var(--ph, 700px);
  transform-origin: 0 50%; transform-style: preserve-3d;
  transition: transform var(--bro-turn, 900ms) cubic-bezier(.645, .045, .355, 1);
}
.bro-book.is-spread .bro-leaf { left: var(--pw, 480px); }
.bro-book.is-single .bro-leaf { left: 0; }
.bro-leaf.is-flipped { transform: rotateY(-180deg); }
.bro-leaf.is-gone { visibility: hidden; }
.bro-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #fbf7ef; }
.bro-back { transform: rotateY(180deg); }

/* spine shading and the shadow that sweeps across a turning page */
.bro-face::before { content: ""; position: absolute; top: 0; bottom: 0; width: 46px; z-index: 5; pointer-events: none; }
.bro-front::before { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0)); }
.bro-back::before { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0)); }
.bro-book.is-single .bro-front::before { width: 14px; }
.bro-face::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .04) 60%, rgba(255, 255, 255, .08)); }
.bro-leaf.is-turning .bro-face::after { animation: broShade var(--bro-turn, 900ms) ease-in-out; }
@keyframes broShade { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

/* folded corner on the page you can turn next */
.bro-leaf.is-top .bro-front .bp::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; z-index: 7;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 50%, #e8dfcc 50%, #fff 80%);
  box-shadow: -3px -3px 6px rgba(0, 0, 0, .12); border-top-left-radius: 4px;
  transition: width .25s ease, height .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .bro-book.is-spread .bro-leaf.is-top:not(.is-turning):hover { transform: rotateY(-7deg); }
  .bro-leaf.is-top:hover .bro-front .bp::after { width: 48px; height: 48px; }
}

/* ---------- pages ---------- */
.bp {
  position: relative; width: var(--pw, 480px); height: var(--ph, 700px); box-sizing: border-box; overflow: hidden;
  display: flex; flex-direction: column; color: var(--ink);
  background: #fbf7ef url('/img/site/pattern-bg.webp');
  font-family: var(--font-body);
}
.bp-blank { background: #f6f0e3; }
.bp h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1; margin: 0; color: var(--green-900); letter-spacing: .01em; }
.bp-kicker { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.bp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 10px 34px 16px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.bp-num { font-family: var(--font-display); font-size: 13px; letter-spacing: 0; color: var(--green-700); }

/* reveal: items rise in when their page comes into view */
.bp-item, .bpw-steps li { opacity: 0; transform: translateY(10px); }
.bp.is-shown .bp-item, .bp.is-shown .bpw-steps li { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--n, 0) * 70ms + 180ms); }

/* cover */
.bp-cover { background: var(--green-900); color: #f4efe2; }
.bpc-photo { height: 54%; overflow: hidden; }
.bpc-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.bp-cover.is-shown .bpc-photo img { animation: broKen 9s ease-out both; }
@keyframes broKen { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.bpc-panel { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 36px 28px; }
.bpc-badge { position: absolute; top: -52px; left: 50%; translate: -50% 0; width: 230px; padding: 14px 16px 10px; background: #fbf7ef; border-radius: 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.bpc-badge img { display: block; width: 100%; height: auto; }
.bpc-kicker { margin: 18px 0 0; color: #f0c46a; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.bpc-title { color: #fff !important; font-size: 64px !important; margin-top: 8px !important; }
.bpc-sub { margin: 12px 0 0; font-size: 13.5px; color: #e8dfc8; }
.bp-cover::before { content: ""; position: absolute; inset: 12px; border: 1.5px solid rgba(240, 196, 106, .55); border-radius: 6px; pointer-events: none; z-index: 2; }
.bpc-open { position: absolute; right: 26px; bottom: 22px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #f0c46a; animation: broNudge 1.8s ease-in-out infinite; }
@keyframes broNudge { 0%, 100% { translate: 0 0; } 50% { translate: 5px 0; } }

/* welcome */
.bp-welcome { padding: 44px 40px 0; }
.bp-welcome h2 { font-size: 36px; max-width: 330px; }
.bpw-lead { margin: 16px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.bpw-h3 { margin: 26px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-700); }
.bpw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.bpw-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 13.5px; line-height: 1.45; }
.bpw-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-display); font-size: 16px; }
.bpw-steps li:nth-child(1) { --n: 0; } .bpw-steps li:nth-child(2) { --n: 1; } .bpw-steps li:nth-child(3) { --n: 2; } .bpw-steps li:nth-child(4) { --n: 3; }
.bpw-area { margin: 22px 0 0; font-size: 12.5px; font-style: italic; color: var(--green-700); }
.bpw-deco { position: absolute; pointer-events: none; opacity: .9; }
.bpw-deco-a { width: 120px; right: -30px; top: 18px; transform: rotate(18deg); }
.bpw-deco-b { width: 100px; right: 22px; bottom: 44px; transform: rotate(-12deg); }
.bp-welcome .bp-foot { padding-left: 0; padding-right: 0; }

/* menu pages */
.bp-menu { padding: 36px 34px 0; }
.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--green-900); }
.bp-head-text { min-width: 0; }
.bp-menu h2 { font-size: 34px; }
.bp-note { margin: 6px 0 0; font-size: 12px; font-style: italic; color: var(--ink-soft); }
.bp-head-photo { flex: none; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--red), 0 8px 16px rgba(38, 48, 28, .2); margin: -10px -4px -4px 0; }
.bp-head-photo img { width: 100%; height: 100%; object-fit: cover; }
.bp-body { flex: 1; min-height: 0; overflow: hidden; padding-top: 14px; display: flex; flex-direction: column; gap: 13px; }
.bp-item-head { display: flex; align-items: baseline; gap: 8px; }
.bp-item h3 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--green-900); line-height: 1.25; }
.bp-dots { flex: 1; min-width: 14px; border-bottom: 1.5px dotted rgba(60, 90, 30, .45); transform: translateY(-3px); }
.bp-price { flex: none; font-family: var(--font-display); font-size: 16.5px; color: var(--red); letter-spacing: .01em; }
.bp-desc { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-soft); }
.bp-desc strong { color: var(--ink); }
.bp-extra { margin: 4px 0 0; font-size: 11.5px; font-weight: 700; color: var(--green-700); }
.bp-fill { margin: auto 0 0; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 14px rgba(38, 48, 28, .14); flex: none; }
.bp-fill img { width: 100%; height: 100%; object-fit: cover; }

/* call to action page */
.bp-cta { padding: 44px 40px 0; }
.bp-cta h2 { font-size: 46px; }
.bpx-lead { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.bpx-btn-row { margin: 22px 0 0; }
.bpx-btn { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; box-shadow: 0 8px 18px rgba(181, 58, 38, .3); }
.bpx-btn:hover { background: #942e1d; color: #fff; }
.bpx-grid { display: grid; grid-template-columns: 1fr 128px; gap: 18px; align-items: center; margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bpx-contact { margin: 0; display: grid; gap: 10px; }
.bpx-contact div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; font-size: 13px; }
.bpx-contact dt { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); padding-top: 2px; }
.bpx-contact dd { margin: 0; }
.bpx-contact a { color: var(--ink); text-decoration: none; font-weight: 700; }
.bpx-qr { margin: 0; text-align: center; }
.bpx-qr-code { width: 118px; height: 118px; margin: 0 auto; padding: 8px; background: #fff; border-radius: 10px; box-shadow: 0 4px 12px rgba(38, 48, 28, .14); }
.bpx-qr-code svg { width: 100%; height: 100%; display: block; }
.bpx-qr figcaption { margin-top: 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.bpx-note { margin: 16px 0 0; font-size: 12.5px; font-weight: 700; color: var(--green-700); }
.bpx-fine { margin: 10px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--ink-soft); }
.bp-cta .bp-foot { padding-left: 0; padding-right: 0; }

/* full-photo page */
.bp-photo-page { padding: 0; background: #2c4216; }
.bp-photo-page > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bpp-quote { position: relative; margin: auto 0 0; padding: 120px 40px 46px; background: linear-gradient(transparent, rgba(20, 30, 10, .82) 45%); }
.bpp-quote p { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 1.1; text-transform: uppercase; color: #fff; }

/* back cover */
.bp-back { justify-content: center; align-items: center; text-align: center; }
.bpb-inner { position: relative; z-index: 1; padding: 0 48px; }
.bpb-logo { width: 240px; height: auto; }
.bpb-tag { margin: 18px auto 0; max-width: 300px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.bpb-lines { margin: 22px 0 0; font-family: var(--font-display); font-size: 19px; line-height: 1.45; color: var(--green-900); letter-spacing: .02em; }
.bpb-hours { margin: 16px 0 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.bpb-deco { position: absolute; pointer-events: none; }
.bpb-deco-a { width: 150px; left: -36px; top: 40px; transform: rotate(-20deg); }
.bpb-deco-b { width: 110px; right: -24px; bottom: 60px; transform: rotate(24deg); }

/* measuring host (off-screen, same size as a page) */
.bro-measure { position: absolute; left: -10000px; top: 0; width: var(--pw, 480px); visibility: hidden; pointer-events: none; }

/* controls under the book */
.bro-controls { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 16px 16px 4px; }
.bro-btn { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--green-900); background: #fff; color: var(--green-900); display: grid; place-items: center; cursor: pointer; transition: background .2s ease, color .2s ease; }
.bro-btn:hover:not([aria-disabled="true"]) { background: var(--green-900); color: #fff; }
.bro-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.bro-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.bro-count { min-width: 150px; text-align: center; font-weight: 700; color: var(--green-900); font-variant-numeric: tabular-nums; }
.bro-actions { padding: 14px 0 48px; }
.bro-actions-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; }
.bro-list-link { font-size: .95rem; }
.bro-print-pages { display: none; }

@media (max-width: 600px) {
  .bro-stage { padding: 18px 10px 16px; }
  .bro-actions-row .btn { width: 100%; text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .bro-book, .bro-leaf { transition: none; }
  .bp-item, .bpw-steps li { opacity: 1; transform: none; }
  .bpc-open, .bp-cover.is-shown .bpc-photo img { animation: none; }
}

/* print / save as PDF: one brochure page per sheet */
@media print {
  @page { size: letter portrait; margin: .35in; }
  html.bro-printable body > *:not(.bro-print-pages) { display: none !important; }
  html.bro-printable .bro-print-pages { display: block !important; }
  .bro-print-pages .bp { zoom: 1.38; break-after: page; page-break-after: always; margin: 0 auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bro-print-pages .bp:last-child { break-after: auto; page-break-after: auto; }
  .bro-print-pages .bp-item, .bro-print-pages .bpw-steps li { opacity: 1 !important; transform: none !important; }
  .bro-print-pages .bpc-open { display: none; }
}
.bro-loading[hidden] { display: none; }
.bro-book.no-anim, .bro-book.no-anim .bro-leaf { transition: none !important; }

/* phone pages (360 x 640) */
.bp.is-narrow.bp-menu { padding: 30px 24px 0; }
.bp.is-narrow .bp-foot { padding-left: 24px; padding-right: 24px; }
.bp.is-narrow.bp-menu h2 { font-size: 30px; }
.bp.is-narrow .bp-head-photo { width: 84px; height: 84px; }
.bp.is-narrow.bp-welcome, .bp.is-narrow.bp-cta { padding: 34px 26px 0; }
.bp.is-narrow.bp-welcome h2 { font-size: 31px; max-width: 250px; }
.bp.is-narrow .bpw-deco-a { width: 90px; right: -26px; }
.bp.is-narrow .bpw-deco-b { width: 76px; }
.bp.is-narrow.bp-cta h2 { font-size: 38px; }
.bp.is-narrow .bpx-grid { grid-template-columns: 1fr 96px; gap: 12px; margin-top: 20px; }
.bp.is-narrow .bpx-qr-code { width: 92px; height: 92px; padding: 6px; }
.bp.is-narrow .bpx-contact div { grid-template-columns: 1fr; gap: 0; font-size: 12.5px; }
.bp.is-narrow .bpx-contact a { overflow-wrap: anywhere; }
.bp.is-narrow .bpc-title { font-size: 54px !important; }
.bp.is-narrow .bpc-panel { padding: 56px 24px 24px; }
.bp.is-narrow .bpc-badge { width: 200px; top: -46px; }
.bp.is-narrow .bpp-quote p { font-size: 26px; }
.bp.is-narrow .bpb-logo { width: 210px; }

/* ===== refresh: light tabletop instead of the green stage, printed-menu pages ===== */
.bro-stage {
  background:
    radial-gradient(ellipse 58% 60% at 50% 46%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 72%),
    url('/img/site/pattern-bg.webp'),
    linear-gradient(180deg, #f4eddf 0%, #ebdfc6 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 40px 16px 34px;
}
.bro-fit { z-index: 1; filter: drop-shadow(0 34px 26px rgba(70, 50, 20, .24)) drop-shadow(0 8px 8px rgba(70, 50, 20, .16)); }
.bro-loading { color: var(--green-900); }
.bro-loading a { color: var(--red); }

.bro-props { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bro-prop { position: absolute; height: auto; filter: drop-shadow(0 14px 14px rgba(60, 45, 20, .22)); animation: broFloat 9s ease-in-out infinite alternate; }
.bro-prop-1 { width: 190px; left: 3%; top: 6%; rotate: -14deg; }
.bro-prop-2 { width: 160px; left: 6%; bottom: 8%; animation-delay: -3s; }
.bro-prop-3 { width: 130px; left: 15%; top: 44%; rotate: 20deg; animation-delay: -5s; }
.bro-prop-4 { width: 180px; right: 4%; top: 8%; rotate: 16deg; animation-delay: -2s; }
.bro-prop-5 { width: 140px; right: 7%; bottom: 10%; animation-delay: -6s; }
.bro-prop-6 { width: 130px; right: 14%; top: 46%; rotate: -10deg; animation-delay: -4s; }
@keyframes broFloat { from { translate: 0 0; } to { translate: 0 -10px; } }
@media (max-width: 1180px) { .bro-prop-3, .bro-prop-6 { display: none; } .bro-prop { width: 120px !important; } }
@media (max-width: 760px) {
  .bro-stage { padding: 30px 10px 26px; }
  .bro-prop-2, .bro-prop-5 { display: none; }
  .bro-prop-1 { width: 96px !important; left: -26px; top: -10px; }
  .bro-prop-4 { width: 96px !important; right: -24px; top: auto; bottom: -14px; }
}

/* controls: a soft pill with page count and a progress line */
.bro-controls { padding: 20px 16px 6px; }
.bro-count-wrap { display: grid; gap: 7px; justify-items: center; min-width: 170px; }
.bro-progress { width: 150px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bro-progress span { display: block; height: 100%; width: 0; background: var(--red); border-radius: 99px; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.bro-btn { border-color: var(--line); box-shadow: 0 6px 16px rgba(38, 48, 28, .1); }
.bro-btn:hover:not([aria-disabled="true"]) { border-color: var(--green-900); }

/* pages: thin printed frame, ornamental header rule, menu-style item names */
.bp-menu::before, .bp-welcome::before, .bp-cta::before, .bp-back::before {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(60, 90, 30, .22); border-radius: 4px; pointer-events: none; z-index: 0;
}
.bp-head {
  border-bottom: 0; padding-bottom: 16px;
  background:
    linear-gradient(var(--green-900), var(--green-900)) left bottom / 100% 2px no-repeat,
    linear-gradient(var(--green-900), var(--green-900)) left calc(100% - 5px) / 100% 1px no-repeat;
}
.bp-menu h2 { font-size: 36px; }
.bp-kicker { color: var(--red); }
.bp-item h3 { font-family: var(--font-display); font-weight: 400; font-size: 15.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--green-900); }
.bp-price { font-size: 17.5px; }
.bp-dots { border-bottom: 2px dotted rgba(60, 90, 30, .35); }
.bp-extra { display: inline-flex; gap: 6px; align-items: baseline; }
.bp-extra::before { content: "+"; font-family: var(--font-display); color: var(--red); font-size: 13px; }
.bp-head-photo { width: 124px; height: 124px; border: 5px solid #fff; box-shadow: 0 0 0 2px var(--red), 0 12px 22px rgba(38, 48, 28, .22); margin: -18px -6px -8px 0; }
.bp-fill { border: 6px solid #fff; border-radius: 6px; box-shadow: 0 10px 22px rgba(38, 48, 28, .18); rotate: -1.2deg; margin: auto 6px 4px; }
.bp.is-narrow .bp-head-photo { width: 88px; height: 88px; margin: -12px -4px -6px 0; }
.bp.is-narrow.bp-menu h2 { font-size: 30px; }
.bp.is-narrow .bp-item h3 { font-size: 14.5px; }

/* fixed pages that ran long (e.g. Spanish on a phone page) get tighter spacing */
.bp.is-compact h2 { font-size: 32px !important; }
.bp.is-compact .bpx-lead, .bp.is-compact .bpw-lead { font-size: 12.5px; margin-top: 10px; }
.bp.is-compact .bpx-btn-row { margin-top: 14px; }
.bp.is-compact .bpx-grid { margin-top: 14px; padding: 12px 0; }
.bp.is-compact .bpw-h3 { margin-top: 16px; }
.bp.is-compact .bpw-steps { gap: 8px; }
.bp.is-compact .bpw-steps li { font-size: 12.5px; }
.bro-book a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
