/* Custom Properties */
:root {
  --bg-color: #09090b;
  --surface: #18181b;
  --surface-hover: #27272a;
  --border: #27272a;
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --accent: #f59e0b;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-color);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* Navbar */
.navbar {
  position: fixed;
  top: -100px; left: 0; right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  top: 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}
.nav-brand span { color: var(--primary); }
.nav-brand img { width: 32px; height: 32px; border-radius: 50%; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-order-btn {
  background: var(--primary);
  color: var(--text);
  border: none;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}
.nav-order-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 100px 5% 60px;
  background: radial-gradient(circle at 50% 30%, rgba(220, 38, 38, 0.15) 0%, var(--bg-color) 70%);
  overflow: hidden;
}
.checker {
  position: absolute;
  left: 0; right: 0; height: 28px;
  background: repeating-linear-gradient(90deg, var(--text) 0 28px, var(--bg-color) 28px 56px);
  z-index: 5;
}
.checker.top { top: 0; }
.checker.bot { bottom: 0; }
.checker-inner {
  position: absolute;
  top: 14px; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--bg-color) 0 28px, var(--text) 28px 56px);
}
.section-divider {
  width: 100%;
  height: 28px;
  background: repeating-linear-gradient(90deg, var(--text) 0 28px, var(--bg-color) 28px 56px);
  position: relative;
  z-index: 5;
}
.section-divider::after {
  content: '';
  position: absolute;
  top: 14px; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--bg-color) 0 28px, var(--text) 28px 56px);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin-top: -40px;
  margin-bottom: 1rem;
}
.logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  transform: scale(1.15);
}
.logo-wrapper::before {
  content: '';
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 6px rgba(220,38,38,0.3), 0 0 30px 8px rgba(220,38,38,0.5), 0 0 60px 16px rgba(220,38,38,0.2);
  animation: glow-pulse 3s ease-in-out infinite;
  z-index: 1;
}
.logo-wrapper::after {
  content: '';
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  border: none;
  box-shadow: inset 0 0 12px rgba(220,38,38,0.4), 0 0 18px rgba(245,158,11,0.15);
  z-index: 3;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(220,38,38,0.3), 0 0 30px 8px rgba(220,38,38,0.5), 0 0 60px 16px rgba(220,38,38,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(245,158,11,0.35), 0 0 40px 14px rgba(245,158,11,0.45), 0 0 80px 24px rgba(245,158,11,0.15); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--primary); display: block; }
.hero p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float var(--dur) ease-in var(--del) infinite;
}
@keyframes float {
  0% { opacity: 0; transform: translateY(0) translateX(0) scale(0); }
  20% { opacity: 0.6; transform: translateY(-20vh) translateX(calc(var(--x) * 0.2)) scale(1); }
  80% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-100vh) translateX(var(--x)) scale(0.5); }
}

/* Section Layout */
.section {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  background: rgba(220, 38, 38, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Promos Grid */
.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.promo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.promo-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.2);
}
.promo-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.promo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.promo-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}
.promo-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.promo-add {
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.promo-card:hover .promo-add {
  background: var(--primary);
}

/* Menu Section */
.menu-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.menu-content {
  min-width: 0; /* Prevents flex/grid blow-out from scrollable tabs */
}

.menu-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}
.tab:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text);
}

.menu-section {
  display: none;
  animation: fadeIn 0.3s ease;
}
.menu-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: var(--transition);
  cursor: pointer;
}
.menu-item:hover {
  border-color: var(--surface-hover);
  background: rgba(24, 24, 27, 0.8);
  transform: translateX(4px);
}
.item-img-container {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-color);
}
.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.1);
  background: linear-gradient(135deg, var(--surface-hover), var(--border));
}
.item-details {
  flex-grow: 1;
  min-width: 0;
}
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}
.item-name {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-price {
  font-weight: 700;
  color: var(--accent);
}
.item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.item-add {
  background: var(--border);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.item-add svg { width: 16px; height: 16px; }
.menu-item:hover .item-add {
  background: var(--primary);
}

/* Sidebar Cart */
.cart-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
}
.cart-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}
.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding-right: 0.5rem;
}
.cart-items-container::-webkit-scrollbar { width: 4px; }
.cart-items-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
  font-size: 0.9rem;
}
.cart-empty svg {
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  opacity: 0.2;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info {
  display: flex;
  flex-direction: column;
}
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 600;
}
.cart-item-price {
  font-size: 0.75rem;
  color: var(--accent);
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
}
.cart-qty-btn {
  background: transparent;
  border: none;
  color: var(--text);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 4px;
}
.cart-qty-btn:hover { background: var(--surface-hover); }
.cart-qty-num {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  border-top: 1px dashed var(--border);
  padding-top: 1.5rem;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.cart-total-val { color: var(--accent); }

.form-group {
  margin-bottom: 1rem;
}
.form-input {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.875rem;
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}
textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.btn-whatsapp {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp svg { width: 20px; height: 20px; }

/* Contact Section */
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 5%;
  text-align: center;
}
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-color);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}
.social-badge:hover {
  border-color: #25D366;
  color: #25D366;
  background-color: rgba(37, 211, 102, 0.1);
  transform: translateY(-2px);
}
.social-badge svg { width: 18px; height: 18px; }

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}



/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
  .menu-layout {
    grid-template-columns: 1fr;
  }
  .cart-sidebar {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: -1;
  }
  .nav-links.active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  .mobile-menu-btn { display: block; }
  .nav-order-btn { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 3rem; }
  .logo-wrapper { width: 240px; height: 240px; }
  .btn { width: 100%; justify-content: center; }
  .section { padding: 4rem 5%; }
  .item-img-container { width: 60px; height: 60px; }
  .menu-item { padding: 0.75rem; }
}
