/* ============================================================
   Hegarty's Irish Pub — Drinks Menu
   Deep green + cream, lime accent from the pub's logo.
   Minimal, mobile-first, fullscreen (100dvh), safe-area aware.
   No drink data in here — layout only.
   ============================================================ */

/* --- Self-hosted fonts ------------------------------------------
   Fraunces and Manrope, SIL Open Font License 1.1
   (https://openfontlicense.org) — Fraunces © The Fraunces Project
   Authors; Manrope © Mikhail Sharanda. Variable woff2 subsets,
   previously served by Google Fonts, now shipped from
   assets/fonts/ so the site makes zero third-party requests. */

/* Fraunces — variable (optical size + weight), roman, latin */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-var.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;
}

/* Fraunces — variable roman, latin-ext */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Fraunces — variable italic, latin */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic-var.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;
}

/* Fraunces — variable italic, latin-ext */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Manrope — variable weight 400–700, latin */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-var.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;
}

/* Manrope — variable weight 400–700, latin-ext */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg:           #08160e;   /* deep green-black               */
  --bg-deep:      #050e09;   /* base under the photo layer     */
  --panel:        #0d2317;   /* stage card base                */
  --panel-hi:     #12301f;   /* stage card crown               */
  --line:         rgba(240, 231, 211, 0.09);
  --cream:        #f0e7d3;
  --cream-dim:    rgba(240, 231, 211, 0.62);
  --cream-faint:  rgba(240, 231, 211, 0.32);
  --lime:         #b8d935;   /* signature accent (pub logo)    */
  --lime-bright:  #d3ec60;   /* small text accents             */
  --lime-soft:    rgba(184, 217, 53, 0.38);
  --ink:          #131d07;   /* text on lime                   */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Manrope", "Helvetica Neue", Arial, sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  /* Stage geometry — shared by .drink-stage and the chevron
     anchors so arrows always sit at the stage's vertical centre */
  --stage-w: min(72vw, 39vh, 300px);
  --info-h:  175px;   /* drink-info block + fraction footprint  */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; }

/* --- Atmosphere 1: photo backdrop, fixed behind everything ----
   The optimized -mobile derivative only — never the 6MB original.
   A deep-green scrim keeps every slide readable; the smoke just
   ghosts through as atmosphere. */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg,
      rgba(5, 14, 9, 0.91) 0%,
      rgba(7, 19, 12, 0.83) 36%,
      rgba(5, 13, 8, 0.93) 100%),
    url("../assets/green-background-mobile.jpg") center / cover no-repeat,
    var(--bg-deep);
}

/* --- Atmosphere 2: soft vignette + film grain ------------------ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  background: radial-gradient(115% 85% at 50% 38%, transparent 52%, rgba(0, 0, 0, 0.5) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* --- Fixed chrome: the pub's lime logo, nothing else ---------- */
.chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding-top: calc(var(--sat) + 14px);
  padding-bottom: 32px; /* extends the scrim below the logo */
  text-align: center;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 14, 9, 0.94) 0%,
    rgba(5, 14, 9, 0.62) 55%,
    transparent 100%);
}

/* Logo + "Online Menu" tag as one inline-flex row. The .chrome
   parent already centers via text-align, and an inline-flex box
   shrinks to fit — so the pair centres without margins. */
.chrome-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  pointer-events: auto;
}

.chrome-logo {
  height: clamp(28px, 3.6vh, 38px);
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

/* A small, elegant tag beside the logo — never a competing headline. */
.chrome-subtitle {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.8vh, 16px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime, #b8d935);
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  white-space: nowrap;
}

/* --- Menu toggle --------------------------------------------------
   Deliberately independent from the non-interactive chrome.
   No frame, no pill — just three strokes, like a mark made in the
   margin of a printed page. 48px hit area stays intact. */
.menu-toggle {
  position: fixed;
  top: calc(var(--sat) + 8px);
  left: max(12px, env(safe-area-inset-left, 0px));
  z-index: 70;
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 0;
  background: none;
  color: var(--cream);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 180ms ease;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (hover: hover) {
  /* A quiet lime hint when closed; once open, the X stays cream. */
  .menu-toggle:not(.is-open):hover { color: var(--lime-bright); }
}

.menu-toggle:focus-visible,
.menu-item:focus-visible,
.menu-impressum:focus-visible,
.impressum-close:focus-visible {
  outline: 2px solid var(--lime-bright);
  outline-offset: 3px;
}

/* --- Menu layer and left drawer ---------------------------------- */
.menu-layer {
  position: fixed;
  inset: 0;
  z-index: 65;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.menu-layer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(5, 14, 9, 0.78);
  cursor: pointer;
}

.menu-drawer {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(88vw, 380px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--sat) + 82px) max(24px, env(safe-area-inset-right, 0px)) calc(var(--sab) + 24px) max(24px, env(safe-area-inset-left, 0px));
  border-right: 1px solid var(--line);
  background: var(--bg-deep);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
  scrollbar-color: var(--line) transparent;
  transform: translateX(-100%);
  transition: transform 260ms cubic-bezier(0.22, 0.8, 0.25, 1);
}

.menu-layer.is-open .menu-drawer { transform: translateX(0); }

.menu-drawer-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-header {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

/* Masthead: the pub name set like a printed menu's title page.
   Plain text so "Hegarty's Online Menu" stays whole for screen
   readers and copy/paste. */
.menu-wordmark {
  font-family: var(--font-display);
  font-size: clamp(20px, 5.4vw, 24px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--cream);
}

.menu-eyebrow {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.menu-header h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--cream);
}

.menu-drawer nav { margin-top: 30px; }

.menu-drawer ul {
  display: grid;
  gap: 14px;
  list-style: none;
}

/* Typographic list — no cards, no boxes, transparent background.
   The page you're on is marked the way a printed menu marks the
   specials: a lime stroke drawn in the margin of the line. */
.menu-item {
  position: relative;
  width: 100%;
  display: block;
  padding: 8px 8px 8px 0;
  border: 0;
  background: none;
  color: var(--cream-dim);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(24px, 6.4vw, 31px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, padding-left 180ms ease;
}

.menu-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--lime);
  transform: translateY(-50%);
  transition: width 180ms ease;
}

@media (hover: hover) {
  .menu-item:hover,
  .menu-impressum:hover { color: var(--cream); }
}

/* Active page — declared after :hover so it always wins. */
.menu-item[aria-current="page"] {
  color: var(--lime-bright);
}

.menu-footer {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* Borderless utility row — same quiet micro-label voice as the
   eyebrow, so the footer reads as part of the page, not a widget. */
.menu-impressum {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--cream-faint);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease;
}

@keyframes menu-item-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-layer.is-open .menu-item {
  animation: menu-item-in 300ms cubic-bezier(0.22, 0.8, 0.25, 1) both;
  animation-delay: calc(60ms + (var(--item-index) * 30ms));
}

/* --- Impressum dialog ------------------------------------------- */
.impressum-dialog {
  width: min(calc(100% - 32px), 560px);
  max-height: min(84dvh, 720px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-deep);
  color: var(--cream);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.impressum-dialog::backdrop { background: rgba(5, 14, 9, 0.84); }

.impressum-dialog-inner {
  max-height: min(84dvh, 720px);
  display: flex;
  flex-direction: column;
}

.impressum-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 14px 14px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 48, 31, 0.72), rgba(13, 35, 23, 0.2));
}

.impressum-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 500;
  line-height: 1;
}

.impressum-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 14, 9, 0.34);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.impressum-close:hover {
  border-color: var(--lime-soft);
  background: rgba(184, 217, 53, 0.08);
  color: var(--lime-bright);
}

.impressum-body {
  min-height: 0;
  overflow-y: auto;
  padding: 22px 22px calc(24px + var(--sab));
  overscroll-behavior: contain;
  scrollbar-color: var(--lime-soft) transparent;
}

.impressum-body section + section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.impressum-body h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 25px);
  font-weight: 500;
  line-height: 1.18;
  color: var(--cream);
}

.impressum-body p {
  color: var(--cream-dim);
  font-size: 14px;
  line-height: 1.65;
}

.impressum-body a {
  color: var(--lime-bright);
  text-decoration-color: var(--lime-soft);
  text-underline-offset: 3px;
}

@media (min-width: 600px) and (orientation: portrait) {
  .menu-drawer { width: min(56vw, 440px); }
}

@media (orientation: landscape) and (min-width: 600px) {
  .menu-drawer { width: min(48vw, 420px); }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle,
  .menu-toggle span,
  .menu-layer,
  .menu-drawer,
  .menu-item,
  .menu-item::before,
  .menu-impressum,
  .impressum-close { transition: none; }
  .menu-layer.is-open .menu-item { animation: none; }
}

/* --- Outer vertical pager: fills the viewport at any size ----- */
.swiper--pages {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;  /* fallback */
  height: 100dvh;
}

/* --- One fullscreen page --------------------------------------- */
.page {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--sat) + 56px);
  padding-bottom: calc(var(--sab) + 56px); /* room for scroll hint */
}

/* Page title: the serif voice of the menu, flanked by hairlines.
   Clearly above the logo chrome in hierarchy, never shouting. */
.page-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  padding-bottom: 8px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(27px, 7vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.page-label::before,
.page-label::after {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime-soft));
}

.page-label::after { transform: scaleX(-1); }

/* Long labels (e.g. "Weekly Kitchen Specials") shrink to one line */
.page-label--long {
  font-size: clamp(21px, 5.5vw, 28px);
  white-space: nowrap;
}

/* Optional week line under the page title (e.g. "Sept 7th – 14th"). */
.page-week {
  flex: 0 0 auto;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream-dim);
}

/* --- Horizontal drink carousel --------------------------------- */
.swiper--drinks {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.drink {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 20px;
}

/* The stage: one consistent treatment for every drink image.
   Rectangle panel + candlelight glow + thin border. It bottom-aligns
   in its flex area so the panel sits close above the text. */
.drink-figure {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.drink-stage {
  position: relative;
  width: var(--stage-w);
  max-width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 100%;
  overflow: hidden;
  /* WebKit fix: Safari skips overflow clipping for children that get
     their own compositing layer (object-fit: cover). A mask forces
     GPU-accelerated rounded-corner clipping; Blink ignores it. */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel-hi) 0%, var(--panel) 100%);
}

/* All images fill the stage edge-to-edge — no padding, no distortion. */
.drink-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.5));
}

/* Non-kitchen pages get uniform breathing room around the drink;
   weekly kitchen specials stay edge-to-edge. */
.drink-img--padded { padding: 4%; }

/* Imageless specials render a text placeholder card inside the stage. */
.drink-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12%;
  text-align: center;
}

.drink-placeholder-soon {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(11px, 2.8vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-soft, var(--lime, #b8d935));
}

.drink-placeholder-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 30px);
  color: var(--cream);
}

.drink-placeholder-desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(13px, 3.4vw, 16px);
  color: var(--cream-dim);
  max-width: 34ch;
}

/* Dietary labels (menuData vegan/vegetarian flags). */
.drink-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 0;
}

.drink-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--lime);
  color: var(--lime-bright);
}

.drink-tag--vegan {
  background: var(--lime);
  color: var(--ink);
}

/* <picture> wrapper keeps the stage sizing identical to a plain <img> */
.drink-stage picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Text block: badge · name · price · description ----------- */
.drink-info {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 148px; /* keeps the stage steady across slides */
  padding-top: 12px;
  text-align: center;
}

/* "New!" pill hangs on the seam between stage and text */
.drink-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, var(--lime-bright), var(--lime));
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(184, 217, 53, 0.32);
}

.drink-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(24px, 6.6vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.drink-price {
  margin-top: 9px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--lime-bright);
}

.drink-desc {
  margin: 7px auto 0;
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cream-dim);
}

/* --- Prev/next chevrons -----------------------------------------
   Featherweight line arrows tucked at the screen edges, centred
   on the stage. Loop mode wraps around, so they never disable.
   44px hit area, 10px glyph — supplement swipe, don't replace. */
.swiper--drinks .swiper-button-prev,
.swiper--drinks .swiper-button-next {
  top: auto;
  bottom: calc(var(--info-h) + var(--stage-w) * 2 / 3);
  left: max(4px, env(safe-area-inset-left, 0px));
  right: auto;
  width: 44px;
  height: 44px;
  margin-top: 0;
  transform: translateY(50%);
  background: none;
  color: var(--cream);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.swiper--drinks .swiper-button-next {
  left: auto;
  right: max(4px, env(safe-area-inset-right, 0px));
}

.swiper--drinks .swiper-button-prev::after,
.swiper--drinks .swiper-button-next::after {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.6));
}

.swiper--drinks .swiper-button-prev::after { transform: rotate(45deg); }
.swiper--drinks .swiper-button-next::after { transform: rotate(-135deg); }

@media (hover: hover) {
  .swiper--drinks .swiper-button-prev:hover,
  .swiper--drinks .swiper-button-next:hover { opacity: 0.95; }
}

.swiper--drinks .swiper-button-prev:active,
.swiper--drinks .swiper-button-next:active { opacity: 0.95; }

/* Only reachable if loop is ever switched off */
.swiper--drinks .swiper-button-disabled { opacity: 0.15; }

/* --- Position: minimal "2 / 4" fraction ------------------------ */
.swiper--drinks .swiper-pagination {
  position: static;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-align: center;
  color: var(--cream-dim);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.swiper--drinks .swiper-pagination-current {
  color: var(--lime-bright);
  font-size: 13px;
}

.swiper--drinks .swiper-pagination-total { color: var(--cream-dim); }

/* --- Scroll hint (hidden on the last page via body class) ----- */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sab) + 16px);
  transform: translateX(-50%);
  z-index: 30;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lime-soft);
  border-radius: 50%;
  background: rgba(5, 14, 9, 0.55);
  color: var(--lime-bright);
  pointer-events: none;
}

.scroll-hint svg {
  width: 14px;
  height: 14px;
  animation: hint-bob 1.9s ease-in-out infinite;
}

@keyframes hint-bob {
  0%, 100% { transform: translateY(-2px); }
  50%      { transform: translateY(2.5px); }
}

body.is-last-page .scroll-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

/* --- Page-load nudge: brief upward shift to hint at scrolling ---- */
.swiper--pages {
  animation: nudge-from-below 0.7s ease-in-out 0.8s 1 both;
}
@keyframes nudge-from-below {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}
@media (prefers-reduced-motion: reduce) {
  .swiper--pages { animation: none; }
}

/* --- Noscript fallback ----------------------------------------- */
.noscript-note {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 70;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 13px;
}

/* --- Reduced motion: no autoplay (JS), no bobbing -------------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint svg { animation: none; }
}

/* --- Large portrait (iPad etc.): same column, scaled up -------- */
@media (min-width: 600px) and (orientation: portrait) {
  :root {
    --stage-w: min(62vw, 46vh, 430px);
    --info-h:  217px;
  }
  .drink-info  { min-height: 190px; }
  .drink-name  { font-size: clamp(30px, 4.4vw, 42px); }
  .drink-price { font-size: 19px; }
  .drink-desc  { font-size: 15px; max-width: 40ch; }
}

/* --- Landscape / wide: stage left, text right ------------------
   Deliberate side-by-side composition; the stage is sized by
   viewport height so nothing ever crops on short screens. */
@media (orientation: landscape) and (min-width: 600px) {
  :root {
    --stage-w: min(45vh, 38vw, 480px);
    --info-h:  27px;   /* fraction footprint only — text sits beside */
  }
  .page {
    padding-top: calc(var(--sat) + 56px);
    padding-bottom: calc(var(--sab) + 40px);
  }
  .drink {
    flex-direction: row;
    justify-content: center;
    gap: clamp(22px, 4vw, 64px);
    padding-inline: clamp(20px, 5vw, 72px);
  }
  .drink-figure {
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    align-items: center;
  }
  .drink-info {
    flex: 0 1 420px;
    width: auto;
    min-height: 0;
    padding-top: 0;
    text-align: left;
  }
  .drink-badge {
    position: static;
    display: inline-block;
    transform: none;
    margin-bottom: 14px;
  }
  .drink-name { font-size: clamp(24px, 3.2vw, 44px); }
  .drink-desc { margin-inline: 0; }
  /* Stage is vertically centred here — arrows centre on the slide */
  .swiper--drinks .swiper-button-prev,
  .swiper--drinks .swiper-button-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* --- Short landscape (phones): tighten everything -------------- */
@media (orientation: landscape) and (min-width: 600px) and (max-height: 480px) {
  :root { --stage-w: min(40vh, 38vw, 480px); }
  .page {
    padding-top: calc(var(--sat) + 48px);
    padding-bottom: calc(var(--sab) + 32px);
  }
  .page-label {
    font-size: 19px;
    gap: 10px;
    padding-bottom: 2px;
  }
  .page-label::before,
  .page-label::after { width: 16px; }
  .drink-info  { max-width: 46vw; }
  .drink-badge { margin-bottom: 10px; }
  .drink-name  { font-size: clamp(19px, 3vw, 30px); }
  .drink-desc  { font-size: 12.5px; }
  .swiper--drinks .swiper-pagination { margin-top: 8px; }
}
