/* =========================================================================
   MugTuon — SITE (public website, menu, booking). Loads after base.css.
   Mobile-first from 360px; enhancements at 640 / 768 / 1024 / 1280.
   Motion: transform/opacity only, <300ms, var(--ease-out). Hover only under (hover:hover) and (pointer:fine) — see the
   block at the end of this file.
   ========================================================================= */

/* ---------- Load-in (public pages only): children rise in, 25ms apart. 200ms rise + at most 4 x 25ms of delay = 300ms from the first paint to the last child at rest. ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.stagger > * { animation: rise 200ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 25ms); }
.stagger > :nth-child(2) { --i: 1; } .stagger > :nth-child(3) { --i: 2; } .stagger > :nth-child(4) { --i: 3; }
.stagger > :nth-child(n+5) { --i: 4; }
.hero .stagger > h1 { animation: none; }   /* the hero heading is the LCP element: it must paint at once, not fade in from opacity 0 */

/* =========================================================================
   Header
   ========================================================================= */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 238, 225, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.site-header .brand-cup { width: 38px; height: 38px; }
.site-header .brand-word { font-size: 19px; }
.site-header-row { height: 60px; }
.site-header .brand-link { flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.site-nav a { padding: 10px 8px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; font-weight: 700; font-size: 14px; color: var(--ink-2); text-decoration: none; border-radius: 10px; transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.site-nav a:active { transform: scale(.97); }
.site-nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
/* Sign in / account pill: filled green, cream text. The current page is marked by a gold ring, not the underline. */
.site-nav .nav-signin { margin-left: 4px; padding: 0 12px; border-radius: 999px; background: var(--green); color: var(--cream); }
.site-nav .nav-signin[aria-current="page"] { color: var(--cream); border-radius: 999px; box-shadow: inset 0 0 0 2px var(--gold); }
/* Optional words (" room", " / Sign up"): visually hidden on phones (still in the accessible name), plain text from 640px */
.nav-opt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 400px) { .site-nav .nav-signin { padding: 0 16px; } }
@media (min-width: 640px) {
  .site-nav { gap: 6px; }
  .site-nav a { padding: 10px 14px; font-size: 15px; }
  .site-nav .nav-signin { padding: 0 18px; }
  /* The nav links are inline-flex, so the leading space inside the span is trimmed: restore the gap with a margin */
  .nav-opt { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin-left: .3em; }
}

/* =========================================================================
   Landing — hero
   ========================================================================= */
.hero { background: var(--green); color: var(--cream); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(200, 161, 90, .14) 22px 23.5px); pointer-events: none; }
.hero-inner { position: relative; padding-top: 40px; padding-bottom: 36px; display: grid; gap: 28px; }
.hero-copy { position: relative; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 10.5vw, 68px); line-height: 1.02; letter-spacing: -.02em; margin-top: 14px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-2); }
.hero-lead { margin-top: 16px; font-size: 17.5px; line-height: 1.55; color: var(--muted-on-green); max-width: 34em; }
.hero-lead strong { color: var(--cream); }
.hero-ctas { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 520px) { .hero-ctas { grid-template-columns: auto auto; justify-content: start; } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-facts .pill { background: rgba(244, 238, 225, .08); color: var(--cream); border: 1px solid rgba(244, 238, 225, .18); font-size: 13px; padding: 7px 12px; }
.hero-facts .icon { color: var(--gold); }

/* Right-hand brand composition: concentric rings + cup, or an optional photo. Phones keep the ring wash above. */
.hero-art { display: none; }
@media (min-width: 768px) {
  .hero::after { display: none; }
  .hero-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
  .hero-copy { grid-column: 1 / 8; }
  .hero h1 { font-size: clamp(48px, 6.2vw, 76px); }
  .hero-art { display: block; grid-column: 8 / 13; position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); background: var(--green-2); border: 1px solid rgba(200, 161, 90, .22); overflow: hidden; box-shadow: 0 24px 60px rgba(8, 20, 13, .35); }
  .hero-rings { position: absolute; inset: 0; width: 100%; height: 100%; margin: auto; color: var(--gold); }
  .hero-rings .r1 { opacity: .16; } .hero-rings .r2 { opacity: .24; } .hero-rings .r3 { opacity: .36; } .hero-rings .r4 { opacity: .55; }
  .hero-mark { position: absolute; left: 50%; top: 50%; width: 38%; height: auto; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 14px 34px rgba(8, 20, 13, .35); }
  .hero-photo { width: 100%; height: 100%; object-fit: cover; }
  .hero-note { position: absolute; left: 16px; bottom: 16px; padding: 10px 14px; border-radius: var(--r-md); background: var(--cream); color: var(--ink); box-shadow: 0 10px 28px rgba(8, 20, 13, .28); display: grid; line-height: 1.1; }
  .hero-note-k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .hero-note-v { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--green); }
  .hero-note-v small { font: 700 13px var(--font-ui); color: var(--muted-2); }
}

/* =========================================================================
   Landing — sections
   ========================================================================= */
.section { padding: 44px 0; }
.section-alt { background: var(--cream-2); --muted: var(--muted-2); }
.section-head { margin-bottom: 20px; max-width: 40em; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(27px, 7vw, 40px); letter-spacing: -.015em; margin-top: 8px; }
.section-head p { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; }
.section-cta { margin-top: 20px; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .eyebrow { text-wrap: balance; }   /* two even lines on a 360px phone instead of a stranded word */
@media (min-width: 1024px) { .section { padding: 72px 0; } }

/* Problem -> solution */
.ps { display: grid; gap: 12px; }
@media (min-width: 768px) { .ps { grid-template-columns: 1fr 1fr; gap: 16px; } }
.ps-card { border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.ps-card.problem { background: transparent; border-style: dashed; }
.ps-card .eyebrow { display: block; margin-bottom: 8px; }
.eyebrow-green { color: var(--green); }
.ps-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.ps-card p { margin-top: 8px; color: var(--ink-2); }
.ps-card.solution { border-color: var(--gold); box-shadow: var(--shadow); }
.feature-list { display: grid; gap: 10px; margin-top: 16px; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--success-bg); color: var(--green); flex-shrink: 0; }
.feature-list strong { display: block; }
.feature-list span { color: var(--muted); font-size: 14.5px; }

/* Google review cards (index.php, built by review_card_html in layout.php). A review is normally the owner's screenshot of it (.rv-shot: a dark,
   Google-style image with a small caption); a review without one is a text card. Phones: the green summary plate, then a swipeable scroll-snap
   row. 768px: one column. 1024px: plate 4fr / list 8fr. 1200px: the list flows into two columns (reading order runs down the columns). The cards
   have no hover or press effect: they are not links. Long text cards are clamped to a few lines only once reviews.js has added .rv-js, so
   without JavaScript the whole text shows. */
.reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.rv-panel { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: var(--r-xl); background: var(--green-2); border: 1px solid rgba(200, 161, 90, .22); color: var(--cream); --focus: var(--focus-on-dark); }
.rv-panel::before, .rv-panel::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(226, 198, 143, .2); z-index: -1; }
.rv-panel::before { width: 240px; height: 240px; right: -90px; top: -90px; }
.rv-panel::after { width: 150px; height: 150px; right: -45px; top: -45px; background: rgba(226, 198, 143, .06); border-color: rgba(226, 198, 143, .3); }
.rv-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rv-score { font: 700 clamp(56px, 16vw, 72px) / 1 var(--font-display); letter-spacing: -.02em; color: var(--cream); font-variant-numeric: lining-nums; }
.rv-sum-text { flex: 1 1 11em; font-size: 14.5px; font-weight: 700; color: var(--muted-on-green); }
.rv-panel-stars { color: var(--gold-2); line-height: 0; }
.rv-lede { font: 500 20px / 1.35 var(--font-display); text-wrap: balance; max-width: 22ch; }
.rv-actions { display: grid; gap: 10px; margin-top: 4px; }
.rv-actions .btn { text-align: center; }

/* position: relative makes the row the containing block of the absolutely placed .sr-only text, so it scrolls and clips with the cards instead of widening the page */
.rv-list { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0 -16px; padding: 2px 16px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: thin; }
.rv-list:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.rv-list > .rv-card { flex: 0 0 min(88%, 420px); scroll-snap-align: start; }
.rv-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.rv-head { display: flex; align-items: center; gap: 12px; }
.rv-avatar { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--success-bg); color: var(--green); font: 700 15px / 1 var(--font-display); letter-spacing: .02em; }
.rv-who { min-width: 0; }
.rv-name { font-size: 16px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.rv-meta { margin-top: 2px; font-size: 13px; color: var(--muted-2); }
.rv-stars { color: #A8761B; line-height: 0; }
.rv-stars-svg { display: block; max-width: 100%; height: auto; }
.rv-star-off { opacity: .45; }
.rv-star-on { fill: currentColor; }
.rv-text { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; text-wrap: pretty; }
.rv-shot { position: relative; gap: 0; margin: 0; padding: 0; overflow: hidden; background: #FFFFFF; border-color: var(--line); }
.rv-shot img { display: block; width: 100%; height: auto; }
/* Phones: screenshots stack instead of swiping. A row is as tall as its tallest card (a long review leaves a large empty band under the short
   ones), and full width keeps Google's small text as large as the screen allows. Text-only lists keep the swipe row. */
@media (max-width: 767.98px) {
  .rv-list:has(.rv-shot) { display: grid; gap: 12px; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .rv-list:has(.rv-shot) > .rv-card { max-width: 480px; }
}
.rv-shot .rv-meta { margin: 0; padding: 9px 14px 11px; font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line); }
.rv-js .rv-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.rv-js .rv-card.is-open .rv-text { display: block; overflow: visible; }
.rv-more { align-self: flex-start; margin-top: -6px; }
.rv-more[hidden] { display: none; }
.reviews.is-solo .rv-panel { max-width: 640px; }
@media (min-width: 480px) { .reviews.is-solo .rv-actions { grid-auto-flow: column; justify-content: start; } }
@media (min-width: 768px) {
  .reviews { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
  .reviews.is-solo, .reviews.no-panel { grid-template-columns: minmax(0, 1fr); }
  .rv-panel { padding: 28px 26px; }
  .rv-panel::before { width: 300px; height: 300px; right: -110px; top: -110px; }
  .rv-panel::after { width: 190px; height: 190px; right: -55px; top: -55px; }
  .rv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .rv-list > .rv-card { max-width: none; }
  .rv-list > .rv-shot { max-width: 480px; }
}
@media (min-width: 1024px) {
  .reviews { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .reviews.is-solo, .reviews.no-panel { grid-template-columns: minmax(0, 1fr); }
  /* sticky only beside the list: in the one-column layout it would stay pinned while the list scrolls under it */
  .rv-panel { position: sticky; top: 92px; }
  .reviews.is-solo .rv-panel, .reviews.no-panel .rv-panel { position: relative; top: auto; }
}
@media (min-width: 1200px) {
  /* a grid, not CSS columns: columns rebalance when Read more opens a card, so the card just pressed would jump to the other column */
  .reviews .rv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .reviews .rv-list > .rv-shot { max-width: none; }
  /* Screenshots only (no Read more anywhere): packed columns, so a short screenshot never leaves an empty band beside a tall one.
     The order runs down the first column, then the second. */
  .reviews .rv-list:not(:has(.rv-text)) { display: block; columns: 2; column-gap: 16px; }
  .reviews .rv-list:not(:has(.rv-text)) > .rv-card { break-inside: avoid; margin: 0 0 16px; }
}

/* Rewards ladder: three connected steps */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: rung; }
.rung { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 24px; }
.rung:last-child { padding-bottom: 0; }
.rung-pts { width: 62px; height: 62px; border-radius: 50%; background: var(--green); color: var(--gold); display: grid; place-items: center; text-align: center; line-height: 1; position: relative; box-shadow: 0 0 0 5px var(--cream-2); }
.rung-pts b { font-family: var(--font-display); font-size: 24px; display: block; }
.rung-pts small { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted-on-green); }
.rung-text { padding-top: 6px; }
.rung-text strong { display: block; font-size: 17px; }
.rung-text span { font-size: 14px; color: var(--muted); }
/* connector: down the left on phones */
.rung:not(:last-child)::after { content: ""; position: absolute; left: 30px; top: 62px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--gold) 0 6px, transparent 6px 12px); }
@media (min-width: 768px) {
  .ladder { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 28px; }
  .rung { grid-template-columns: 1fr; gap: 14px; padding-bottom: 0; }
  .rung-text { padding-top: 0; }
  /* ...and across on tablets/desktop, from this circle to the next */
  .rung:not(:last-child)::after { left: 74px; right: -16px; top: 30px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(to right, var(--gold) 0 6px, transparent 6px 12px); }
}

/* Room teaser */
.room { display: grid; gap: 20px; }
@media (min-width: 1024px) { .room { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 40px; } }
.room-price { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--green); line-height: 1; }
.room-price-note { font: 700 16px var(--font-ui); color: var(--muted); }
.room-facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.room-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.room-facts .icon { color: var(--green); margin-top: 2px; }
.room .slot-chips { margin-top: 18px; }
.slot-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot-chip { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: var(--surface); }
.slot-chip b { display: block; font-size: 13px; }
.slot-chip span { font-size: 13px; color: var(--muted); }
.panel-room { box-shadow: var(--shadow); }
.panel-paused p { color: var(--ink-2); }   /* "Online booking is paused": the note that replaces the live week */
.panel-cta { margin-top: 14px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week a { text-decoration: none; color: inherit; border-radius: 12px; padding: 8px 2px; text-align: center; background: var(--surface); border: 1px solid var(--line); min-height: 64px; display: flex; flex-direction: column; justify-content: center; transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.week a:active { transform: scale(.97); }
.week .wd { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.week .dn { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.1; }
.week .fr { font-size: 12px; font-weight: 700; color: var(--success-fg); overflow-wrap: anywhere; }
/* 320-359px phones: seven columns leave ~32px each, so the count line drops to 11px (the closed day reads "Shut"; the link keeps its full aria-label). */
@media (max-width: 359px) { .week .fr { font-size: 11px; letter-spacing: -.01em; } .week .wd { letter-spacing: .02em; } }
.week .fr.none { color: var(--muted-2); }
.week a.closed { background: transparent; border-style: dashed; }
.week a.closed .wd, .week a.closed .dn, .week a.closed .fr { color: var(--muted-off); }

/* Visit */
.visit { display: grid; gap: 16px; }
@media (min-width: 768px) { .visit { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } }
.directions { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dir-link { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); min-height: 56px; transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
a.dir-link:active { transform: scale(.98); }
/* Tell-the-rider rows (MoveIt, Angkas) are plain notes, not links: no card, border or tap feedback, so they do not look tappable. */
.dir-note { display: flex; align-items: flex-start; gap: 12px; padding: 6px 14px; color: var(--ink-2); }
.dir-link > .icon:first-child { color: var(--green); }
.dir-note > .icon:first-child { color: var(--muted-2); margin-top: 2px; }
.dir-link span, .dir-note span { flex: 1; display: flex; flex-direction: column; }
.dir-link small, .dir-note small { color: var(--muted); font-size: 13px; }
.band-wrap { margin-top: 28px; }

.cta-band { background: var(--green); color: var(--cream); border-radius: var(--r-xl); padding: 28px 20px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(26px, 7vw, 38px); font-weight: 700; }
.cta-band p { color: var(--muted-on-green); margin-top: 8px; }
.cta-band .hero-ctas { justify-content: center; margin-top: 18px; }
.menu-cta { margin-top: 36px; }

/* Sticky quick-action bar (phones and tablets) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 12px calc(10px + var(--safe-b)); background: rgba(244, 238, 225, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sticky-cta .btn { min-height: 48px; font-size: 15px; }
/* Landing only (data-reveal-after): hidden while the hero is in view. Exit is quicker (120ms) than enter (200ms); visibility waits for the exit. */
.sticky-cta.is-armed { transform: translateY(100%); visibility: hidden; transition: transform 120ms var(--ease-out), visibility 0s linear 120ms; }
.sticky-cta.is-armed.is-in { transform: none; visibility: visible; transition: transform 200ms var(--ease-out), visibility 0s; }
body.has-sticky { padding-bottom: calc(72px + var(--safe-b)); }
body.has-sticky .toast-region { bottom: calc(84px + var(--safe-b)); }
@media (min-width: 1024px) { .sticky-cta { display: none; } body.has-sticky { padding-bottom: 0; } }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: var(--muted-on-green); padding: 36px 0 20px; font-size: 14.5px; }
.site-footer a { color: var(--cream); }
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; } }
.footer-h { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.footer-grid p + p, .footer-address + p { margin-top: 8px; }
.footer-address { font-style: normal; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
/* Footer links are 44px-high targets (WCAG 2.5.8 and a thumb-friendly size), also the ones inside a line of text (phone, directions). */
.footer-links a, .footer-grid p > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
.footer-note { margin-top: 12px; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 17px; color: var(--cream); }
.footer-handle { margin-top: 8px; color: var(--gold-2); font-weight: 700; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(244, 238, 225, .12); font-size: 13px; }
.footer-base a { color: var(--muted-on-green); display: inline-flex; align-items: center; min-height: 44px; }
.footer-base-links { display: inline-flex; flex-wrap: wrap; gap: 0 20px; }

/* =========================================================================
   Page hero (menu block below)
   ========================================================================= */
.page-hero { background: var(--green); color: var(--cream); padding: 28px 0 24px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 9vw, 52px); font-weight: 700; letter-spacing: -.015em; margin-top: 8px; }
.page-hero p { color: var(--muted-on-green); margin-top: 8px; max-width: 36em; }
@media (min-width: 1024px) { .page-hero { padding: 48px 0 40px; } }

/* =========================================================================
   Menu page (body.menu-page): the cream site, white cards, one green accent, gold only for tags. Built to be READ: a sticky section
   chooser, one clear heading per section, and three layouts chosen by the category's "layout" field:
     photo-cards   -> Rice Meals, Snacks: a photo tile + name + description + price chips (a row on phones, a card grid from 600px)
     price-rows    -> Coffee, Non-Coffee, Fruit Soda, Add-Ons: ONE white list, name on the left, prices lined up on the right
     feature-rows  -> Pasta: large photo beside the text, sides alternate from 768px
   Prices are tabular figures in green on white (9.5:1); descriptions are --ink-2 on white (9:1); small labels --muted-2 (6:1).
   Motion: transform / opacity (plus the documented colour exception), <= 220ms, var(--ease-out), hover for fine pointers only.
   ========================================================================= */
html.menu-html { background: var(--cream); }
.menu-page { min-height: 100vh; min-height: 100dvh; }

/* ---- hero: left aligned, quiet ---- */
.menu-hero { padding: 28px 0 4px; }
.menu-h1 { margin-top: 10px; max-width: 14em; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 9vw, 64px); line-height: 1.02; letter-spacing: -.02em; color: var(--green); text-wrap: balance; }
.menu-lede { margin-top: 14px; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.menu-handle-row { margin-top: 10px; font-size: 14px; color: var(--muted-2); }
.menu-handle { font-weight: 700; overflow-wrap: anywhere; text-underline-offset: 4px; }
@media (min-width: 1024px) { .menu-hero { padding-top: 48px; } .menu-lede { font-size: 18px; } }

.menu-empty { padding-top: 28px; padding-bottom: 48px; max-width: 560px; }
.menu-empty .icon { margin: 0 auto; color: var(--green); }

/* ---- sticky section chooser (one row, scrolls sideways on phones) ---- */
.cat-nav { position: sticky; top: 60px; z-index: 30; margin-top: 20px; background: rgba(244, 238, 225, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cat-nav-row { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; max-width: 1120px; margin: 0 auto; }
.cat-nav-row::-webkit-scrollbar { display: none; }
.cat-nav a { flex-shrink: 0; padding: 8px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out); }
.cat-nav a[aria-current="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }

/* ---- sections ---- */
.menu-main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }
.menu-cat, .menu-group { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 112px; }
.menu-main > :first-child { margin-top: 24px; padding-top: 0; border-top: 0; }
.menu-group > .menu-cat { margin-top: 0; padding-top: 18px; border-top: 0; }
.menu-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 6vw, 40px); line-height: 1.08; letter-spacing: -.015em; color: var(--green); text-wrap: balance; overflow-wrap: anywhere; }
.menu-blurb { margin-top: 10px; max-width: 38em; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 1024px) { .menu-cat, .menu-group { scroll-margin-top: 92px; } }

/* ---- photo cards (Rice Meals, Snacks): a mint card, the cut-out photo hangs over its top edge, dark price pills (one per size) with the Add button ---- */
.menu-page { --mint: #D6E8E0; --mint-ink: #17302A; --mint-ink-2: #34564A; }
.mc-list { list-style: none; margin: 0; padding: 52px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 60px 16px; }
.mc { display: flex; flex-direction: column; padding: 0 18px 18px; background: var(--mint); color: var(--mint-ink); border-radius: 24px; box-shadow: var(--shadow); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.mc-photo { position: relative; width: 100%; }
.mc-photo { aspect-ratio: 3 / 2; max-width: 320px; margin: -40px auto 6px; }
.mc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mc-photo img { object-position: 50% 100%; }
.mc-photo.is-mono { display: grid; place-items: center; border-radius: 16px; background: rgba(23, 48, 42, .09); color: var(--mint-ink-2); font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1; }
.mc-photo.is-mono { margin-top: 20px; }
.mc-body { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.mc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mc-name { overflow-wrap: anywhere; font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--mint-ink); }
.mc-desc { font-size: 15px; line-height: 1.5; color: var(--mint-ink-2); text-wrap: pretty; }
.mc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding-top: 10px; }
.mc-pills { display: grid; flex: 1 1 140px; gap: 8px; }
.mc-foot > .ord-add { flex: 0 0 auto; }
.mc-foot .ord-btn { min-height: 46px; padding-inline: 18px; border-color: var(--mint-ink); color: var(--mint-ink); background: transparent; font-weight: 800; }
.mc-pill { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 46px; padding: 6px 20px; border-radius: 999px; background: var(--mint-ink); color: var(--mint); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mc-price { margin-left: auto; }
.mc-lab { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #B7D1C5; }
@media (min-width: 600px) { .mc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .mc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 20px; } }

/* ---- price rows (Coffee, Non-Coffee, Fruit Soda, Add-Ons): one list, prices aligned ----
   Phone: name on the left, each price stacked "label over amount" on the right. From 640px: a header row names the columns instead. */
.pr-head { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 8px; padding: 0 4px; }
.pr-title, .pr-col { margin: 0; font-size: 13px; font-weight: 800; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.pr-title { display: inline-flex; align-items: center; gap: 8px; }
.pr-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pr-title-sp { display: none; }
.pr-col { display: none; }
.pr-list { list-style: none; margin: 0; padding: 0; max-width: 860px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.pr-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; transition: background-color 150ms var(--ease-out); }
.pr-row + .pr-row { border-top: 1px solid var(--line); }
.pr-name { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.pr-n { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.pr-note { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 14.5px; color: var(--muted-2); }
.pr-only { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.pr-prices { display: flex; gap: 6px; flex-shrink: 0; }
.pr-cell { display: flex; flex-direction: column; align-items: flex-end; min-width: 60px; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--green); }
.pr-lab { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.pr-nolab .pr-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pr-cell.is-empty { color: var(--muted-off); font-weight: 600; justify-content: flex-end; }
.pr-cell.is-empty { flex-direction: row; }
/* Three or four price columns do not fit beside the name on a phone: the name gets its own line and the prices sit under it */
.pr-c3 .pr-row, .pr-c4 .pr-row { flex-wrap: wrap; row-gap: 6px; }
.pr-c3 .pr-name, .pr-c4 .pr-name { flex: 1 1 100%; }
@media (max-width: 639px) {
  .pr-c3 .pr-prices, .pr-c4 .pr-prices { display: grid; flex: 1 1 100%; flex-shrink: 1; min-width: 0; gap: 6px 8px; }
  .pr-c3 .pr-prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-c4 .pr-prices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pr-c3 .pr-cell, .pr-c4 .pr-cell { align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 359px) {
  .pr-c4 .pr-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .pr-c1 { --pr-cols: minmax(0, 1fr) 88px; }
  .pr-c2 { --pr-cols: minmax(0, 1fr) 88px 88px; }
  .pr-c3 { --pr-cols: minmax(0, 1fr) 88px 88px 88px; }
  .pr-c4 { --pr-cols: minmax(0, 1fr) 88px 88px 88px 88px; }
  .pr-head, .pr-row { display: grid; grid-template-columns: var(--pr-cols); column-gap: 8px; align-items: center; max-width: 860px; }
  .pr-head { padding: 0 20px; }
  .pr-row { padding: 12px 20px; min-height: 52px; }
  .pr-col { display: block; text-align: right; }
  .pr-prices { display: contents; }
  .pr-cell { display: block; min-width: 0; text-align: right; }
  .pr-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the column header says it; a screen reader still gets "Hot ₱115" */
}

/* ---- hover: fine pointers only ---- */
@media (hover: hover) and (pointer: fine) {
  .mc:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 35, 28, .06), 0 16px 36px rgba(23, 35, 28, .12); }
  .pr-row:hover { background-color: #FBF8F1; }
  .cat-nav a:hover { border-color: var(--green); color: var(--green); }
  .cat-nav a[aria-current="true"]:hover { color: var(--cream); }
}
.mc { transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.mc:active, .cat-nav a:active { transform: scale(.985); }

/* ---- motion: the hero heading rises once; headings and lists reveal on scroll ---- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes menu-rise { from { opacity: 0; transform: translateY(12px); } }
  .menu-h1 { animation: menu-rise 260ms var(--ease-out) both; }
}
/* The starting opacity: 0 lives ONLY inside both guards (no scroll timelines, or reduced motion: the content is simply there). Cards animate
   `translate`, not `transform`, so the hover lift and the press still work after the reveal. No stagger. */
@supports (animation-timeline: view()) {
  @media screen and (prefers-reduced-motion: no-preference) {
    @keyframes menu-reveal { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
    .menu-cat > .menu-title, .menu-group > .menu-title, .menu-blurb, .mc, .pr-list, .pr-head {
      animation: menu-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

/* ---- print: ink on white, nothing sticky ---- */
@media print {
  html.menu-html { background: #fff; }
  .menu-page .site-header, .menu-page .site-footer, .menu-page .sticky-cta, .menu-page .cat-nav, .menu-page .menu-cta { display: none !important; }
  .menu-page :is(.mc, .pr-list) { break-inside: avoid; box-shadow: none; border-color: #000; }
  .menu-page :is(.menu-title, .menu-blurb, .mc, .pr-list, .pr-head) { animation: none; opacity: 1; transform: none; translate: none; }
  .menu-page :is(.menu-h1, .menu-title, .mc-name, .pr-cell, .mc-pill) { color: #000; }
  .menu-page .mc-pill { background: none; }
}

/* =========================================================================
   Booking — pick a slot
   ========================================================================= */
.book { padding-top: 20px; padding-bottom: 48px; }
.book-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.book-grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .book-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; }
  .book-side { position: sticky; top: 84px; max-height: calc(100vh - 104px); max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain; padding: 4px; margin: -4px; }
  .book-side .form-grid.two { grid-template-columns: 1fr; }
}
.book-side { scroll-margin-top: 80px; }
.step-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; font-weight: 800; margin-bottom: 10px; scroll-margin-top: 80px; }
.step-title ~ .step-title, .date-strip + .step-title { margin-top: 18px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--gold-2); display: inline-grid; place-items: center; font: 800 13px var(--font-ui); flex-shrink: 0; }
.step-date { font-weight: 600; color: var(--muted-2); }
.hint-after { margin-top: 10px; }

/* Dates: scrolls sideways on phones; padding gives focus rings room so nothing is clipped */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 6px 16px 10px; margin: 0 -16px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .date-strip { margin: 0 -6px; padding: 6px; scroll-padding-inline: 6px; scrollbar-width: thin; } }
.date-pill { scroll-snap-align: start; flex: 0 0 74px; min-height: 100px; padding: 8px 2px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.date-pill:active { transform: scale(.97); }
.date-pill .wd { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.date-pill .dn { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1; }
.date-pill .dots { display: flex; gap: 3px; margin-top: 4px; }
.date-pill .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--track); }
.date-pill .dots i.free { background: var(--success-fg); }
.date-pill .cnt { font-size: 12px; font-weight: 700; color: var(--success-fg); white-space: nowrap; }
.date-pill.closed { background: transparent; border-style: dashed; color: var(--muted-off); }
.date-pill.closed .wd, .date-pill.closed .cnt { color: var(--muted-off); }
.date-pill[aria-current="date"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.date-pill[aria-current="date"] .wd, .date-pill[aria-current="date"] .cnt { color: var(--gold-2); }
.date-pill[aria-current="date"] .dots i { background: rgba(244, 238, 225, .25); }
.date-pill[aria-current="date"] .dots i.free { background: var(--gold); }

.slot-list { display: grid; gap: 10px; }
.slot { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); min-height: 72px; transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
a.slot:active { transform: scale(.98); }
.slot[aria-current="true"] { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 58, 43, .15); }
.slot-time { flex: 1; min-width: 0; }
.slot-time strong { display: block; font-size: 16.5px; }
.slot-time span { font-size: 13px; color: var(--muted-2); }
.slot.is-off { background: transparent; color: var(--muted-2); border-style: dashed; }
.slot.is-off strong { color: var(--muted-2); }

/* Details form / summary + empty state */
.book-form { box-shadow: var(--shadow); }
.book-form .step-title { margin-top: 0; }
.book-form .summary-list { margin: 0 0 16px; }
.addons { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.addons .label { margin-bottom: 8px; padding: 0; }
.field-notes { margin-top: 14px; }
.deposit-note { margin: 16px 0 12px; }
.book-submit { margin-top: 16px; }
.book-form .hint.center { margin-top: 10px; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error-fg); }
.empty-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 28px 20px; color: var(--ink-2); }
.empty-state .icon { color: var(--green); }
.book-empty { background: transparent; border-style: dashed; }
.empty-points { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; text-align: left; font-size: 14px; }
.empty-points li { display: flex; gap: 8px; align-items: flex-start; }
.empty-points .icon { color: var(--success-fg); margin-top: 3px; }

/* Availability matrix */
.glance { margin-top: 40px; }
.glance-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.legend i.cell-available { background: var(--success-bg); }
.legend i.cell-booked { background: var(--track); }
.legend i.cell-held { background: var(--warn-bg); }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 340px; }
.matrix th, .matrix td { padding: 0; text-align: center; border-bottom: 1px solid var(--track); }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix thead th { padding: 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); background: var(--cream-2); }
.matrix tbody th { text-align: left; padding: 8px 12px; font-weight: 700; white-space: nowrap; }
.matrix tbody th small { display: block; color: var(--muted-2); font-weight: 600; }
.matrix td a, .matrix td span { display: grid; place-items: center; min-height: 44px; margin: 3px; border-radius: 9px; font-weight: 800; font-size: 12px; text-decoration: none; transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.matrix td a:active { transform: scale(.97); }
.cell-available { background: var(--success-bg); color: var(--success-fg); }
.cell-booked { background: var(--track); color: var(--ink-2); }
.cell-held { background: var(--warn-bg); color: var(--warn-fg); }
.cell-past, .cell-closed { color: var(--muted-off); }

/* =========================================================================
   Booking — your booking page (booking.php)
   ========================================================================= */
.bk { max-width: 560px; padding-top: 22px; padding-bottom: 48px; }
.bk-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.bk-actions { display: grid; gap: 12px; align-content: start; }
.bk-ref { text-align: center; }
@media (min-width: 768px) {
  .bk { max-width: 760px; }
  /* Ticket card: reference and time on the left, the summary on the right */
  .ticket { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .ticket-top { display: flex; flex-direction: column; justify-content: center; }
  .ticket-body { border-top: 0; border-left: 2px dashed var(--line); align-self: center; padding: 14px 22px; }
}
@media (min-width: 1024px) {
  .bk { max-width: 1040px; padding-top: 36px; }
  .bk-grid { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "state state" "ticket actions"; gap: 20px 32px; align-items: start; }
  .ticket { grid-area: ticket; }
  .state { grid-area: state; }
  .bk-actions { grid-area: actions; }
}

/* One distinct state banner per booking state */
.state { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--r-lg); background: var(--track); color: var(--ink-2); }
.state-ic { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: inherit; }
.state-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.2; color: inherit; }
.state-text p { margin-top: 4px; font-size: 14.5px; font-weight: 500; }
.state-ok { background: var(--success-bg); color: var(--success-fg); }
.state-ok .state-ic { background: var(--success-fg); color: var(--success-bg); }
.state-hold { background: var(--warn-bg); color: var(--warn-fg); }
.state-info { background: var(--info-bg); color: var(--info-fg); }
.state-err { background: var(--error-bg); color: var(--error-fg); }
.state-off { background: var(--track); color: var(--ink-2); }

.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.ticket-top { background: var(--green); color: var(--cream); padding: 20px; position: relative; }
.ticket-top .ref { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: .02em; margin-top: 6px; overflow-wrap: anywhere; }
.ticket-when { margin-top: 4px; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 19px; color: var(--gold-2); }
.ticket-body { padding: 6px 20px 18px; border-top: 2px dashed var(--line); }
.ticket-void .ticket-top { background: var(--ink-2); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; }

/* ---- State banners: soft tinted edge + shadow, one calm entrance ---- */
.state { border: 1px solid color-mix(in srgb, currentColor 16%, transparent); box-shadow: 0 1px 2px rgba(23, 35, 28, .05), 0 10px 22px -12px color-mix(in srgb, currentColor 45%, transparent); animation: rise var(--dur-2) var(--ease-out) both; }
.state[data-swapped] { animation: none; }   /* booking.js swaps the banner in place: the rise-in must not replay (REV-D12) */
.state-ic { box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent); }
.state-hold .state-ic, .state-info .state-ic, .state-err .state-ic { background: var(--surface); }
.state--confirming .state-ic, .state--pending .state-ic { opacity: .95; }
.bk-actions .alert { margin-bottom: 0; }

/* ---- Pay panel: hold timer, progress skeleton, secure line ---- */
.hold-timer { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn-fg); font-size: 14.5px; font-weight: 600; }
.hold-timer .icon { margin-top: 2px; }
.hold-timer .countdown { font-family: var(--font-display); font-size: 20px; line-height: 1; white-space: nowrap; transition: color 160ms var(--ease-out); }
.hold-timer .countdown.is-low { color: var(--error-fg); }   /* app.js adds it for the last two minutes */
.pay-progress { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--info-bg); color: var(--info-fg); font-size: 14.5px; font-weight: 600; }
.skeleton { display: grid; gap: 8px; }
.skeleton i { position: relative; display: block; height: 12px; border-radius: 6px; overflow: hidden; background: var(--track); }
.pay-progress .skeleton i { background: rgba(35, 70, 94, .13); }
.skeleton i:nth-child(2) { width: 82%; }
.skeleton i:nth-child(3) { width: 56%; }
.skeleton i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: translateX(-100%); animation: shimmer 1.5s var(--ease-out) infinite; }
.skeleton i:nth-child(2)::after { animation-delay: .15s; }
.skeleton i:nth-child(3)::after { animation-delay: .3s; }
@keyframes shimmer { to { transform: translateX(100%); } }
.pay-secure-line { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pay-secure-line .icon { color: var(--success-fg); }
.ref-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--gold); border-radius: var(--r-md); background: var(--cream-2); color: var(--ink-2); font-weight: 600; }
.ref-chip strong, .ref-inline { white-space: nowrap; -webkit-user-select: all; user-select: all; }
.ref-chip strong { font-family: var(--font-display); font-size: 20px; letter-spacing: .03em; color: var(--ink); overflow-wrap: anywhere; }
.dup-refund { box-shadow: inset 3px 0 0 var(--info-fg); }

/* ---- Book form: email row, secure checkout block ---- */
@media (min-width: 640px) { .form-grid.two .field-wide { grid-column: 1 / -1; } }
.pay-secure { display: grid; justify-items: center; gap: 10px; margin-top: 14px; text-align: center; }
.pay-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pay-method { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream-2); color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.pay-method .icon { color: var(--green); }

/* ---- Privacy notice page (privacy.php): the owner's text in one readable column ---- */
.legal { max-width: 720px; padding-top: 24px; padding-bottom: 56px; }
.legal-body > * + * { margin-top: 14px; }
.legal-body h2 { margin-top: 26px; font-size: 18px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { padding-left: 22px; }
.legal-body li + li { margin-top: 6px; }
.legal-body { overflow-wrap: anywhere; }
.legal-version { margin-top: 10px; }
.legal-reviews { margin-top: 14px; }
.legal-contact { margin-top: 20px; color: var(--ink-2); }

/* ---- Online booking unavailable: a calm full panel ---- */
.book-unavailable { display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center; max-width: 560px; min-height: min(60dvh, 420px); margin: 8px auto 0; padding: 40px 22px; box-shadow: var(--shadow); }
.book-unavailable p { max-width: 44ch; color: var(--ink-2); }
.unavail-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn-fg); box-shadow: 0 8px 18px -8px rgba(122, 90, 28, .5); }
.book-unavailable .btn { margin-top: 6px; }

/* ---- dev-pay.php (local only) ---- */
.devpay { max-width: 520px; margin: 12px auto 0; border: 2px dashed var(--gold); }
.devpay-tag { justify-self: start; display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--gold-2); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* =========================================================================
   Booking confirmed (booking-complete.php)
   ========================================================================= */
.done { max-width: 560px; padding-top: 22px; padding-bottom: 48px; }
.done-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.done-hero { background: var(--green); color: var(--cream); padding: 28px 22px; display: grid; gap: 10px; justify-items: start; position: relative; overflow: hidden; --focus: var(--focus-on-dark); }
.done-hero::after { content: ""; position: absolute; right: -80px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 18px, rgba(200, 161, 90, .16) 18px 19.5px); pointer-events: none; }
.done-mark { width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; }
/* The check is revealed left to right (a clip-path wipe, 140ms after a 100ms wait = 240ms in all) once the disc has risen in with the rest of the hero. Reduced motion: instant (base.css). */
.done-mark .icon { animation: check-wipe 140ms var(--ease-out) 100ms both; }
@keyframes check-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.done-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 8vw, 42px); letter-spacing: -.015em; }
.done-when { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 20px; color: var(--gold-2); line-height: 1.3; }
.done-ref { color: var(--muted-on-green); }
.done-ref strong { color: var(--cream); letter-spacing: .04em; }
.done-body { padding: 22px; }
.done-actions { display: grid; gap: 10px; margin-top: 20px; }
.done-summary { margin: 10px 0 0; }
.done-next { margin-top: 22px; }
@media (min-width: 768px) {
  .done { max-width: 880px; padding-top: 48px; }
  .done-card { display: grid; grid-template-columns: 1fr 1fr; }
  .done-hero { padding: 36px 32px; align-content: center; }
  .done-body { padding: 32px; align-self: center; }
}

/* =========================================================================
   Scroll-driven reveals (landing sections, rewards rungs)
   Everything, including the starting opacity: 0, lives inside the two guards. A browser without scroll timelines, or a person
   who asked for reduced motion, never sees any of it: the content is simply there. Subtle (12px rise, finished by 35% of the
   way in), one animation per block, no stagger.
   ========================================================================= */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes reveal-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
    .section .wrap > .section-head, .section .ps, .section .reviews, .section .rung, .section .room > *, .section .visit > *, .band-wrap .cta-band {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

/* =========================================================================
   Hover (pointer devices only)
   ========================================================================= */
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { background: var(--track); color: var(--ink); }
  .site-nav .nav-signin:hover { background: var(--green-2); color: var(--cream); }
  .week a:hover, a.dir-link:hover, a.slot:hover, .date-pill:hover { border-color: var(--green); color: var(--ink); }
  .date-pill[aria-current="date"]:hover { color: var(--cream); }
  a.cell-available:hover { background: var(--green); color: var(--cream); }
  .site-footer a:hover, .footer-base a:hover { color: var(--gold-2); }
}

/* Print: just the ticket, black on white (no private link, no buttons, no site chrome) */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip, .toast-region, .test-mode-banner, .state, .bk-actions, .private-link, .done-actions, .page-hero { display: none !important; }
  .bk, .done { max-width: none; padding: 0; }
  .ticket, .done-card { box-shadow: none; border: 1.5px solid #000; border-radius: 8px; break-inside: avoid; }
  .ticket-top, .done-hero { background: #fff !important; color: #000 !important; border-bottom: 2px dashed #000; }
  .ticket-top *, .done-hero * { color: #000 !important; }
  .done-hero::after { display: none; }
  .ticket-body { border-top: 0; }
  .pill { border: 1px solid #000; background: #fff; color: #000; }
}

/* Narrow phones (360px): keep brand + three links on one line without overflow */
@media (max-width: 399px) {
  .site-header-row { gap: 6px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-word { font-size: 18px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 10px 6px; font-size: 13.5px; }
  .site-nav .nav-signin { padding: 0 12px; }
}
/* Under 360px: cup tile only (the brand link keeps its "MugTuon home" label) so Home + Menu + Book + Sign in fit on one line; constant 60px header, no overflow at 320px.
   360-479px: the wordmark shows and the Home link steps aside (the wordmark is the Home link). aria-current stays on the Home link only, so
   no page ever has two current links; the active underline is simply not visible at that width. */
@media (max-width: 359px) {
  .site-header .brand-text { display: none; }
}
@media (min-width: 360px) and (max-width: 479px) {
  .site-nav .nav-home { display: none; }
}

/* =========================================================================
   404 page (public/404.html, static): centred message with two ways back
   ========================================================================= */
.nf { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; padding-block: 48px; text-align: center; }
.nf h1 { margin: 6px 0 12px; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 8vw, 48px); line-height: 1.1; color: var(--green); text-wrap: balance; }
.nf p:not(.eyebrow) { max-width: 44ch; margin: 0 0 24px; color: var(--muted-2); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 479px) {
  .nf-actions { flex-direction: column; align-self: stretch; }
  .nf-actions .btn { width: 100%; }
}

/* =========================================================================
   Booking policy (book.php), pay from the MugTuon balance and move a booking (booking.php)
   ========================================================================= */
.policy-box { display: grid; gap: 10px; margin: 12px 0; padding: 14px; border: 1.5px solid var(--gold); border-radius: var(--r-md); background: var(--cream-2); }
.policy-box .h3 { display: flex; align-items: center; gap: 8px; }
.policy-box .h3 .icon { color: var(--green); }
.policy-summary { font-weight: 700; color: var(--ink); }
.policy-more summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.policy-text { padding-top: 4px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.policy-text > * + * { margin-top: 8px; }
.policy-text h2 { font-size: 15px; }
.policy-text ul { padding-left: 20px; }
.policy-box .field + .field { margin-top: 0; }

.pay-balance { margin-top: 16px; }
.pay-or { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--muted-2); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pb-avail { text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pb-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--cream-2); color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.pb-note .icon { margin-top: 2px; color: var(--green); }
.pay-balance .hint { text-align: center; }
.move-panel .alert { margin-bottom: 0; }
.move-panel .select { min-height: 52px; }
.move-row dd { min-width: 0; }

/* =========================================================================
   Online ordering on the menu (only drawn while ordering is on): Add buttons under each item, the notice, the sticky "Your order" bar.
   Phones first: the Add row sits under the item (a full-width line of the price row); 640px+ the row is a grid, so it spans every column.
   ========================================================================= */
.ord-top { margin-top: 14px; }
.ord-top .alert { margin-bottom: 10px; }
.ord-banner { align-items: center; flex-wrap: wrap; }
.ord-banner > span { flex: 1 1 200px; }
.ord-intro { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.ord-intro .icon { margin-top: 2px; color: var(--green); }
.ord-add { display: flex; flex-wrap: wrap; gap: 8px; }
.ord-form { margin: 0; }
.ord-btn { min-width: 88px; border-color: var(--field-line); background: var(--surface); }
.pr-row:has(.ord-add) { flex-wrap: wrap; row-gap: 8px; }
.pr-row > .ord-add { flex: 1 1 100%; }
@media (min-width: 640px) {
  .pr-row > .ord-add { grid-column: 1 / -1; }
}
.menu-page :target { scroll-margin-top: 140px; }
@media (hover: hover) and (pointer: fine) { .ord-btn:hover { background: var(--green); color: var(--cream); border-color: var(--green); } }

/* The bar sits above the phone quick-action bar (72px); from 1024px that bar is gone and it floats at the bottom of the page. */
.ord-bar { position: fixed; left: 0; right: 0; bottom: calc(72px + var(--safe-b)); z-index: 46; display: flex; justify-content: center; padding: 0 12px 8px; pointer-events: none; }
.ord-bar .btn { pointer-events: auto; width: 100%; max-width: 520px; min-height: 52px; justify-content: space-between; box-shadow: var(--shadow-lg); }
.ord-bar-text { flex: 1; text-align: left; }
.ord-bar-total { font-size: 17px; }
.ord-bar-go { display: inline-flex; }
body.has-order { padding-bottom: calc(136px + var(--safe-b)); }
body.has-order .toast-region { bottom: calc(148px + var(--safe-b)); }
@media (min-width: 1024px) {
  .ord-bar { bottom: calc(12px + var(--safe-b)); }
  body.has-order { padding-bottom: calc(76px + var(--safe-b)); }
  body.has-order .toast-region { bottom: calc(84px + var(--safe-b)); }
}
@media print { .ord-bar, .ord-add, .ord-top { display: none !important; } }

/* =========================================================================
   P2/P3: footer closed notice, account note on the booking form, owner view of a booking
   ========================================================================= */
.footer-closed { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: rgba(244, 238, 225, .08); color: var(--cream); font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.account-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.account-note .icon { flex-shrink: 0; margin-top: 2px; }
.account-note a { display: inline-flex; align-items: center; min-height: 44px; }
.owner-note { margin-bottom: 0; }
.claim-panel > p { overflow-wrap: anywhere; }
