/* ==========================================================
   ABENI RESTAURANT — custom styles (Tailwind handles utilities)
   ========================================================== */
:root {
  --brand-red: #B10E1C;
  --brand-gold: #E9A23B;
  --brand-brown: #4A2511;
  --lavender: #DCD7E3;
  --ink: #0A0A12;
  --neon: #FFB347;
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--ink);
}
img { max-width: 100%; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------------------------------------------------------- */
/* HERO (adapted from hero_slider snippet)                      */
/* ---------------------------------------------------------- */
#heroSlider { touch-action: pan-y; transition: background-color .85s cubic-bezier(.25,1,.5,1); }

.hero-glow {
  background: radial-gradient(circle at 50% 55%, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 45%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}

/* Synthwave perspective grid floor */
.hero-grid {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
  animation: gridMove 4s linear infinite;
  pointer-events: none;
}
@keyframes gridMove { to { background-position: 0 60px, 0 60px; } }

#particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

@keyframes floatSlow   { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(6deg); } }
@keyframes floatReverse{ 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(14px) rotate(-8deg); } }
.anim-float-1 { animation: floatSlow 6s ease-in-out infinite; }
.anim-float-2 { animation: floatReverse 7.5s ease-in-out infinite; }
.anim-float-3 { animation: floatSlow 8.5s ease-in-out 1s infinite; }

/* 3D stage — plate & rings scale to the stage's width AND height */
#tiltWrap {
  container-type: size;
  --plate: min(78cqw, 86cqh, 470px);
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
  will-change: transform;
}

.plate-box { width: var(--plate); }

/* Orbiting neon rings */
.orbit-1 { width: calc(var(--plate) * 1.04); height: calc(var(--plate) * 1.04); }
.orbit-3 { width: calc(var(--plate) * 1.1);  height: calc(var(--plate) * 1.1); }
.orbit-2 { width: calc(var(--plate) * 1.2);  height: calc(var(--plate) * 1.2); }
.orbit {
  position: absolute; border-radius: 9999px; pointer-events: none;
  transform-style: preserve-3d;
}
.orbit-1 {
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, transparent 0 60%, var(--neon) 80%, #fff 85%, transparent 90%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
  filter: drop-shadow(0 0 8px var(--neon));
}
.orbit-2 {
  border: 1.5px dashed rgba(255,255,255,.3);
  transform: rotateX(72deg);
  animation: spinFlat 14s linear infinite;
}
.orbit-3 {
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 40px rgba(255,255,255,.08) inset;
  transform: rotateY(70deg) rotateZ(20deg);
  animation: spinTilt 10s linear infinite;
}
.orbit-dot {
  position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 9999px; background: #fff; box-shadow: 0 0 14px 4px var(--neon);
}
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes spinFlat { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes spinTilt { to { transform: rotateY(70deg) rotateZ(380deg); } }

.pie-clip-wrapper {
  clip-path: circle(48% at 50% 50%);
  -webkit-clip-path: circle(48% at 50% 50%);
}
.plate-shadow {
  filter: drop-shadow(0 30px 35px rgba(0,0,0,.5)) drop-shadow(0 0 30px rgba(255,255,255,.15));
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.plate-rim {
  position: absolute; inset: 1.5%; border-radius: 9999px; pointer-events: none;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.12), inset 0 0 40px rgba(0,0,0,.45), inset 0 12px 30px rgba(255,255,255,.18);
}
/* holographic sheen sweep */
.plate-sheen {
  position: absolute; inset: 0; border-radius: 9999px; pointer-events: none; overflow: hidden;
  -webkit-clip-path: circle(48% at 50% 50%); clip-path: circle(48% at 50% 50%);
}
.plate-sheen::after {
  content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: rotate(25deg);
  animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* Rolling morph transition states (from snippet) */
.slide-item { transition: transform .8s cubic-bezier(.22,1,.36,1), opacity .8s cubic-bezier(.22,1,.36,1); will-change: transform, opacity; }
.slide-item.active            { opacity: 1; pointer-events: auto; transform: translateX(0) rotate(0) scale(1); z-index: 10; }
.slide-item.roll-out-right    { opacity: 0; pointer-events: none; transform: translateX(120%) rotate(180deg) scale(.8); z-index: 0; }
.slide-item.roll-in-left-prep { opacity: 0; pointer-events: none; transform: translateX(-120%) rotate(-180deg) scale(.8); z-index: 0; transition: none !important; }
.slide-item.roll-out-left     { opacity: 0; pointer-events: none; transform: translateX(-120%) rotate(-180deg) scale(.8); z-index: 0; }
.slide-item.roll-in-right-prep{ opacity: 0; pointer-events: none; transform: translateX(120%) rotate(180deg) scale(.8); z-index: 0; transition: none !important; }
.slide-item.inactive          { opacity: 0; pointer-events: none; transform: translateX(120%) rotate(180deg) scale(.8); z-index: 0; }

.cat-btn.active {
  background-color: rgba(255,255,255,.95); color: #1a1a1a;
  transform: scale(1.05);
}
.cat-btn:not(.active) {
  background-color: rgba(255,255,255,.12); color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cat-btn:not(.active):hover { background-color: rgba(255,255,255,.24); color: #fff; }

#slideHeadline, #slideDescription, #slideSeason, #slidePrice, #bgWatermark {
  transition: opacity .35s ease, transform .35s ease;
}

/* ---------------------------------------------------------- */
/* FIXED NAV + DRAWER                                           */
/* ---------------------------------------------------------- */
#topNav { transform: translateY(-120%); transition: transform .45s cubic-bezier(.22,1,.36,1); }
#topNav.show { transform: translateY(0); }
.glass {
  background: rgba(16, 16, 26, .62);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.1);
}
#drawer { transform: translateX(100%); transition: transform .45s cubic-bezier(.22,1,.36,1); }
#drawer.open { transform: translateX(0); }
#drawerBackdrop { opacity: 0; pointer-events: none; transition: opacity .3s; }
#drawerBackdrop.open { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------- */
/* SIGNATURE SECTION (from 0000.png / 001.png)                  */
/* ---------------------------------------------------------- */
.paper {
  background-color: #ECEBEE;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--brand-brown);
}
.font-script { font-family: 'Yesteryear', cursive; }
.brand-brown { color: var(--brand-brown); }

.tray {
  border: 8px solid #17120F;
  border-radius: 26px;
  box-shadow: 0 30px 40px -10px rgba(40, 20, 10, .45), 0 10px 18px rgba(0,0,0,.25);
  overflow: hidden;
  background: #17120F;
}
.tray img { display: block; width: 100%; height: 100%; object-fit: cover; }

.dip {
  border-radius: 9999px; background: #17120F; padding: 6px;
  box-shadow: 0 14px 20px rgba(0,0,0,.3);
}
.dip > span { display: block; width: 100%; height: 100%; border-radius: 9999px; }

.price-blob {
  background: var(--brand-gold);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  box-shadow: 0 14px 30px rgba(233,162,59,.45);
  animation: blob 8s ease-in-out infinite;
}
@keyframes blob {
  0%,100% { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; }
  50%     { border-radius: 45% 55% 42% 58% / 55% 45% 55% 45%; }
}

.btn-gold {
  background: var(--brand-gold); color: var(--brand-brown);
  transition: transform .2s;
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--brand-gold); color: var(--brand-brown); background: #fff; transition: transform .2s, background .2s; }
.btn-outline:hover { transform: translateY(-2px); background: #FFF6E8; }

/* Marquee */
.marquee {
  position: relative; overflow: hidden; cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee.dragging { cursor: grabbing; }
.marquee-track { display: flex; width: max-content; will-change: transform; }

.dish-card {
  position: relative; flex: 0 0 auto;
  width: 280px; margin: 0 14px;
  padding-top: 120px;
  user-select: none;
}
@media (min-width: 640px) { .dish-card { width: 330px; margin: 0 18px; } }
.dish-card .card-body {
  position: relative; border-radius: 42px; padding: 92px 24px 22px; min-height: 330px;
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
  box-shadow: 0 20px 40px -18px rgba(74,37,17,.35);
}
.dish-card:hover .card-body { transform: translateY(-6px) rotateX(4deg); box-shadow: 0 30px 50px -18px rgba(74,37,17,.5); }
.dish-card.lav .card-body { background: var(--lavender); }
.dish-card.gold .card-body { background: var(--brand-gold); }
.dish-card .card-img {
  position: absolute; top: 0; left: 50%; width: 200px; height: 200px; margin-left: -118px;
  transform: rotate(-7deg); z-index: 2;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.dish-card:hover .card-img { transform: rotate(-2deg) translateY(-8px) scale(1.04); }
.dish-card .card-img .tray { width: 100%; height: 100%; }
.dish-card .card-price {
  position: absolute; top: 132px; right: 6px; z-index: 3;
  width: 96px; height: 96px; border-radius: 9999px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  color: var(--brand-brown);
}
.dish-card.gold .order-pill { background: var(--lavender); color: var(--brand-brown); }
.dish-card.lav .order-pill  { background: var(--brand-gold); color: var(--brand-brown); }
.dish-card .no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 72px;
  background: radial-gradient(circle at 30% 30%, #6b2b14, #17120F 70%);
}

.chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  margin: 0 8px; padding: 8px 18px 8px 8px; border-radius: 9999px;
  background: #fff; box-shadow: 0 8px 18px rgba(74,37,17,.12);
  color: var(--brand-brown); white-space: nowrap;
}
.chip img { width: 46px; height: 46px; border-radius: 9999px; object-fit: cover; }

/* ---------------------------------------------------------- */
/* MENU SECTION (futuristic glass)                              */
/* ---------------------------------------------------------- */
.neon-bg {
  background:
    radial-gradient(600px 400px at 10% 10%, rgba(177,14,28,.35), transparent 60%),
    radial-gradient(500px 400px at 90% 30%, rgba(79,209,255,.18), transparent 60%),
    radial-gradient(600px 500px at 50% 100%, rgba(233,162,59,.18), transparent 60%),
    #0A0A12;
}
.tab-btn {
  white-space: nowrap; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.04); transition: all .3s;
}
.tab-btn:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.tab-btn.active {
  color: #1a0d05; background: linear-gradient(135deg, #FFD28A, #E9A23B);
  border-color: transparent;
}

.menu-card {
  position: relative; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  transform-style: preserve-3d;
  transition: transform .2s ease-out, border-color .3s;
  animation: flipIn .7s cubic-bezier(.22,1,.36,1) both;
}
.menu-card:hover { border-color: rgba(233,162,59,.55); }
.menu-card .mc-img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.menu-card .mc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.menu-card:hover .mc-img img { transform: scale(1.08); }
.menu-card .mc-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,18,.85), transparent 55%);
}
@keyframes flipIn {
  from { opacity: 0; transform: perspective(900px) rotateX(-35deg) translateY(40px); }
  to   { opacity: 1; transform: perspective(900px) rotateX(0) translateY(0); }
}

/* Stat cards */
.stat-card {
  border-radius: 28px; padding: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  transform-style: preserve-3d; transition: transform .2s ease-out;
}
.stat-card .stat-icon { transform: translateZ(40px); }

/* About badge */
.badge-ring {
  position: absolute; inset: -14%; animation: spin 24s linear infinite;
}
.badge-ring text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: 6px; fill: rgba(255,255,255,.7); font-size: 13px; }

/* Tray (cart) panel */
#trayPanel { transform: translateY(110%); transition: transform .45s cubic-bezier(.22,1,.36,1); }
#trayPanel.open { transform: translateY(0); }
.toast { animation: toastIn .4s cubic-bezier(.22,1,.36,1) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px) perspective(800px) rotateX(10deg); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}
