/* ==========================================================================
   NEXTA FOODS - Premium Private Label Brand Stylesheet
   Brand Color Palette: Pure White (#FFFFFF), Striking Red Accent (#DC2626, #B91C1C, #EF4444),
   Light Slate / Pearl Neutrals (#F8FAFC, #F1F5F9, #E2E8F0), Dark Slate (#0F172A).
   ========================================================================== */

:root {
  --primary-red: #dc2626;
  --primary-red-hover: #b91c1c;
  --primary-red-light: #fef2f2;
  --primary-red-subtle: rgba(220, 38, 38, 0.08);
  --dark-neutral: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --bg-surface: #ffffff;
  --bg-page: #f8fafc;
}

/* Base Reset & Smooth Typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #ffffff;
  color: var(--dark-neutral);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Red Gradients & Accents */
.red-gradient-bg {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.red-gradient-soft {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.hero-glow-blob {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.07) 0%, rgba(220, 38, 38, 0.01) 60%, transparent 75%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* Sticky Header Glassmorphism */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.06);
}

/* Continuous Infinite Marquee Ticker */
.marquee-container {
  overflow: hidden;
  position: relative;
  user-select: none;
  width: 100%;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-content {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll-marquee 40s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Certification Cards in Marquee */
.cert-card {
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.cert-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #fca5a5;
  box-shadow: 0 14px 28px -8px rgba(220, 38, 38, 0.12);
}

/* Product Cards */
.product-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 38px -12px rgba(15, 23, 42, 0.1), 0 10px 20px -8px rgba(220, 38, 38, 0.12);
  border-color: #f87171;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Certification Grid Item */
.cert-grid-item {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-grid-item:hover {
  transform: translateY(-3px);
  border-color: #ef4444;
  box-shadow: 0 12px 24px -6px rgba(220, 38, 38, 0.12);
}

/* Modal Windows & Transitions */
.modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Interactive Calculator Sliders & Badges */
input[type=range] {
  accent-color: #dc2626;
}

/* Hero Showcase Transition */
.hero-showcase-panel {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-showcase-panel.hidden-panel {
  display: none;
  opacity: 0;
  transform: scale(0.97);
}

.hero-showcase-panel.active-panel {
  display: block;
  opacity: 1;
  transform: scale(1);
}
