/* ==========================================================================
   FAM FOOD — QUICK MIX
   Master Design System & Custom Stylesheet
   ========================================================================== */

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

:root {
  --color-vibrant-orange: #FF681B;
  --color-deep-orange: #F45B17;
  --color-bright-red: #F3262D;
  --color-warm-ivory: #FFF9F3;
  --color-cream: #FFF2E4;
  --color-dark-charcoal: #25221F;
  --color-warm-grey: #77716B;
  --color-white: #FFFFFF;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
}

/* Base Resets & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-dark-charcoal);
  background-color: var(--color-warm-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-warm-ivory);
}

/* Typography Enhancements */
h1, h2, h3, .font-display {
  letter-spacing: -0.025em;
  color: var(--color-dark-charcoal);
}

.font-serif-heading {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

/* Custom Gradient Utilities */
.bg-gradient-brand {
  background: linear-gradient(135deg, #FF681B 0%, #F45B17 50%, #F3262D 100%);
}

.bg-gradient-warm {
  background: linear-gradient(180deg, #FFF9F3 0%, #FFF2E4 100%);
}

.text-gradient-brand {
  background: linear-gradient(135deg, #FF681B 0%, #F3262D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle Shadows & Cards */
.card-subtle {
  background: var(--color-white);
  border: 1px solid rgba(255, 242, 228, 0.8);
  box-shadow: 0 4px 20px -2px rgba(37, 34, 31, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-subtle:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -4px rgba(244, 91, 23, 0.12);
  border-color: rgba(255, 104, 27, 0.3);
}

/* Header transition */
#main-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#main-header.header-scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Accordion transition */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* Scroll reveal helper & smooth transitions */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers for grid items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Subtle Top Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #7A1E24 0%, #FF681B 50%, #7A1E24 100%);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Button & interactive states */
.btn-primary {
  background: linear-gradient(135deg, #FF681B 0%, #F45B17 100%);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(244, 91, 23, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 91, 23, 0.4);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-dark-charcoal);
  border: 1.5px solid rgba(255, 104, 27, 0.4);
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--color-cream);
  border-color: var(--color-vibrant-orange);
  color: var(--color-deep-orange);
  transform: translateY(-2px);
}

/* NGPL Reference Styling (Warm Cream Canvas, Maroon Button, Pill Badges) */
:root {
  --ngpl-canvas: #F4EDE4;
  --ngpl-maroon: #7A1E24;
  --ngpl-maroon-hover: #61151A;
  --ngpl-pill-border: #D8CCC0;
}

.bg-ngpl-cream {
  background-color: #F4EDE4;
}

.btn-maroon {
  background-color: #7A1E24;
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.875rem 2rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(122, 30, 36, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-maroon:hover {
  background-color: #61151A;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(122, 30, 36, 0.38);
  color: #FFFFFF;
}

.product-tab-btn {
  transition: all 0.2s ease;
}

.product-tab-btn.active {
  background-color: #7A1E24;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(122, 30, 36, 0.25);
  border-color: #7A1E24;
}

/* Floating WhatsApp Icon (Official WhatsApp Green & Shadow) */
.floating-chat-bubble {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.floating-chat-bubble:hover {
  background-color: #1EBE5D;
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55), 0 6px 14px rgba(0, 0, 0, 0.25);
  color: #FFFFFF;
}

/* Focus styling for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #FF681B;
  outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

