/* ============================================
   Spice Garden Restaurant — Premium Digital Menu
   ============================================ */

:root {
  --bg-primary: #1a0e0a;
  --bg-secondary: #2a1810;
  --bg-card: #321e14;
  --bg-card-hover: #3d2519;
  --accent-gold: #d4a853;
  --accent-gold-light: #e8c97a;
  --accent-gold-dim: rgba(212, 168, 83, 0.15);
  --accent-burgundy: #6b1d2a;
  --accent-burgundy-light: #8a2838;
  --text-cream: #f5efe6;
  --text-muted: #bfad97;
  --text-dim: #8a7a6a;
  --border-subtle: rgba(212, 168, 83, 0.12);
  --border-accent: rgba(212, 168, 83, 0.3);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(212, 168, 83, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 860px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-cream);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Decorative background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(107, 29, 42, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(212, 168, 83, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* ---- Header ---- */
.header {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  z-index: 1;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.header__logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  background: var(--accent-gold-dim);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

.header__name {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  animation: fadeInDown 0.8s ease-out 0.15s both;
}

.header__tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease-out 0.3s both;
}

.header__location {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  animation: fadeInDown 0.8s ease-out 0.4s both;
}

/* ---- Category Navigation ---- */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--bg-primary) 70%, transparent);
  padding: 1rem 0 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.category-nav__track {
  display: flex;
  gap: 0.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.category-nav__track::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-smooth);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.category-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-cream);
  background: var(--bg-card);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--accent-gold), #c4952f);
  color: var(--bg-primary);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 16px rgba(212, 168, 83, 0.25);
}

.category-btn__emoji {
  font-size: 1.1rem;
}

/* ---- Menu Content ---- */
.menu {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.menu-section {
  display: none;
  animation: fadeInMenu 0.45s ease-out;
}

.menu-section.active {
  display: block;
}

.menu-section__title {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}

.menu-section__subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* ---- Menu Items ---- */
.menu-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  opacity: 0;
  transform: translateY(12px);
  animation: slideUpItem 0.4s ease-out forwards;
}

.menu-item:nth-child(2) { animation-delay: 0.06s; }
.menu-item:nth-child(3) { animation-delay: 0.12s; }
.menu-item:nth-child(4) { animation-delay: 0.18s; }
.menu-item:nth-child(5) { animation-delay: 0.24s; }
.menu-item:nth-child(6) { animation-delay: 0.30s; }

.menu-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.menu-item__emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold-dim);
  border-radius: var(--radius-sm);
}

.menu-item__details {
  flex: 1;
  min-width: 0;
}

.menu-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.menu-item__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-cream);
}

.menu-item__price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.menu-item__badge {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 100px;
  background: var(--accent-burgundy);
  color: #f0c0c8;
}

.menu-item__badge--veg {
  background: rgba(34, 120, 50, 0.25);
  color: #6fcf7c;
}

/* ---- QR Section ---- */
.qr-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 0 auto;
  max-width: var(--max-width);
}

.qr-section__inner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
}

.qr-section__title {
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}

.qr-section__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.qr-placeholder {
  display: inline-block;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.qr-placeholder svg {
  display: block;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem 6rem;
  border-top: 1px solid var(--border-subtle);
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__brand {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.footer__brand a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-smooth);
}

.footer__brand a:hover {
  color: var(--accent-gold-light);
}

.footer__copy {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ---- WhatsApp FAB ---- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: all var(--transition-smooth);
  animation: fabPulse 2.5s ease-in-out infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---- Animations ---- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInMenu {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUpItem {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
  50%      { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.55); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .header {
    padding: 2.5rem 1rem 2rem;
  }

  .header__logo {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .menu-item {
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }

  .menu-item__emoji {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .menu-item__name {
    font-size: 0.95rem;
  }

  .menu-item__price {
    font-size: 0.95rem;
  }

  .qr-section__inner {
    padding: 2rem 1.2rem;
  }

  .whatsapp-fab span {
    display: none;
  }

  .whatsapp-fab {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

@media (max-width: 380px) {
  .category-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
}
