/* =========================================================================
   ZH Fast-food — Design Tokens & Custom Styles
   Palette:
     --ink     #1A1410  charcoal base (near-black, warm)
     --cream   #FFF8EF  page background
     --cream-2 #F4EBDA  secondary surface
     --fire    #FF6B35  primary brand / CTA
     --red     #D62828  secondary accent / badges
     --amber   #FFB627  highlight / popular badge
   Type:
     Display : 'Anton'            (chunky condensed, matches poster branding)
     Body    : 'Plus Jakarta Sans'
     Mono    : 'JetBrains Mono'    (prices / receipt feel)
   ========================================================================= */

:root {
  --ink: #1a1410;
  --cream: #fff8ef;
  --cream-2: #f4ebda;
  --fire: #ff6b35;
  --red: #d62828;
  --amber: #ffb627;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.font-display {
  font-family: "Anton", sans-serif;
  letter-spacing: 0.01em;
}
.font-mono {
  font-family: "JetBrains Mono", monospace;
}

/* ---------------------------------------------------------------------- */
/* Loading screen                                                         */
/* ---------------------------------------------------------------------- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: var(--ink);
  transition: opacity 0.6s ease;
}
.loader-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  animation: pulseLogo 1.4s ease-in-out infinite;
}
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.loader-bar {
  width: 160px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fire), var(--amber));
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------------------------------------------------------------------- */
/* Navbar                                                                  */
/* ---------------------------------------------------------------------- */
#navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#navbar.nav-scrolled {
  background-color: rgba(26, 20, 16, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  animation: statusBlink 1.8s ease-in-out infinite;
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.floating-food {
  animation: floatY 5s ease-in-out infinite;
}
.floating-food.delay-1 { animation-delay: 0.8s; }
.floating-food.delay-2 { animation-delay: 1.6s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

.hero-embers span {
  position: absolute;
  bottom: -10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--amber);
  opacity: 0.8;
  animation: emberRise linear infinite;
}
@keyframes emberRise {
  0% { transform: translateY(0) scale(1); opacity: 0.9; }
  100% { transform: translateY(-420px) scale(0.2); opacity: 0; }
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn-primary {
  background: linear-gradient(135deg, var(--fire), var(--red));
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(214, 40, 40, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px -6px rgba(214, 40, 40, 0.65);
}
.btn-outline {
  border: 2px solid var(--cream);
  color: var(--cream);
  font-weight: 700;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--ink);
}
.btn-whatsapp {
  background: #25d366;
  color: white;
  font-weight: 700;
  transition: transform 0.25s ease;
}
.btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
}

/* ---------------------------------------------------------------------- */
/* Category tabs                                                          */
/* ---------------------------------------------------------------------- */
#menu-tabs-wrapper {
  transition: box-shadow 0.25s ease;
}
#menu-tabs-wrapper.tabs-stuck {
  box-shadow: 0 8px 16px -10px rgba(26, 20, 16, 0.18);
  border-bottom: 1px solid rgba(26, 20, 16, 0.06);
}

.category-tab {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--ink);
  background: var(--cream-2);
  transition: all 0.25s ease;
  border: 2px solid transparent;
}
.category-tab:hover {
  border-color: var(--fire);
}
.category-tab-active {
  background: linear-gradient(135deg, var(--fire), var(--red));
  color: white;
  box-shadow: 0 8px 20px -6px rgba(214, 40, 40, 0.5);
}

/* ---------------------------------------------------------------------- */
/* Menu cards                                                              */
/* ---------------------------------------------------------------------- */
.menu-card {
  position: relative;
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px -6px rgba(26, 20, 16, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(26, 20, 16, 0.25);
}
.menu-card-img {
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
  overflow: hidden;
}
.menu-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.dotted-row {
  position: relative;
}

.size-btn {
  border: 2px solid var(--cream-2);
  border-radius: 0.6rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  min-width: 46px;
  transition: all 0.2s ease;
}
.size-btn-active {
  border-color: var(--fire);
  background: var(--fire);
  color: white;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s ease;
}
.qty-btn:hover {
  background: var(--fire);
  color: white;
}

.add-to-cart-btn {
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  transition: background 0.25s ease, transform 0.2s ease;
}
.add-to-cart-btn:hover {
  background: var(--fire);
  transform: scale(1.03);
}

/* ---------------------------------------------------------------------- */
/* Cart panel                                                              */
/* ---------------------------------------------------------------------- */
#cart-badge,
#mobile-cart-badge {
  transition: transform 0.3s ease;
}
.badge-pulse {
  animation: badgePulse 0.4s ease;
}
@keyframes badgePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.remove-line-btn {
  color: var(--ink);
  opacity: 0.4;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.remove-line-btn:hover {
  opacity: 1;
  color: var(--red);
}

.fly-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--fire);
  z-index: 200;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.3, 0.6, 0.3, 1);
}

.input-error {
  border-color: var(--red) !important;
  background: #fdecec;
}

/* ---------------------------------------------------------------------- */
/* Scroll reveal                                                          */
/* ---------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].reveal-in,
.reveal-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ---------------------------------------------------------------------- */
/* Why choose us cards                                                     */
/* ---------------------------------------------------------------------- */
.feature-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px -8px rgba(26, 20, 16, 0.12);
}
.feature-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 18px 32px -12px rgba(26, 20, 16, 0.22);
}

/* ---------------------------------------------------------------------- */
/* Gallery                                                                 */
/* ---------------------------------------------------------------------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--cream-2);
  cursor: pointer;
}
.gallery-item img,
.gallery-item .gallery-icon-wrap {
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-icon-wrap {
  transform: scale(1.12) rotate(2deg);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 20, 16, 0.75), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ---------------------------------------------------------------------- */
/* Buttons: floating whatsapp + back to top                                */
/* ---------------------------------------------------------------------- */
.floating-whatsapp {
  animation: floatY 3.5s ease-in-out infinite;
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, 0.6);
}

#back-to-top {
  transition: opacity 0.3s ease, transform 0.25s ease;
}
#back-to-top:hover {
  transform: translateY(-3px);
}

/* ---------------------------------------------------------------------- */
/* Skeleton loading (used briefly while menu paints)                       */
/* ---------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%);
  background-size: 400% 100%;
  animation: skeletonShine 1.4s ease infinite;
}
@keyframes skeletonShine {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------------------------------------------------------------------- */
/* Diagonal slash divider (poster-inspired signature motif)                */
/* ---------------------------------------------------------------------- */
.slash-divider {
  position: relative;
  height: 60px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0% 60%);
}

/* Scrollbar for cart / horizontal tabs */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--fire);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
