/* ============================================================
   URBAN JUNGLE — Café & Superfood Bar, Überlingen
   Strategy: Committed / Drenched forest green, cream reading
   surface, mango + terracotta accent. OKLCH throughout.
   ============================================================ */

/* ---------- Fonts (self-hosted display face) ---------- */
@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 100 900; /* single ExtraBold file covers every display weight */
  font-display: swap;
  src: url("fonts/saira-condensed-800.woff2") format("woff2");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Tokens ---------- */
:root {
  /* Forest ramp (brand primary, carries the surface) */
  --forest-900: oklch(0.21 0.045 158);
  --forest-800: oklch(0.27 0.058 158);
  --forest:     oklch(0.33 0.065 158);   /* ≈ #1B3A2A */
  --forest-600: oklch(0.42 0.070 157);
  --moss:       oklch(0.68 0.090 150);   /* light foliage green */

  /* Cream reading surface (client brand) */
  --cream:      oklch(0.955 0.016 92);   /* ≈ #F6F1E7 */
  --cream-deep: oklch(0.925 0.022 88);   /* subtle surface step */
  --cream-line: oklch(0.88 0.02 88);

  /* Accents (from the acai / mango bowls) */
  --mango:      oklch(0.79 0.145 71);    /* warm yellow-orange */
  --mango-deep: oklch(0.72 0.150 62);
  --terracotta: oklch(0.585 0.135 42);

  /* Ink (deep forest, never pure black) */
  --ink:        oklch(0.24 0.035 160);
  --ink-soft:   oklch(0.40 0.030 160);   /* body on cream, ≥4.5:1 */
  --on-forest:  oklch(0.955 0.016 92);
  --on-forest-soft: oklch(0.86 0.02 100);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");

  /* Fluid type scale (Saira Condensed display / Hanken Grotesk body) */
  --step-hero: clamp(2.7rem, 1.6rem + 5.4vw, 5.5rem);
  --step-h2:   clamp(2rem, 1.4rem + 2.6vw, 3.15rem);
  --step-h3:   clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --step-lead: clamp(1.1rem, 1rem + 0.5vw, 1.32rem);
  --step-body: 1.0625rem;

  --font-display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 22px;
  --radius-sm: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* quart-ish */
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-scale */
  --z-header: 100;
  --z-foliage: 2;
  --z-content: 3;
}

/* ---------- Element base ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}

p { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section-title { font-size: var(--step-h2); }
.section-title--light { color: var(--on-forest); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro, .lead {
  font-size: var(--step-lead);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-top: 1.1rem;
}
.reserve-lead { color: var(--on-forest-soft); }

.lead + p, .philo-copy p + p { margin-top: 1.1rem; max-width: 62ch; }

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0.6rem; left: 0.6rem; z-index: 200;
  background: var(--forest); color: var(--on-forest);
  padding: 0.6rem 1rem; border-radius: 10px; font-weight: 600;
  transform: translateY(-160%); transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--mango);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--mango);
  --btn-fg: var(--forest-900);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.85em 1.5em;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent; border-radius: 999px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px oklch(0.33 0.065 158 / 0.55); }
.btn:active { transform: translateY(0); }

.btn--mango { --btn-bg: var(--mango); --btn-fg: var(--forest-900); }
.btn--mango:hover { --btn-bg: var(--mango-deep); }
.btn--forest { --btn-bg: var(--forest); --btn-fg: var(--on-forest); }
.btn--forest:hover { --btn-bg: var(--forest-800); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--on-forest);
  border-color: oklch(0.955 0.016 92 / 0.5);
}
.btn--ghost:hover { --btn-bg: oklch(0.955 0.016 92 / 0.12); border-color: var(--on-forest); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
/* Keep nav legible where it sits over the bright foliage frame at the top */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 300%;
  background: linear-gradient(180deg, oklch(0.17 0.04 158 / 0.6), transparent);
  pointer-events: none; z-index: -1;
}
.site-header[data-scrolled="true"]::before { opacity: 0; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.site-header[data-scrolled="true"] {
  background: oklch(0.21 0.045 158 / 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 oklch(0.955 0.016 92 / 0.08);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { border-radius: 8px; }
.brand-word {
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.01em;
  color: var(--on-forest);
}
/* Before scroll, hero is dark so header text is light already */

.nav { display: flex; align-items: center; }
.nav-list {
  list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem);
  padding: 0;
}
.nav-list a {
  text-decoration: none; font-weight: 600; font-size: 0.98rem;
  color: var(--on-forest); position: relative; padding-block: 0.3rem;
}
.nav-list a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--mango); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-list a:not(.nav-cta):hover::after,
.nav-list a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }

.nav-cta {
  background: var(--mango); color: var(--forest-900) !important;
  padding: 0.55em 1.1em !important; border-radius: 999px;
  transition: background-color 0.25s ease, transform 0.25s var(--ease-out);
}
.nav-cta:hover { background: var(--mango-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--on-forest);
  border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — scroll-scrubbed jungle-train video
   Tall section; the stage pins to the viewport while the video
   scrubs frame-by-frame with scroll, then the page flows on.
   (JS lifts .vhero to a tall scroll stage; without JS or with
   reduced motion it stays one screen and loops/holds a frame.)
   ============================================================ */
.vhero {
  position: relative;
  height: 100svh;
  margin-top: -76px; /* run the video up under the sticky transparent header */
}
.vhero-stage {
  position: sticky; top: 0;
  height: 100svh; overflow: hidden;
  background: var(--forest-900);
  isolation: isolate;
}
/* Canvas paints the captured frame; CSS cover + zoom behave like the video did */
.vhero-canvas {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(var(--vzoom, 1)); transform-origin: center;
  will-change: transform;
}
/* Poster is the "loading screen" shown while the clip plays through once */
.vhero-poster {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: opacity 0.6s var(--ease-out);
}
.vhero-poster.is-hidden { opacity: 0; }
/* Video is decode-only: full size but sits behind the canvas/poster */
.vhero-video {
  position: absolute; inset: 0; z-index: -4;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.vhero-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    to top,
    oklch(0.16 0.04 158 / 0.88) 0%,
    oklch(0.16 0.04 158 / 0.4) 30%,
    transparent 52%,
    oklch(0.16 0.04 158 / 0.22) 100%);
}
.vhero-inner {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(2.2rem, 6vh, 5rem);
  padding-inline: clamp(1.5rem, 5vw, 5.5rem);
}
.vhero-mark {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  color: var(--on-forest);
  font-size: clamp(3.4rem, 14vw, 12rem);
  line-height: 0.84; letter-spacing: -0.01em;
  text-shadow: 0 2px 34px oklch(0.14 0.04 158 / 0.55);
  transition: opacity 0.2s linear;
}
.vhero-mark span { display: block; }

.vhero-scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px;
  border: 2px solid oklch(0.955 0.016 92 / 0.5); border-radius: 20px;
  opacity: calc(1 - var(--vp, 0) * 8); /* fades the moment scrubbing begins */
  transition: opacity 0.15s linear;
}
.vhero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  background: var(--mango); border-radius: 2px; transform: translateX(-50%);
  animation: scrollDrop 2s var(--ease-out) infinite;
}
@keyframes scrollDrop {
  0%, 20% { transform: translate(-50%, 0); opacity: 1; }
  80%, 100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ============================================================
   FOLIAGE (decorative botanical framing)
   ============================================================ */
.foliage {
  position: absolute; z-index: var(--z-foliage); pointer-events: none;
  height: auto; aspect-ratio: 1 / 1;
  filter: drop-shadow(0 12px 24px oklch(0.15 0.04 158 / 0.45));
  transform-origin: center;
}
.foliage--philo {
  right: -14%; bottom: -13%; width: clamp(220px, 25vw, 390px);
  opacity: 0.96; transform: rotate(-38deg);
  animation: sway 12s ease-in-out infinite alternate;
}
.foliage--reserve-l {
  left: -6%; top: -8%; width: clamp(210px, 25vw, 390px);
  opacity: 0.85; transform: rotate(165deg);
  animation: sway 14s ease-in-out infinite alternate;
}
.foliage--reserve-r {
  right: -3%; bottom: -10%; width: clamp(220px, 26vw, 400px);
  opacity: 0.85; transform: rotate(38deg) scaleX(-1);
  animation: sway 16s ease-in-out infinite alternate-reverse;
}
.foliage--footer {
  right: -4%; top: -18%; width: clamp(210px, 22vw, 360px);
  opacity: 0.8; transform: rotate(158deg);
  animation: sway 15s ease-in-out infinite alternate;
}
.foliage--footer-l {
  left: -4%; bottom: -9%; width: clamp(180px, 20vw, 320px);
  opacity: 0.75; transform: rotate(-28deg) scaleX(-1);
  animation: sway 17s ease-in-out infinite alternate-reverse;
}
@keyframes sway {
  from { rotate: -2.5deg; }
  to   { rotate: 2.5deg; }
}

/* ============================================================
   PHILOSOPHIE
   ============================================================ */
.philo { background: var(--cream); overflow: hidden; }
.philo-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.philo-marks { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 0.9rem; }
.philo-marks li, .locate-notes li {
  display: flex; align-items: center; gap: 0.7rem; font-weight: 600; color: var(--ink);
}
.mark-ico { color: var(--terracotta); font-size: 0.7rem; flex: none; }

.philo-figure { position: relative; }
.philo-figure img:not(.foliage) {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px oklch(0.19 0.04 158 / 0.5);
}
.philo-figure::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--moss); border-radius: var(--radius); z-index: -1; opacity: 0.55;
}

/* ============================================================
   MENU
   ============================================================ */
.menu { background: var(--cream-deep); }
.menu-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.dish {
  display: flex; flex-direction: column;
  background: var(--cream); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--cream-line);
  box-shadow: 0 20px 40px -32px oklch(0.19 0.04 158 / 0.45);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.dish:hover { transform: translateY(-4px); box-shadow: 0 30px 55px -30px oklch(0.19 0.04 158 / 0.5); }
.dish-media { overflow: hidden; aspect-ratio: 16/10; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.dish:hover .dish-media img { transform: scale(1.05); }
.dish-body { padding: clamp(1.4rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 1.1rem; }
.dish-cat { font-size: var(--step-h3); color: var(--forest); }
.dish-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.dish-list li { display: grid; gap: 0.2rem; }
.di-name { font-weight: 700; color: var(--ink); }
.di-desc { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; margin-top: 0.15rem; }

/* Feature cards span a touch more emphasis via image on larger screens */
@media (min-width: 900px) {
  .dish--feature .dish-media { aspect-ratio: 4/3; }
}

/* ============================================================
   GRAB & GO  (drenched forest banner)
   ============================================================ */
.grab {
  background: var(--forest); color: var(--on-forest);
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.grab::before {
  content: ""; position: absolute; inset: 0; background-image: var(--grain);
  opacity: 0.35; mix-blend-mode: overlay; pointer-events: none;
}
.grab-inner {
  position: relative; display: grid; grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.grab-title {
  font-size: var(--step-h2); color: var(--mango); margin-bottom: 0.8rem;
}
.grab-copy p { color: var(--on-forest-soft); max-width: 46ch; font-size: var(--step-lead); }
.grab-figure { justify-self: end; }
.grab-figure img {
  width: clamp(160px, 22vw, 240px); aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius); rotate: 3deg;
  border: 4px solid oklch(0.955 0.016 92 / 0.15);
  box-shadow: 0 24px 48px -24px oklch(0.15 0.04 158 / 0.7);
}

/* ============================================================
   RESERVIERUNG (drenched deep forest)
   ============================================================ */
.reserve {
  background: var(--forest-900); color: var(--on-forest);
  position: relative; overflow: hidden; text-align: center;
}
.reserve::before {
  content: ""; position: absolute; inset: 0; background-image: var(--grain);
  opacity: 0.3; mix-blend-mode: overlay; pointer-events: none;
}
.reserve-inner { position: relative; z-index: var(--z-content); max-width: 40rem; margin-inline: auto; }
.reserve-lead { margin-inline: auto; margin-bottom: 2.5rem; }
.resmio-slot { margin-top: 1rem; }
.resmio-placeholder {
  background: oklch(0.955 0.016 92 / 0.06);
  border: 1.5px dashed oklch(0.79 0.145 71 / 0.5);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid; gap: 1.2rem; justify-items: center;
}
.resmio-note { font-family: var(--font-display); font-size: 1.3rem; color: var(--on-forest); }
.resmio-fallback { color: var(--on-forest-soft); font-size: 0.95rem; max-width: 38ch; }

/* ============================================================
   GUTSCHEIN
   ============================================================ */
.gift { background: var(--cream); overflow: hidden; }
.gift-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.gift-figure img {
  width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px oklch(0.19 0.04 158 / 0.45);
}
.gift-copy .btn { margin-top: 2rem; }

/* ============================================================
   LAGE & ÖFFNUNGSZEITEN
   ============================================================ */
.locate { background: var(--cream-deep); }
.locate-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.locate-address {
  font-style: normal; font-size: 1.15rem; line-height: 1.6; margin-top: 1.5rem; color: var(--ink);
}
.locate-address strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }

.hours { margin-top: 1.8rem; display: grid; gap: 0; max-width: 24rem; }
.hours-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--cream-line);
  font-weight: 600;
}
.hours-row dt { color: var(--ink); }
.hours-row dd { color: var(--forest); font-weight: 700; }
.hours-row--muted dt, .hours-row--muted dd { color: var(--ink-soft); font-weight: 500; }

.locate-notes { list-style: none; padding: 0; margin: 1.8rem 0 2rem; display: grid; gap: 0.8rem; }

/* Stylised map (SVG-free, pure CSS placeholder that reads as a map) */
.locate-map {
  display: block; text-decoration: none;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 26px 52px -30px oklch(0.19 0.04 158 / 0.5);
}
.map-face {
  position: relative; aspect-ratio: 4/3; min-height: 260px;
  background:
    linear-gradient(0deg, oklch(0.9 0.03 140 / 0.6), oklch(0.9 0.03 140 / 0.6)),
    var(--forest);
  background-color: oklch(0.86 0.035 135);
  transition: transform 0.5s var(--ease-out);
}
.locate-map:hover .map-face { transform: scale(1.02); }
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(0.33 0.065 158 / 0.12) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.33 0.065 158 / 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-lake {
  position: absolute; left: -10%; bottom: -10%; width: 65%; height: 55%;
  background: oklch(0.72 0.06 220); border-radius: 45% 55% 60% 40%;
  box-shadow: inset 0 0 40px oklch(0.55 0.08 230 / 0.5);
  transform: rotate(-8deg);
}
.map-pin {
  position: absolute; left: 55%; top: 42%; width: 26px; height: 26px;
  transform: translate(-50%, -50%);
}
.map-pin-dot {
  position: absolute; inset: 0; background: var(--terracotta); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 6px 14px -4px oklch(0.4 0.13 42 / 0.7);
}
.map-pin-dot::after {
  content: ""; position: absolute; inset: 7px; background: var(--cream); border-radius: 50%;
}
.map-pin::before {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px);
  width: 14px; height: 5px; background: oklch(0.4 0.05 158 / 0.35); border-radius: 50%;
  filter: blur(1px);
}
.map-label {
  position: absolute; left: 55%; top: 42%; transform: translate(-50%, calc(-50% - 30px));
  background: var(--forest-900); color: var(--on-forest);
  font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 8px;
  white-space: nowrap;
}

/* ============================================================
   FOOTER (drenched deep forest)
   ============================================================ */
.site-footer {
  background: var(--forest-900); color: var(--on-forest);
  position: relative; overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 6rem);
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; background-image: var(--grain);
  opacity: 0.28; mix-blend-mode: overlay; pointer-events: none;
}
.footer-inner {
  position: relative; display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
  padding-bottom: 3rem;
}
.footer-title { font-size: var(--step-h2); color: var(--mango); margin-bottom: 0.8rem; }
.footer-lead p { color: var(--on-forest-soft); max-width: 42ch; }

.newsletter {
  margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.7rem; max-width: 30rem;
  position: relative;
}
.newsletter input {
  flex: 1 1 12rem; min-width: 0;
  background: oklch(0.955 0.016 92 / 0.08);
  border: 1.5px solid oklch(0.955 0.016 92 / 0.25);
  color: var(--on-forest); border-radius: 999px; padding: 0.8em 1.3em;
}
.newsletter input::placeholder { color: oklch(0.86 0.02 100 / 0.7); }
.newsletter input:focus-visible { outline-offset: 2px; border-color: var(--mango); }
.newsletter-msg { flex-basis: 100%; margin-top: 0.3rem; font-size: 0.9rem; font-weight: 600; color: var(--moss); min-height: 1.2em; }

.footer-social { display: grid; gap: 1rem; align-content: start; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none;
  color: var(--on-forest); font-weight: 600; width: fit-content;
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
}
.footer-social a:hover { color: var(--mango); transform: translateX(3px); }

.footer-base {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid oklch(0.955 0.016 92 / 0.12);
  font-size: 0.88rem; color: var(--on-forest-soft);
}
.footer-legal { list-style: none; display: flex; gap: 1.4rem; padding: 0; }
.footer-legal a { text-decoration: none; color: var(--on-forest-soft); }
.footer-legal a:hover { color: var(--mango); }

/* ============================================================
   REVEAL ANIMATIONS (enhance an already-visible default)
   Only engage when JS is present; content is visible without it.
   ============================================================ */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out-soft), transform 0.7s var(--ease-out-soft);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Stagger children of a group by index (set via inline style --i in JS) */
.js [data-reveal] { transition-delay: calc(var(--i, 0) * 80ms); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .philo-grid, .gift-grid, .locate-grid { grid-template-columns: 1fr; }
  .gift-figure { order: -1; }
  .grab-inner { grid-template-columns: 1fr; }
  .grab-figure { justify-self: start; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.4rem; padding: 2rem;
    background: oklch(0.21 0.045 158 / 0.97); backdrop-filter: blur(12px);
    transform: translateX(100%); transition: transform 0.4s var(--ease-out);
    box-shadow: -20px 0 60px -20px oklch(0.15 0.04 158 / 0.8);
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-list a { font-size: 1.3rem; }
  .nav-cta { font-size: 1.1rem !important; }
}

@media (max-width: 420px) {
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .foliage { animation: none !important; }
  .vhero-scroll span { animation: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .dish, .dish-media img, .map-face, .footer-social a { transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
