.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(244, 201, 95, 0.35);
}

.btn--primary:hover {
  background: #ffd76f;
  color: var(--ink);
}

.btn--ghost {
  background: rgba(255, 253, 248, 0.14);
  color: #fffdf8;
  border: 1px solid rgba(255, 253, 248, 0.35);
}

.btn--solid {
  background: var(--sage-dark);
  color: #fffdf8;
}

.btn--solid:hover {
  background: #4a533a;
  color: #fffdf8;
}

.btn--wide {
  width: 100%;
}

.section {
  margin-top: 2.75rem;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section > p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 42ch;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.photo-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: #d9decc;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-strip figure:hover img {
  transform: scale(1.04);
}

.contacts {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.contacts a {
  font-weight: 600;
  text-decoration: none;
}

.contacts dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.contacts dd {
  margin: 0.15rem 0 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
}

.social-link:hover {
  color: var(--sage-dark);
}

.social-link__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.map-frame {
  margin-top: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: #d9decc;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

/* Menu */
.menu-top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.menu-top h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

.menu-search {
  flex: 1 1 12rem;
  min-width: min(100%, 12rem);
  max-width: 18rem;
  margin-left: auto;
}

.menu-search__input {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
}

.menu-search__input::placeholder {
  color: var(--muted);
}

.menu-search__input:focus {
  outline: 2px solid var(--sage-dark, #5a6648);
  outline-offset: 2px;
}

.site-header[hidden] {
  display: none !important;
}

/* Spy/chip centering must not inherit venue `html { scroll-behavior: smooth }` nudges. */
html:has(body.page-menu) {
  scroll-behavior: auto;
}

/*
 * Menu chrome: chips live outside #site-header so they can stick on their own.
 * Wide: logo + chips both stick (stacked). Narrow: logo scrolls away; chips stick.
 */
body.page-menu .site-header {
  position: sticky;
  top: 0;
  z-index: 31;
  border-bottom: none;
  box-shadow: none;
  /* Solid: a translucent logo bar let the scrolling dishes show through it
     and through the seam above the chips (31/10/2026). */
  background: var(--header-bg-solid, var(--header-bg, Canvas));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.page-menu .cat-nav-wrap {
  position: sticky;
  /* 1px under the logo bar: its height is a fraction of a pixel, and
     --site-header-inner-h is rounded up, which left a see-through line. */
  top: calc(var(--site-header-inner-h, 4.5rem) - 1px);
  z-index: 30;
  box-sizing: border-box;
  min-height: 3.4rem;
  background: transparent;
}

body.page-menu .cat-nav-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: var(--header-bg-solid, var(--header-bg, Canvas));
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

body.page-menu {
  overflow-x: clip;
}

@media (max-width: 720px) {
  /* Full-width bar (not only the inset __inner) so gutters don't show a strip */
  body.page-menu .site-header {
    position: static;
    background: var(--header-bg, Canvas);
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: var(--header-blur, none);
    -webkit-backdrop-filter: var(--header-blur, none);
  }

  body.page-menu .site-header__inner {
    background: transparent;
    border-bottom: none;
  }

  body.page-menu .cat-nav-wrap {
    top: 0;
  }
}

.cat-nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0;
}

.cat-nav-wrap[hidden] {
  display: none !important;
}

.cat-nav-menu-btn {
  flex: 0 0 auto;
  appearance: none;
  box-sizing: border-box;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cat-nav-menu-btn[hidden] {
  display: none !important;
}

.cat-nav-menu-btn:hover {
  border-color: var(--sage);
  background: rgba(139, 154, 107, 0.12);
}

.cat-nav-menu-btn[aria-expanded="true"] {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #fffdf8;
}

.cat-nav-menu-btn:focus-visible {
  outline: 2px solid var(--sage-dark, #5a6648);
  outline-offset: 2px;
}

.cat-nav-menu-btn__icon {
  display: block;
}

.cat-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: min(100%, 16rem);
  max-width: min(100%, 22rem);
  max-height: min(70vh, 24rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.45rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #fffdf8;
  box-shadow: 0 14px 36px rgba(42, 50, 36, 0.16);
}

.cat-nav-menu[hidden] {
  display: none !important;
}

.cat-nav-menu a {
  display: block;
  text-decoration: none;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-nav-menu a:hover {
  background: rgba(139, 154, 107, 0.12);
}

.cat-nav-menu a.is-active {
  background: var(--sage-dark);
  color: #fffdf8;
}

.cat-nav-viewport {
  --cat-fade: 1.25rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.cat-nav-viewport.can-scroll-left {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--cat-fade),
    #000 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--cat-fade),
    #000 100%
  );
}

.cat-nav-viewport.can-scroll-right {
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - var(--cat-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - var(--cat-fade)),
    transparent 100%
  );
}

.cat-nav-viewport.can-scroll-left.can-scroll-right {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--cat-fade),
    #000 calc(100% - var(--cat-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--cat-fade),
    #000 calc(100% - var(--cat-fade)),
    transparent 100%
  );
}

.cat-nav {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* No side gutter — first/last chips align with .page content column
     (Menu / section titles / product tiles share the same max width). */
  padding-inline: 0;
}

.cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-nav__pill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--sage-dark);
  pointer-events: none;
  transition: transform 0.28s ease, width 0.28s ease, height 0.28s ease;
}

.cat-nav a {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cat-nav a:hover {
  border-color: var(--sage);
  background: rgba(139, 154, 107, 0.12);
}

.cat-nav a.is-active,
.cat-nav a.is-active:hover {
  background: transparent;
  border-color: transparent;
  color: #fffdf8;
}

@media (prefers-reduced-motion: reduce) {
  .cat-nav__pill {
    transition: none;
  }
}

.menu-section {
  margin-bottom: 2rem;
  scroll-margin-top: var(--sticky-offset, 8.5rem);
}

.menu-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  }
}

.menu-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
}

.menu-item__media {
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, rgba(139, 154, 107, 0.25), rgba(244, 201, 95, 0.18)),
    #e4e8d8;
  padding: 0;
  border: 0;
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

button.menu-item__media {
  cursor: pointer;
}

.menu-grid--one-col button.menu-item__media {
  cursor: pointer;
}

.menu-item__media img,
.menu-item__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.menu-item__body {
  padding: 0.85rem 0.95rem 0.15rem;
}

.menu-item__name {
  margin: 0;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.3;
}

.menu-item__price {
  margin: 0;
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
}

.menu-item__actions {
  padding: 0.4rem 0.95rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.menu-item__actions .qty {
  flex-shrink: 0;
  gap: 0.28rem;
  padding: 0.15rem;
}

.menu-item__actions .qty button {
  width: 1.75rem;
  height: 1.75rem;
}

.menu-item__actions .qty button::before {
  width: 0.55rem;
}

.menu-item__actions .qty button[data-inc]::after,
.menu-item__actions .qty button[data-mod-inc]::after {
  height: 0.55rem;
}

.menu-item__actions .qty span {
  min-width: 1.15rem;
  font-size: 0.9rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(139, 154, 107, 0.12);
  border-radius: 999px;
  padding: 0.2rem;
}

.qty button {
  position: relative;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Geometric +/− — absolute-center both bars (text glyphs sit off-center) */
.qty button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.65rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, calc(-50% - 1px));
}

.qty button[data-inc]::after,
.qty button[data-mod-inc]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 0.65rem;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, calc(-50% - 1px));
}

.qty span {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 420px) {
  .menu-item__body {
    padding: 0.55rem 0.55rem 0.1rem;
  }

  .menu-item__name {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .menu-item__price {
    font-size: 0.95rem;
  }

  .menu-item__actions {
    padding: 0.3rem 0.55rem 0.55rem;
    gap: 0.3rem;
    flex-wrap: wrap;
  }

  .menu-item__actions .qty button {
    width: 1.55rem;
    height: 1.55rem;
  }

  .menu-item__actions .qty span {
    min-width: 1rem;
    font-size: 0.85rem;
  }
}


/* A whole dish tile is one big + button (see menu-order.js); the - button keeps -1. */
.menu-item:has(button[data-inc]) {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.menu-item button[data-dec],
.menu-item button[data-inc] {
  cursor: pointer;
}
