/* Menu pages (inc/menus.php): the menu card and seasonal set menus such as the Christmas dinner.
   Written in the site's tokens, like styles/; loaded on the front end and in the block editor. */

.menu-page .interior-hero { min-height: clamp(360px, 46svh, 520px); }

/* Jump links to the parts of a long card. */
.menu-jump { padding-top: var(--space-9); }
.menu-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-7);
  margin: 0;
  padding: var(--space-4) 0;
  list-style: none;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.menu-jump__label { margin: 0 0 var(--space-3); }
.menu-jump a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  color: var(--wine-700);
  text-decoration: none;
}
.menu-jump a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* A part of the card: Lunch, Hoofdgerechten, Dranken. */
.menu-group { padding-top: var(--section-gap-tight); scroll-margin-top: calc(var(--header-height) + var(--space-4)); }
.menu-group__head { margin-bottom: var(--space-8); }
.menu-group__head h2 {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: var(--weight-display-mid);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--wine-700);
}
.menu-group__sections { columns: 2 var(--grid-min-column); column-gap: var(--column-gap); }

/* A section: Soepen, Vleesgerechten, Koffie. */
.menu-section { break-inside: avoid; margin: 0 0 var(--space-9); }
.menu-section__head { padding-bottom: var(--space-3); border-bottom: 1px solid var(--text-strong); }
.menu-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: var(--weight-display-solid);
  line-height: var(--leading-display);
  color: var(--text-strong);
}
.menu-section__note {
  margin: var(--space-2) 0 0;
  font-size: var(--text-fine);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: var(--leading-ui);
  color: var(--text-label);
}
.menu-items { margin: 0; padding: 0; list-style: none; }

/* A dish: name and price on one line, the description below. */
.menu-item { padding: var(--space-3) 0; border-bottom: 1px solid var(--border-hairline); break-inside: avoid; }
.menu-item__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin: 0;
}
.menu-item__name {
  font-family: var(--font-display);
  font-size: var(--text-dish);
  font-weight: var(--weight-display-solid);
  line-height: var(--leading-intro);
  color: var(--text-strong);
}
.menu-item__diet {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0 5px;
  border: 1px solid var(--wine-300);
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-label);
  line-height: 16px;
  color: var(--wine-700);
  text-decoration: none;
  vertical-align: 3px;
  cursor: help;
}
.menu-item__price {
  flex-shrink: 0;
  font-size: var(--text-body-md);
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.menu-item__description {
  max-width: 48ch;
  margin: var(--space-1) 0 0;
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-tight);
  color: var(--text-body);
}

/* A set menu (the Christmas dinner): one centred column, the choices of a course joined by "of". */
.menu-group--set .menu-group__head,
.menu-group--set .menu-group__sections { max-width: 620px; margin-inline: auto; text-align: center; }
.menu-group--set .menu-group__sections { columns: auto; }
.menu-group--set .menu-section { margin-bottom: var(--space-8); }
.menu-group--set .menu-section__head { border-bottom: 0; padding-bottom: var(--space-2); }
.menu-group--set .menu-section__title {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
}
.menu-group--set .menu-section__note { text-transform: none; letter-spacing: 0; font-size: var(--text-body-sm); }
.menu-group--set .menu-item { padding: 0; border: 0; }
.menu-group--set .menu-item__line { justify-content: center; }
.menu-group--set .menu-item__name { font-size: var(--text-card-title); }
.menu-group--set .menu-item__description { margin-inline: auto; }
.menu-section--choice .menu-item + .menu-item::before {
  content: var(--menu-or, "of");
  display: block;
  margin: var(--space-1) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-body-md);
  color: var(--text-label);
}
.menu-group--set .menu-section + .menu-section::before {
  content: "";
  display: block;
  width: 40px;
  margin: 0 auto var(--space-8);
  border-top: 1px solid var(--wine-300);
}

/* A short notice above the menu, such as "fully booked". */
.menu-notice-wrap { padding-top: var(--space-9); }
.menu-notice {
  margin: 0;
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--wine-700);
  background: var(--wine-50);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-tight);
  color: var(--text-strong);
}

/* Reserving, under the menu. */
.menu-cta { padding-top: var(--section-gap-tight); }
.menu-page:has(.menu-group--set) .menu-cta__inner { margin-inline: auto; text-align: center; }
.menu-page:has(.menu-group--set) .menu-cta__actions { justify-content: center; }
.menu-cta__inner { border-top: 1px solid var(--border-hairline); padding-top: var(--space-8); max-width: var(--measure-wide); }
.menu-cta h2 {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-subsection);
  font-weight: var(--weight-display-solid);
  line-height: var(--leading-display);
  color: var(--wine-700);
}
.menu-cta p:not(.eyebrow) { margin-top: var(--space-4); font-size: var(--text-body-lg); line-height: var(--leading-body); color: var(--text-body); }
.menu-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-7); margin-top: var(--space-7); }

/* The family's wish at the end of the Christmas menu. */
.menu-greeting { padding-top: var(--section-gap-tight); text-align: center; }
.menu-greeting figure { margin: 0; }
.menu-greeting blockquote { margin: 0 auto; max-width: 760px; }
.menu-greeting blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-quote);
  font-weight: var(--weight-display);
  line-height: var(--leading-quote);
  color: var(--text-strong);
}
.menu-greeting blockquote p + p { margin-top: var(--space-4); }
.menu-greeting figcaption { margin-top: var(--space-5); color: var(--text-label); font-size: var(--text-fine); letter-spacing: var(--tracking-label); text-transform: uppercase; }

@media print {
  .header, .footer, .menu-jump, .menu-cta, .related-pages, .interior-hero__media, .interior-hero__scrim { display: none !important; }
  .menu-page .interior-hero { min-height: 0; background: none; }
  .menu-page .interior-hero__title, .menu-page .interior-hero .eyebrow { color: var(--text-strong); }
  .menu-group { padding-top: var(--space-7); }
}

/* The menu card and a seasonal menu in the top bar, on every page. */
.topbar__menus { display: flex; align-items: center; gap: var(--space-4); margin-left: var(--space-4); padding-left: var(--space-4); border-left: 1px solid var(--sand-18); }
.topbar .topbar__menu { color: var(--sand-100); text-decoration: underline; text-decoration-color: var(--sand-36); text-underline-offset: 4px; }
.topbar .topbar__menu:hover { text-decoration-color: currentColor; }
.topbar .topbar__menu--season { color: var(--wine-300); text-decoration-color: rgba(217, 180, 176, 0.4); }
.topbar .topbar__menu[aria-current="page"] { text-decoration-color: currentColor; }
.mobile-nav__link--menu { color: var(--wine-700); }
@media (max-width: 700px) {
  /* One row on a phone: the menus on the left, the languages on the right. The phone number moves to
     the bottom of the mobile menu, so the hero is not pushed below a stack of bars. */
  .topbar__address,
  .topbar__phone { display: none; }
  .topbar__menus { margin: 0; padding: 0; border-left: 0; gap: var(--space-4); min-width: 0; }
  .topbar .topbar__menu { white-space: nowrap; }
  .topbar__inner { flex-wrap: wrap; row-gap: 0; padding-block: var(--space-1); }
  .topbar__langs { margin-left: auto; gap: 0; }
  .topbar .lang { padding-inline: var(--space-2); }
}

/* Long cards: the jump links stay under the header while reading, so Dranken is one tap away from
   anywhere on the page. */
.menu-jump {
  position: sticky;
  top: var(--sticky-top, 88px);
  z-index: 20;
  padding-top: 0;
  margin-top: var(--space-9);
  background: var(--surface-page);
}
.menu-jump__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-jump ul { padding: var(--space-2) 0; }
.menu-group { scroll-margin-top: calc(var(--sticky-top, 88px) + var(--touch-target) + var(--space-6)); }
@media (max-width: 700px) {
  .menu-jump { margin-inline: 0; padding-inline: var(--gutter); max-width: none; }
  .menu-jump ul { flex-wrap: nowrap; overflow-x: auto; gap: var(--space-5); scrollbar-width: none; }
  .menu-jump ul::-webkit-scrollbar { display: none; }
  .menu-jump a { font-size: var(--text-body-lg); white-space: nowrap; }
  .menu-group { scroll-margin-top: calc(var(--sticky-top, 88px) + var(--touch-target) + var(--space-5)); }
}

/* Home: the menu card and the seasonal menu, right under the request bar. */
.menu-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-column)), 1fr));
  gap: var(--space-5);
  padding-top: var(--section-gap-tight);
}
.menu-highlight__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--card-padding);
  border: 1px solid var(--border-hairline);
  background: var(--sand-50);
  color: var(--text-strong);
  text-decoration: none;
  transition: var(--transition-hover);
}
.menu-highlight__card:hover { border-color: var(--wine-700); }
.menu-highlight__card--season { background: var(--surface-ink); border-color: var(--surface-ink); color: var(--sand-100); }
.menu-highlight__card--season:hover { background: var(--char-800); border-color: var(--char-800); }
.menu-highlight__title {
  font-family: var(--font-display);
  font-size: var(--text-subsection);
  font-weight: var(--weight-display-solid);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  color: var(--wine-700);
}
.menu-highlight__card--season .menu-highlight__title { color: var(--sand-50); }
.menu-highlight__intro { max-width: 46ch; font-size: var(--text-body-md); line-height: var(--leading-body-tight); color: var(--text-body); }
.menu-highlight__card--season .menu-highlight__intro { color: var(--sand-80); }
.menu-highlight__go { margin-top: auto; padding-top: var(--space-3); font-size: var(--text-caption); color: var(--wine-700); border-bottom: 1px solid currentColor; }
.menu-highlight__card--season .menu-highlight__go { color: var(--sand-100); }
.menu-highlight--2 .menu-highlight__card--season { order: -1; }

/* The Christmas menu while the dinner is not promoted: one quiet line under the home cards. */
.menu-highlight__season { margin-top: var(--space-4); }
@media (max-width: 480px) {
  .topbar .topbar__menu--walks { display: none; }
}
