/*
 * Maison: the "Maison" restaurant profile and menu templates.
 *
 * Hand-written (not part of the Tailwind build) and scoped under .mz, so it can be loaded only by these two templates.
 * Colours come from the daisyUI theme the restaurant chose (--color-*), so every theme works: the page is "paper" (base-100),
 * "ink" (base-content) and one accent (primary). Type: a system serif for display, the system sans for text (no web fonts).
 */

.mz {
  --mz-ink: var(--color-base-content);
  --mz-paper: var(--color-base-100);
  --mz-paper-2: var(--color-base-200);
  --mz-paper-3: var(--color-base-300);
  --mz-accent: var(--color-primary);
  --mz-accent-ink: var(--color-primary-content);
  --mz-line: var(--color-base-300);
  --mz-soft: var(--color-base-content);
  --mz-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, "Times New Roman", serif;
  --mz-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Shapes follow the theme: cards use its box radius, buttons / inputs / chips its field radius (square themes stay square) */
  --mz-radius: var(--radius-box, 1rem);
  --mz-field: var(--radius-field, .5rem);
  --mz-ease: cubic-bezier(.2, .7, .2, 1);

  background: var(--mz-paper);
  color: var(--mz-ink);
  font-family: var(--mz-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@supports (color: color-mix(in oklab, red, blue)) {
  .mz {
    --mz-line: color-mix(in oklab, var(--mz-ink) 16%, transparent);
    --mz-soft: color-mix(in oklab, var(--mz-ink) 78%, var(--mz-paper));
  }
}

.mz *, .mz *::before, .mz *::after { box-sizing: border-box; }
/* No element resets here: Tailwind's base layer already resets buttons, links and images, and this file is NOT layered, so any
   reset written here would beat daisyUI's (layered) button and input styles used by the standard header. */
.mz :is(button, [role="button"], summary) { cursor: pointer; }
.mz :focus-visible:not(input) { outline: 2px solid var(--mz-accent); outline-offset: 3px; }
.mz [x-cloak] { display: none !important; }

.mz-serif { font-family: var(--mz-serif); }
.mz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mz-wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.mz-eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mz-soft); font-weight: 600; }

/* Ornament: a thin rule with a small diamond */
.mz-orn { display: flex; align-items: center; justify-content: center; gap: .9rem; color: var(--mz-accent); }
.mz-orn::before, .mz-orn::after { content: ""; height: 1px; width: min(18vw, 5.5rem); background: currentColor; opacity: .55; }
.mz-orn i { width: .42rem; height: .42rem; background: currentColor; transform: rotate(45deg); display: block; }

/* ---------- Buttons ---------- */
.mz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .8rem 1.9rem; border-radius: var(--mz-field);
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; line-height: 1.1;
  border: 1.5px solid var(--mz-accent);
  transition: transform .25s var(--mz-ease), background-color .25s, color .25s, box-shadow .25s;
}
.mz-btn--solid { background: var(--mz-accent); color: var(--mz-accent-ink); }
.mz-btn--ghost { background: transparent; color: var(--mz-ink); border-color: var(--mz-line); }
.mz-btn--solid:hover { transform: translateY(-2px); box-shadow: 0 .9rem 1.6rem -.9rem var(--mz-accent); }
.mz-btn--ghost:hover { border-color: var(--mz-accent); color: var(--mz-accent); transform: translateY(-2px); }
.mz-btn i { font-size: 1.25rem; }
.mz-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border-radius: var(--mz-field); border: 1px solid var(--mz-line); transition: background-color .2s, color .2s, border-color .2s;
}
.mz-icon-btn:hover { background: var(--mz-accent); color: var(--mz-accent-ink); border-color: var(--mz-accent); }
.mz-icon-btn i { font-size: 1.2rem; }

/* ---------- Language / currency menu ---------- */
.mz-pill {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; padding: 0 .85rem;
  border-radius: var(--mz-field); border: 1px solid var(--mz-line); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  background: color-mix(in oklab, var(--mz-paper) 82%, transparent); transition: border-color .2s, background-color .2s;
}
@supports not (color: color-mix(in oklab, red, blue)) { .mz-pill { background: var(--mz-paper); } }
.mz-pill:hover { border-color: var(--mz-accent); }
.mz-pill i { font-size: 1rem; opacity: .75; }
.mz-menu { position: relative; }
.mz-menu__list {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; min-width: 11rem; padding: .4rem; margin: 0; list-style: none;
  background: var(--mz-paper); border: 1px solid var(--mz-line); border-radius: var(--mz-radius); box-shadow: 0 1.5rem 3rem -1.25rem rgb(0 0 0 / .45);
}
.mz-menu__list button { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .65rem .8rem; border-radius: .7rem; text-align: left; font-size: .9rem; }
.mz-menu__list button:hover, .mz-menu__list button[aria-current="true"] { background: var(--mz-paper-2); color: var(--mz-accent); }
.mz-menu__list b { width: 1.75rem; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }

/* =====================================================================
   RESTAURANT PROFILE
   ===================================================================== */
.mz-top { position: absolute; inset: 0 0 auto 0; z-index: 30; display: flex; justify-content: flex-end; gap: .5rem; padding: max(1rem, env(safe-area-inset-top)) clamp(1rem, 4vw, 2rem) 0; }

.mz-hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6.5rem 1.5rem 5.5rem; overflow: hidden; }
.mz-hero__img { position: absolute; inset: 0; z-index: -2; }
.mz-hero__img img { width: 100%; height: 100%; object-fit: cover; animation: mz-drift 28s ease-in-out infinite alternate; }
.mz-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(130% 115% at 50% 0%, transparent 62%, var(--mz-paper) 100%),
  linear-gradient(to bottom, transparent 74%, var(--mz-paper) 100%); }
.mz-hero--plain::after { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vmin; height: 70vmin; z-index: -2; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--mz-accent) 22%, transparent), transparent); }
@supports not (color: color-mix(in oklab, red, blue)) { .mz-hero--plain::after { display: none; } }
.mz-hero__body { max-width: 54rem; display: flex; flex-direction: column; align-items: center; gap: 1.35rem; }
.mz-hero__logo { max-height: clamp(4.5rem, 12vh, 7.5rem); width: auto; object-fit: contain; }
.mz-hero__name { font-family: var(--mz-serif); font-weight: 500; font-size: clamp(2.7rem, 9vw, 6.4rem); line-height: .98; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.mz-hero__slogan { font-family: var(--mz-serif); font-style: italic; font-size: clamp(1.15rem, 3vw, 1.7rem); line-height: 1.4; color: var(--mz-soft); max-width: 36rem; margin: 0; text-wrap: balance; }
.mz-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: .75rem; }
.mz-hero__quick { display: flex; gap: .6rem; margin-top: .25rem; }
.mz-cue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .35rem; color: var(--mz-soft); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }
.mz-cue i { font-size: 1.3rem; animation: mz-bob 2.4s ease-in-out infinite; }

.mz-reveal { animation: mz-rise .9s var(--mz-ease) both; }
.mz-reveal:nth-child(2) { animation-delay: .08s; } .mz-reveal:nth-child(3) { animation-delay: .16s; }
.mz-reveal:nth-child(4) { animation-delay: .24s; } .mz-reveal:nth-child(5) { animation-delay: .32s; } .mz-reveal:nth-child(6) { animation-delay: .4s; }

.mz-section { padding-block: clamp(4rem, 10vw, 7.5rem); }
.mz-section + .mz-section { border-top: 1px solid var(--mz-line); }
.mz-title { font-family: var(--mz-serif); font-weight: 500; font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -.015em; margin: .6rem 0 0; text-wrap: balance; }

.mz-story { display: grid; gap: clamp(2rem, 6vw, 5rem); }
@media (min-width: 56rem) { .mz-story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.mz-story__quote { font-family: var(--mz-serif); font-style: italic; font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.35; color: var(--mz-accent); margin: 1.5rem 0 0; text-wrap: balance; }
.mz-story__text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.8; color: var(--mz-ink); margin: 0; }
.mz-story__text--cap::first-letter { font-family: var(--mz-serif); float: left; font-size: 4.4em; line-height: .82; padding: .08em .12em 0 0; color: var(--mz-accent); }

/* Gallery mosaic */
.mz-gallery__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.mz-mosaic { display: grid; gap: clamp(.5rem, 1.4vw, .9rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Equal tiles, at most 3 rows: 2 per row (6 photos) on a phone, 3 per row (9 photos) from tablet width */
@media (max-width: 47.99rem) { .mz-mosaic > .mz-tile:nth-child(n+7) { display: none; } }
@media (min-width: 48rem) {
  .mz-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mz-mosaic .mz-only-narrow, .mz-gallery__head .mz-only-narrow { display: none; }
}
.mz-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--mz-radius); background: var(--mz-paper-2); }
.mz-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--mz-ease); }
.mz-tile:hover img { transform: scale(1.05); }
.mz-tile__more { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; background: rgb(0 0 0 / .55); color: #fff; }
.mz-tile__more b { font-family: var(--mz-serif); font-size: 2rem; font-weight: 500; }
.mz-tile__more span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }

.mz-lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgb(8 8 8 / .94); padding: 3.5rem 1rem; }
.mz-lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: .75rem; }
.mz-lightbox__btn { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; color: #fff; background: rgb(255 255 255 / .12); }
.mz-lightbox__btn:hover { background: rgb(255 255 255 / .24); }
.mz-lightbox__btn i { font-size: 1.5rem; }
.mz-lightbox__count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgb(255 255 255 / .75); font-size: .85rem; letter-spacing: .12em; }

/* Visit */
.mz-visit { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 56rem) { .mz-visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.mz-address { font-family: var(--mz-serif); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.45; margin: 1.5rem 0 1.75rem; }
.mz-rows { display: grid; gap: .75rem; }
.mz-row { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; padding: .9rem 1.2rem; border: 1px solid var(--mz-line); border-radius: var(--mz-radius); transition: border-color .25s, transform .25s var(--mz-ease), background-color .25s; }
.mz-row:hover { border-color: var(--mz-accent); transform: translateX(.25rem); background: var(--mz-paper-2); }
.mz-row i { font-size: 1.5rem; color: var(--mz-accent); flex: none; }
.mz-row small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mz-soft); }
.mz-row span { display: block; font-size: 1.05rem; font-weight: 500; overflow-wrap: anywhere; }
.mz-social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* =====================================================================
   MENU
   ===================================================================== */
.mz-bar { position: sticky; top: 0; z-index: 40; background: var(--mz-paper); border-bottom: 1px solid var(--mz-line); box-shadow: 0 .5rem 1rem -.9rem rgb(0 0 0 / .35); }
@supports (backdrop-filter: blur(1px)) and (color: color-mix(in oklab, red, blue)) {
  .mz-bar { background: color-mix(in oklab, var(--mz-paper) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
}
.mz-bar__row { display: flex; align-items: center; gap: .6rem; min-height: 3.5rem; padding-block: .4rem; padding-top: max(.4rem, env(safe-area-inset-top)); }
.mz-bar__name { flex: 1; min-width: 0; font-family: var(--mz-serif); font-size: 1.2rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-searchbox { padding-block: 1.25rem 1rem; }
.mz-intro + .mz-searchbox { padding-top: 1.6rem; }
.mz-rail { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .15rem; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--mz-fade-start, 0px), #000 calc(100% - var(--mz-fade-end, 0px)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--mz-fade-start, 0px), #000 calc(100% - var(--mz-fade-end, 0px)), transparent 100%); }
.mz-rail::-webkit-scrollbar { display: none; }
/* Rails that scroll sideways: soft fade on the side with more (--mz-fade-* are set by maison-menu.js), grab cursor for the mouse */
.mz-rail-main { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--mz-fade-start, 0px), #000 calc(100% - var(--mz-fade-end, 0px)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--mz-fade-start, 0px), #000 calc(100% - var(--mz-fade-end, 0px)), transparent 100%); }
@media (hover: hover) and (pointer: fine) { .mz-rail, .mz-rail-main { cursor: grab; } }
.mz-rail.mz-rail--drag, .mz-rail-main.mz-rail--drag { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.mz-tab { flex: none; position: relative; padding: .7rem .95rem; font-size: .92rem; font-weight: 500; color: var(--mz-soft); white-space: nowrap; transition: color .2s; }
.mz-tab::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: 0; height: 2px; background: var(--mz-accent); transform: scaleX(0); transition: transform .3s var(--mz-ease); border-radius: 2px; }
.mz-tab[aria-current="true"] { color: var(--mz-ink); }
.mz-tab[aria-current="true"]::after { transform: scaleX(1); }

.mz-intro { text-align: center; padding-block: clamp(1.5rem, 5vw, 2.5rem) 0; }
.mz-intro img { max-height: 6rem; width: auto; margin: 0 auto 1.1rem; object-fit: contain; }
.mz-intro h1 { font-family: var(--mz-serif); font-weight: 500; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.05; margin: 0 0 1rem; letter-spacing: -.015em; text-wrap: balance; }


.mz-menu-body { max-width: 46rem; margin-inline: auto; padding: 0 clamp(1.25rem, 5vw, 2rem) 4rem; }
.mz-cat { padding-top: clamp(2.25rem, 6vw, 3.5rem); scroll-margin-top: 8rem; }
.mz-cat__head { margin-bottom: 1.1rem; }
.mz-cat__title { font-family: var(--mz-serif); font-weight: 500; font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.1; margin: .2rem 0 0; letter-spacing: -.01em; text-wrap: balance; }
.mz-cat__desc { margin: .6rem 0 0; font-family: var(--mz-serif); font-style: italic; color: var(--mz-soft); line-height: 1.55; }

.mz-item { display: block; width: 100%; text-align: left; padding: 1.05rem 0; border-top: 1px solid var(--mz-line); cursor: pointer; transition: background-color .2s; border-radius: 0; }
.mz-item:first-child { border-top: 0; }
.mz-item:hover .mz-item__name { color: var(--mz-accent); }
.mz-item__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: start; }
.mz-item__head { display: flex; align-items: baseline; gap: .6rem; }
.mz-item__name { font-family: var(--mz-serif); font-size: 1.15rem; font-weight: 500; line-height: 1.3; transition: color .2s; min-width: 0; }
.mz-item__leader { flex: 1; min-width: 1rem; align-self: end; margin-bottom: .32em; border-bottom: 2px dotted var(--mz-line); }
.mz-item__price { font-family: var(--mz-serif); font-weight: 600; font-size: 1.1rem; white-space: nowrap; color: var(--mz-accent); font-variant-numeric: tabular-nums; }
.mz-item__desc { margin: .3rem 0 0; font-size: .92rem; line-height: 1.55; color: var(--mz-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mz-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .55rem; color: var(--mz-soft); font-size: .8rem; }
.mz-item__meta i { font-size: 1.05rem; }
.mz-kcal { display: inline-flex; align-items: center; gap: .2rem; padding: .1rem .55rem; border-radius: var(--mz-field); border: 1px solid var(--mz-line); font-weight: 600; font-size: .75rem; }
.mz-item__photo { width: 6rem; height: 6rem; border-radius: var(--mz-radius); object-fit: cover; background: var(--mz-paper-2); }
.mz-item--photo .mz-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
@media (min-width: 40rem) { .mz-item__photo { width: 7rem; height: 7rem; } }

.mz-empty { text-align: center; padding: 4rem 1rem; color: var(--mz-soft); }
.mz-empty i { font-size: 2.5rem; opacity: .5; }

/* Item sheet: bottom sheet on phones, centred dialog from tablets */
.mz-sheet { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.mz-sheet__back { position: absolute; inset: 0; background: rgb(8 8 8 / .55); }
.mz-sheet__box { animation: mz-sheet .34s var(--mz-ease); position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--mz-paper); color: var(--mz-ink); border-radius: calc(var(--mz-radius) * 1.5) calc(var(--mz-radius) * 1.5) 0 0; box-shadow: 0 -1.5rem 3rem -1rem rgb(0 0 0 / .35); }
@media (min-width: 40rem) { .mz-sheet { align-items: center; padding: 2rem; } .mz-sheet__box { max-width: 32rem; border-radius: calc(var(--mz-radius) * 1.5); } }
.mz-sheet__close { position: absolute; top: .85rem; right: .85rem; z-index: 3; display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: var(--mz-field); background: var(--mz-paper); border: 1px solid var(--mz-line); box-shadow: 0 .4rem 1rem -.4rem rgb(0 0 0 / .4); }
.mz-sheet__close i { font-size: 1.25rem; }
.mz-sheet__photo { aspect-ratio: 1; width: 100%; max-height: 52vh; object-fit: cover; background: var(--mz-paper-2); flex: none; }
.mz-sheet__body { padding: 1.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.mz-sheet__title { font-family: var(--mz-serif); font-weight: 500; font-size: clamp(1.6rem, 5vw, 2rem); line-height: 1.15; margin: 0; padding-right: 2.5rem; text-wrap: balance; }
.mz-sheet__price { font-family: var(--mz-serif); font-size: 1.5rem; font-weight: 600; color: var(--mz-accent); margin-top: .5rem; }
.mz-sheet__desc { margin: 1rem 0 0; line-height: 1.7; color: var(--mz-soft); }
.mz-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.mz-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: var(--mz-field); border: 1px solid var(--mz-line); font-size: .82rem; }
.mz-tag i { color: var(--mz-accent); font-size: 1rem; }

/* The page footer of the layout sits right under the content */
.mz > footer { margin-top: 0 !important; }

/* ---------- Motion ---------- */
@keyframes mz-sheet { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: none; } }
@keyframes mz-rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes mz-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.35rem); } }
@keyframes mz-drift { from { transform: scale(1); } to { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .mz *, .mz *::before, .mz *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Scroll-to-top button (a standard daisyUI button, only placed here) */
.mz-to-top { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 45; }
