/* =============================================================
   TACOS EL PLEBE — DESIGN SYSTEM
   Street authentic. Warm. Hungry-making. Not upscale.
   Single source of truth — import at the top of every page.
   ============================================================= */

:root {
  /* ── Brand Colors ── */
  --ep-red:        #C0392B;
  --ep-red-dark:   #922B21;
  --ep-green:      #27AE60;
  --ep-gold:       #F39C12;
  --ep-gold-dark:  #D68910;
  --ep-dark:       #1A1A1A;
  --ep-dark-2:     #2C2C2C;
  --ep-cream:      #FFF8F0;
  --ep-white:      #FAFAFA;
  --ep-gray:       #636363;
  --ep-light:      #F5F5F5;

  /* ── Typography ── */
  --font-display: 'Arial Black', Arial, Helvetica, sans-serif;
  --font-base: Arial, Helvetica, sans-serif;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   25px;
  --text-2xl:  31px;
  --text-3xl:  39px;
  --text-4xl:  49px;
  --text-5xl:  61px;
  --text-hero: clamp(38px, 8vw, 68px);

  /* ── Spacing ── */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-7: 28px;  --space-8: 32px;
  --space-10: 40px; --space-12: 48px; --space-14: 56px; --space-16: 64px;

  /* ── Radius ── */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 26px; --radius-pill: 999px;

  /* ── Shadows ── */
  --shadow-card:     0 12px 32px rgba(0,0,0,.28);
  --shadow-card-lg:  0 20px 50px rgba(0,0,0,.35);
  --shadow-glow-gold: 0 0 20px rgba(243,156,18,.35);
  --shadow-glow-red:  0 0 20px rgba(192,57,43,.35);

  --transition-fast: .15s ease;
  --transition-smooth: .25s ease;

  /* ── Component tokens ── */
  --btn-bg: linear-gradient(135deg, var(--ep-red), var(--ep-red-dark));
  --btn-color: var(--ep-white);
  --btn-gold-bg: linear-gradient(135deg, var(--ep-gold), var(--ep-gold-dark));
  --btn-gold-color: var(--ep-dark);

  --card-bg: var(--ep-white);
  --card-border: 1px solid rgba(0,0,0,.08);

  --header-bg: var(--ep-dark);
  --footer-bg: var(--ep-dark);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--ep-cream);
  color: var(--ep-dark);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 var(--space-4);
  color: var(--ep-dark);
}
p { text-wrap: pretty; margin: 0 0 var(--space-4); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-14) 0; }
.section-cream { background: var(--ep-cream); }
.section-dark { background: var(--ep-dark); color: var(--ep-white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--ep-white); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 900;
  font-size: var(--text-base);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary { background: var(--btn-bg); color: var(--btn-color); box-shadow: var(--shadow-glow-red); }
.btn-gold { background: var(--btn-gold-bg); color: var(--btn-gold-color); box-shadow: var(--shadow-glow-gold); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--ep-white);
  color: var(--ep-white);
}
.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--ep-dark);
  color: var(--ep-dark);
}
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: var(--text-lg); padding: 16px 32px; }

/* ── Header / Nav ── */
.ep-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--header-bg);
  border-bottom: 3px solid var(--ep-gold);
}
.ep-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.ep-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-lg);
  color: var(--ep-gold);
}
.ep-brand .emoji { font-size: 28px; }
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.nav a {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--ep-white);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav a:hover, .nav a.active { background: rgba(243,156,18,.16); color: var(--ep-gold); }
.nav-cart-link {
  background: var(--ep-red) !important;
  color: var(--ep-white) !important;
  display: flex; align-items: center; gap: 6px;
}
.nav-toggle { display: none; background: none; border: none; color: var(--ep-white); font-size: 28px; cursor: pointer; }

@media (max-width: 860px) {
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .nav-toggle { display: block; }
  .ep-header-inner { flex-wrap: wrap; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: var(--ep-white);
  background:
    radial-gradient(circle at 20% 20%, rgba(192,57,43,.35), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(243,156,18,.25), transparent 45%),
    linear-gradient(160deg, #1A1A1A 0%, #2C2C2C 60%, #3a1410 100%);
  overflow: hidden;
}
.hero.hero-photo {
  background-image:
    linear-gradient(rgba(26,26,26,.55), rgba(26,26,26,.85)),
    url('/assets/img/food/ep-hero-grill.webp');
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.5)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 40px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(243,156,18,.18);
  border: 1px solid var(--ep-gold);
  color: var(--ep-gold);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 800;
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-size: var(--text-hero);
  color: var(--ep-white);
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
  margin-bottom: var(--space-3);
}
.hero .subtitle { font-size: var(--text-xl); color: var(--ep-cream); font-weight: 700; margin-bottom: var(--space-2); }
.hero .location-teaser { color: var(--ep-gold); font-weight: 700; margin-bottom: var(--space-6); }
.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); }

.trust-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.15);
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--ep-cream);
}

/* ── Daily Special Banner ── */
.daily-special {
  background: linear-gradient(90deg, var(--ep-gold), var(--ep-red));
  color: var(--ep-white);
  padding: var(--space-4) var(--space-5);
  text-align: center;
  font-weight: 800;
}
.daily-special .label { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.daily-special .headline { font-size: var(--text-lg); }
.daily-special .sub { font-size: var(--text-sm); opacity: .95; }

/* ── Grid helpers ── */
.grid { display: grid; gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Feature Column ── */
.feature {
  text-align: center;
  padding: var(--space-6);
}
.feature .icon { font-size: 44px; margin-bottom: var(--space-3); }
.feature h3 { font-size: var(--text-lg); }

/* ── Taco Card ── */
.taco-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.taco-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lg); }
.taco-card-photo {
  aspect-ratio: 1/1;
  width: 100%;
  background: linear-gradient(160deg, #2C2C2C, #1A1A1A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.taco-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.taco-card-body { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; }
.taco-card-name { font-size: var(--text-md); font-weight: 900; margin-bottom: var(--space-1); }
.taco-card-desc { font-size: var(--text-sm); color: var(--ep-gray); margin-bottom: var(--space-3); flex: 1; }
.taco-card-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.taco-card-price { font-size: var(--text-lg); font-weight: 900; color: var(--ep-gold-dark); }
.add-to-cart-btn {
  background: var(--ep-red);
  color: var(--ep-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 800;
  font-size: var(--text-sm);
  cursor: pointer;
  min-height: 44px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.add-to-cart-btn:hover { background: var(--ep-red-dark); transform: translateY(-2px); }
.add-to-cart-btn.added { background: var(--ep-green); }

/* ── Steam effect ── */
.steam { position: absolute; bottom: 30%; width: 12px; height: 60px; background: rgba(255,255,255,.25); filter: blur(6px); border-radius: 50%; animation: steamRise 3s infinite ease-in-out; }
.steam:nth-child(2) { left: 40%; animation-delay: .8s; }
.steam:nth-child(3) { left: 60%; animation-delay: 1.6s; }
@keyframes steamRise {
  0% { transform: translateY(0) scaleY(1); opacity: 0; }
  30% { opacity: .5; }
  100% { transform: translateY(-50px) scaleY(1.4); opacity: 0; }
}

/* ── Location Card ── */
.location-card {
  background: var(--ep-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}
.location-card .row { display: flex; gap: var(--space-3); margin-bottom: var(--space-3); align-items: flex-start; }
.location-card .row .icon { font-size: 22px; }

/* ── Catering CTA ── */
.catering-cta {
  background: linear-gradient(135deg, var(--ep-green), #1e8449);
  color: var(--ep-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
}

/* ── Instagram Grid ── */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); }
.ig-square {
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, var(--ep-gold), var(--ep-red));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: rgba(255,255,255,.85);
}
@media (max-width: 560px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Review Stars / Cards ── */
.review-card {
  background: var(--ep-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}
.stars { color: var(--ep-gold); font-size: var(--text-lg); margin-bottom: var(--space-2); }
.review-author { font-weight: 800; margin-top: var(--space-3); color: var(--ep-gray); font-size: var(--text-sm); }

/* ── City Pills ── */
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill {
  background: var(--ep-light);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 700;
  font-size: var(--text-sm);
}

/* ── Footer ── */
.ep-footer {
  background: var(--footer-bg);
  color: var(--ep-cream);
  padding: var(--space-12) 0 var(--space-8);
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); margin-bottom: var(--space-8); }
.footer-grid h4 { color: var(--ep-gold); font-size: var(--text-base); margin-bottom: var(--space-3); }
.footer-grid a { display: block; color: var(--ep-cream); opacity: .85; margin-bottom: var(--space-2); font-size: var(--text-sm); }
.footer-grid a:hover { opacity: 1; color: var(--ep-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--space-6); text-align: center; font-size: var(--text-xs); color: var(--ep-gray); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Sticky Mobile Order Button ── */
.mobile-order-btn {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  background: var(--ep-red);
  color: var(--ep-white);
  text-align: center;
  font-weight: 900;
  font-size: var(--text-md);
  padding: 0;
  height: 56px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
body.show-mobile-order .mobile-order-btn { display: flex; }
body.show-mobile-order { padding-bottom: 56px; }
@media (min-width: 861px) { .mobile-order-btn { display: none !important; } body.show-mobile-order { padding-bottom: 0; } }

/* ── Forms ── */
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 800; margin-bottom: var(--space-2); font-size: var(--text-sm); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: var(--radius-md);
  font-family: inherit;
  background: var(--ep-white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ep-gold);
  box-shadow: 0 0 0 3px rgba(243,156,18,.2);
}
.field-row { display: flex; gap: var(--space-4); }
.field-row .field { flex: 1; }
@media (max-width: 560px) { .field-row { flex-direction: column; gap: 0; } }

/* ── Menu filter tabs ── */
.filter-tabs { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); margin-bottom: var(--space-6); }
.filter-tab {
  flex: 0 0 auto;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ep-dark);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.filter-tab.active { background: var(--ep-dark); color: var(--ep-white); }

/* ── Utility ── */
.text-center { text-align: center; }
.text-gold { color: var(--ep-gold-dark); }
.text-red { color: var(--ep-red); }
.text-gray { color: var(--ep-gray); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge {
  display: inline-block;
  background: var(--ep-gold);
  color: var(--ep-dark);
  font-weight: 800;
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Skip link for a11y */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ep-gold); color: var(--ep-dark); padding: 10px; z-index: 9999; }
.skip-link:focus { left: 10px; top: 10px; }
