/*
  Casa Víquez - Restaurante
  Cuisine type: Gastrobar / Casual restaurant + bar (costa rican + tex-mex + grill)
  Palette: Bar A (Speakeasy) - brass gold + wine + dark
  Fonts: Cormorant Garamond (heading) + Inter (body)
  Mood: evening atmosphere, brass lamps, whiskey glow, familia y amigos
  Design style: Dark Premium (A)
*/

:root {
  --color-primary: #C9A961;
  --color-primary-dark: #A68948;
  --color-primary-light: #E2C988;
  --color-wine: #8B0000;
  --color-wine-deep: #5C0000;
  --color-ember: #D87F3C;
  --color-bg: #0D0D0D;
  --color-bg-soft: #141110;
  --color-bg-card: #1A1612;
  --color-bg-card-hover: #221D18;
  --color-surface: #211B15;
  --color-border: rgba(201, 169, 97, 0.15);
  --color-border-strong: rgba(201, 169, 97, 0.3);
  --color-text: #E8DDC6;
  --color-text-muted: #8A8275;
  --color-text-dim: #5F5850;

  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 40px rgba(201, 169, 97, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Noise texture overlay on body for subtle warmth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Typography */
.font-heading { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }

/* Gradient text for dramatic headings */
.gradient-text {
  background: linear-gradient(135deg, #F2D890 0%, #C9A961 45%, #E8DDC6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Glow orbs for ambient backgrounds */
.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.18;
  z-index: 0;
}
.glow-orb.gold {
  background: radial-gradient(circle, #C9A961 0%, transparent 70%);
}
.glow-orb.wine {
  background: radial-gradient(circle, #8B0000 0%, transparent 70%);
}

/* CTA button - speakeasy style (brass outlined + gold fill on hover) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #C9A961 0%, #A68948 100%);
  color: #0D0D0D;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(.2,.8,.2,1);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #E2C988 0%, #C9A961 100%);
  box-shadow: 0 10px 28px rgba(201, 169, 97, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  background: rgba(201, 169, 97, 0.08);
  color: var(--color-primary-light);
}

/* Cards */
.card {
  background: linear-gradient(180deg, var(--color-bg-card) 0%, #141110 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
  overflow: hidden;
  position: relative;
}
.card:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(201, 169, 97, 0.1);
}

/* Section separators - thin gold line */
.divider-gold {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
  margin: 0 auto;
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Category nav pills (used on menu.html) */
.cat-pill {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.cat-pill:hover {
  color: var(--color-primary-light);
  border-color: var(--color-border-strong);
}
.cat-pill.active {
  color: #0D0D0D;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Cart controls - qty stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(201, 169, 97, 0.08);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 2px;
}
.qty-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.18s ease;
  font-family: var(--font-body);
}
.qty-btn:hover { background: rgba(201, 169, 97, 0.15); }
.qty-count {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  color: var(--color-text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* Floating cart button */
.floating-cart {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #C9A961 0%, #A68948 100%);
  color: #0D0D0D;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.floating-cart.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.floating-cart:hover {
  box-shadow: 0 16px 48px rgba(201, 169, 97, 0.35), 0 0 0 1px rgba(255,255,255,0.15);
}
.floating-cart .cart-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: #0D0D0D;
  color: var(--color-primary-light);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
}

/* GLightbox customization */
.glightbox-clean .gslide-media {
  max-width: 92vw !important;
  max-height: 92vh !important;
}
.glightbox-clean .gslide-image img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  width: auto;
  height: auto;
  border-radius: 4px;
}

/* Mobile menu drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-drawer a {
  display: block;
  padding: 18px 24px;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.mobile-drawer a:hover { color: var(--color-primary); }

/* Sticky WhatsApp CTA for mobile */
.sticky-wa {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.sticky-wa:hover { transform: scale(1.1); }

/* Stars */
.stars { display: inline-flex; gap: 2px; color: var(--color-primary); font-size: 14px; }

/* Badges on dish cards */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0D0D0D;
  background: var(--color-primary);
  border-radius: 999px;
}
.badge.wine { background: var(--color-wine); color: #E8DDC6; }
.badge.outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* Hero text readability helpers */
.hero-text { text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 4px 20px rgba(0,0,0,0.4); }
.hero-gradient-text { filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5)); }

/* Decorative icon circle frame */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid var(--color-border-strong);
  color: var(--color-primary);
}

/* Animate dish card image on parent hover */
.dish-card { overflow: hidden; }
.dish-card .dish-img { transition: transform 0.5s ease; }
.dish-card:hover .dish-img { transform: scale(1.06); }

/* Menu card (item in menu page) - subtle reaction on hover to hint interactivity */
.menu-item { transition: box-shadow 0.28s ease; }
.menu-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

/* Print styles for order page */
@media print {
  body { background: white !important; color: black !important; }
  .no-print { display: none !important; }
  .print-card { border: none !important; box-shadow: none !important; background: white !important; }
  body::before { display: none !important; }
}

/* Scrollbar on desktop - thin gold */
@media (min-width: 768px) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--color-bg); }
  ::-webkit-scrollbar-thumb { background: rgba(201, 169, 97, 0.2); border-radius: 10px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(201, 169, 97, 0.4); }
}

/* Category nav on menu.html - wrap on desktop, scroll on mobile */
.cat-nav-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
}
@media (max-width: 640px) {
  .cat-nav-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cat-nav-inner::-webkit-scrollbar { display: none; }
}

/* Hide mobile scrollbar on category reviews row */
.scroll-x-hidden::-webkit-scrollbar { display: none; }
.scroll-x-hidden { scrollbar-width: none; }

/* Simple hero background decoration - vertical rule */
.hero-rule {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, var(--color-primary) 100%);
}
