/* ==========================================================================
   SALSA BRAND BOOK DESIGN SYSTEM (OFFICIAL PALETTE - DARK BY DESIGN)
   Specification: Salsa Brand Manual 2024 (Pages 02-03)
   ========================================================================== */

:root {
  /* Official Palette Hex Codes */
  --salsa-charcoal: #0B0B0D;    /* 70% Primary Background */
  --salsa-graphite: #18191C;    /* Surfaces, Cards & Panels */
  --salsa-ivory: #F4F0E8;       /* 15% Primary Text & Headings */
  --salsa-chili-red: #E6292A;   /* 10% Accents & Primary CTAs */
  --salsa-leaf-green: #4F8A34;  /* 5% Success & Positive Status */
  --salsa-warm-gray: #8D8F94;   /* Borders, Dividers & Muted Text */
  --salsa-border-subtle: rgba(141, 143, 148, 0.22);
  --salsa-border-active: rgba(230, 41, 42, 0.45);

  /* Platform Accent Variables (Defaults: Salsa Chili Red #E6292A; dynamically overridden by tenant theme) */
  --brand-accent: #E6292A;
  --brand-accent-deep: #B81D1E;
  --brand-accent-jewel: #FF4D4D;
  --brand-accent-hi: #FF5A52;
  --brand-accent-ink: #F4F0E8;
  --brand-accent-rgb: 230, 41, 42;
  --brand-glow-rgb: 230, 41, 42;
  --brand-accent-soft: rgba(230, 41, 42, 0.14);
  --brand-accent-line: rgba(230, 41, 42, 0.38);
  --brand-accent-glow: rgba(230, 41, 42, 0.28);

  --prod-cyan: #E6292A;
  --prod-cyan-hi: #FF4D4D;
  --wg-accent: #E6292A;
  --wg-accent-soft: rgba(230, 41, 42, 0.14);
  --wg-accent-glow: rgba(230, 41, 42, 0.32);
  --cm-accent: #E6292A;
  --cm-accent-deep: #B81D1E;
  --cm-accent-jewel: #FF4D4D;
  --cm-accent-soft: rgba(230, 41, 42, 0.14);
  --cm-accent-line: rgba(230, 41, 42, 0.38);
  --eg-accent: #E6292A;
  --eg-accent-bright: #FF4D4D;
  --eg-accent-deep: #B81D1E;
  --eg-accent-soft: rgba(230, 41, 42, 0.14);
  --eg-accent-glow: rgba(230, 41, 42, 0.32);

  /* Scroll Indicator & Progress */
  --westo-progress-glow: rgba(var(--brand-accent-rgb, 230, 41, 42), 0.6);
  --westo-progress-ink: #F4F0E8;

  /* Webflow / Core Palette Overrides */
  --color-scheme-1--background: #0B0B0D;
  --color-scheme-1--foreground: #18191C;
  --color-scheme-1--text: #F4F0E8;
  --color-scheme-1--accent: var(--brand-accent, #E6292A);
  --color-scheme-1--border: rgba(141, 143, 148, 0.22);
  --_primitives---colors--neutral-darkest: #0B0B0D;
}

/* Base Body & Shell Background (70% Charcoal) */
html, body {
  background-color: #0B0B0D !important;
  color: #F4F0E8 !important;
}

/* Top Navbar Header: completely transparent so it seamlessly matches the page/canvas */
.navbar,
.navbar_logo-link {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Surfaces, Panels, Containers & Bento Cards (Graphite #18191C) */
.card,
.panel,
.dish_card,
.dish-card,
.dish_card-wrapper,
.bento-cell,
.w-dropdown-list,
.menu-card,
.modal,
.modal-content,
.bottom-sheet,
.sheet-content,
.eg-card,
.entrance-card,
.profile_container,
.footer,
.footer_container,
.westo-modal,
.category-drawer {
  background-color: #18191C !important;
  border-color: rgba(141, 143, 148, 0.2) !important;
  color: #F4F0E8 !important;
}

/* Headings & Brand Statements (Ivory #F4F0E8) */
h1, h2, h3, h4, h5, h6,
.heading-style-h1,
.heading-style-h2,
.heading-style-h3,
.heading-style-h4,
.heading-style-h5,
.dish_title,
.restaurant-name,
.menu-title {
  color: #F4F0E8 !important;
  letter-spacing: -0.01em;
}

/* Secondary & Supporting Text (Warm Gray #8D8F94) */
p,
.text-secondary,
.dish_description,
.category-desc,
.muted-text,
.subhead_text,
.footnote,
.footer_link {
  color: #8D8F94 !important;
}

/* Primary Action Buttons & CTAs (Chili Red #E6292A) */
.button.is-primary,
.button.w-button,
.btn-primary,
.action-btn,
.westo-cta,
.cta-button,
.add-to-cart,
.btn-submit,
#nav-auth-btn,
.order-submit-btn,
.checkout-btn {
  background-color: var(--brand-accent, #E6292A) !important;
  background-image: none !important;
  color: var(--brand-accent-ink, #F4F0E8) !important;
  border-color: var(--brand-accent, #E6292A) !important;
  box-shadow: 0 4px 18px rgba(var(--brand-accent-rgb, 230, 41, 42), 0.35) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease !important;
}

.button.is-primary:hover,
.button.w-button:hover,
.btn-primary:hover,
.westo-cta:hover,
#nav-auth-btn:hover {
  background-color: var(--brand-accent-deep, #C91F20) !important;
  box-shadow: 0 6px 26px rgba(var(--brand-accent-rgb, 230, 41, 42), 0.5) !important;
  transform: translateY(-1px) !important;
}

/* Active Category Pills & Navigation Tabs */
.category-pill.is-active,
.menu-tab.w--current,
.active-pill,
.w-tab-link.w--current {
  background-color: var(--brand-accent, #E6292A) !important;
  color: var(--brand-accent-ink, #F4F0E8) !important;
  border-color: var(--brand-accent, #E6292A) !important;
  box-shadow: 0 2px 12px rgba(var(--brand-accent-rgb, 230, 41, 42), 0.3) !important;
}

.category-pill,
.menu-tab {
  background-color: #18191C !important;
  border: 1px solid rgba(141, 143, 148, 0.25) !important;
  color: #8D8F94 !important;
}

.category-pill:hover,
.menu-tab:hover {
  border-color: rgba(var(--brand-accent-rgb, 230, 41, 42), 0.5) !important;
  color: #F4F0E8 !important;
}

/* Price Tags & Accents (Chili Red & Ivory) */
.dish_price,
.price-tag,
.order-total,
.highlight-val {
  color: var(--brand-accent, #E6292A) !important;
  font-weight: 700 !important;
}

/* Badges & Status */
.badge-chili,
.badge-promo,
.badge-discount {
  background-color: rgba(var(--brand-accent-rgb, 230, 41, 42), 0.16) !important;
  color: var(--brand-accent-hi, #FF5A52) !important;
  border: 1px solid rgba(var(--brand-accent-rgb, 230, 41, 42), 0.35) !important;
}

.badge-success,
.is-in-stock,
.status-available {
  background-color: rgba(79, 138, 52, 0.16) !important;
  color: #4F8A34 !important;
  border: 1px solid rgba(79, 138, 52, 0.35) !important;
}

/* Form Inputs (Graphite #18191C + Warm Gray border) */
input,
textarea,
select,
.input,
.form-control {
  background-color: #18191C !important;
  border: 1px solid rgba(141, 143, 148, 0.28) !important;
  color: #F4F0E8 !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-accent, #E6292A) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(var(--brand-accent-rgb, 230, 41, 42), 0.35) !important;
}

/* Dividers & Borders (Warm Gray #8D8F94 at 20% opacity) */
hr,
.divider,
.separator,
.border-b,
.border-t {
  border-color: rgba(141, 143, 148, 0.18) !important;
}

/* Bottom Nav / Float Bar */
.bottom-nav,
.cart-floating-bar,
.mobile-action-bar {
  background-color: rgba(24, 25, 28, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(141, 143, 148, 0.2) !important;
}

/* Selection */
::selection {
  background: var(--brand-accent, #E6292A);
  color: var(--brand-accent-ink, #F4F0E8);
}
