/* ============================================================
   MEET & EAT MEXICAN GRILL | GLOBAL DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Brand Colors */
  --clr-green:        #1a5c2a;
  --clr-green-dark:   #0f3d1b;
  --clr-green-mid:    #246b32;
  --clr-green-light:  #2d8040;
  --clr-green-glow:   rgba(26,92,42,0.25);

  --clr-red:          #c0392b;
  --clr-red-dark:     #96271c;
  --clr-red-light:    #e74c3c;
  --clr-red-glow:     rgba(192,57,43,0.25);

  --clr-gold:         #d4a017;
  --clr-gold-light:   #f0c040;
  --clr-gold-warm:    #e8b830;
  --clr-gold-glow:    rgba(212,160,23,0.30);

  --clr-cream:        #fdf6ec;
  --clr-cream-dark:   #f5e8d0;
  --clr-cream-mid:    #f8f0e3;

  --clr-charcoal:     #1c1c1e;
  --clr-charcoal-mid: #2d2d2d;
  --clr-text:         #2c2c2c;
  --clr-text-muted:   #6b6b6b;
  --clr-text-light:   #9a9a9a;

  --clr-white:        #ffffff;
  --clr-black:        #000000;

  /* Gradients */
  --grad-green:       linear-gradient(135deg, #1a5c2a 0%, #0f3d1b 100%);
  --grad-green-v:     linear-gradient(180deg, #1a5c2a 0%, #0f3d1b 100%);
  --grad-gold:        linear-gradient(135deg, #d4a017 0%, #f0c040 50%, #d4a017 100%);
  --grad-hero:        linear-gradient(135deg, rgba(15,61,27,0.92) 0%, rgba(26,92,42,0.75) 50%, rgba(192,57,43,0.55) 100%);
  --grad-dark:        linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
  --grad-card:        linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --grad-cream:       linear-gradient(180deg, #fdf6ec 0%, #f5e8d0 100%);

  /* Typography */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Outfit', 'Inter', sans-serif;
  --font-accent:      'Inter', sans-serif;

  /* Font Sizes (fluid clamp) */
  --fs-xs:     clamp(0.7rem,  1.5vw, 0.8rem);
  --fs-sm:     clamp(0.85rem, 1.8vw, 0.95rem);
  --fs-base:   clamp(1rem,    2vw,   1.05rem);
  --fs-md:     clamp(1.1rem,  2.2vw, 1.2rem);
  --fs-lg:     clamp(1.2rem,  2.5vw, 1.4rem);
  --fs-xl:     clamp(1.5rem,  3vw,   1.8rem);
  --fs-2xl:    clamp(1.8rem,  3.5vw, 2.4rem);
  --fs-3xl:    clamp(2.2rem,  4.5vw, 3.2rem);
  --fs-4xl:    clamp(2.8rem,  6vw,   4.5rem);
  --fs-hero:   clamp(3.2rem,  8vw,   6rem);

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;
  --sp-3xl: 9rem;

  /* Border Radius */
  --rad-xs:   4px;
  --rad-sm:   8px;
  --rad-md:   14px;
  --rad-lg:   20px;
  --rad-xl:   30px;
  --rad-pill: 9999px;
  --rad-full: 50%;

  /* Shadows */
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.18);
  --shadow-xl:   0 16px 64px rgba(0,0,0,0.24);
  --shadow-green: 0 8px 32px rgba(26,92,42,0.35);
  --shadow-gold:  0 8px 32px rgba(212,160,23,0.35);
  --shadow-red:   0 8px 32px rgba(192,57,43,0.35);
  --shadow-card:  0 4px 30px rgba(0,0,0,0.10), 0 1px 6px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 16px 60px rgba(0,0,0,0.20), 0 4px 16px rgba(26,92,42,0.15);

  /* Transitions */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:     0.2s;
  --dur-base:     0.35s;
  --dur-slow:     0.6s;
  --dur-xslow:    0.9s;

  /* Layout */
  --container-max: 1260px;
  --container-wide: 1440px;
  --header-h:     80px;
  --section-py:   var(--sp-2xl);

  /* Glass */
  --glass-bg:     rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --glass-dark:   rgba(15,30,20,0.75);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; letter-spacing: -0.02em; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  width: min(var(--container-max), 100% - 3rem);
  margin-inline: auto;
}
.container-wide {
  width: min(var(--container-wide), 100% - 2rem);
  margin-inline: auto;
}

/* ── TYPOGRAPHY UTILITIES ───────────────────────────────── */
.font-display   { font-family: var(--font-display); }
.font-body      { font-family: var(--font-body); }

.text-xs   { font-size: var(--fs-xs); }
.text-sm   { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-md   { font-size: var(--fs-md); }
.text-lg   { font-size: var(--fs-lg); }
.text-xl   { font-size: var(--fs-xl); }
.text-2xl  { font-size: var(--fs-2xl); }
.text-3xl  { font-size: var(--fs-3xl); }
.text-4xl  { font-size: var(--fs-4xl); }

.text-green  { color: var(--clr-green); }
.text-red    { color: var(--clr-red); }
.text-gold   { color: var(--clr-gold); }
.text-cream  { color: var(--clr-cream); }
.text-white  { color: var(--clr-white); }
.text-muted  { color: var(--clr-text-muted); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* ── SECTION TYPOGRAPHY ─────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-sm);
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--clr-gold);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--clr-charcoal);
  line-height: 1.15;
  margin-bottom: var(--sp-sm);
}

.section-title span { color: var(--clr-green); }
.section-title em   { font-style: italic; color: var(--clr-red); }

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 550px;
  margin-bottom: var(--sp-lg);
  line-height: 1.75;
}

.section-header       { margin-bottom: var(--sp-xl); }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin-inline: auto; }
.section-header.center .section-eyebrow {
  justify-content: center;
  display: flex;
}

/* ── SECTION SPACING ────────────────────────────────────── */
.section { padding: var(--section-py) 0; }
.section-sm { padding: var(--sp-xl) 0; }
.section-lg { padding: var(--sp-3xl) 0; }

/* ── BACKGROUND UTILITIES ───────────────────────────────── */
.bg-cream        { background: var(--clr-cream); }
.bg-cream-mid    { background: var(--clr-cream-mid); }
.bg-green        { background: var(--clr-green); }
.bg-green-dark   { background: var(--clr-green-dark); }
.bg-charcoal     { background: var(--clr-charcoal); }
.bg-grad-green   { background: var(--grad-green); }

/* ── LAYOUT UTILITIES ───────────────────────────────────── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.grid        { display: grid; }
.gap-sm  { gap: var(--sp-sm); }
.gap-md  { gap: var(--sp-md); }
.gap-lg  { gap: var(--sp-lg); }

/* ── SCROLL ANIMATIONS ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-left.visible,
.reveal-right.visible { transform: translateX(0); }

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.20s; }
.stagger-4 { transition-delay: 0.28s; }
.stagger-5 { transition-delay: 0.36s; }
.stagger-6 { transition-delay: 0.44s; }

/* ── DIVIDER ────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: var(--sp-xl) 0;
  color: var(--clr-gold);
  font-size: 1.25rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-gold-warm), transparent);
  opacity: 0.4;
}

/* ── PAGE TRANSITION OVERLAY ────────────────────────────── */
#page-overlay {
  position: fixed;
  inset: 0;
  background: var(--clr-green-dark);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
#page-overlay.active { opacity: 1; pointer-events: all; }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-cream-dark); }
::-webkit-scrollbar-thumb { background: var(--clr-green); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-green-light); }

/* ── SELECTION ──────────────────────────────────────────── */
::selection { background: var(--clr-green); color: var(--clr-cream); }

/* ── CHILI ACCENT ICONS ─────────────────────────────────── */
.chili-icon { display: inline-block; font-size: 1.2em; }
.floating-chili {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.12;
  animation: floatChili 6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
@keyframes floatChili {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
}

/* ── IMAGE OVERLAY MASKS ────────────────────────────────── */
.img-mask {
  position: relative;
  overflow: hidden;
  border-radius: var(--rad-lg);
}
.img-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.img-mask:hover img { transform: scale(1.06); }
.img-mask::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-dark);
  opacity: 0.3;
  transition: opacity var(--dur-base) var(--ease);
}
.img-mask:hover::after { opacity: 0.15; }

/* ── SHIMMER EFFECT ─────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--clr-gold) 0%, #fff8e1 40%, var(--clr-gold) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ── MEXICAN PATTERN LINE ──────────────────────────────── */
.pattern-line {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--clr-green)   0%,  var(--clr-green)   20%,
    var(--clr-red)     20%, var(--clr-red)     40%,
    var(--clr-gold)    40%, var(--clr-gold)    60%,
    var(--clr-red)     60%, var(--clr-red)     80%,
    var(--clr-green)   80%, var(--clr-green)   100%
  );
  background-size: 60px 4px;
}

/* ── RESPONSIVE HELPERS ─────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-py: var(--sp-xl);
  }
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
