/* BWS demo design system. Brand tokens are injected per site in brand.css (generated). */
:root {
  --brand: #b4232a;        /* primary brand color (buttons, accents) */
  --brand-ink: #ffffff;    /* text on --brand */
  --brand-dark: #7f1a1f;   /* hover / deep sections */
  --accent: #f2b33d;       /* secondary accent */
  --accent-ink: #1d1d1d;
  --bg: #fffaf3;           /* page background */
  --surface: #ffffff;      /* cards */
  --text: #1f1a17;
  --muted: #6b625b;
  --line: #ece3d8;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", -apple-system, system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--surface); }
.section.brand { background: var(--brand); color: var(--brand-ink); }
.section.brand .card, .section.dark .card { color: var(--text); }
.section.brand .card h3, .section.dark .card h3 { color: var(--text); }
.section.dark { background: var(--brand-dark); color: #fff; }
.eyebrow { display: inline-block; font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem; }
.section.brand .eyebrow, .section.dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section.brand .lead, .section.dark .lead { color: inherit; opacity: .9; }
.center { text-align: center; } .center .lead { margin-inline: auto; }

/* demo ribbon */
.demo-ribbon { background: #111; color: #fff; text-align: center; font: 600 .8rem/1.4 var(--font-body); padding: 8px 16px; }
.demo-ribbon b { color: var(--accent); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.15rem/1.1 var(--font-display); }
.brand-mark img { height: 44px; width: auto; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.nav .btn { margin-left: 6px; }
.lang-toggle { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font: 700 .8rem/1 var(--font-body); padding: 8px 12px; cursor: pointer; }
.menu-toggle { display: none; border: 0; background: none; font-size: 1.6rem; cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--font-body); padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-outline { border-color: currentColor; background: transparent; color: inherit; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(40px, 7vw, 88px) 0; }
.hero-media { border-radius: calc(var(--radius) * 1.6); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--line); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 600; }
.hero.full { color: #fff; }
.hero.full .hero-bg { position: absolute; inset: 0; }
.hero.full .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero.full .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.25)); }
.hero.full .container { position: relative; padding: clamp(80px, 14vw, 160px) 0; }
.hero.full .lead { color: #fff; opacity: .92; }
.hero.full .badge { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.hero.full .eyebrow { color: var(--accent); }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } }

/* cards + grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card .body { padding: 18px 20px 20px; }
.card .media { aspect-ratio: 4/3; background: var(--line); }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); font-size: .95rem; }
.price { font-weight: 800; color: var(--brand); }
.dept { text-align: center; padding: 26px 18px; }
.dept .icon { font-size: 2rem; margin-bottom: 8px; }

/* features split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split .media { border-radius: calc(var(--radius) * 1.4); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: .8rem; display: grid; place-items: center; font-weight: 800; }

/* reviews */
.review { padding: 22px; }
.review .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 8px; }
.review blockquote { margin: 0 0 10px; font-size: 1.05rem; }
.review cite { font-style: normal; color: var(--muted); font-size: .9rem; }

/* info / hours */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 280px; }
.map-card iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

/* forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.form textarea { min-height: 110px; }
.form-note { font-size: .88rem; color: var(--muted); }

/* storefront (order page) */
.store-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.store-layout > *, .menu-items > *, .item > div { min-width: 0; }
body { overflow-x: hidden; }
.cat-nav { position: sticky; top: 90px; display: grid; gap: 4px; }
.cat-nav a { text-decoration: none; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.cat-nav a:hover, .cat-nav a.active { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-dark); }
@media (max-width: 860px) { .store-layout { grid-template-columns: 1fr; } .cat-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; } .cat-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; } }
.menu-cat { margin-bottom: 36px; scroll-margin-top: 90px; }
.menu-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 620px) { .menu-items { grid-template-columns: 1fr; } }
.item { display: grid; grid-template-columns: 1fr auto; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.item.has-img { grid-template-columns: 88px 1fr auto; }
.item img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }
.item h4 { font: 700 1.02rem/1.3 var(--font-body); margin: 0 0 4px; }
.item p { margin: 0; color: var(--muted); font-size: .88rem; }
.item .side { display: grid; justify-items: end; align-content: space-between; gap: 8px; }
.add-btn { border: 0; background: var(--brand); color: var(--brand-ink); width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.pickup-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 22px; }
.pickup-bar .pill { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-dark); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .85rem; }
.register-note { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--muted); }

/* cart drawer */
.cart-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cart-count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 24px; padding: 2px 7px; font-size: .8rem; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 70; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.cart-open .drawer { transform: none; } .cart-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer .lines { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer .line { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; }
.drawer footer { padding: 16px 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.totals { display: grid; gap: 4px; font-size: .95rem; }
.totals .grand { font-weight: 800; font-size: 1.1rem; }
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(0,0,0,.5); padding: 16px; }
.modal.show { display: grid; }
.modal .panel { background: var(--bg); border-radius: calc(var(--radius) * 1.3); max-width: 460px; width: 100%; padding: 28px; text-align: center; }
.modal .ticket { text-align: left; background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 14px; margin: 16px 0; font-size: .92rem; }

/* footer */
.site-footer { background: var(--brand-dark); color: #fff; padding: 48px 0 28px; }
.site-footer a { color: #fff; opacity: .85; text-decoration: none; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; opacity: .7; }
