// data.jsx — Terraforno product catalog + site content.
(function () {
  const PRODUCTS = [
    {
      id: 'verona',
      name: 'Verona',
      tagline: 'For the home enthusiast',
      kind: 'Residential oven',
      img: 'images/home_card_verona.jpg',
      price: 'Contact for pricing',
      blurb: 'The Verona is built for the home enthusiast who refuses to compromise. A hand-formed refractory dome that reaches true Neapolitan heat in your own backyard. Available in both wood and gas fired options.',
      spec: { temp: '450°C / 850°F', bake: '90-second pizza', dome: 'Refractory clay', fuel: 'Wood or Gas' },
      tone: 'ember',
      featured: true,
    },
    {
      id: 'napoli',
      name: 'Napoli',
      tagline: 'Built for the demands of service',
      kind: 'Commercial oven',
      img: 'images/napoli_main.jpg',
      price: 'Contact for pricing',
      blurb: 'The Napoli is our commercial workhorse — engineered for restaurants, resorts, and high-volume kitchens that put out pizza night after night. A high-density refractory dome holds fierce, even heat through a full service, so the hundredth pizza comes out exactly like the first. Fires on wood or gas, with a burner system tuned for a true Neapolitan bake.',
      spec: { temp: '480°C / 900°F', bake: '60-second pizza', capacity: 'Up to 60+ pizzas/hr', fuel: 'Wood or Gas' },
      tone: 'clay',
      featured: true,
    },
    {
      id: 'portable',
      name: 'Portable',
      tagline: 'Fire, wherever you go',
      kind: 'Portable wood-fired oven',
      price: 'Coming Soon',
      blurb: 'All the performance of a Terraforno in a form you can take anywhere. Perfect for balconies, pop-ups, and outdoor events. Register your interest and be first to know when it launches.',
      spec: { temp: '450°C / 850°F', bake: '90-second pizza', dome: 'Refractory clay', fuel: 'Wood or Gas' },
      tone: 'clay',
      comingSoon: true,
      featured: true,
    },
    {
      id: 'custom',
      name: 'Custom Build',
      tagline: 'Built for your space',
      kind: 'Bespoke installation',
      img: 'images/home_card_custom.jpg',
      price: 'Bespoke',
      blurb: 'Have a specific vision? We design and build custom wood-fired ovens for restaurants, resorts, and serious home cooks across India. From concept to installation, our team handles everything.',
      spec: { temp: 'Tuned to use', bake: 'Any cuisine', dome: 'Custom specification', fuel: 'Wood or Gas' },
      tone: 'clay',
    },
  ];

  const ACCESSORIES = [
    { name: 'Pizza Peel', price: 'Ask us', note: 'Hardwood long-handle peel' },
    { name: 'Ash Brush', price: 'Ask us', note: 'Solid brass, natural bristle' },
    { name: 'Kiln-Dried Wood', price: 'Ask us', note: 'Seasoned hardwood splits' },
    { name: 'Infrared Thermometer', price: 'Ask us', note: 'Read the hearth instantly' },
  ];

  const CRAFT = [
    { n: '01', t: 'Earth', d: 'We source and blend refractory clay by hand — the same method used in traditional Indian and Italian kilns for generations.', icon: 'leaf' },
    { n: '02', t: 'Form', d: 'Each dome is shaped and cured using time-tested techniques. No shortcuts. No mass production.', icon: 'hammer' },
    { n: '03', t: 'Fire', d: 'Every oven is lit and test-fired at our Belgaum workshop. If it doesn\'t hold temperature, it doesn\'t ship.', icon: 'flame' },
    { n: '04', t: 'Forever', d: 'A repairable, re-fireable hearth backed by our commitment to quality. Built once, fired for generations.', icon: 'shield' },
  ];

  const PROMISES = [
    { icon: 'thermometer', t: '450°C in 45 minutes', d: 'True Neapolitan heat from wood or gas. Cook pizza, bread, and roasts the way they were meant to be.' },
    { icon: 'shield', t: 'Quality guaranteed', d: 'Every oven is tested before it leaves our workshop. We stand behind every fire we build.' },
    { icon: 'truck', t: 'Delivered globally', d: 'From Belgaum to anywhere in India, and across the world.' },
    { icon: 'leaf', t: 'Natural materials', d: 'Clay, refractory brick, and steel. Materials that age beautifully and can always be repaired.' },
  ];

  const TESTIMONIALS = [
    { quote: 'The Verona transformed our restaurant kitchen. Customers come specifically for the wood-fired flavour now. Best investment we\'ve made.', who: 'Rajesh K.', where: 'Restaurant owner, Bengaluru' },
    { quote: 'We installed the Napoli in our backyard and it\'s become the heart of every family gathering. The Terraforno team was exceptional throughout.', who: 'Priya M.', where: 'Home cook, Pune' },
  ];

  // Real photography — plain captions describing what's shown, grouped by theme.
  const GALLERY = [
    { id: 'g01', category: 'The food', img: 'images/gallery/food_margherita.jpg', caption: 'A wood-fired margherita', place: 'Fresh off the peel' },
    { id: 'g02', category: 'The ovens', img: 'images/gallery/oven_grapevine_fire.jpg', caption: 'Grapevine mosaic dome, fire lit', place: 'Signature finish', wide: true },
    { id: 'g03', category: 'The craft', img: 'images/gallery/craft_build.jpg', caption: 'A refractory dome before tiling', place: 'The Belgaum workshop' },
    { id: 'g04', category: 'Installations', img: 'images/gallery/install_rooftop.jpg', caption: 'Built into a brick rooftop terrace', place: 'Outdoor kitchen' },
    { id: 'g05', category: 'The fire', img: 'images/gallery/fire_dome.jpg', caption: 'Flame inside the dome', place: 'At peak heat' },
    { id: 'g06', category: 'The ovens', img: 'images/gallery/oven_bronze_fire.jpg', caption: 'A bronze-mosaic dome, fire lit', place: 'Finished to order' },
    { id: 'g07', category: 'Installations', img: 'images/gallery/install_garden.jpg', caption: 'A finished oven in a garden setting', place: 'Outdoor install', wide: true },
    { id: 'g08', category: 'The food', img: 'images/gallery/food_pizza_table.jpg', caption: 'Pizza fresh from the oven', place: '90-second bake' },
    { id: 'g09', category: 'The craft', img: 'images/gallery/mosaic_floral.jpg', caption: 'A hand-laid floral mosaic dome', place: 'Custom finish' },
    { id: 'g10', category: 'The fire', img: 'images/gallery/fire_wood.jpg', caption: 'Kiln-dried hardwood at temperature', place: 'Wood fired' },
    { id: 'g11', category: 'Installations', img: 'images/gallery/install_restaurant.jpg', caption: 'A built-in arch oven in a restaurant', place: 'Commercial install' },
    { id: 'g12', category: 'The craft', img: 'images/gallery/delivery_crane.jpg', caption: 'Crated and delivered across India', place: 'Delivery & install' },
  ];

  // Customer installations shown on the home-page interactive map.
  // Dot coords use simplemaps' official Mercator calibration for images/in.svg
  // (viewBox 0 0 1000 1000; from https://simplemaps.com/static/svg/country/in/admin1/mapinfo.js):
  //   x = 27.381072 * lon_deg - 1767.1237
  //   y = 1139.9190 - 1568.6441 * ln(tan(45° + lat/2))
  // PLACEHOLDER photos + blurbs — swap in real install shots per city when available.
  const INSTALLS = [
    {
      id: 'kolhapur', city: 'Kolhapur', x: 266, y: 676, labelX: 282, labelY: 682, anchor: 'start',
      tag: 'Home install · Wood-fired',
      blurb: 'A wood-fired Verona in a garden courtyard — one of our first installs outside Belgaum.',
      imgs: [
        { src: 'images/gallery/install_garden.jpg', alt: 'Oven installed in a garden setting, Kolhapur' },
        { src: 'images/gallery/oven_grapevine_fire.jpg', alt: 'Grapevine mosaic dome with fire lit' },
      ],
    },
    {
      id: 'mumbai', city: 'Mumbai', x: 228, y: 608, labelX: 212, labelY: 600, anchor: 'end',
      tag: 'Rooftop terrace · Gas-fired',
      blurb: 'A gas-fired Verona on an apartment rooftop terrace. Compact footprint, no wood storage needed.',
      imgs: [
        { src: 'images/gallery/install_rooftop.jpg', alt: 'Oven built into a brick rooftop terrace, Mumbai' },
        { src: 'images/gallery/food_pizza_table.jpg', alt: 'Pizza fresh from the oven' },
      ],
    },
    {
      id: 'alibaug', city: 'Alibaug', x: 228, y: 620, labelX: 212, labelY: 648, anchor: 'end',
      tag: 'Weekend villa · Custom build',
      blurb: 'A custom bronze-mosaic dome at a weekend villa, finished to match the outdoor kitchen.',
      imgs: [
        { src: 'images/custom_2.jpg', alt: 'Custom oven at a villa, Alibaug' },
        { src: 'images/gallery/oven_bronze_fire.jpg', alt: 'Bronze-mosaic dome with fire lit' },
      ],
    },
    {
      id: 'pune', city: 'Pune', x: 255, y: 624, labelX: 270, labelY: 630, anchor: 'start',
      tag: 'Backyard install · Wood-fired',
      blurb: 'A hand-tiled Verona in a family backyard, built for weekend pizza nights.',
      imgs: [
        { src: 'images/custom_1.jpg', alt: 'Hand-tiled oven in a backyard, Pune' },
        { src: 'images/gallery/fire_dome.jpg', alt: 'Flame inside the dome at peak heat' },
      ],
    },
    {
      id: 'raipur', city: 'Raipur', x: 468, y: 544, labelX: 484, labelY: 550, anchor: 'start',
      tag: 'Home install · Wood & gas',
      blurb: 'A custom build for a serious home cook, set up to run on both wood and gas.',
      imgs: [
        { src: 'images/custom_4.jpg', alt: 'Custom home oven, Raipur' },
        { src: 'images/gallery/food_margherita.jpg', alt: 'A wood-fired margherita' },
      ],
    },
    {
      id: 'bangalore', city: 'Bangalore', x: 357, y: 782, labelX: 373, labelY: 788, anchor: 'start',
      tag: 'Restaurant · Napoli',
      blurb: 'A Napoli in a working restaurant kitchen, holding temperature through full evening service.',
      imgs: [
        { src: 'images/gallery/install_restaurant.jpg', alt: 'Built-in arch oven in a restaurant, Bangalore' },
        { src: 'images/napoli_main.jpg', alt: 'The Napoli commercial oven' },
      ],
    },
  ];

  window.TF_DATA = { PRODUCTS, ACCESSORIES, CRAFT, PROMISES, TESTIMONIALS, GALLERY, INSTALLS };
})();
