/* Food & Menu template. Brand colours and fonts come from CSS variables set per client. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.1; margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }

/* ---------- Bars ---------- */
.demo-bar, .notice { text-align: center; font-size: .875rem; padding: 8px 16px; }
.demo-bar { background: var(--text); color: var(--bg); }
.demo-bar a { color: var(--accent); font-weight: 700; }
.notice { background: var(--accent); color: var(--text); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--text); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-wa { background: #1fa855; color: #fff; width: 100%; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { background: var(--primary); color: var(--on-primary); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60px -10%; height: 120px;
  background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-inner { position: relative; z-index: 1; padding: 56px 0 104px; }
.hero .logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; background: var(--surface); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; opacity: .85; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5rem); font-weight: 800; letter-spacing: -.02em; }
.tagline { font-size: clamp(1.05rem, 2.6vw, 1.3rem); max-width: 34ch; margin: 14px 0 0; opacity: .95; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0;
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: rgba(255,255,255,.16);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa0a6; }
.status.is-open::before { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.25); }
.status.is-closed::before { background: #ffb4a8; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-centered .hero-inner { text-align: center; }
.hero-centered .tagline { margin-inline: auto; }
.hero-centered .cta-row { justify-content: center; }
.hero-centered .logo { margin-inline: auto; }

.hero-bold { background: var(--text); color: var(--bg); }
.hero-bold h1 { font-size: clamp(3rem, 13vw, 7rem); color: var(--accent); text-transform: uppercase; }

.hero.has-photo {
  color: #fff;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.65)), var(--hero-img) center / cover no-repeat;
}

.hero-split .hero-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .hero-split .hero-inner { grid-template-columns: 1.2fr 1fr; } }
.hero-visual img { border-radius: 24px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-pattern {
  aspect-ratio: 4/3; border-radius: 28px; display: grid; place-items: center; font-size: clamp(5rem, 16vw, 9rem);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.22) 0 18%, transparent 19%),
    radial-gradient(circle at 80% 75%, rgba(255,255,255,.14) 0 22%, transparent 23%),
    var(--accent);
  transform: rotate(-2deg);
}
@media (max-width: 799px) {
  .hero-pattern, .hero-visual img { aspect-ratio: 16/7; font-size: 4.5rem; }
}

/* ---------- Sections ---------- */
main section { padding: 40px 0; }
.section-head { margin-bottom: 20px; }
.section-head h2, .about h2, .visit h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--muted); margin: 6px 0 0; }

.specials { padding-top: 8px; }
.specials .section-head h2::after {
  content: ""; display: block; width: 56px; height: 5px; background: var(--accent); border-radius: 4px; margin-top: 10px;
}

/* ---------- Category chips ---------- */
.chips {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 0; margin-bottom: 8px; background: var(--bg); scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.category { padding-top: 18px; }
.category-title { font-size: 1.3rem; margin-bottom: 4px; }
.category-note { color: var(--muted); margin: 0 0 10px; font-size: .95rem; }

/* ---------- Items ---------- */
.items { display: grid; gap: 12px; margin-top: 12px; }
.item {
  display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  background: var(--surface); border-radius: 16px; padding: 16px;
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.item-img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.item-main { flex: 1; min-width: 0; }
.item h3 { font-size: 1.08rem; font-weight: 700; }
.item p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.item-buy { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.price { font-weight: 700; white-space: nowrap; }
.sold-out { font-size: .85rem; font-weight: 700; color: var(--muted); }
.add {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: inherit;
  padding: 6px 6px 6px 14px; border-radius: 999px; border: 2px solid var(--primary);
  background: transparent; color: var(--text); transition: background .15s ease;
}
.add .plus {
  display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-weight: 800;
}
.add:hover, .add.in-cart { background: color-mix(in srgb, var(--primary) 10%, transparent); }

@media (min-width: 760px) {
  .menu-cards .items { grid-template-columns: repeat(2, 1fr); }
}
/* Busy items (photo or several sizes): buttons drop to their own row so the text keeps its width. */
.item:has(.item-img), .item:has(.item-buy > :nth-child(2)) { flex-wrap: wrap; }
.item:has(.item-img) .item-buy, .item:has(.item-buy > :nth-child(2)) .item-buy {
  flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; justify-content: flex-end;
}
.menu-list .item { border-radius: 0; border-width: 0 0 1px; background: transparent; padding: 14px 0; }
.menu-list .items { gap: 0; }

/* ---------- About & visit ---------- */
.about { background: var(--surface); }
.about p { font-size: 1.08rem; margin: 12px 0 0; }
.visit-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .visit-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.line { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; }
.line svg { margin-top: 3px; color: var(--primary); }
.hours { width: 100%; border-collapse: collapse; margin-top: 22px; }
.hours caption { text-align: left; font-weight: 700; margin-bottom: 6px; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--primary); }
.map iframe { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 18px; background: var(--surface); }

/* ---------- Footer ---------- */
.footer { background: var(--text); color: var(--bg); padding: 28px 0 110px; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer p { margin: 0; }
.socials { display: flex; gap: 14px; }
.socials svg { width: 22px; height: 22px; }
.credit { opacity: .7; }
.install-btn {
  font: inherit; font-weight: 700; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  background: transparent; color: inherit; border: 1.5px solid currentColor;
}
.install-btn[hidden], .install-hint[hidden] { display: none; }
.install-hint { margin: 14px auto 0; font-size: .9rem; }
.photo-credits { margin-top: 18px; font-size: .78rem; opacity: .7; }
.photo-credits summary { cursor: pointer; }
.photo-credits ul { margin: 8px 0 0; padding-left: 18px; }

/* ---------- Cart bar & order sheet ---------- */
.cart-bar {
  position: fixed; z-index: 20; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(520px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 0; border-radius: 18px; cursor: pointer; font: inherit; font-weight: 700;
  background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cart-bar[hidden] { display: none; }
.cart-bar.bump { animation: bump .3s ease; }
@keyframes bump { 50% { transform: translateX(-50%) scale(1.04); } }
.cart-count {
  display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent); color: var(--text);
}
.cart-total { margin-left: auto; }

.sheet {
  border: 0; padding: 0; width: min(520px, 100%); max-height: 92vh; margin: auto auto 0;
  border-radius: 22px 22px 0 0; background: var(--surface); color: var(--text);
}
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 22px; } }
.sheet::backdrop { background: rgba(0,0,0,.45); }
.sheet-inner { padding: 20px 20px 24px; display: grid; gap: 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-size: 1.4rem; }
.icon-btn { border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: inherit; padding: 6px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.line-price { font-weight: 700; min-width: 64px; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--primary);
  background: transparent; color: var(--text); font-size: 1.05rem; cursor: pointer;
}
.sheet-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin: 0; }
.closed-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 22%, transparent); font-size: .92rem; }
.sheet label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.sheet input:not([type=radio]), .sheet textarea {
  font: inherit; font-weight: 400; padding: 11px 12px; border-radius: 10px; width: 100%;
  border: 1.5px solid color-mix(in srgb, var(--text) 18%, transparent); background: var(--bg); color: var(--text);
}
.sheet label[hidden] { display: none; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.seg legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.seg label {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--text) 18%, transparent);
}
.seg label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.fine { margin: 0; font-size: .8rem; color: var(--muted); text-align: center; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
