:root {
  color-scheme: light;
  --forest: #245c46;
  --cream: #f8f5ef;
  --orange: #e99a45;
  --charcoal: #292e2b;
  --muted: #737973;
  --white: #fff;
  --line: #e6e2d9;
  --shadow: 0 12px 34px rgb(34 50 42 / 8%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.5;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; }

.site-header {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px max(20px, calc((100vw - 1280px) / 2));
  position: sticky;
  top: 0;
  z-index: 5;
}

.demo-banner {
  background: #fff1d9;
  border-bottom: 1px solid #efd6ac;
  color: #503a1d;
  font-size: .85rem;
  font-weight: 650;
  padding: 10px 18px;
  text-align: center;
}

.staff-demo-banner {
  border: 1px solid #efd6ac;
  border-radius: 12px;
  margin: 18px 0;
}

.brand {
  align-items: center;
  color: var(--forest);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 750;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--forest);
  border-radius: 12px 12px 12px 4px;
  color: var(--white);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.cart-toggle {
  align-items: center;
  background: var(--forest);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  min-height: 44px;
  padding: 7px 14px;
  white-space: nowrap;
}

.cart-count {
  align-items: center;
  background: var(--orange);
  border-radius: 999px;
  color: var(--charcoal);
  display: inline-flex;
  font-size: .82rem;
  height: 26px;
  justify-content: center;
  min-width: 26px;
  padding: 0 6px;
}

.page-shell {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 28px 24px 56px;
}

.hero {
  align-items: end;
  background: var(--forest);
  border-radius: 24px;
  color: var(--white);
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  min-height: 210px;
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px);
  position: relative;
}

.hero::after {
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 50%;
  content: "";
  height: 300px;
  position: absolute;
  right: -54px;
  top: -150px;
  width: 300px;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3.45rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 8px 0 12px;
  max-width: 650px;
}

.hero-copy { color: rgb(255 255 255 / 82%); margin: 0; max-width: 520px; }
.eyebrow { color: var(--orange); font-size: .74rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 7px; text-transform: uppercase; }
.hero-note { align-items: center; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 19%); border-radius: 999px; display: flex; flex: 0 0 auto; gap: 8px; padding: 10px 15px; position: relative; z-index: 1; }
.hero-note span { color: var(--orange); }

.qr-card {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 5px 18px rgb(34 50 42 / 4%);
  display: flex;
  gap: 24px;
  grid-column: 1 / -1;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
}

.qr-copy { min-width: 0; }
.qr-copy h2 { color: var(--charcoal); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 3vw, 1.8rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.qr-copy > p:not(.eyebrow) { color: var(--muted); margin: 0 0 10px; }
.qr-url { color: var(--forest); font-size: .83rem; font-weight: 750; overflow-wrap: anywhere; }
.qr-image-link { background: var(--white); border: 1px solid var(--line); border-radius: 14px; display: block; flex: 0 0 auto; line-height: 0; padding: 8px; }
.ordering-qr { aspect-ratio: 1; display: block; height: clamp(128px, 20vw, 192px); image-rendering: pixelated; max-width: 100%; object-fit: contain; width: auto; }

.menu-area { min-width: 0; }
.menu-toolbar { align-items: end; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; margin: 2px 0 20px; }
.menu-toolbar h2, .cart-panel h2, .staff-card h1 { font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filters select, .search-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 44px;
}
.filters select { color: var(--charcoal); padding: 0 34px 0 12px; }
.search-box { align-items: center; color: var(--muted); display: flex; gap: 7px; padding: 0 12px; }
.search-box span { font-size: 1.35rem; line-height: 1; }
.search-box input { background: transparent; border: 0; min-width: 125px; outline: 0; }

.menu-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.menu-card { background: var(--white); border: 1px solid rgb(36 92 70 / 7%); border-radius: 18px; box-shadow: 0 5px 18px rgb(34 50 42 / 4%); min-width: 0; overflow: hidden; }
.food-image-wrap { aspect-ratio: 1; background: #e9e5db; overflow: hidden; position: relative; }
.food-image { height: 100%; object-fit: cover; width: 100%; }
.category-chip { background: rgb(255 255 255 / 94%); border-radius: 999px; bottom: 11px; color: var(--forest); font-size: .72rem; font-weight: 750; left: 11px; max-width: calc(100% - 22px); overflow: hidden; padding: 5px 9px; position: absolute; text-overflow: ellipsis; white-space: nowrap; }
.menu-card-body { padding: 14px; }
.menu-card-title-row { align-items: start; display: flex; gap: 8px; justify-content: space-between; }
.menu-card h3 { font-size: 1rem; line-height: 1.3; margin: 0; }
.price { color: var(--forest); flex: 0 0 auto; font-size: .95rem; font-weight: 800; white-space: nowrap; }
.description { color: var(--muted); display: -webkit-box; font-size: .84rem; line-height: 1.45; margin: 8px 0 14px; min-height: 2.45em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-footer { align-items: center; display: flex; gap: 8px; justify-content: space-between; }
.stock-label { align-items: center; color: var(--forest); display: inline-flex; font-size: .75rem; font-weight: 700; gap: 6px; }
.stock-label::before { background: #4a9b70; border-radius: 50%; content: ""; height: 7px; width: 7px; }
.stock-label.sold-out { color: #77736d; }
.stock-label.sold-out::before { background: #a7a29a; }
.button { border: 0; border-radius: 10px; font-weight: 750; min-height: 40px; padding: 8px 12px; }
.button-primary { background: var(--forest); color: var(--white); }
.button-primary:hover:not(:disabled) { background: #194733; }
.button-secondary { background: var(--cream); color: var(--forest); }
.status-message { color: var(--muted); margin: 0 0 12px; min-height: 1.5em; }
.status-message:empty { display: none; }

.cart-panel { align-self: start; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; position: sticky; top: 86px; }
.cart-heading-row { align-items: start; display: flex; justify-content: space-between; }
.icon-button { background: var(--cream); border: 0; border-radius: 50%; color: var(--charcoal); font-size: 1.4rem; height: 34px; line-height: 1; width: 34px; }
.cart-close { display: none; }
.cart-empty { color: var(--muted); font-size: .9rem; margin: 20px 0; }
.cart-lines { list-style: none; margin: 18px 0; max-height: 32vh; overflow: auto; padding: 0; }
.cart-line { border-bottom: 1px solid var(--line); display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; }
.cart-line-name { font-size: .88rem; font-weight: 750; }
.cart-line-price { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.quantity-control { align-items: center; display: inline-flex; gap: 9px; }
.quantity-control button { align-items: center; background: var(--cream); border: 0; border-radius: 50%; color: var(--forest); display: inline-flex; font-size: 1rem; height: 30px; justify-content: center; width: 30px; }
.cart-total { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 14px 0; }
.cart-total strong { color: var(--forest); font-size: 1.14rem; }
.order-form { display: grid; gap: 12px; }
.order-form label { color: var(--charcoal); display: grid; font-size: .83rem; font-weight: 700; gap: 5px; }
.order-form input { background: var(--white); border: 1px solid #dcd8ce; border-radius: 10px; min-height: 42px; padding: 8px 10px; width: 100%; }
.order-form input:focus, .filters select:focus, .search-box:focus-within { border-color: var(--forest); outline: 3px solid rgb(36 92 70 / 13%); }
.privacy-note { color: var(--muted); font-size: .75rem; margin: 0; }
.submit-order { min-height: 46px; }
.form-message { color: var(--forest); font-size: .85rem; margin: 0; min-height: 1.3em; }
.form-message.error { color: #a43c31; }
.honeypot { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }
.turnstile-slot:empty { display: none; }
.cart-backdrop { display: none; }
.site-footer { align-items: center; background: var(--white); color: var(--muted); display: flex; font-size: .83rem; justify-content: space-between; padding: 20px max(24px, calc((100vw - 1232px) / 2)); }
.site-footer a { color: var(--forest); font-weight: 700; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.staff-page { align-items: start; display: flex; justify-content: center; min-height: 100vh; padding: 48px 20px; }
.staff-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); max-width: 760px; padding: clamp(22px, 5vw, 40px); width: 100%; }
.staff-card h1 { margin-bottom: 8px; }
.staff-card > p { color: var(--muted); }
.staff-login { display: grid; gap: 12px; margin: 24px 0; max-width: 400px; }
.demo-fill { width: 100%; }
.staff-login label { display: grid; font-size: .85rem; font-weight: 700; gap: 6px; }
.staff-login input { border: 1px solid var(--line); border-radius: 10px; min-height: 42px; padding: 8px 10px; }
.orders-list { display: grid; gap: 14px; list-style: none; margin: 24px 0 0; padding: 0; }
.staff-order { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.staff-order-head { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.staff-order-items { color: var(--muted); font-size: .88rem; }
.staff-order-total { color: var(--forest); font-weight: 800; }
.back-link { color: var(--forest); display: inline-block; font-weight: 700; margin-top: 20px; }

@media (max-width: 1080px) {
  .page-shell { gap: 24px; grid-template-columns: minmax(0, 1fr) 310px; padding-inline: 18px; }
  .menu-grid { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { padding: 10px 16px; }
  .page-shell { display: block; padding: 16px 14px 88px; }
  .hero { align-items: start; border-radius: 20px; flex-direction: column; gap: 20px; margin-bottom: 28px; min-height: auto; padding: 28px 22px; }
  .hero-note { font-size: .85rem; }
  .qr-card { align-items: center; gap: 14px; padding: 16px; }
  .qr-copy > p:not(.eyebrow) { font-size: .88rem; }
  .ordering-qr { height: clamp(112px, 33vw, 148px); }
  .menu-toolbar { align-items: start; }
  .filters { width: 100%; }
  .filters select { flex: 0 0 auto; max-width: 48%; }
  .search-box { flex: 1; min-width: 140px; }
  .search-box input { min-width: 0; width: 100%; }
  .menu-grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-card-body { padding: 11px; }
  .menu-card-title-row { flex-direction: column; gap: 2px; }
  .description { font-size: .79rem; min-height: 3.4em; }
  .card-footer { align-items: start; flex-direction: column; }
  .card-footer .button { width: 100%; }
  .cart-toggle { min-height: 40px; }
  .cart-panel { border: 0; border-radius: 20px 20px 0 0; bottom: 0; box-shadow: 0 -12px 38px rgb(25 42 32 / 18%); left: 0; max-height: 88vh; overflow: auto; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); position: fixed; right: 0; top: auto; transform: translateY(105%); transition: transform .22s ease; z-index: 11; }
  .cart-panel.is-open { transform: translateY(0); }
  .cart-close { display: inline-flex; align-items: center; justify-content: center; }
  .cart-backdrop.is-open { background: rgb(23 31 27 / 45%); border: 0; bottom: 0; display: block; inset: 0; position: fixed; z-index: 10; }
  .cart-lines { max-height: 22vh; }
  .site-footer { padding: 18px 16px; }
}

@media (max-width: 370px) {
  .brand { font-size: .94rem; }
  .qr-card { gap: 10px; padding: 12px; }
  .ordering-qr { height: 104px; }
  .qr-url { font-size: .73rem; }
  .filters select { max-width: 100%; min-width: 140px; }
  .menu-grid { gap: 9px; }
  .menu-card-body { padding: 9px; }
  .filters select { font-size: .82rem; padding-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
