/* ============================================================
   Foodstocks — Custom CSS
   Design tokens + utilities (complements Tailwind CDN)
============================================================ */

:root {
  --brand-red:    #D60001;
  --brand-vivid:  #FF0101;
  --brand-orange: #FF6B1A;
  --brand-cream:  #FFF5EB;
  --brand-peach:  #FFE8D3;
  --brand-ink:    #0F172A;

  --font-sans:    "Inter", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-brand:   "Fredoka", "Plus Jakarta Sans", sans-serif;

  --shadow-soft: 0 4px 20px -4px rgb(15 23 42 / 0.08);
  --shadow-card: 0 8px 30px -8px rgb(15 23 42 / 0.12);
  --shadow-lift: 0 20px 60px -20px rgb(214 0 1 / 0.28);
}

/* ============================================================
   Base
============================================================ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--brand-ink);
  background-color: #FAFAF9;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Typography
============================================================ */
.heading-brand {
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* ============================================================
   Eyebrow chip
============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: #FEF2F2;
  color: #B91C1C;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-red);
  flex-shrink: 0;
}

.eyebrow-dark {
  background: rgba(214, 0, 1, 0.20);
  color: #FF9999;
}

/* ============================================================
   Buttons
============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  background: var(--brand-red);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(214, 0, 1, 0.4);
  background: #B40001;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  background: white;
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #E5E7EB;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--brand-ink);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--brand-ink);
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.btn-ghost:hover { color: var(--brand-red); }

/* ============================================================
   Card hover
============================================================ */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12);
}

/* ============================================================
   Mega-menu
============================================================ */
.mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================================
   Marquee (infinite logo scroll)
============================================================ */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* ============================================================
   Reveal on scroll
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Grain / noise overlay
============================================================ */
.bg-grain {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ============================================================
   Dot grid backgrounds
============================================================ */
.bg-dot-grid {
  background-image: radial-gradient(circle, rgb(15 23 42 / 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bg-dot-grid-white {
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ============================================================
   Gradient text
============================================================ */
.text-gradient-red {
  background: linear-gradient(135deg, #D60001 0%, #FF6B1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Hero background
============================================================ */
.hero-bg {
  background: linear-gradient(135deg, #7A0001 0%, #B40001 22%, #D60001 45%, #E84040 68%, #FF7575 88%, #FFE0E0 100%);
}

/* ============================================================
   Glow blob
============================================================ */
.glow-blob-red {
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.18) 0%, transparent 68%);
}

/* ============================================================
   Stat number display
============================================================ */
.stat-number {
  font-family: var(--font-brand);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ============================================================
   Pulse ring animation
============================================================ */
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}
.pulse-red { position: relative; }
.pulse-red::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(214, 0, 1, 0.45);
  animation: pulse-ring 2.2s ease-out infinite;
  pointer-events: none;
}

/* ============================================================
   FAQ accordion (CSS grid trick)
============================================================ */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.faq-body.is-open {
  grid-template-rows: 1fr;
}
.faq-body > div { overflow: hidden; }

/* ============================================================
   Feature checklist item
============================================================ */
.feature-check {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: #FEF2F2;
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Float animation (hero dashboard chips)
============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ============================================================
   Hide scrollbar (horizontal carousels)
============================================================ */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================================
   Contact form feedback
============================================================ */
.form-success { color: #16a34a; font-size: 0.875rem; margin-top: 0.5rem; }
.form-error   { color: #dc2626; font-size: 0.875rem; margin-top: 0.5rem; }

/* ============================================================
   Polylang language switcher override
============================================================ */
.lang-item { display: inline; }
.lang-item a { color: rgba(255,255,255,0.8); font-weight: 600; text-decoration: none; }
.lang-item a:hover { color: var(--brand-orange); }
.lang-item.current-lang a { color: white; }
