/* 
 * Chulha & Handi - Light Culinary Theme & Device Performance
 * C-Scheme, Jaipur | 100% Mobile, PC, Tablet Optimized
 */

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

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --brand-gold: #f59e0b;
  --brand-amber: #d97706;
  --brand-terracotta: #ea580c;
  --brand-dark: #1c1917;
  --brand-bg: #faf9f6;
  --brand-card: #ffffff;
  --brand-border: #e7e5e4;
}

/* Base Body Styles */
html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-bg);
  color: var(--brand-dark);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: var(--font-serif);
}

/* Custom Light Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

/* Light Gradients & Glows */
.amber-glow {
  box-shadow: 0 10px 30px -5px rgba(217, 119, 6, 0.15);
}

.hero-light-gradient {
  background: radial-gradient(circle at 50% 15%, rgba(254, 243, 199, 0.7) 0%, rgba(250, 249, 246, 1) 75%);
}

/* Animations */
@keyframes soft-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.008);
  }
}

.animate-soft-pulse {
  animation: soft-pulse 2.5s infinite ease-in-out;
}

/* WhatsApp Widget Pulse */
.wa-pulse {
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: wa-pulse-anim 2s infinite;
}

@keyframes wa-pulse-anim {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Backdrop */
.modal-backdrop-light {
  background-color: rgba(28, 25, 23, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Line clamp utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Elevations */
.card-elevation {
  box-shadow: 0 2px 8px -2px rgba(28, 25, 23, 0.05), 0 1px 4px -1px rgba(28, 25, 23, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-elevation:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(217, 119, 6, 0.12), 0 6px 14px -2px rgba(28, 25, 23, 0.06);
}

/* Tap Target & Touch Performance */
button, a, input, select {
  touch-action: manipulation;
}

/* Mobile & Tablet Specific Responsive Tweaks */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem !important;
    line-height: 1.25 !important;
  }
  
  .category-tab-btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.75rem !important;
  }

  /* Safe Area Padding for iPhone notch / home indicator */
  #floating-cart-bar {
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  #whatsapp-floating-container {
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    left: 1rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  #menu-grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}
