/* Extra styles for the plain-HTML version of the site
   (animations that used to come from the React "framer-motion" library). */

/* Scroll reveal: elements fade up as they come into view */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Page-load entrance (hero / page header) */
@keyframes askRise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes askFade { from { opacity: 0; } to { opacity: 1; } }
html.js .ask-rise { opacity: 0; animation: askRise .8s cubic-bezier(.22,1,.36,1) forwards; }
html.js .ask-fade { opacity: 0; animation: askFade .9s ease forwards; }

/* Header slides down on load; logo wiggle on hover */
@keyframes askDrop { from { transform: translateY(-90px); } to { transform: none; } }
.ask-header { animation: askDrop .7s cubic-bezier(.22,1,.36,1); }
.ask-logo { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
a:hover > .ask-logo { transform: rotate(4deg) scale(1.05); }

/* Mobile menu open/close */
.ask-mobile { max-height: 0; opacity: 0; transition: max-height .45s ease, opacity .35s ease; }
.ask-mobile.open { max-height: 90vh; opacity: 1; overflow-y: auto; }

/* Floating action buttons pop in */
@keyframes askPop { from { opacity: 0; transform: translateX(40px) scale(0); } to { opacity: 1; transform: none; } }
.ask-fab { opacity: 0; animation: askPop .5s cubic-bezier(.34,1.56,.64,1) forwards; transition: transform .2s; padding: 12px; }
.ask-fab:hover { transform: scale(1.12); }
.ask-fab:active { transform: scale(.92); }

/* Dish cards lift on hover */
.ask-lift { transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .7s, translate .35s; }
.ask-lift:hover { translate: 0 -8px; }

/* Menu page: category switch + items slide in */
@keyframes askSlide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.ask-fadein { animation: askRise .45s cubic-bezier(.22,1,.36,1); }
.ask-slidein { opacity: 0; animation: askSlide .45s cubic-bezier(.22,1,.36,1) forwards; }

/* Gallery lightbox */
.ask-lightbox { opacity: 0; pointer-events: none; transition: opacity .3s; }
.ask-lightbox.open { opacity: 1; pointer-events: auto; }

/* Anti-spam hidden field */
.ask-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Hero background video sits behind the poster image if the video file is missing */
.ask-hero-media { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .ask-rise, html.js .ask-fade, .ask-fab, .ask-slidein { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* Menu price column */
.text-right { text-align: right; }
.max-w-\[45\%\] { max-width: 45%; }

/* Menu tabs: one swipeable row on phones instead of a tall block */
@media (max-width: 767px) {
  .ask-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; top: 6.5rem; padding: .6rem; margin-bottom: 2rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ask-tabs::-webkit-scrollbar { display: none; }
  .ask-tabs button { flex: 0 0 auto; }
}

/* Menu photo card stays in view on large screens */
@media (min-width: 1024px) { .lg\:sticky { position: sticky; } .lg\:top-44 { top: 11rem; } }

/* ---------- Menu page: item cards with photos ---------- */
.ask-cat-thumb { width: 64px; height: 64px; }
.ask-menu-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .ask-menu-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.ask-item { display: flex; align-items: center; gap: 1rem; padding: .75rem; border-radius: 1.1rem; transition: border-color .3s, transform .3s; min-height: 124px; }
.ask-item:hover { border-color: rgba(226,189,99,.45); transform: translateY(-3px); }
.ask-item-img { flex: 0 0 100px; width: 100px; height: 100px; border-radius: .85rem; overflow: hidden; background: #0d0a08; }
.ask-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ask-item:hover .ask-item-img img { transform: scale(1.08); }
.ask-item-body { flex: 1; min-width: 0; }
.ask-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.ask-item-top h3 { font-size: 1.12rem; line-height: 1.3; }
.ask-item-price { font-size: 1.12rem; white-space: nowrap; flex-shrink: 0; }
.ask-item-body p { font-size: .85rem; line-height: 1.5; margin-top: .35rem; }
/* long multi-size prices drop under the name instead of squashing it */
.ask-item-top.long { flex-direction: column; gap: .2rem; }
.ask-item-top.long .ask-item-price { white-space: normal; }
@media (max-width: 560px) {
  .ask-item-img { flex-basis: 84px; width: 84px; height: 84px; }
  .ask-item-top { flex-direction: column; gap: .2rem; }
  .ask-item-top h3, .ask-item-price { font-size: 1.02rem; }
}
.ask-cat-head { margin-bottom: 1.75rem; }
@media (max-width: 560px) { .ask-cat-head .btn { width: 100%; } }

/* Keep floating badges (e.g. "100% Halal & Fresh" on the home photo) in their corner */
.gold-border-anim.absolute { position: absolute; }

/* Photos in grids: same shape and size so rows line up evenly */
.ask-photo { aspect-ratio: 1 / 1; height: auto; display: block; }
