/* Big Mama Garden and Café: menu app
   Colors, type and layout. Mobile first; wider screens are added below. */

/* ---------- Fonts (stored with the site, no internet needed) ---------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* includes the peso sign ₱ */
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Colors and sizes ---------- */
:root {
  --green: #315C40;
  --green-dark: #264A33;
  --cream: #F5F1E6;
  --pink: #D98AA5;
  --magenta: #C74378;
  --beige: #D9C7A0;
  --sage: #E7EAD9;
  --text: #28372D;
  --muted: #65715D;
  --white: #FFFFFF;
  --line: rgba(49, 92, 64, .13);
  --shadow: 0 1px 2px rgba(40, 55, 45, .05), 0 6px 18px rgba(40, 55, 45, .06);
  --shadow-lift: 0 2px 4px rgba(40, 55, 45, .07), 0 16px 32px rgba(40, 55, 45, .13);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --header-h: 62px;
  --bar-h: 62px;
  --bottom-nav-h: 62px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}
main { position: relative; z-index: 1; overflow-x: clip; }
img { max-width: 100%; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
.icon { width: 22px; height: 22px; flex: none; display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 500 1rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 6px 16px rgba(49, 92, 64, .22); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(49, 92, 64, .26); }
.btn-primary:active { transform: translateY(0); }
.btn-light { background: var(--cream); color: var(--green); }
.btn-light:hover { background: var(--white); }

/* ---------- Flower background ---------- */
.garden-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.float-bloom {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  color: var(--c); opacity: var(--o);
  animation: drift var(--d) ease-in-out var(--delay) infinite alternate;
}
.float-bloom svg {
  width: 100%; height: 100%; display: block;
  animation: turn calc(var(--d) * 4) linear infinite;
}
/* Bougainvillea flowers (and a few loose petals) drifting down and tumbling as they fall */
.fall {
  position: absolute; top: -60px; left: var(--x);
  width: var(--s); height: var(--s);
  color: var(--c); opacity: .88;
  animation: fall var(--d) linear var(--delay) infinite;
  will-change: transform;
}
.fall > svg {
  display: block; width: 100%; height: 100%;
  animation: tumble var(--t) ease-in-out var(--delay) infinite alternate;
}
.fall.is-petal { opacity: .8; }
.is-white { stroke: rgba(199, 67, 120, .35); stroke-width: 1.2px; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--dx), var(--dy), 0); }
}
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes fall {
  from { transform: translate3d(0, -8vh, 0); }
  to { transform: translate3d(var(--drift), 118vh, 0); }
}
@keyframes tumble {
  from { transform: perspective(240px) translateX(calc(var(--sway) * -1)) rotate(0deg) rotateX(0deg) rotateY(0deg); }
  to { transform: perspective(240px) translateX(var(--sway)) rotate(var(--spin)) rotateX(38deg) rotateY(58deg); }
}

/* Fewer flowers on small screens */
@media (max-width: 759px) {
  .fall.wide-only { display: none; }
  .fall { width: calc(var(--s) * .9); height: calc(var(--s) * .9); }
  .float-bloom:nth-child(3) { display: none; }
  .float-bloom { width: calc(var(--s) * .72); height: calc(var(--s) * .72); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(40, 55, 45, .06); }
.header-inner {
  position: relative;
  max-width: 1160px; height: 100%; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: center;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none; }
.brand-bloom { width: 34px; height: 34px; color: var(--magenta); flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.32rem; line-height: 1; }
.brand-sub { font-size: .6rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.top-nav { display: none; }

/* ---------- Bottom navigation (phones and tablets) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(40, 55, 45, .06);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--bottom-nav-h);
  color: var(--muted); text-decoration: none;
  font-size: .7rem; font-weight: 500; letter-spacing: .01em;
  transition: color .2s ease;
}
.bottom-nav a .icon { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--green); }
.bottom-nav a.active::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 30px; height: 3px; margin-left: -15px;
  border-radius: 0 0 3px 3px; background: var(--magenta);
}

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .header-inner { justify-content: space-between; padding: 0 24px; }
  .top-nav { display: flex; gap: 4px; }
  .top-nav a {
    padding: 8px 16px; border-radius: 999px;
    color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem;
    transition: background-color .2s ease, color .2s ease;
  }
  .top-nav a:hover { color: var(--green); background: rgba(231, 234, 217, .7); }
  .top-nav a.active { color: var(--green); background: var(--sage); }
}

/* ---------- Welcome (hero) ---------- */
.hero {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  padding: 34px 16px 40px;
}
.arch {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(78px, 21vw, 120px) clamp(22px, 6vw, 56px) clamp(34px, 7vw, 54px);
  background: var(--sage);
  border-radius: 280px 280px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.arch::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(49, 92, 64, .2);
  border-radius: inherit; pointer-events: none;
}
.arch-inner { position: relative; }
.sprig {
  position: absolute; bottom: 100%;
  width: 50%; height: auto; aspect-ratio: 260 / 170;
  overflow: visible; pointer-events: none;
  animation: sprig-sway 9s ease-in-out infinite alternate;
}
/* Two branches meet at the top of the arch and fall along its shoulders */
.sprig-right { left: 47%; transform-origin: 0% 100%; transform: rotate(55deg); }
.sprig-left { right: 47%; transform-origin: 100% 100%; transform: rotate(-55deg); animation-delay: -4s; }
@keyframes sprig-sway { from { rotate: -1.5deg; } to { rotate: 2deg; } }

.lockup-bloom { display: block; width: 46px; height: 46px; margin: 0 auto 8px; color: var(--magenta); }
.lockup-name {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(2.7rem, 12vw, 4.4rem); line-height: 1; letter-spacing: -.01em;
  color: var(--green);
}
.lockup-sub {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 14px 0 0; padding-left: .32em;
  font-size: clamp(.66rem, 2.6vw, .78rem); font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--green);
}
.lockup-sub::before, .lockup-sub::after { content: ""; width: 26px; height: 1px; background: var(--beige); flex: none; }
.welcome {
  margin: 30px 0 10px;
  font-size: clamp(1.55rem, 6vw, 2.3rem); line-height: 1.2;
  color: var(--text);
}
.welcome-text {
  max-width: 30ch; margin: 0 auto 28px;
  color: var(--muted); font-size: clamp(1rem, 3.8vw, 1.13rem);
}
.btn-explore .icon { width: 18px; height: 18px; }

.fade-in { animation: fade-up .9s var(--ease) both; }
.lockup.fade-in { animation-delay: .05s; }
.welcome.fade-in { animation-delay: .25s; }
.welcome-text.fade-in { animation-delay: .4s; }
.btn-explore.fade-in { animation-delay: .55s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (min-width: 860px) {
  .hero { min-height: min(calc(100svh - var(--header-h)), 860px); padding: 84px 24px 72px; }
  .arch { width: min(100%, 620px); }
  .lockup-name { font-size: 4.9rem; }
}

/* ---------- Section headings ---------- */
.menu-section { position: relative; max-width: 1160px; margin: 0 auto; padding: 48px 16px 72px; }
.section-head { text-align: center; margin: 0 auto 26px; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--magenta);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 18px; height: 1px; background: var(--pink); }
.section-head h2, .about-text h2 {
  margin: 0;
  font-size: clamp(1.95rem, 7vw, 2.8rem); line-height: 1.15;
  color: var(--green);
}
.section-sub { margin: 10px 0 0; color: var(--muted); font-size: 1.06rem; }
.empty-note { text-align: center; color: var(--muted); padding: 24px; background: rgba(255, 255, 255, .7); border-radius: 18px; }

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 0 auto 30px;
}
.cat-card {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 72px; padding: 12px;
  background: var(--white); color: var(--text); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.cat-icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sage); color: var(--green);
  transition: background-color .25s ease, color .25s ease;
}
.cat-icon .icon { width: 24px; height: 24px; }
.cat-text { display: flex; flex-direction: column; min-width: 0; }
.cat-name { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; line-height: 1.2; }
.cat-count { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.cat-card.active { border-color: var(--green); }
.cat-card.active .cat-icon { background: var(--green); color: var(--white); }
.cat-card.active::after {
  content: ""; position: absolute; left: 50%; bottom: -1.5px;
  width: 34px; height: 4px; margin-left: -17px;
  border-radius: 4px 4px 0 0; background: var(--magenta);
}
@media (hover: hover) {
  .cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: rgba(217, 138, 165, .7); }
  .cat-card.active:hover { border-color: var(--green); }
}
@media (max-width: 639px) {
  .cat-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
}
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .cat-card { flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 20px 10px 18px; }
  .cat-icon { width: 54px; height: 54px; }
  .cat-icon .icon { width: 27px; height: 27px; }
  .cat-name { font-size: 1.08rem; }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); }
}

/* Category chips that stay at the top while you scroll through dishes */
.cat-bar-holder { position: sticky; top: var(--header-h); z-index: 30; height: 0; overflow-anchor: none; }
.no-js .cat-bar-holder { display: none; }
.cat-bar {
  display: flex; gap: 8px;
  margin: 0 -16px; padding: 10px 16px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(40, 55, 45, .06);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar.show { opacity: 1; visibility: visible; transform: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 15px;
  background: var(--white); color: var(--text); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip .icon { width: 17px; height: 17px; color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: var(--white); }
.chip.active .icon { color: var(--white); }
@media (min-width: 1160px) {
  .cat-bar { margin: 0; border-radius: 0 0 18px 18px; border: 1px solid var(--line); border-top: 0; }
}

/* ---------- Dishes ---------- */
/* The page already leaves room for the header (scroll-padding on html); this adds room for the chip bar */
.panel { scroll-margin-top: calc(var(--bar-h) + 4px); }
.js .panel:not(.is-active) { display: none; }
.no-js .panel + .panel { margin-top: 56px; }
.panel.enter { animation: panel-in .45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px; padding: 16px 18px;
  background: var(--sage); border-radius: 20px;
}
.panel-icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: var(--white);
}
.panel-head h3 { margin: 0; font-size: 1.55rem; line-height: 1.15; color: var(--green); }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

.group + .group { margin-top: 32px; }
.group-head { margin: 0 4px 14px; }
.group-head h4 {
  display: flex; align-items: center; gap: 12px;
  margin: 0; font-size: 1.3rem; line-height: 1.2; color: var(--text);
}
.group-head h4::before {
  content: ""; flex: none; width: 9px; height: 9px;
  background: var(--pink); border-radius: 60% 0 60% 0; transform: rotate(45deg);
}
.group-head h4::after { content: ""; flex: 1; height: 1px; background: var(--beige); opacity: .8; }
.group-note { margin: 6px 0 0 21px; color: var(--muted); font-size: .93rem; font-style: italic; }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.items > li { display: flex; }
.item {
  --t: 78px;
  display: grid; grid-template-columns: var(--t) minmax(0, 1fr); gap: 14px; align-items: start;
  width: 100%; padding: 10px;
  font: inherit; color: inherit; text-align: left;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.item:active { transform: scale(.985); }
@media (hover: hover) {
  .item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: rgba(217, 138, 165, .6); }
}
.item-thumb {
  position: relative; overflow: hidden;
  width: var(--t); height: var(--t); border-radius: 14px;
  background: var(--sage);
}
.item-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--sage); }
.ph svg { width: 62%; height: 62%; color: var(--pink); opacity: .42; transform: rotate(var(--r, 0deg)); }
.badge {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3px 2px; text-align: center;
  font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--magenta); color: var(--white);
}
.badge-popular { background: var(--green); }
.badge-new { background: var(--beige); color: var(--text); }
.item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 2px; }
.item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.item-name { font-family: var(--serif); font-weight: 500; font-size: 1.07rem; line-height: 1.25; overflow-wrap: anywhere; }
.item-price { flex: none; font-weight: 600; font-size: 1rem; color: var(--green); white-space: nowrap; }
.item-price.ask { font-weight: 500; font-size: .8rem; color: var(--muted); }
.item-desc {
  color: var(--muted); font-size: .9rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 3px; }
.item-tags { display: contents; }
.item-serving { font-size: .8rem; color: var(--muted); }
.is-soon .item-name, .is-soon .item-price { color: var(--muted); }
.is-soon .item-thumb { opacity: .7; }

@media (min-width: 760px) {
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .item { --t: 92px; padding: 12px; }
  .item-name { font-size: 1.12rem; }
}

/* Labels from the menu */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px 4px 7px; border-radius: 999px;
  font-size: .72rem; font-weight: 500; line-height: 1;
  background: var(--sage); color: var(--green);
}
.tag-ic { width: 13px; height: 13px; flex: none; }
.tag-spicy { background: #F9E4EC; color: #A12F5D; }
.tag-extra-spicy { background: var(--magenta); color: var(--white); }
.tag-star { background: #F4ECD9; color: #6E5418; }
.tag-soon { background: #ECE8DE; color: #59634F; }
.tag-note { background: #F1ECE0; color: #5A5140; }
.tag-leaf { background: var(--sage); color: var(--green); }

/* ---------- Dish details pop-up ---------- */
html.modal-open { overflow: hidden; }
.item-dialog {
  width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh;
  margin: auto 0 0; padding: 0; border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--white); color: var(--text);
  box-shadow: 0 -10px 40px rgba(20, 30, 24, .2);
  overflow: hidden;
}
.item-dialog[open] { display: flex; flex-direction: column; animation: sheet-up .38s var(--ease); }
.item-dialog::backdrop { background: rgba(24, 36, 28, .5); animation: fade .3s ease; }
.dlg-card {
  overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}
.dlg-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
  cursor: pointer;
}
.dlg-close:hover { background: var(--white); color: var(--magenta); }
.dlg-media {
  width: 100%; aspect-ratio: 4 / 3; max-height: 40vh; max-height: 40svh;
  background: var(--sage); overflow: hidden;
}
.dlg-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dlg-media .ph svg { width: 34%; height: 34%; }
.dlg-body { padding: 20px 22px 24px; }
.dlg-kicker { margin: 0 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--magenta); }
.dlg-title { margin: 0 0 10px; font-size: 1.75rem; line-height: 1.2; color: var(--green); }
.dlg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dlg-tags:empty { display: none; }
.badge-pill { background: var(--magenta); color: var(--white); text-transform: uppercase; letter-spacing: .06em; font-size: .66rem; font-weight: 600; }
.badge-pill.is-popular { background: var(--green); }
.badge-pill.is-new { background: var(--beige); color: var(--text); }
.dlg-price { margin: 0 0 14px; font-size: 1.4rem; font-weight: 600; color: var(--text); }
.dlg-price.ask { font-size: 1rem; font-weight: 500; color: var(--muted); }
.dlg-desc { margin: 0 0 16px; font-size: 1.02rem; }
.dlg-desc:empty { display: none; }
.dlg-section { padding: 12px 0; border-top: 1px solid var(--line); }
.dlg-section h4 { margin: 0 0 4px; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dlg-section p { margin: 0; white-space: pre-line; }
.dlg-done { width: 100%; margin-top: 14px; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop-in { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 700px) {
  .item-dialog {
    width: min(560px, calc(100% - 48px)); max-height: min(88vh, 860px);
    margin: auto; border-radius: 24px;
    box-shadow: 0 24px 60px rgba(20, 30, 24, .28);
  }
  .item-dialog[open] { animation-name: pop-in; }
  .dlg-body { padding: 24px 30px 30px; }
  .dlg-title { font-size: 2rem; }
}

/* ---------- About ---------- */
.about { position: relative; padding: 56px 16px 76px; }
.about-inner { max-width: 1060px; margin: 0 auto; display: grid; gap: 40px; align-items: center; }
.about-media { position: relative; justify-self: center; width: min(100% - 20px, 440px); }
.about-media img, .about-media .ph-about {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 220px 220px 22px 22px;
  box-shadow: var(--shadow-lift);
}
.about-media::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1.5px solid var(--beige); border-radius: 220px 220px 22px 22px;
}
.about-bloom { position: absolute; right: -16px; top: 14%; width: 72px; height: 72px; color: var(--magenta); }
.about-text { text-align: center; }
.about-text h2 { font-size: clamp(1.75rem, 6vw, 2.45rem); }
.about-text p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; line-height: 1.75; margin: 16px auto 0; max-width: 54ch; }
@media (min-width: 860px) {
  .about { padding: 84px 24px 100px; }
  .about-inner { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .about-text { text-align: left; }
  .about-text p:not(.eyebrow) { margin-left: 0; }
}

/* ---------- Contact footer ---------- */
.site-footer { position: relative; z-index: 1; background: var(--green); color: var(--cream); padding: 56px 20px 0; }
.footer-inner { max-width: 1060px; margin: 0 auto; display: grid; gap: 40px; }
.footer-bloom { width: 42px; height: 42px; color: var(--pink); }
.footer-name { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.1rem; line-height: 1; color: var(--white); }
.footer-sub { margin: 8px 0 0; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--beige); }
.footer-line { margin: 18px 0 0; max-width: 34ch; color: rgba(245, 241, 230, .82); }
.footer-contact h2 { margin: 0 0 18px; font-size: 1.75rem; color: var(--white); }
.contact-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--pink); }
.contact-label { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--beige); }
.contact-value { display: block; color: var(--white); font-size: 1.02rem; line-height: 1.5; overflow-wrap: anywhere; }
a.contact-value { text-decoration: underline; text-decoration-color: rgba(217, 138, 165, .7); text-underline-offset: 4px; }
a.contact-value:hover { text-decoration-color: var(--pink); }
.contact-empty { margin: 0; color: rgba(245, 241, 230, .85); max-width: 46ch; }
.footer-bottom {
  max-width: 1060px; margin: 44px auto 0; padding: 18px 0 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  border-top: 1px solid rgba(245, 241, 230, .16);
  font-size: .85rem; color: rgba(245, 241, 230, .72);
}
.footer-bottom p { margin: 0; }
.install-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  font: inherit; color: var(--white); background: transparent;
  border: 1px solid rgba(245, 241, 230, .35); border-radius: 999px; cursor: pointer;
}
.install-link .icon { width: 18px; height: 18px; }
.install-link[hidden] { display: none; }
@media (min-width: 860px) {
  .site-footer { padding: 72px 24px 0; }
  .footer-inner { grid-template-columns: 1fr 1.25fr; gap: 64px; }
}

/* ---------- Gentle reveal while scrolling ---------- */
.reveal-ready .reveal:not(.in) { opacity: 0; }
.reveal-ready .reveal.in { animation: fade-up .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }

/* ---------- Less motion when the phone asks for it ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0s !important; transition-duration: .01ms !important;
  }
  .fall { display: none; }
  .float-bloom, .float-bloom svg, .sprig { animation: none !important; }
  .reveal-ready .reveal:not(.in) { opacity: 1; }
}

/* ---------- Printing the full menu ---------- */
@media print {
  body { background: #fff; padding: 0; }
  .garden-bg, .bottom-nav, .site-header, .cat-bar-holder, .cat-grid, .sprig, .btn-explore, .item-dialog, .install-link { display: none !important; }
  .js .panel:not(.is-active) { display: block; }
  .panel + .panel { margin-top: 32px; break-before: page; }
  .item { box-shadow: none; break-inside: avoid; }
  .reveal-ready .reveal:not(.in) { opacity: 1; }
}

/* ---------- Get the app ---------- */
.get-app {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--green);
  font: 500 .9rem/1 var(--sans); cursor: pointer;
}
.get-app .icon { width: 19px; height: 19px; }
.get-app span { display: none; }
.get-app[hidden] { display: none; }
@media (min-width: 420px) { .get-app span { display: inline; } .get-app { padding: 0 14px; } }
@media (max-width: 519px) { .header-inner { justify-content: flex-start; } }
@media (min-width: 860px) {
  .get-app { position: static; transform: none; margin-left: 12px; background: var(--green); color: var(--white); border-color: var(--green); }
  .get-app:hover { background: var(--green-dark); }
  .top-nav { margin-left: auto; }
}

/* ---------- Gallery ---------- */
.gallery-section { position: relative; max-width: 1160px; margin: 0 auto; padding: 32px 16px 40px; }
.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.g-item:first-child { grid-column: 1 / -1; }
.g-tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--sage); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.g-item:first-child .g-tile { aspect-ratio: 16 / 10; }
.g-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-cap {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--text);
  font-size: .78rem; font-weight: 500; line-height: 1.3; text-align: left;
}
@media (hover: hover) {
  .g-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .g-tile:hover img { transform: scale(1.04); }
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .g-item:first-child { grid-column: span 2; }
  .g-item:first-child .g-tile { aspect-ratio: auto; height: 100%; }
}
@media (min-width: 1024px) {
  .gallery-section { padding: 48px 24px 56px; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- Full-screen photo viewer ---------- */
.viewer {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: rgba(18, 28, 22, .96); color: var(--white);
  overflow: hidden;
}
.viewer[open] { display: block; animation: fade .25s ease; }
.viewer::backdrop { background: rgba(18, 28, 22, .96); }
.viewer-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
}
.viewer-count { font-size: .9rem; letter-spacing: .08em; color: rgba(255, 255, 255, .8); }
.viewer-btn {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: var(--white);
}
.viewer-btn:hover { background: rgba(255, 255, 255, .24); }
.viewer-btn .icon { width: 22px; height: 22px; }
.viewer-stage {
  position: absolute; inset: 66px 0 74px;
  display: grid; place-items: center;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.viewer-img {
  display: block; max-width: 100%; max-height: 100%;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  transition: transform .25s var(--ease);
  -webkit-user-drag: none;
}
.viewer-img.dragging { transition: none; }
.viewer-img.from-right { animation: slide-in-right .35s var(--ease); }
.viewer-img.from-left { animation: slide-in-left .35s var(--ease); }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slide-in-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.viewer-prev, .viewer-next { position: absolute; top: 50%; z-index: 2; margin-top: -23px; }
.viewer-prev { left: 12px; }
.viewer-prev .icon { transform: rotate(180deg); }
.viewer-next { right: 12px; }
.viewer-prev[hidden], .viewer-next[hidden] { display: none; }
.viewer-caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 14px 20px calc(22px + env(safe-area-inset-bottom));
  text-align: center; font-family: var(--serif); font-size: 1.15rem; color: var(--white);
}
@media (max-width: 639px) {
  .viewer-prev, .viewer-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); margin-top: 0; }
  .viewer-caption { padding-left: 70px; padding-right: 70px; }
}

/* Bigger photo inside the dish pop-up */
.dlg-media { position: relative; }
.dlg-media.has-photo { cursor: zoom-in; }
.dlg-zoom {
  position: absolute; left: 12px; bottom: 12px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14); cursor: zoom-in;
}
.dlg-zoom .icon { width: 18px; height: 18px; }

/* ---------- Install help ---------- */
.install-dialog {
  width: 100%; max-width: 100%; max-height: 92vh;
  margin: auto 0 0; padding: 0; border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--white); color: var(--text);
}
.install-dialog[open] { animation: sheet-up .35s var(--ease); }
.install-dialog::backdrop { background: rgba(24, 36, 28, .5); }
.install-body { padding: 28px 24px calc(28px + env(safe-area-inset-bottom)); text-align: center; overflow-y: auto; max-height: 92vh; }
.install-icon { display: block; margin: 0 auto 12px; border-radius: 18px; box-shadow: var(--shadow); }
.install-body h3 { margin: 0 0 8px; font-size: 1.6rem; color: var(--green); }
.install-lead { margin: 0 auto 18px; max-width: 34ch; color: var(--muted); }
.install-now { width: 100%; margin-bottom: 6px; }
.install-steps { text-align: left; padding: 14px 16px; margin-top: 12px; background: var(--cream); border-radius: 16px; }
.install-steps[hidden] { display: none; }
.install-steps h4 { margin: 0 0 6px; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.install-steps ol { margin: 0; padding-left: 20px; }
.install-steps li { margin: 4px 0; }
.key { display: inline-block; min-width: 24px; padding: 0 6px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); text-align: center; }
@media (min-width: 700px) {
  .install-dialog { width: min(460px, calc(100% - 48px)); margin: auto; border-radius: 24px; }
  .install-dialog[open] { animation-name: pop-in; }
}

/* ---------- Notices ---------- */
.toast {
  position: fixed; left: 16px; right: 16px; z-index: 60;
  bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom));
  width: fit-content; max-width: 440px; margin: 0 auto; padding: 12px 18px;
  border-radius: 14px; background: var(--green); color: var(--white);
  font-size: .92rem; line-height: 1.4; text-align: center;
  box-shadow: 0 10px 30px rgba(20, 30, 24, .25);
  transform: translateY(16px); opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: none; }
@media (min-width: 860px) { .toast { bottom: 24px; } }
.noscript { position: fixed; inset: auto 16px 16px; z-index: 99; padding: 14px; border-radius: 14px; background: var(--white); text-align: center; box-shadow: var(--shadow-lift); }
.empty-note small { display: block; margin-top: 8px; color: var(--muted); }

/* ---------- Drawings for dishes without a photo ---------- */
.item-art { display: grid; place-items: center; width: 100%; height: 100%; background: var(--sage); }
.item-art .art { width: 96%; height: 96%; display: block; }
.dlg-media .item-art .art { width: auto; height: 92%; max-width: 92%; }
.art-note {
  position: absolute; right: 12px; bottom: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); color: var(--muted);
  font-size: .72rem; letter-spacing: .04em;
}
