// 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"]],
      body3: "We're not another vegan brand.\nNot driven by anger, but by curiosity and a genuine fascination for plants.\n\nWe use our passion, experience and network in foodservice and QSR to build plant-based products and concepts that scale, and make real impact in the food transition.\n\nIf we want to reach the majority, we need to throw a better party: one people are actually happy to join.",
      manifestoLine1: "Not mad at meat.",
      manifestoLine2: "Fascinated by plants.",
      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", "#product-spit"], ["Mad Plant Burger", "#product-burger"], ["Mad Plant Crumble", "#product-crumble"]]],
        ["Company",  [["Our story", "#story"], ["Foodservice", "#story"], ["Sustainability", "#story"], ["Contact", "#contact"]]],
      ],
      copyright: "© 2026 No Mad Plant Co. All rights reserved.",
    },
  },

  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"]],
      body3: "Wij zijn niet het zoveelste vegan merk.\nOnze drive is niet boosheid, maar nieuwsgierigheid en een echte fascinatie voor planten.\n\nWe zetten onze passie, ervaring en netwerk in foodservice en QSR in om plantaardige producten en concepten te bouwen die schalen en écht impact maken in de voedseltransitie.\n\nAls we de massa willen bereiken, moeten we een leuker feestje organiseren: eentje waar mensen écht bij willen zijn.",
      manifestoLine1: "Not mad at meat.",
      manifestoLine2: "Fascinated by plants.",
      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", "#product-spit"], ["Mad Plant Burger", "#product-burger"], ["Mad Plant Crumble", "#product-crumble"]]],
        ["Bedrijf",   [["Ons verhaal", "#story"], ["Foodservice", "#story"], ["Duurzaamheid", "#story"], ["Contact", "#contact"]]],
      ],
      copyright: "© 2026 No Mad Plant Co. Alle rechten voorbehouden.",
    },
  },

  de: {
    nav: {
      links: [["Produkte", "#products"], ["Story", "#story"], ["Foodservice", "#story"], ["Kontakt", "#contact"]],
      cta: "Samples bestellen",
    },
    hero: {
      eyebrow: "Next-gen pflanzliche Lebensmittel",
      headline: "Built to\nCrave",
      body: "Die Zukunft des Essens wird nicht von Ideologie bestimmt. Sie wird von Verlangen bestimmt. Pflanzliche Produkte für die Gastronomie, entwickelt um zu begeistern.",
      ctaPrimary: "Sortiment entdecken",
      ctaSecondary: "Kontakt aufnehmen",
    },
    marquee: ["No Mad Plant Co.", "Built to Crave", "Lupine-powered", "For Foodservice", "Real Food"],
    products: {
      heading: "Das Sortiment",
      subheading: "Pflanzliche Proteine für professionelle Küchen. Entwickelt für Volumen, gemacht um zu begeistern.",
      badge: "Mehr in Entwicklung",
      cta: "Samples bestellen",
      items: [
        { id: "spit",    name: "Mad Plant Spit",    tag: "Spit",    blurb: "Ein pflanzliches Döner-Spit für hohe Stückzahlen, konstante Qualität und knusprige Kanten.",                       uses: ["Pita & Fladenbrot", "Loaded Boxes",    "Rotisserie-Service"] },
        { id: "burger",  name: "Mad Plant Burger",  tag: "Burger",  blurb: "Ein saftiger, grillbereiter Burger mit festem Biss und einem Genuss, den man wirklich kennt.",                      uses: ["Smash & Grill",     "Buns & Brioche",  "Spezial-Burger"]     },
        { id: "crumble", name: "Mad Plant Crumble", tag: "Crumble", blurb: "Ein loser Protein-Topping für Pizza, Pasta, Loaded Fries und Bowls. Einsetzbar überall, wo Textur zählt.",          uses: ["Pizza & Pasta",     "Loaded Fries",   "Bowls & Tacos"]       },
      ],
    },
    story: {
      eyebrow: "Real food, built different",
      heading: "Geschmack\nzuerst. Immer.",
      body1: "Die Zukunft des Essens gewinnt man nicht mit Ideologie. Man gewinnt sie mit Geschmack. Wir entwickeln Produkte, die Menschen wirklich essen wollen: geschmacksintensiv, mit befriedigender Textur – die Art, die Gäste immer wieder bestellen.",
      body2: "Unsere Produkte basieren auf untergenutzte lokale Pflanzenproteine wie Lupinen, kombiniert mit natürlichen Zutaten für Geschmack, Struktur und Skalierbarkeit. Wo möglich, arbeiten wir mit Partnern aus der biologischen oder regenerativen Landwirtschaft zusammen.",
      stats: [["Lupine", "Unterschätzte Hauptproteinquelle"], ["Bio oder Regenerativ", "Landwirtschaftspartner wo möglich"], ["Gastronomie", "Entwickelt für professionelle Küchen"]],
      body3: "Wir sind keine weitere vegane Marke.\nUnser Antrieb ist nicht Wut, sondern Neugier und eine echte Faszination für Pflanzen.\n\nWir setzen unsere Leidenschaft, Erfahrung und unser Netzwerk in der Gastronomie und im QSR-Bereich ein, um pflanzliche Produkte und Konzepte zu entwickeln, die skalieren und echten Einfluss auf den Wandel unseres Ernährungssystems haben.\n\nWenn wir die Mehrheit erreichen wollen, müssen wir eine bessere Party veranstalten – eine, bei der die Menschen wirklich dabei sein wollen.",
      manifestoLine1: "Not mad at meat.",
      manifestoLine2: "Fascinated by plants.",
      foundersCaption: "Mitgründer, No Mad Plant Co.",
    },
    contact: {
      eyebrow: "Let's talk real food",
      heading: "Eine wilde Idee?",
      body: "Fragen, Samples oder ein Trial: Schreib uns einfach!",
      labelName: "Name", labelEmail: "E-Mail", labelMessage: "Nachricht",
      placeholderName: "Dein Name", placeholderEmail: "du@kueche.de", placeholderMessage: "Wilde Ideen willkommen…",
      cta: "Absenden →",
      successHeading: "Nachricht erhalten",
      successPrefix: "Danke",
      successFallbackName: "dir",
      successBody: "wir melden uns in Kürze.",
      successCta: "Weitere Nachricht senden",
    },
    footer: {
      tagline: "Next-gen plant-forward food for foodservice. Built to crave.",
      cols: [
        ["Produkte", [["Mad Plant Spit", "#product-spit"], ["Mad Plant Burger", "#product-burger"], ["Mad Plant Crumble", "#product-crumble"]]],
        ["Unternehmen", [["Unsere Story", "#story"], ["Foodservice", "#story"], ["Nachhaltigkeit", "#story"], ["Kontakt", "#contact"]]],
      ],
      copyright: "© 2026 No Mad Plant Co. Alle Rechte vorbehalten.",
    },
  },
};

// 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 });
