/* ============================================================================
   Victor's Soul Table — shared site styles, heritage register (2026-09-18)
   ----------------------------------------------------------------------------
   Every public page loads css/heritage.css FIRST (tokens, header, footer,
   forms, buttons — the register the owner approved on the public demo) and
   this file second. This file re-skins the page components the pages and
   scripts already use (section heads, hero, day cards, the order panel, the
   contact cards, the FAQ …) so no markup or JS had to change its class names.

   TWO RULES THIS FILE FOLLOWS:
   1. Legacy token names stay defined (--ivory, --bone, --muted, --flat-gold,
      --foil …) but now resolve to heritage values. Each page carries a small
      inline <style> for its own components written against those names; the
      alias table below is what re-skins them without editing every page.
   2. Nothing here sets `position` on body's direct children. A `body > *`
      rule broke <dialog> positioning on the demo (QA 2026-09-17).
   ========================================================================== */

/* ---- legacy token aliases → heritage values ------------------------------ */
:root, .heritage {
  --onyx: #161c27;            /* was the page black; now the cast-iron band */
  --espresso: #fbf6ec;        /* card panel */
  --espresso-2: #ede2cc;      /* deeper cream */
  --gold: #8f6a1c;            /* TEXT-safe cornbread (4.6:1 on paper); painted fills use --mustard */
  --gold-sh: #7d2a26;
  --flat-gold: #a8322a;       /* sign-red: labels, prices, links */
  --champagne: #1f2c3d;       /* was the brightest text; now the ink */
  --antique: #7d2a26;
  --ivory: #1f2c3d;           /* headings */
  --bone: #46536a;            /* body copy on cream */
  --muted: #5f6b7e;           /* captions */
  --accent-red: #a8322a;
  --hair: rgba(31, 44, 61, 0.34);
  --hair-soft: rgba(31, 44, 61, 0.16);
  --foil: linear-gradient(#a8322a, #a8322a); /* was gold foil; a solid sign-red fill wherever it was painted */
  --display: 'Alfa Slab One', 'Rockwell Extra Bold', Rockwell, Georgia, serif;
  --script: 'Kaushan Script', 'Brush Script MT', 'Segoe Script', cursive;
  --body: 'Alegreya Sans', 'Gill Sans', 'Trebuchet MS', Verdana, sans-serif;
  --label: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
}
/* Alfa Slab One and Kaushan Script ship one weight; the legacy rules ask for
   700/800. Without this the browser fakes a bold and smears the slab. */
html { font-synthesis: none; scroll-behavior: smooth; }
body.heritage { -webkit-font-smoothing: antialiased; }
.heritage ::selection { background: var(--mustard); color: var(--ink); }
.heritage .gold-text { background: none; -webkit-text-fill-color: currentColor; color: var(--sign); }
.heritage .edge { display: none; }

/* ---- layout ------------------------------------------------------------- */
.heritage section { padding: clamp(48px, 7vw, 88px) var(--gutter); position: relative; }
.heritage section.section-alt, .heritage section.about-section { border-top: 1px solid var(--line); }
.heritage .section-inner { max-width: var(--wrap); margin: 0 auto; }
.heritage .section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.heritage .overline {
  font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.2; color: var(--sign); margin-bottom: 6px;
}
.heritage .section-title {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: 0.02em; line-height: 1.08; color: var(--ink); text-transform: uppercase;
}
.heritage .section-script { font-family: var(--script); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.1; margin-top: 8px; color: var(--ox); }
.heritage .rule { width: 96px; height: 6px; margin: 16px auto 0; background: linear-gradient(90deg, var(--sign) 0 38%, var(--mustard) 38% 62%, var(--sign) 62%); }
.heritage .lede { max-width: 720px; margin: 0 auto 12px; text-align: center; font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); }
.heritage .lede strong { color: var(--ink); font-weight: 700; }
.heritage .subnote { text-align: center; font-family: var(--label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.heritage .subhead { font-family: var(--display); font-weight: 400; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); }

/* Demo caveat paragraph (inline on /order and /contact): the stamped note. */
.heritage .demo-note {
  max-width: 680px; margin: 22px auto 0; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper-2); box-shadow: var(--shade-paper); color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; text-align: center;
}
.heritage .demo-note strong { color: var(--ink); }

/* ---- hero: painted sign board over the counter -------------------------- */
.heritage .hero {
  padding: clamp(44px, 7vw, 88px) var(--gutter) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; text-align: center;
  background: var(--iron); color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 12% -10%, rgba(224, 176, 74, 0.2), transparent 60%),
    radial-gradient(700px 400px at 100% 110%, rgba(168, 50, 42, 0.35), transparent 60%);
  border-bottom: 6px solid var(--sign); box-shadow: inset 0 -3px 0 var(--mustard);
}
.heritage .hero-inner { max-width: 920px; margin: 0 auto; position: relative; z-index: 2; }
.heritage .hero-badge { width: clamp(120px, 18vw, 168px); margin: 0 auto 26px; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.heritage .hero-badge::before { display: none; }
.heritage .hero-badge .mark {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: url('https://pub-9b7c1f62b89b480bb84b1cf0813c4243.r2.dev/brand/seal-cream.png') center/contain no-repeat;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.heritage .hero .overline { color: var(--mustard); margin-bottom: 10px; }
.heritage .hero-title {
  font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: 0.02em; line-height: 1.05;
  color: var(--paper); text-transform: uppercase; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.heritage .hero-script { font-family: var(--script); font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.1; margin: 10px 0 14px; color: var(--mustard); }
.heritage .hero-essence { max-width: 640px; margin: 18px auto 0; font-size: 1.15rem; line-height: 1.6; color: rgba(246, 239, 227, 0.9); }
.heritage .hero-essence strong { color: var(--mustard); font-weight: 700; }
.heritage .hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.heritage .hero-phone {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 18px;
  font-family: var(--label); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--paper); text-decoration: none;
  border: 2px solid var(--mustard); border-radius: var(--r-sm); box-shadow: 3px 3px 0 var(--sign);
}
.heritage .hero-phone { flex-wrap: wrap; text-align: center; }
.heritage .hero-phone strong { color: var(--mustard); font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; white-space: nowrap; }
.heritage .hero-phone:hover { background: rgba(224, 176, 74, 0.12); color: var(--paper); }
.heritage .hero .demo-note { border-color: var(--mustard); background: rgba(22, 28, 39, 0.55); box-shadow: 4px 4px 0 var(--sign); color: rgba(246, 239, 227, 0.88); }
.heritage .hero .demo-note strong { color: var(--mustard); }
.heritage .hero .demo-note a, .heritage .hero-essence a { color: var(--mustard); }

/* ---- buttons: slab caps, ink keyline, hard drop shade ------------------- */
.heritage .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 24px;
  font-family: var(--display); font-weight: 400; font-size: 0.98rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2;
  border-radius: var(--r-sm); cursor: pointer; text-decoration: none; border: 2px solid var(--ink); box-shadow: var(--shade-ink);
  color: var(--ink); background: var(--paper-2);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.heritage .btn:hover, .heritage .btn:focus-visible { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.heritage .btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.heritage .btn-primary { background: var(--sign); color: var(--paper-2); }
.heritage .btn-primary:hover, .heritage .btn-primary:focus-visible { background: var(--ox); color: var(--paper-2); }
.heritage .btn-secondary { background: var(--paper-2); color: var(--ink); }
.heritage .btn-secondary:hover, .heritage .btn-secondary:focus-visible { background: var(--ink); color: var(--paper); }
/* On the dark hero the secondary reads as mustard-on-iron. */
.heritage .hero .btn-secondary, .heritage .band-dark .btn-secondary { border-color: var(--mustard); color: var(--paper); background: transparent; box-shadow: 4px 4px 0 var(--sign); }
.heritage .hero .btn-secondary:hover, .heritage .band-dark .btn-secondary:hover { background: var(--mustard); color: var(--ink); }
.heritage .hero .btn-primary { box-shadow: 4px 4px 0 var(--mustard); }
.heritage .btn-preorder-lg { display: flex; width: 100%; max-width: 560px; margin: 0 auto; }
@media (max-width: 540px) { .heritage .hero-ctas { flex-direction: column; } .heritage .hero-ctas .btn { width: 100%; } }

/* Order / checkout buttons (ids fixed by order.js). */
.heritage #ag-order-btn, .heritage #ag-order-btn2, .heritage .form-submit, .heritage .cat-submit {
  width: 100%; min-height: 52px; padding: 13px 20px; margin-top: 8px;
  font-family: var(--display); font-weight: 400; font-size: 1.02rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--paper-2); background: var(--sign); border: 2px solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--shade-ink); cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.heritage #ag-order-btn:hover:not(:disabled), .heritage #ag-order-btn2:hover:not(:disabled), .heritage .form-submit:hover:not(:disabled), .heritage .cat-submit:hover:not(:disabled) { background: var(--ox); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.heritage #ag-order-btn:disabled, .heritage #ag-order-btn2:disabled, .heritage .cat-submit:disabled { opacity: 0.55; cursor: wait; transform: none; box-shadow: none; }
.heritage #ag-order-error, .heritage #ag-order-error2, .heritage .cat-error, .heritage .form-error {
  display: none; margin: 0 0 14px; padding: 10px 14px; border: 2px solid var(--sign); background: #fff7f5; color: var(--sign); font-weight: 700; font-size: 0.95rem; line-height: 1.5; text-align: center;
}
.heritage #ag-order-error.shown, .heritage #ag-order-error2.shown, .heritage .cat-error.shown, .heritage .form-error.shown { display: block; }

/* ---- trust chips (home) ------------------------------------------------- */
.heritage .trust { border-top: 0; border-bottom: 1px solid var(--line); padding: 26px var(--gutter); background: var(--paper-3); }
.heritage .trust-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.heritage .chip {
  font-family: var(--label); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--r-sm); padding: 9px 16px; background: var(--paper-2); box-shadow: 3px 3px 0 var(--paper-edge);
}
.heritage .chip .ic { color: var(--sign); margin-right: 8px; }

/* ---- about / founder (home) --------------------------------------------- */
.heritage .about-inner { display: grid; grid-template-columns: minmax(200px, 0.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.heritage .about-frame {
  position: relative; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shade-paper);
  background: var(--paper-3) url('https://pub-9b7c1f62b89b480bb84b1cf0813c4243.r2.dev/brand/founder-portrait.png') center/cover no-repeat;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0;
}
.heritage .about-frame::before { display: none; }
.heritage .about-frame .af-logo { display: none; }
.heritage .about-frame .af-script {
  width: 100%; margin: 0; padding: 10px 14px 12px; text-align: center; font-family: var(--script); font-size: 1.25rem; line-height: 1.1;
  color: var(--paper); background: var(--iron); border-top: 3px solid var(--mustard);
}
.heritage .about-content .overline, .heritage .about-content .section-title { text-align: left; }
.heritage .about-content .section-title { font-size: clamp(1.45rem, 2.8vw, 2.1rem); margin-bottom: 4px; }
.heritage .about-content .rule { margin: 14px 0 18px; }
.heritage .about-content p { font-size: 1.06rem; line-height: 1.7; color: var(--ink-2); margin-bottom: 14px; max-width: 56ch; }
.heritage .about-content p strong { color: var(--ink); font-weight: 700; }
.heritage .about-quote {
  font-family: var(--script); font-size: 1.5rem; line-height: 1.3; margin: 22px 0; padding: 4px 0 4px 18px;
  border-left: 4px solid var(--mustard); color: var(--ox);
}
.heritage .founder-caveat { font-family: var(--label); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 860px) {
  .heritage .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .heritage .about-frame { max-width: 320px; margin: 0 auto; }
  .heritage .about-content { text-align: center; }
  .heritage .about-content .overline, .heritage .about-content .section-title { text-align: center; }
  .heritage .about-content .rule { margin-left: auto; margin-right: auto; }
  .heritage .about-content p { margin-left: auto; margin-right: auto; }
  .heritage .about-quote { border-left: 0; border-top: 4px solid var(--mustard); padding: 14px 0 0; }
}

/* ---- day grid (calendar + home strip) ----------------------------------- */
.heritage .day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.heritage .day-card {
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shade-paper);
  padding: 18px 18px 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.heritage .day-card::before { display: none; }
.heritage .day-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--paper-edge); }
.heritage .day-card.is-closed { opacity: 0.7; background: var(--paper-3); }
.heritage .day-card.is-closed:hover { transform: none; box-shadow: var(--shade-paper); }
.heritage .day-weekday { font-family: var(--label); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sign); }
.heritage .day-date { font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--ink); margin-top: 2px; }
.heritage .day-item { font-family: var(--script); font-size: 1.6rem; line-height: 1.1; margin: 12px 0 4px; color: var(--ox); }
.heritage .day-price { font-family: var(--display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--sign); margin-bottom: 12px; }
.heritage .day-status { font-family: var(--label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.heritage .day-status.ok { color: var(--collard); }
.heritage .day-status.low { color: var(--gold); }
.heritage .day-status.muted { color: var(--ink-3); }
.heritage .day-status.sold { color: var(--sign); }
.heritage .order-stock { font-family: var(--label); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.heritage .order-stock.ok { color: var(--collard); }
.heritage .order-stock.low { color: var(--gold); }
.heritage .order-stock.out { color: var(--sign); font-weight: 700; letter-spacing: 0.16em; }
.heritage .day-card .btn { margin-top: auto; width: 100%; padding: 10px 14px; min-height: 44px; font-size: 0.9rem; box-shadow: 3px 3px 0 var(--ink); }
.heritage .day-card .day-closed-label { margin-top: auto; font-family: var(--label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 12px; }
.heritage .day-photo { position: relative; margin: -18px -18px 12px; border-radius: 0; overflow: hidden; border-bottom: 3px solid var(--mustard); }
.heritage .day-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.heritage .is-closed .day-photo img { filter: grayscale(0.6) brightness(0.85); }
.heritage .day-featured { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: rgba(22, 28, 39, 0.82); color: var(--paper); font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.02em; text-transform: uppercase; text-align: left; }
.heritage .day-featured span { font-family: var(--script); text-transform: none; color: var(--mustard); font-size: 0.95rem; margin-right: 4px; }
.heritage .day-soldout {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg);
  background: var(--sign); color: var(--paper); font-family: var(--display); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.18em;
  padding: 6px 18px; border: 2px solid var(--paper); text-transform: uppercase; white-space: nowrap; box-shadow: 4px 4px 0 var(--ink);
}
.heritage .day-soldout.inline { position: static; display: inline-block; transform: rotate(-4deg); margin-bottom: 10px; font-size: 0.85rem; }
.heritage .day-addon-note { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--sign); margin-top: -4px; }
.heritage .day-mains-list { list-style: none; padding: 0; margin: 8px 0; text-align: left; font-size: 0.9rem; color: var(--ink-2); }
.heritage .day-mains-tag { font-family: var(--label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sign); }
.heritage .day-mains-price { color: var(--ink); font-weight: 700; }
@media (max-width: 960px) { .heritage .day-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .heritage .day-grid { grid-template-columns: 1fr; } }

/* Loading / error states */
.heritage .state-msg { grid-column: 1 / -1; text-align: center; padding: 40px 20px; font-family: var(--script); font-size: 1.6rem; color: var(--ink-2); }

/* Sold-out waitlist capture (calendar.js) */
.heritage .wl { margin-top: 8px; }
.heritage .wl-open { background: none; border: 1.5px solid var(--ink); color: var(--ink); font: inherit; font-size: 0.82rem; padding: 6px 10px; border-radius: var(--r-sm); cursor: pointer; }
.heritage .wl-open:hover { border-color: var(--sign); color: var(--sign); }
.heritage .wl-form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.heritage .wl-email { padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); font: inherit; font-size: 0.9rem; background: #fff; }
.heritage .wl-submit { font-size: 0.85rem; padding: 8px 10px; }
.heritage .wl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.heritage .wl-msg { font-size: 0.8rem; min-height: 1em; color: var(--ink-2); }
.heritage .wl-done { font-size: 0.85rem; color: var(--collard); font-weight: 700; }

/* ---- countdown pills ---------------------------------------------------- */
.heritage #agCountdown { display: flex; flex-direction: column; gap: 8px; align-items: center; margin: 0 0 22px; }
.heritage #agCountdown:empty { margin: 0; }
.heritage .ag-count { display: inline-block; background: var(--paper-2); border: 1.5px solid var(--ink); color: var(--ink-2); border-radius: var(--r-sm); padding: 8px 16px; font-size: 0.95rem; box-shadow: 3px 3px 0 var(--paper-edge); }
.heritage .ag-count strong { color: var(--sign); font-variant-numeric: tabular-nums; }

/* ---- announcement banner (owner-set, calendar/menu/order) -------------- */
.heritage .ag-banner {
  max-width: 900px; margin: 0 auto 28px; padding: 14px 22px; text-align: center;
  background: var(--paper-2); border: 2px solid var(--ink); box-shadow: var(--shade-paper);
  font-family: var(--label); font-weight: 500; font-size: clamp(0.95rem, 2vw, 1.05rem); letter-spacing: 0.03em; line-height: 1.55; color: var(--ink);
}
.heritage .ag-banner::before, .heritage .ag-banner::after { display: none; }
.heritage .ag-banner:empty { display: none; }

/* ---- the order panel (home Today/Next + /order) ------------------------ */
.heritage .today-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-top: 12px; }
.heritage .today-col-label { text-align: center; font-family: var(--label); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sign); margin-bottom: 12px; }
@media (max-width: 860px) { .heritage .today-grid { grid-template-columns: 1fr; gap: 40px; } }
.heritage .order-wrap {
  max-width: 600px; margin: 0 auto; background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shade-paper); padding: 28px 28px 30px; position: relative; overflow: visible;
}
.heritage .order-wrap::before { display: none; }
.heritage .order-day { font-family: var(--label); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sign); text-align: center; }
.heritage .order-item { font-family: var(--script); font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; text-align: center; margin: 8px 0 6px; color: var(--ox); }
.heritage .order-price { font-family: var(--display); font-weight: 400; font-size: 1.25rem; text-align: center; color: var(--ink); margin-bottom: 6px; }
.heritage .order-remaining { text-align: center; font-family: var(--label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--collard); margin-bottom: 18px; }
.heritage .order-portion { margin: 6px 0 2px; color: var(--ink-2); font-style: italic; font-size: 0.92rem; }
.heritage .order-pickup { text-align: center; font-size: 0.92rem; color: var(--ink-3); margin: 16px 0 20px; line-height: 1.55; }
.heritage .order-photo { display: flex; justify-content: center; margin: 0 0 20px; position: relative; }
.heritage .order-photo img { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); border: 2px solid var(--ink); box-shadow: var(--shade-paper); }
.heritage .order-time { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 20px 0 6px; }
.heritage .order-time label { font-family: var(--label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.heritage .order-time select { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--r-sm); padding: 10px 14px; font: inherit; font-size: 1rem; min-width: 240px; text-align: center; }
.heritage .order-total { text-align: center; font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--ink); margin: 20px 0 6px; }
.heritage .order-total .grand, .heritage .order-total b { color: var(--sign); font-weight: 400; }

/* Main-course cards inside the panel (order.js). Pages used to carry these
   inline; the shared copy here wins over any leftover inline block. */
.heritage .order-mains { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 20px; }
.heritage .order-main-card { border: 1.5px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; background: #fff; box-shadow: 3px 3px 0 var(--paper-edge); }
.heritage .order-main-card.is-out { opacity: 0.6; }
.heritage .order-main-photo { height: 130px; background: var(--paper-3); overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 3px solid var(--mustard); }
.heritage .order-main-photo-placeholder { color: var(--ink-3); font-family: var(--script); font-size: 1rem; text-align: center; padding: 8px; }
.heritage .order-main-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.heritage .order-main-body { padding: 12px 14px 14px; }
.heritage .order-main-name { font-family: var(--display); font-weight: 400; font-size: 1rem; color: var(--ink); line-height: 1.2; text-transform: uppercase; letter-spacing: 0.01em; }
.heritage .order-main-portion { font-size: 0.82rem; color: var(--ink-3); margin-top: 2px; }
.heritage .order-main-price { font-family: var(--display); font-weight: 400; font-size: 0.98rem; color: var(--sign); margin-top: 6px; }
.heritage .order-main-stock { font-family: var(--label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.heritage .order-main-ingredients { font-size: 0.84rem; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
.heritage .order-main-qty { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.heritage .order-main-qty .qty-btn { border: 2px solid var(--ink); border-radius: var(--r-sm); width: 38px; height: 38px; }
.heritage .order-main-qty .qty-num { min-width: 30px; }

/* Add-ons / extras rows */
.heritage .order-addons { margin: 22px 0; }
.heritage .order-addons-label { font-family: var(--label); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sign); margin-bottom: 10px; text-align: center; }
.heritage .order-addon-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.heritage .order-addon-info { font-size: 0.95rem; color: var(--ink); }
.heritage .order-addon-info .addon-price { color: var(--ink-3); margin-left: 6px; }
.heritage .order-addon-sold { font-family: var(--label); font-size: 0.72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.heritage .order-addon-opts { padding: 2px 0 10px; }
.heritage .order-ingredients { margin: 18px 0; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: var(--paper); }
.heritage .order-ingredients-label { font-family: var(--label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sign); margin-bottom: 8px; }
.heritage .order-ingredient-row { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--ink-2); padding: 4px 0; }
.heritage .order-ingredients:empty, .heritage .order-addons:empty { display: none; }

/* Quantity steppers */
.heritage .qty-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 22px 0; }
.heritage .qty-label { font-family: var(--label); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sign); }
.heritage .qty-stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--r-sm); background: #fff; overflow: hidden; gap: 0; }
.heritage .qty-btn {
  width: 40px; height: 42px; border: 0; background: var(--paper-3); color: var(--ink); font-family: var(--display); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 0;
}
.heritage .qty-btn:hover:not(:disabled) { background: var(--mustard); }
.heritage .qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.heritage .qty-num { font-family: var(--display); font-weight: 400; font-size: 1.05rem; min-width: 40px; text-align: center; color: var(--ink); }
.heritage .order-opt-eq .qty-btn { width: 28px; height: 28px; font-size: 0.95rem; }
.heritage .order-opt-eq .qty-num { font-size: 0.9rem; min-width: 22px; }

/* Per-line item options (order.js) */
.heritage .order-opts { margin-top: 10px; font-size: 0.86rem; }
.heritage .order-opt-group { margin-top: 8px; }
.heritage .order-opt-glabel { font-family: var(--label); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sign); }
.heritage .order-opt-req { color: var(--ink-3); text-transform: none; letter-spacing: 0.02em; margin-left: 4px; font-weight: 500; }
.heritage .order-opt-group.unmet .order-opt-glabel, .heritage .order-opt-group.unmet .order-opt-req { color: var(--sign); font-weight: 700; }
.heritage .order-opt-radio { display: inline-flex; align-items: center; gap: 6px; margin: 6px 14px 0 0; color: var(--ink); cursor: pointer; }
.heritage .order-opt-radio input, .heritage .order-opt-row input[type="checkbox"], .heritage .main-ing-check { accent-color: var(--sign); width: 16px; height: 16px; }
.heritage .order-opt-details { margin-top: 10px; }
.heritage .order-opt-details summary { cursor: pointer; color: var(--ox); font-weight: 700; letter-spacing: 0.02em; }
.heritage .order-opt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.heritage .order-opt-row label { display: flex; align-items: center; gap: 6px; color: var(--ink); cursor: pointer; flex-wrap: wrap; }
.heritage .order-opt-price { color: var(--sign); font-weight: 700; }
.heritage .order-opt-eq { display: inline-flex; align-items: center; gap: 8px; }
.heritage .order-opt-eq[hidden] { display: none; }
.heritage .order-opt-linetotal { margin-top: 10px; font-family: var(--display); font-size: 0.95rem; color: var(--ink); }

/* Tip controls */
.heritage .order-tip { margin: 16px 0 6px; }
.heritage .order-tip-label { display: block; font-family: var(--label); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.heritage .order-tip-note { color: var(--ink-3); text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 400; }
.heritage .order-tip-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.heritage .order-tip-btn {
  min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: #fff;
  font-family: var(--label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--ink); cursor: pointer;
}
.heritage .order-tip-btn.active { background: var(--ox-tint); border-color: var(--sign); color: var(--sign); box-shadow: 3px 3px 0 var(--paper-edge); }
.heritage .order-tip-custom { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ink); font-weight: 700; }
.heritage .order-tip-custom input { width: 110px; min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); font: inherit; background: #fff; }

/* Consent boxes (unchecked by default, never a condition of purchase). */
.heritage .sms-consent, .heritage .cat-consent { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 0.9rem; color: var(--ink-2); margin-top: 14px; line-height: 1.5; cursor: pointer; }
.heritage .sms-consent input[type="checkbox"], .heritage .cat-consent input[type="checkbox"] { flex: 0 0 auto; margin-top: 3px; width: 18px; height: 18px; accent-color: var(--sign); cursor: pointer; }
.heritage .sms-consent span, .heritage .cat-consent span { flex: 1 1 auto; }

/* Multi-plate cart rows */
.heritage .order-cart { margin: 18px 0 6px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.heritage .order-cart-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink); }
.heritage .order-cart-row:last-child { border-bottom: none; }
.heritage .order-cart-info { text-align: left; line-height: 1.5; }
.heritage .order-cart-removals { display: block; font-size: 0.82rem; color: var(--ink-3); }
.heritage .order-cart-remove { background: none; border: 1.5px solid var(--ink); border-radius: var(--r-sm); color: var(--ink-3); cursor: pointer; font-size: 0.85rem; line-height: 1; padding: 6px 9px; }
.heritage .order-cart-remove:hover { color: var(--sign); border-color: var(--sign); }
.heritage .order-addline { display: block; margin: 14px auto 4px; background: none; border: 1.5px dashed var(--ink); border-radius: var(--r-sm); color: var(--ox); cursor: pointer; font: inherit; font-weight: 700; font-size: 0.92rem; padding: 10px 18px; }
.heritage .order-addline:hover { color: var(--sign); border-color: var(--sign); }
.heritage .order-addline:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 540px) { .heritage .order-wrap { padding: 22px 16px 24px; } }

/* ---- contact / ways-to-order cards -------------------------------------- */
.heritage .contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; max-width: 1000px; margin: 0 auto; }
.heritage .contact-card {
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shade-paper);
  padding: 26px 22px; text-align: center; position: relative; overflow: hidden;
}
.heritage .contact-card::before { display: none; }
.heritage .contact-card .cc-icon { font-size: 1.6rem; margin-bottom: 10px; }
.heritage .contact-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.heritage .contact-card p, .heritage .contact-card a:not(.btn) { font-size: 0.98rem; line-height: 1.7; color: var(--ink-2); }
.heritage .contact-card a:not(.btn) { color: var(--ox); }
.heritage .ways-grid .contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.heritage .ways-grid .contact-card .btn { margin-top: auto; }
.heritage .ways-grid .contact-card p { margin-bottom: 18px; }
.heritage .ways-grid .btn { white-space: nowrap; }
@media (max-width: 960px) { .heritage .contact-grid { grid-template-columns: 1fr; max-width: 440px; } }

/* ---- catering request / contact form (contact.html, catering.html) ------ */
.heritage .cat-form { max-width: 720px; margin: 36px auto 0; }
.heritage .cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
.heritage .cat-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.heritage .cat-field span { font-family: var(--label); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.heritage .cat-field input, .heritage .cat-field textarea, .heritage .cat-field select {
  width: 100%; min-height: 46px; padding: 9px 12px; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm); box-sizing: border-box;
}
.heritage .cat-field textarea { min-height: 96px; resize: vertical; }
.heritage .cat-field input:focus, .heritage .cat-field textarea:focus, .heritage .cat-field select:focus { outline: none; border-color: var(--sign); box-shadow: 0 0 0 3px rgba(168, 50, 42, 0.2); }
.heritage .cat-details { margin-top: 6px; }
.heritage .cat-error { margin-top: 16px; }
.heritage #cat-turnstile, .heritage #ag-turnstile, .heritage #ag-turnstile2, .heritage #contact-turnstile { display: flex; justify-content: center; margin: 18px 0; }
.heritage .cat-done { max-width: 560px; margin: 40px auto 0; text-align: center; }
.heritage .cat-done h3 { font-family: var(--display); font-weight: 400; color: var(--sign); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 8px; }
.heritage .cat-done p { color: var(--ink-2); line-height: 1.7; }
.heritage .cat-paynote { margin: 14px 0 0; font-size: 0.88rem; color: var(--ink-3); line-height: 1.5; }
.heritage .cat-terms { list-style: none; padding: 14px 18px; margin: 0 0 22px; border: 2px solid var(--ink); background: var(--paper-2); box-shadow: var(--shade-paper); display: grid; gap: 6px; font-size: 0.95rem; line-height: 1.55; }
.heritage .cat-terms li { padding-left: 20px; position: relative; }
.heritage .cat-terms li::before { content: "\2605"; position: absolute; left: 0; top: 0; color: var(--mustard); font-size: 0.75rem; line-height: 1.9; }
.heritage .form-success { display: none; margin-top: 20px; padding: 14px 18px; text-align: center; border: 2px solid var(--collard); background: #f1f6ec; color: var(--collard); font-weight: 700; }
.heritage .form-success.shown { display: block; }
@media (max-width: 640px) { .heritage .cat-grid { grid-template-columns: 1fr; } }

/* ---- prose pages (privacy, terms, pickup, faq) -------------------------- */
.heritage .section-inner p, .heritage .section-inner li { color: var(--ink-2); }
.heritage .section-inner h2:not(.section-title), .heritage .section-inner h3:not(.section-title) { color: var(--ink); margin: 1.4em 0 0.5em; }
.heritage .section-inner ul, .heritage .section-inner ol { padding-left: 1.3em; margin: 0 0 1em; }

@media (prefers-reduced-motion: reduce) { .heritage *, .heritage *::before, .heritage *::after { animation: none !important; transition: none !important; } }
