// Translations.jsx — all site copy in English and Dutch
// To add a language: duplicate an object below and translate.

const TRANSLATIONS = {
  en: {
    nav: {
      links: [["Products", "#products"], ["Story", "#story"], ["Foodservice", "#story"], ["Contact", "#contact"]],
      cta: "Order samples",
    },
    hero: {
      eyebrow: "Next-gen plant-based food",
      headline: "Built to\nCrave",
      body: "The future of food isn't driven by ideology. It's driven by desire. Plant-forward formats built for foodservice, engineered to crave.",
      ctaPrimary: "Explore the range",
      ctaSecondary: "Talk to us",
    },
    marquee: ["No Mad Plant Co.", "Built to Crave", "Lupine-powered", "For Foodservice", "Real Food"],
    products: {
      heading: "The Range",
      subheading: "Plant-forward proteins built for working kitchens. Made for volume, built to be craved.",
      badge: "More in development",
      cta: "Order samples",
      items: [
        { id: "spit",    name: "Mad Plant Spit",    tag: "Spit",    blurb: "A plant-based döner-style spit built for high volume, consistent performance and crisp carved edges.",                       uses: ["Pita & flatbread", "Loaded boxes",   "Rotisserie service"] },
        { id: "burger",  name: "Mad Plant Burger",  tag: "Burger",  blurb: "A juicy, grill-ready burger with a firm bite and indulgence you actually recognise.",                                        uses: ["Smash & grill",    "Buns & brioche", "Stacked specials"]   },
        { id: "crumble", name: "Mad Plant Crumble", tag: "Crumble", blurb: "A loose protein topping for pizza, pasta, loaded fries and bowls. Goes wherever texture matters.",                            uses: ["Pizza & pasta",    "Loaded fries",  "Bowls & tacos"]      },
      ],
    },
    story: {
      eyebrow: "Real food, built different",
      heading: "Flavor first.\nAlways.",
      body1: "We believe the future of food isn't won by ideology. It's won by desire. So we build products people genuinely want to eat: rich in flavor, satisfying in texture, the kind people order again.",
      body2: "Our products are built around under-utilized protein crops like lupine, combined with natural ingredients for flavor, structure and scale. Where we can, we work with regenerative farming partners.",
      stats: [["Lupine", "Under-utilized lead protein"], ["Organic or Regenerative", "Farming partners where we can"], ["Foodservice", "Built for working kitchens"]],
      foundersCaption: "Co-founders, No Mad Plant Co.",
    },
    contact: {
      eyebrow: "Let's talk real food",
      heading: "Got a wild idea?",
      body: "Questions, samples, foodservice trials: drop us a note and let's make plant magic happen.",
      labelName: "Name", labelEmail: "Email", labelMessage: "Message",
      placeholderName: "Your name", placeholderEmail: "you@kitchen.co", placeholderMessage: "Wild ideas welcome…",
      cta: "Send it →",
      successHeading: "Note received",
      successPrefix: "Thanks",
      successFallbackName: "there",
      successBody: "we'll be in touch faster than a spit carves.",
      successCta: "Send another message",
    },
    footer: {
      tagline: "Next-gen plant-forward food for foodservice. Built to crave.",
      cols: [
        ["Products", [["Mad Plant Spit", "#products"], ["Mad Plant Burger", "#products"], ["Mad Plant Crumble", "#products"]]],
        ["Company",  [["Our story", "#story"], ["Foodservice", "#story"], ["Sustainability", "#story"], ["Contact", "#contact"]]],
      ],
      copyright: "© 2026 No Mad Plant Co. All rights reserved.",
      badge: "Made for foodservice · NL / UK",
    },
  },

  nl: {
    nav: {
      links: [["Producten", "#products"], ["Verhaal", "#story"], ["Foodservice", "#story"], ["Contact", "#contact"]],
      cta: "Bestel samples",
    },
    hero: {
      eyebrow: "Next-gen plant-based food",
      headline: "Built to\nCrave",
      body: "De toekomst van ons eten ligt niet bij ideologie. Die ligt bij smaak. Plantaardige producten voor foodservice, ontwikkeld om onweerstaanbaar lekker te zijn.",
      ctaPrimary: "Bekijk de range",
      ctaSecondary: "Neem contact op",
    },
    marquee: ["No Mad Plant Co.", "Built to Crave", "Lupine-powered", "For Foodservice", "Real Food"],
    products: {
      heading: "De Range",
      subheading: "Plantaardige eiwitten voor foodservice. Ontwikkeld voor volume, onweerstaanbaar lekker.",
      badge: "Meer in de maak",
      cta: "Bestel samples",
      items: [
        { id: "spit",    name: "Mad Plant Spit",    tag: "Spit",    blurb: "Een plantaardig spit in döner-stijl. Hoog volume, consistente kwaliteit en knapperige randjes.",       uses: ["Pita & flatbread", "Loaded boxes",   "Rotisserie service"]  },
        { id: "burger",  name: "Mad Plant Burger",  tag: "Burger",  blurb: "Een sappige, grill-ready burger met een stevige bite en heerlijke smaak.",                          uses: ["Smash & grill",    "Buns & brioche", "Signature burgers"]   },
        { id: "crumble", name: "Mad Plant Crumble", tag: "Crumble", blurb: "Een losse topping voor pizza, pasta, loaded fries en bowls. Multi inzetbaar, altijd met structuur.",     uses: ["Pizza & pasta",    "Loaded fries",   "Bowls & taco's"]      },
      ],
    },
    story: {
      eyebrow: "Real food, built different",
      heading: "Smaak eerst.\nAltijd.",
      body1: "De toekomst van eten win je niet met ideologie. Die win je met smaak. Wij maken producten die mensen echt willen eten: vol smaak en met een fijne textuur. Het soort dat klanten opnieuw bestellen.",
      body2: "Wij ontwikkelen onze producten op basis van onderbenutte lokale gewassen zoals lupine. Aangevuld met natuurlijke ingrediënten voor smaak, structuur en schaal. We werken zoveel mogelijk samen met partners uit de biologische of regeneratieve landbouwketen.",
      stats: [["Lupine", "Onderbenutte eiwitbron"], ["Biologisch of Regeneratieve", "Boeren en ketenpartners waar mogelijk."], ["Foodservice", "Gebouwd voor foodservice"]],
      foundersCaption: "Mede-oprichters, No Mad Plant Co.",
    },
    contact: {
      eyebrow: "Let's talk real food",
      heading: "Een wild idee?",
      body: "Vragen, samples of een trial: stuur gewoon een berichtje!",
      labelName: "Naam", labelEmail: "E-mail", labelMessage: "Bericht",
      placeholderName: "Jouw naam", placeholderEmail: "jij@keuken.nl", placeholderMessage: "Wilde ideeën welkom…",
      cta: "Verstuur →",
      successHeading: "Bericht ontvangen",
      successPrefix: "Bedankt",
      successFallbackName: "je",
      successBody: "we nemen snel contact op.",
      successCta: "Nog een bericht sturen",
    },
    footer: {
      tagline: "Next-gen plant-forward food for foodservice. Built to crave.",
      cols: [
        ["Producten", [["Mad Plant Spit", "#products"], ["Mad Plant Burger", "#products"], ["Mad Plant Crumble", "#products"]]],
        ["Bedrijf",   [["Ons verhaal", "#story"], ["Foodservice", "#story"], ["Duurzaamheid", "#story"], ["Contact", "#contact"]]],
      ],
      copyright: "© 2026 No Mad Plant Co. Alle rechten voorbehouden.",
      badge: "Gemaakt voor foodservice · NL / UK",
    },
  },
};

// Language context — lets any component read/set the current language
const LangContext = React.createContext({ lang: "en", setLang: () => {} });

// Hook for convenience: const { lang, setLang, T } = useLang();
function useLang() {
  const ctx = React.useContext(LangContext);
  return { lang: ctx.lang, setLang: ctx.setLang, T: TRANSLATIONS[ctx.lang] };
}

Object.assign(window, { TRANSLATIONS, LangContext, useLang });
