/* Lancabites: deep green, cream, chilli and gold. Motion: mask roll, tumbling herbs, blur-rise reveals, wipe-up cards, looping dish row. */
:root {
  --green: #0f3d2e;
  --deep: #082a20;
  --glow: #1f7a57;
  --cream: #f6efe0;
  --ink: #16160f;
  --chilli: #e0401f;
  --gold: #f2b630;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --m: clamp(20px, 5vw, 72px);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--body); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn, .add, .tray button, .close, .link { font: inherit; cursor: pointer; border: 0; }

/* BUTTONS */
.btn { display: inline-block; background: var(--gold); color: var(--deep); padding: 15px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.btn:active { transform: scale(0.96); }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.btn.dark { background: var(--deep); color: var(--cream); }
.small-btn { padding: 10px 18px; font-size: 0.9375rem; }

/* TOP BAR */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--m); background: rgba(8, 42, 32, 0.88); backdrop-filter: blur(10px); color: var(--cream); }
.mark { font: 800 1.6rem/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.mark i { font-style: normal; color: var(--gold); }
.bar nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.bar nav a { position: relative; text-decoration: none; font-weight: 500; padding: 6px 0; }
.bar nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width 0.35s var(--ease); }
.bar nav a:hover::after { width: 100%; }

/* HERO */
.hero { position: relative; overflow: hidden; min-height: max(100svh, 680px); display: flex; background: radial-gradient(ellipse at 30% 40%, var(--glow) 0, var(--green) 52%, var(--deep) 100%); color: var(--cream); }
.hero-grid { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(24px, 5vw, 80px); padding: 120px var(--m) 72px; }
.hero h1 { font: 800 clamp(2.5rem, 6vw, 5.4rem)/0.98 var(--display); letter-spacing: -0.03em; color: #fff; }
.mask { display: block; overflow: hidden; padding-bottom: 0.1em; }
.line { display: block; }
.em { color: var(--gold); }
.lead { margin-top: 26px; max-width: 46ch; font-size: 1.1875rem; }
.hero-act { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.plate { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 10px solid var(--cream); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.plate img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.plate-cap { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); white-space: nowrap; background: var(--chilli); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.9375rem; }

/* Tumbling herbs and vegetables */
.fall { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); pointer-events: none; transform: rotate(var(--tr)); }
.fall img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35)); }
.js .fall { transform: translateY(-120vh) rotate(var(--r)); opacity: 0; }
.js .fall.in { transform: rotate(var(--tr)); opacity: 1; transition: transform 1.3s var(--ease) var(--d), opacity 0.3s ease var(--d); }
.js .fall.in img { animation: bob var(--bob) ease-in-out 1.8s infinite alternate; }
@keyframes bob { to { transform: translateY(-10px) rotate(5deg); } }

/* Entrance: headline lines roll up through a mask, the plate opens like an iris */
.js .line { transform: translateY(105%); }
.js .hero.go .line { transform: none; transition: transform 1s var(--ease); }
.js .hero.go .mask:nth-child(2) .line { transition-delay: 0.14s; }
.js .plate { clip-path: circle(0%); transform: scale(1.06) rotate(-6deg); }
.js .hero.go .plate { clip-path: circle(75%); transform: none; transition: clip-path 1.2s var(--ease) 0.3s, transform 1.4s var(--ease) 0.3s; }

/* Reveal on scroll: fade, unblur, rise. Once only. */
.js [data-reveal] { opacity: 0; filter: blur(8px); transform: translateY(26px); transition: opacity 0.9s var(--ease) var(--d, 0ms), filter 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; filter: none; transform: none; }
.js .wipe { clip-path: inset(100% 0 0 0 round 16px); opacity: 0; transform: translateY(80px); }
.js .wipe.in { clip-path: inset(0 0 0 0 round 16px); opacity: 1; transform: none; transition: clip-path 1.2s var(--ease) var(--d, 0ms), opacity 0.6s ease var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms); }

/* ABOUT */
.about { padding: clamp(72px, 12vw, 160px) var(--m); }
.eyebrow { color: var(--chilli); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.875rem; margin-bottom: 20px; }
.about h2 { font: 700 clamp(1.9rem, 4.6vw, 3.8rem)/1.08 var(--display); letter-spacing: -0.025em; max-width: 22ch; }
.about-text { margin-top: 28px; max-width: 56ch; font-size: 1.1875rem; }

/* DISH ROW: loops forever, pauses on hover */
.row-section { background: var(--deep); padding: 56px 0; }
.loop { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.loop-track { display: flex; width: max-content; animation: loop 50s linear infinite; }
.loop:hover .loop-track, .loop:focus-within .loop-track { animation-play-state: paused; }
@keyframes loop { to { transform: translateX(-50%); } }
.dish { position: relative; flex: none; width: clamp(200px, 22vw, 300px); aspect-ratio: 4 / 5; margin-right: 20px; border-radius: 18px; overflow: hidden; background: #111; }
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.dish:hover img { transform: scale(1.06); }
.dish::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); }
.dish-tag { position: absolute; z-index: 1; top: 12px; left: 12px; background: var(--cream); color: var(--ink); font-size: 0.8125rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.dish-name { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; color: #fff; font: 700 1.1875rem/1.2 var(--display); }

/* MENU */
.menu { max-width: 1000px; margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--m); }
.menu h2, .why h2, .contact h2 { font: 800 clamp(2.2rem, 6vw, 4.6rem)/1 var(--display); letter-spacing: -0.03em; }
.note { margin-top: 14px; max-width: 52ch; }
.cat { margin-top: clamp(40px, 6vw, 72px); }
.cat h3 { font: 700 1.6rem/1.1 var(--display); color: var(--chilli); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(22, 22, 15, 0.16); }
.thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.row.no-img { grid-template-columns: 1fr auto auto; padding-block: 18px; }
.row-name { font-weight: 600; font-size: 1.125rem; }
.pill { background: var(--green); color: var(--cream); padding: 6px 14px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.add { width: 44px; height: 44px; border-radius: 50%; background: var(--chilli); color: #fff; font-size: 1.5rem; line-height: 1; transition: transform 0.25s var(--ease); }
.add:hover { transform: scale(1.1); }
.add:active { transform: scale(0.92); }
.add.bump { animation: bump 0.3s var(--ease); }
@keyframes bump { 50% { transform: scale(1.25); } }

/* WHY */
.why { background: var(--green); color: var(--cream); padding: clamp(72px, 10vw, 140px) var(--m); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(32px, 5vw, 56px); }
.why article { background: #134a37; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.why article:hover { background: #17573f; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.why h3 { font: 700 1.6rem/1.1 var(--display); color: var(--gold); }
.more { margin-top: auto; padding-top: 10px; font-weight: 700; text-underline-offset: 4px; }

/* CONTACT + FOOTER */
.contact { background: var(--chilli); color: #fff; padding: clamp(72px, 12vw, 160px) var(--m); }
.contact h2 { color: var(--deep); font-size: clamp(2.6rem, 9vw, 8rem); }
.contact .lead { margin: 24px 0 32px; }
.foot { background: var(--deep); color: var(--cream); padding: 28px var(--m); }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.9375rem; }

/* ORDER TRAY + SHEET */
.tray { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--m); z-index: 40; }
.tray button { width: 100%; max-width: 640px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; background: var(--gold); color: var(--deep); padding: 16px 22px; border-radius: 999px; font-weight: 700; font-size: 1.0625rem; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); transition: transform 0.2s var(--ease); }
.tray button:hover { transform: translateY(-2px); }
.tray[hidden] { display: none; }
.order { border: 0; padding: 24px; width: min(560px, 100%); max-height: 92svh; background: #fff; color: var(--ink); margin: auto 0 0 auto; border-radius: 22px 22px 0 0; }
@media (min-width: 700px) { .order { margin: auto; border-radius: 22px; } }
.order::backdrop { background: rgba(0, 0, 0, 0.7); }
.order[open] { animation: sheet 0.35s var(--ease); }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
.order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order h2 { font: 800 1.75rem/1 var(--display); }
.close, .link { background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; font-size: 1rem; }
.lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; }
.lines .qty { display: inline-flex; align-items: center; gap: 10px; }
.lines .qty button { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--cream); border: 0; font: inherit; font-size: 1.25rem; cursor: pointer; }
.total-row { display: flex; justify-content: space-between; margin: 14px 0 18px; font-size: 1.25rem; }
.how { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 24px; }
.how legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.how label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.field { display: block; margin-bottom: 12px; font-weight: 700; }
.field input { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit; font-size: 16px; border: 2px solid #cfc4b0; border-radius: 12px; background: #fff; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--green); }
.small { font-size: 0.9375rem; margin-bottom: 14px; }
.send { display: block; text-align: center; background: var(--green); color: var(--cream); }
.send[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* RESPONSIVE */
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 104px; gap: 36px; }
  .plate { width: min(78vw, 380px); }
  .fall { left: var(--mx); top: var(--my); }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .bar nav { display: none; }
  .row { grid-template-columns: 56px 1fr auto; row-gap: 8px; }
  .row .thumb { width: 56px; height: 56px; grid-row: span 2; }
  .row .row-name { grid-column: 2 / 4; }
  .row .pill { grid-column: 2; justify-self: start; }
  .row .add { grid-column: 3; }
  .row.no-img { grid-template-columns: 1fr auto; }
  .row.no-img .row-name { grid-column: 1 / 3; }
  .row.no-img .pill { grid-column: 1; }
  .row.no-img .add { grid-column: 2; }
}

/* Reduced motion: show the finished state, stop the loop (the row scrolls by hand) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fall, .js .line, .js [data-reveal], .js .wipe, .js .plate { transform: none !important; opacity: 1 !important; clip-path: none !important; filter: none !important; transition: none !important; }
  .fall img, .loop-track { animation: none !important; }
  .loop { overflow-x: auto; }
  .btn, .add, .tray button, .dish img { transition: none; }
}
