/* ==========================================================================
   YALA BBQ — Design System (Full Complete Stylesheet)
   Deep Stone Charcoal / Warm Amber Gold / Fire Flame Accent
   ========================================================================== */

:root{
  --charcoal:      #0c0a09;
  --charcoal-2:    #17130f;
  --charcoal-3:    #221c17;
  --ash:           #3a332c;
  --amber:         #f59e0b;
  --amber-soft:    #fbbf24;
  --flame:         #ea580c;
  --flame-deep:    #9a3412;
  --smoke:         #a8a29e;
  --cream:         #f5f0e8;
  --line:          rgba(245,158,11,0.14);

  --font-display: 'Cinzel', serif;
  --font-body: 'Poppins', sans-serif;

  --ease-ember: cubic-bezier(.22,.9,.32,1);
}

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

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Charred grain + ember-glow ambient backdrop */
body::before{
  content:"";
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 40% at 15% -10%, rgba(234,88,12,0.14), transparent 60%),
    radial-gradient(ellipse 50% 35% at 100% 20%, rgba(245,158,11,0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 120%, rgba(234,88,12,0.10), transparent 60%);
}
body::after{
  content:"";
  position: fixed; inset:0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer, section { position: relative; z-index: 1; }

/* Typography */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

.text-gradient-flame {
  background: linear-gradient(135deg, var(--amber-soft) 0%, var(--flame) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber-soft);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

/* Navbar */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  background: transparent;
}
#site-nav.scrolled {
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-link {
  color: var(--smoke);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--amber-soft); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; width: 100%; height: 2px;
  background: var(--flame);
  border-radius: 2px;
}

/* Glassmorphism */
.glass {
  background: rgba(23, 19, 15, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-ember);
  cursor: pointer;
}

.btn-flame {
  background: linear-gradient(135deg, var(--flame) 0%, var(--flame-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-flame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.5);
  filter: brightness(1.1);
}

.btn-outline {
  background: rgba(255,255,255,0.03);
  color: var(--cream);
  border: 1px solid var(--line);
}
.btn-outline:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--amber);
  color: var(--amber-soft);
  transform: translateY(-2px);
}

.pax-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.pax-btn:hover {
  background: var(--flame);
  border-color: var(--flame);
  color: #fff;
}

.slot-btn {
  padding: 0.65rem 0.5rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--smoke);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}
.slot-btn:hover { border-color: var(--amber); color: var(--cream); }
.slot-btn.selected {
  background: linear-gradient(135deg, var(--amber) 0%, var(--flame) 100%);
  border-color: transparent;
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Badges */
.ember-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.3);
  color: var(--amber-soft);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.ember-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 8px var(--flame);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Forms & Inputs */
.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.field-input {
  width: 100%;
  background: rgba(12, 10, 9, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}
.field-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.field-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-error-msg {
  display: none;
  color: #f87171;
  font-size: 0.75rem;
  margin-top: 0.35rem;
}
.field-error-msg.show { display: block; }

/* Jeep Switch & Fields Toggle */
.toggle-switch {
  width: 48px; height: 26px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 3px;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
}
.toggle-switch.on { background: var(--flame); }
.toggle-switch .knob {
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.toggle-switch.on .knob { transform: translateX(22px); }

#jeep-fields {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s var(--ease-ember);
}
#jeep-fields.open {
  max-height: 500px;
  opacity: 1;
}

/* Mobile Drawer */
#mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-ember);
}
#mobile-drawer.open { transform: translateX(0); }

#drawer-overlay {
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* Hero Canvas */
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Cards */
.exp-card {
  background: rgba(23, 19, 15, 0.5);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}
.exp-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-4px);
}

.exp-icon {
  width: 48px; height: 48px;
  border-radius: 1rem;
  background: rgba(234, 88, 12, 0.15);
  color: var(--amber-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}

/* Testimonials Slider */
.testi-track {
  display: flex;
  transition: transform 0.5s var(--ease-ember);
}
.testi-slide { min-width: 100%; box-sizing: border-box; }
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.testi-dot.active {
  width: 24px;
  border-radius: 9999px;
  background: var(--amber-soft);
}
.star { color: var(--amber-soft); }

/* Menu & Dish Cards */
.cat-tab {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--smoke);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.cat-tab:hover, .cat-tab.active {
  background: var(--flame);
  border-color: var(--flame);
  color: #fff;
}

.dish-card {
  background: rgba(23, 19, 15, 0.6);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.dish-card.hide { display: none; }
.dish-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-4px);
}

.dish-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-special { background: rgba(234,88,12,0.85); color: #fff; }
.badge-spicy { background: rgba(220,38,38,0.85); color: #fff; }
.badge-popular { background: rgba(245,158,11,0.85); color: #000; }

.pill-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pill-input-wrap i {
  position: absolute;
  left: 1.25rem;
  color: var(--smoke);
}
.pill-input-wrap input { padding-left: 2.8rem; }

/* Partner Calculator Range Input */
.range-flame {
  width: 100%;
  accent-color: var(--flame);
  cursor: pointer;
}

/* Flame Divider */
.flame-divider {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.flame-divider svg { width: 20px; height: 20px; color: var(--flame); }
.fd-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* Toasts */
#toast-container {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 200;
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 380px; width: 100%;
}
.toast {
  background: #17130f;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  display: flex; gap: 0.75rem; align-items: flex-start;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: slideIn 0.3s var(--ease-ember);
  transition: all 0.4s ease;
}
.toast.leaving { opacity: 0; transform: translateY(10px); }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--smoke);
  transition: all 0.2s ease;
}
.social-btn:hover { background: var(--flame); color: #fff; border-color: var(--flame); }

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