/* ==========================================================================
   Unagih Tangerang — Elegant Japanese International Restaurant Palette
   Inspired by Modern Japanese Design (Clean Ivory, Crimson Red & Deep Charcoal)
   ========================================================================== */

/* 1. Global Viewport Overflow Prevention (Strict 360px+ Mobile Standards) */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  background-color: #FAF7F2;
  color: #1F2937;
  -webkit-tap-highlight-color: transparent;
}

/* 2. Watermark Overlay using SVG Pattern (Zero horizontal overflow guarantee) */
.demo-watermark-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='180' viewBox='0 0 340 180'%3E%3Ctext x='20' y='90' fill='%23C81E2B' font-family='sans-serif' font-weight='900' font-size='14' letter-spacing='3' transform='rotate(-22 170 90)'%3EDRAFT DEMO • SOLUVIAID • UNAGIH%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  transition: opacity 0.3s ease;
}

.demo-watermark-overlay.watermark-hidden {
  opacity: 0 !important;
  display: none !important;
}

/* 3. Corner watermark badge (Elegant White & Japanese Crimson) */
.watermark-badge-corner {
  position: fixed;
  bottom: 80px;
  left: 12px;
  max-width: calc(100vw - 24px);
  z-index: 45;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(200, 30, 43, 0.35);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 4. Custom Japanese Theme Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #FAF7F2;
}

::-webkit-scrollbar-thumb {
  background: #C81E2B;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A81824;
}

/* Hide scrollbar for smooth horizontal swiping */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 5. Menu Card Animations & Clean Elevation */
.menu-card {
  background-color: #FFFFFF;
  border: 1px solid #EAE6DF;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -8px rgba(200, 30, 43, 0.12);
    border-color: rgba(200, 30, 43, 0.4);
  }
}

/* 6. Modal Slide-up Animation */
@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-modal-up {
  animation: modalSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 7. Japanese Accent Red Glow */
.glow-red {
  box-shadow: 0 10px 30px -5px rgba(200, 30, 43, 0.25);
}

.glow-card {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

/* 8. QRIS Card Container */
.qris-card-wrapper {
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}
