{
  "_comment": "Machine-readable map of this site's real page + section structure. The Piggyback manager fetches this SERVER-SIDE (no CORS needed) to build its editor around the ACTUAL pages that exist, instead of guessing. Each section declares which page(s) it renders on via 'pages'. Regenerate from src/App.tsx routes + src/lib/site-content.ts sections when pages change.",
  "site": {
    "name": "Simpson Knife Company",
    "workspace": "simpsonknifecompany",
    "baseUrl": "https://simpsonknifeco.com",
    "renderer": "react-vite-spa",
    "contentDefaultsUrl": "/site-content-defaults.json",
    "contentFeedUrl": "https://connect.piggybackbuyer.com/api/public/site-content/simpsonknifecompany",
    "catalogFeedUrl": "https://connect.piggybackbuyer.com/api/public/catalog/simpsonknifecompany",
    "previewParam": "pbPreview"
  },

  "pages": [
    {
      "route": "/",
      "slug": "home",
      "title": "Home",
      "navLabel": "Home",
      "inNav": true,
      "inFooter": true,
      "sections": ["brand", "contact", "hero", "craft", "gallery", "cta"],
      "notes": "Also renders featured knives from the catalog feed (managed separately)."
    },
    {
      "route": "/knives",
      "slug": "knives",
      "title": "Knives",
      "navLabel": "Knives",
      "inNav": true,
      "inFooter": true,
      "sections": ["brand", "contact"],
      "notes": "Catalog-driven. Knife cards come from the catalog feed, not the site-content feed. Filters (type/status) are derived live from the catalog."
    },
    {
      "route": "/knives/:slug",
      "slug": "knife-detail",
      "title": "Knife Detail",
      "navLabel": null,
      "inNav": false,
      "inFooter": false,
      "sections": ["brand", "contact"],
      "notes": "Catalog-driven. One page per knife. Gallery, specs, video, and inquiry pre-fill all come from the catalog feed item."
    },
    {
      "route": "/about",
      "slug": "about",
      "title": "About",
      "navLabel": "About",
      "inNav": true,
      "inFooter": true,
      "sections": ["brand", "contact", "about", "craft", "cta"],
      "notes": "Reuses craft.makerPhoto and craft.workshopPhoto from the site-content feed."
    },
    {
      "route": "/contact",
      "slug": "contact",
      "title": "Contact",
      "navLabel": "Contact",
      "inNav": false,
      "inFooter": true,
      "sections": ["brand", "contact"],
      "notes": "Contact page. Shows contact details (location, email, availability) plus an 'Inquire' button that opens the same inquiry dialog used on knife pages. The contact section's page* fields drive this page's header and inquire panel."
    }
  ],

  "sections": {
    "brand": {
      "label": "Brand",
      "pages": ["/", "/knives", "/knives/:slug", "/about", "/contact"],
      "fields": [
        { "key": "name", "label": "Brand Name", "type": "text" },
        { "key": "shortName", "label": "Short Name", "type": "text" },
        { "key": "logoUrl", "label": "Logo", "type": "image", "appearsOn": ["navbar", "footer"] },
        { "key": "watermarkUrl", "label": "Watermark Logo", "type": "image", "appearsOn": ["hero-background", "cta-background", "catalog-header", "contact-header", "contact-inquire-panel"] },
        { "key": "tagline", "label": "Tagline", "type": "textarea" }
      ]
    },
    "contact": {
      "label": "Contact",
      "pages": ["/", "/knives", "/knives/:slug", "/about", "/contact"],
      "fields": [
        { "key": "location", "label": "Location", "type": "text" },
        { "key": "email", "label": "Email", "type": "text" },
        { "key": "availability", "label": "Availability", "type": "text" },
        { "key": "pageEyebrow", "label": "Contact Page Eyebrow", "type": "text", "appearsOn": ["contact-header"] },
        { "key": "pageHeadline", "label": "Contact Page Headline", "type": "text", "appearsOn": ["contact-header"] },
        { "key": "pageIntro", "label": "Contact Page Intro", "type": "textarea", "appearsOn": ["contact-header"] },
        { "key": "pageButton", "label": "Contact Page Button", "type": "text", "appearsOn": ["contact-inquire"] }
      ]
    },
    "hero": {
      "label": "Hero (Homepage)",
      "pages": ["/"],
      "fields": [
        { "key": "image", "label": "Hero Image", "type": "image", "appearsOn": ["home-hero"] },
        { "key": "eyebrow", "label": "Eyebrow", "type": "text" },
        { "key": "headline", "label": "Headline", "type": "text" },
        { "key": "headlineAccent", "label": "Headline Accent", "type": "text" },
        { "key": "subheadline", "label": "Subheadline", "type": "textarea" },
        { "key": "primaryCta", "label": "Primary Button", "type": "text" },
        { "key": "secondaryCta", "label": "Secondary Button", "type": "text" }
      ]
    },
    "craft": {
      "label": "The Craft",
      "pages": ["/", "/about"],
      "fields": [
        { "key": "makerPhoto", "label": "Maker Photo", "type": "image", "appearsOn": ["home-craft", "about-intro"] },
        { "key": "workshopPhoto", "label": "Workshop Photo", "type": "image", "appearsOn": ["home-craft", "about-workshop"] },
        { "key": "eyebrow", "label": "Eyebrow", "type": "text" },
        { "key": "headline", "label": "Headline", "type": "text" },
        { "key": "body", "label": "Body Paragraphs", "type": "list-text", "itemType": "textarea" }
      ]
    },
    "gallery": {
      "label": "Gallery (The Details)",
      "pages": ["/"],
      "fields": [
        { "key": "eyebrow", "label": "Eyebrow", "type": "text" },
        { "key": "title", "label": "Title", "type": "text" },
        { "key": "description", "label": "Description", "type": "textarea" },
        { "key": "images", "label": "Gallery Images", "type": "gallery", "itemFields": ["url", "alt"], "appearsOn": ["home-gallery"] }
      ]
    },
    "cta": {
      "label": "Call To Action",
      "pages": ["/", "/about"],
      "fields": [
        { "key": "headline", "label": "Headline", "type": "text" },
        { "key": "body", "label": "Body", "type": "textarea" },
        { "key": "button", "label": "Button", "type": "text" }
      ]
    },
    "about": {
      "label": "About The Maker",
      "pages": ["/about"],
      "fields": [
        { "key": "eyebrow", "label": "Eyebrow", "type": "text" },
        { "key": "headline", "label": "Headline", "type": "text" },
        { "key": "intro", "label": "Intro Paragraphs", "type": "list-text", "itemType": "textarea" },
        { "key": "workshopQuote", "label": "Workshop Quote", "type": "textarea" },
        { "key": "principles", "label": "Principles", "type": "list-object", "itemFields": ["title", "body"] },
        { "key": "ctaHeadline", "label": "CTA Headline", "type": "text" },
        { "key": "ctaBody", "label": "CTA Body", "type": "textarea" }
      ]
    }
  },

  "fieldTypes": {
    "text": "Single-line text",
    "textarea": "Multi-line text",
    "image": "Single image (accepts https URL or upload)",
    "gallery": "Ordered list of images, each with url + alt",
    "list-text": "Ordered list of text/textarea items",
    "list-object": "Ordered list of objects with named fields"
  },

  "catalogDriven": {
    "_comment": "These pages are driven by the catalog feed, NOT the site-content feed. The manager edits these via the catalog manager, not the site-content editor.",
    "pages": ["/knives", "/knives/:slug"],
    "managedVia": "catalog feed",
    "itemFields": ["name", "slug", "type", "status", "published", "price", "featured", "shortDescription", "longDescription", "steel", "serial", "year", "countryOfOrigin", "videoUrl", "images", "specs"]
  }
}
