/* Cafetaria De Ponyweide — site styles
 *
 * Look: a plain, honest snackbar. Warm "menu-board paper" background,
 * Bitter for headings, a sturdy sans for reading, ketchup red for actions
 * and a dab of mayo yellow for highlights. No effects for the sake of it.
 */

:root {
  --red: #d63a26;
  --red-dark: #b02c1b;
  --mayo: #f4c430;
  --mayo-soft: #fbe7a1;
  --ink: #241f1c;
  --muted: #6b625b;
  --paper: #faf6ef;
  --card: #ffffff;
  --line: #e7ddcf;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(36, 31, 28, .06), 0 4px 14px rgba(36, 31, 28, .06);
  --header-h: 68px;
  --max: 1080px;
  --font-head: "Bitter", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

:focus-visible { outline: 3px solid var(--mayo); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  background: var(--card);
  border-bottom: 4px solid var(--red);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .logo { flex: none; }
.site-header .logo img { height: 46px; width: auto; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: var(--paper); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 48px 16px;
  text-align: center;
  background: url("/images/hero-friet.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36, 31, 28, .55);
}
.hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(34px, 6.5vw, 58px);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 6px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: var(--mayo);
}

/* ---------- Content sections (home, deals) ---------- */
main.container { padding-bottom: 48px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}
.feature + .feature { border-top: 1px dashed var(--line); }
.feature--flip { grid-template-columns: 1.25fr 1fr; }
.feature--flip .feature__media { order: 2; }
.feature__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature h2 { font-size: clamp(30px, 4.5vw, 40px); }
.feature p { margin: 0 0 1em; }
.feature blockquote {
  margin: 0 0 1.2em;
  padding: 10px 16px;
  border-left: 5px solid var(--mayo);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 19px;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 9px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--red-dark); color: #fff; }
.button:active { transform: translateY(1px); }
.button--disabled,
.button--disabled:hover {
  background: #e4ded6;
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}
.button--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #cfc6ba;
}
.button--ghost:hover { background: var(--paper); color: var(--ink); }
.button-row { margin-top: 20px; }

/* ---------- Info cards (hours / contact / social) ---------- */
.info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 48px 0 32px;
  border-top: 1px dashed var(--line);
}
.info > div {
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.info h2 img { width: 30px; height: 30px; }
.info p { margin: 0 0 .8em; }
.info a { word-break: break-word; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 8px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours strong, .info strong { font-weight: 700; }

.map-wrap { margin: 0; }
.map-wrap figcaption { margin-top: 6px; font-size: 14px; text-align: right; }
.map {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #e5e3df;
}

/* ---------- Menu page ---------- */
.menu-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -16px;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.menu-nav {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.menu-nav a:hover { box-shadow: inset 0 0 0 1px var(--red); color: var(--red-dark); }

.cart-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.cart-toggle:hover { background: #000; }
.cart-count {
  min-width: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--mayo);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}
.cart-count[hidden] { display: none; }

.menu-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 14px;
  padding: 36px 0 8px;
}
.menu-section > h2,
.menu-section > .menu-section__intro { grid-column: 1 / -1; margin: 0; }
.menu-section > h2 {
  justify-self: start;
  font-size: 28px;
  padding: 0 4px;
  background: linear-gradient(transparent 62%, var(--mayo-soft) 62%);
}
.menu-section__intro { color: var(--muted); font-style: italic; margin-top: -6px !important; }

.menu-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: 1fr auto;
  gap: 4px 16px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.menu-item img {
  grid-row: 1 / 3;
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Dish photos are a mix of stock shots and phone snaps. A white
   snapshot border and the same warm tint make them read as one set. */
.menu-item img,
.coupon img {
  padding: 4px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(36, 31, 28, .25);
  filter: saturate(1.1) contrast(1.05) sepia(.12);
}
.menu-item h3 { font-size: 18px; margin-bottom: .25em; }
.menu-item__body p { margin: 0 0 .2em; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.menu-item__order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}
/* menu prices: small hand-priced sticker */
.price {
  display: inline-block;
  padding: 5px 9px;
  background: var(--mayo);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(36, 31, 28, .2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  transform: rotate(-3deg);
}
.menu-item:nth-child(even) .price { transform: rotate(2deg); }
.menu-item__order .button { padding: 7px 14px; font-size: 15px; }

/* ---------- Dialogs (option picker and cart) ---------- */
.modal {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
  color: var(--ink);
  font-family: var(--font-body);
}
.modal::backdrop { background: rgba(36, 31, 28, .5); }
.modal__inner { padding: 24px; }
.modal h2 { font-size: 24px; }
.modal fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.modal fieldset[hidden] { display: none; }
.modal legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.modal__actions [hidden] { display: none; }

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  cursor: pointer;
}
.option:hover { background: var(--paper); }
.option input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.option small { margin-left: auto; color: var(--muted); white-space: nowrap; }

/* item popup: big photo on top, details below */
.modal--item { width: min(520px, calc(100vw - 32px)); overflow-y: auto; }
.modal__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
  filter: saturate(1.1) contrast(1.05) sepia(.12);
}
.modal__photo[hidden] { display: none; }
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.modal__close:hover { color: var(--red); }
.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.modal__head h2 { margin: 0; }
.modal__head .price { flex: none; margin-top: 2px; }
.modal__desc p { margin: 0 0 .4em; color: var(--muted); }
.modal__desc:empty { display: none; }
.modal--item fieldset { margin-top: 14px; }
/* keep "Sluiten" and "Voeg toe" in view while scrolling long choice lists */
.modal--item .modal__actions {
  position: sticky;
  bottom: 0;
  margin: 16px -24px -24px;
  padding: 12px 24px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .modal__photo { aspect-ratio: 16 / 10; }
}
.modal--item .button:disabled,
.modal--item .button:disabled:hover {
  background: #e4ded6;
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

/* menu cards open the popup */
.menu-item.is-clickable { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.menu-item.is-clickable:hover { box-shadow: 0 2px 4px rgba(36, 31, 28, .08), 0 8px 22px rgba(36, 31, 28, .12); transform: translateY(-1px); }
.menu-item__open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.menu-item.is-clickable:hover .menu-item__open { color: var(--red-dark); }

.cart-empty { color: var(--muted); }
.cart-empty[hidden], .cart-sum[hidden] { display: none; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-line__qty { display: flex; align-items: center; gap: 6px; }
.cart-line__qty span { min-width: 1.5em; text-align: center; font-weight: 600; }
.cart-line__price { min-width: 64px; text-align: right; font-weight: 600; }
.qty-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px #cfc6ba;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { box-shadow: inset 0 0 0 1px var(--red); color: var(--red); }
.cart-sum { text-align: right; font-size: 19px; margin: 16px 0 0; }
.cart-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* dish photo flying into the cart (animated by cart.js) */
.fly-ghost {
  position: fixed;
  z-index: 30;
  margin: 0;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(36, 31, 28, .35);
  pointer-events: none;
  will-change: transform, opacity;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Quick-info strip (home, under the hero) ---------- */
.quickinfo {
  background: var(--card);
  border-bottom: 1px dashed var(--line);
  font-size: 16px;
}
.quickinfo__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.quickinfo__item { color: var(--muted); }
.quickinfo__cta { margin-left: auto; font-weight: 700; text-decoration: none; }
.quickinfo__cta:hover { text-decoration: underline; }

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.open-status:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.open-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b9b0a5;
}
.open-status.is-open { background: #e6f4e2; }
.open-status.is-open .open-status__dot { background: #2f9a3a; }
.open-status.is-closed { background: #fbe4e0; }
.open-status.is-closed .open-status__dot { background: var(--red); }

/* today's line in the opening hours */
.hours li.is-today {
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: transparent;
  border-radius: 6px;
  background: var(--mayo-soft);
}

/* ---------- Coupons (deals) ---------- */
.coupons { padding: 48px 0 16px; border-top: 1px dashed var(--line); }
.coupons > h2 {
  display: inline-block;
  font-size: clamp(30px, 4.5vw, 40px);
  padding: 0 4px;
  background: linear-gradient(transparent 62%, var(--mayo-soft) 62%);
}
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 22px;
  margin-top: 12px;
}
.coupon {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 18px 18px;
  background: var(--card);
  border: 2px dashed #b9ada0;
  border-radius: 6px;
}
/* the scissors on the cut line */
.coupon::before {
  content: "✂";
  position: absolute;
  top: -14px;
  left: 18px;
  padding: 0 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 20px;
  line-height: 24px;
}
.coupon img {
  width: 84px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.coupon h3 { font-size: 18px; margin-bottom: .3em; padding-right: 70px; }
.coupon p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.coupons__cta { margin: 28px 0 0; text-align: center; }

/* yellow hand-priced sticker */
.price-sticker {
  position: absolute;
  top: 10px;
  right: -8px;
  padding: 6px 10px;
  background: var(--mayo);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(36, 31, 28, .2);
  transform: rotate(4deg);
}

/* package cards (catering): same card, no cut-out line */
.coupon--plain { border-style: solid; border-color: var(--line); box-shadow: var(--shadow); }
.coupon--plain::before { content: none; }

/* ---------- Numbered steps (catering) ---------- */
.steps-section,
.faq { padding: 48px 0 8px; border-top: 1px dashed var(--line); margin-top: 32px; }
.steps-section > h2,
.faq > h2 { font-size: clamp(30px, 4.5vw, 40px); }
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 44px 18px 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 16.5px;
  line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
}
.steps strong { display: block; margin-bottom: 2px; }

/* ---------- FAQ (catering) ---------- */
.faq details {
  margin-bottom: 10px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1;
  color: var(--red);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* ---------- Stamp card (deals) ---------- */
.stampcard {
  max-width: 380px;
  margin: 0 auto;
  padding: 18px 20px 22px;
  background: #fffdf8;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.stampcard__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  font-family: var(--font-head);
}
.stampcard__head strong { font-size: 22px; }
.stampcard__head span { color: var(--muted); font-size: 14px; }
.stampcard__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stampcard__grid li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px dashed #cbbfb1;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.stampcard__grid li.is-stamped {
  border-style: solid;
  border-color: rgba(214, 58, 38, .55);
  background: url("/images/favicon.png") center / 70% no-repeat;
  opacity: .85;
}
.stampcard__grid li:nth-child(2) { transform: rotate(-14deg); }
.stampcard__grid li:nth-child(3) { transform: rotate(9deg); }
.stampcard__grid li.is-free {
  border: 0;
  background: var(--mayo);
  color: var(--ink);
  transform: rotate(-6deg);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 16px;
  text-align: center;
  font-size: 15px;
  color: #f3ece2;
  background:
    linear-gradient(rgba(20, 14, 10, .35), rgba(20, 14, 10, .35)),
    url("/images/hout.jpg") center / cover;
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .feature,
  .feature--flip { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .feature--flip .feature__media { order: 0; }
  .info { grid-template-columns: 1fr; }
  .site-header .container { gap: 8px; }
  .site-header .logo img { height: 34px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 5px 9px; font-size: 15px; }
  .hero { min-height: 180px; padding: 36px 16px; }
  .cart-toggle__label { display: none; }
  .quickinfo__inner { gap: 6px 14px; }
  .quickinfo__cta { margin-left: 0; }
  .price-sticker { right: -4px; }
  .menu-item { grid-template-columns: 80px 1fr; gap: 4px 12px; padding: 12px; }
  .menu-item img { width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
