backend:
  name: git-gateway
  branch: main

publish_mode: simple
media_folder: "src/assets/uploads"
public_folder: "/assets/uploads"

collections:
  - name: "settings"
    label: "Site Settings"
    files:
      - name: "site"
        label: "Site Settings"
        file: "src/_data/site.json"
        fields:
          - { label: "Firm Name", name: "firmName", widget: "string" }
          - { label: "Slogan", name: "slogan", widget: "string" }
          - { label: "Logo", name: "logo", widget: "image" }
          - { label: "Phone Numbers (shown to visitors)", name: "phones", widget: "list", field: { label: "Phone", name: "phone", widget: "string" } }
          - { label: "Phone Numbers (for click-to-call links, no spaces, e.g. +26771826955)", name: "phoneLinks", widget: "list", field: { label: "Phone", name: "phone", widget: "string" } }
          - { label: "WhatsApp Link", name: "whatsappLink", widget: "string" }
          - { label: "Email", name: "email", widget: "string" }
          - { label: "Postal Address", name: "address", widget: "string" }
          - { label: "City", name: "city", widget: "string" }
          - { label: "Facebook Page URL", name: "facebookUrl", widget: "string" }
          - { label: "Founding Year", name: "foundingYear", widget: "string" }
          - { label: "Footer Text", name: "footerText", widget: "string" }
          - { label: "Google Maps Embed URL", name: "mapEmbedUrl", widget: "text" }

  - name: "home"
    label: "Home Page"
    files:
      - name: "home"
        label: "Home Page"
        file: "src/_data/home.json"
        fields:
          - { label: "Hero Image", name: "heroImage", widget: "image" }
          - { label: "Hero Heading", name: "heroHeading", widget: "string" }
          - { label: "Hero Text", name: "heroText", widget: "text" }
          - { label: "Hero Button Text", name: "heroButtonText", widget: "string" }
          - { label: "Overview Heading", name: "overviewHeading", widget: "string" }
          - { label: "Overview Text", name: "overviewText", widget: "text" }
          - { label: "Overview Image", name: "overviewImage", widget: "image" }
          - { label: "Overview Image Alt Text", name: "overviewImageAlt", widget: "string" }
          - { label: "Expertise Heading", name: "expertiseHeading", widget: "string" }
          - label: "Expertise Preview Cards"
            name: "expertisePreview"
            widget: "list"
            fields:
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Text", name: "text", widget: "text" }

  - name: "about"
    label: "About Page"
    files:
      - name: "about"
        label: "About Page"
        file: "src/_data/about.json"
        fields:
          - { label: "Page Heading", name: "pageHeading", widget: "string" }
          - { label: "Background Heading", name: "backgroundHeading", widget: "string" }
          - { label: "Background Paragraphs", name: "backgroundParagraphs", widget: "list", field: { label: "Paragraph", name: "paragraph", widget: "text" } }
          - { label: "Mission Heading", name: "missionHeading", widget: "string" }
          - { label: "Mission Text", name: "missionText", widget: "text" }
          - { label: "Vision Heading", name: "visionHeading", widget: "string" }
          - label: "Vision Cards"
            name: "visionCards"
            widget: "list"
            fields:
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Text", name: "text", widget: "text" }
          - { label: "Team Heading", name: "teamHeading", widget: "string" }
          - { label: "Team Intro Text", name: "teamIntro", widget: "text" }
          - label: "Team Members"
            name: "team"
            widget: "list"
            fields:
              - { label: "Name", name: "name", widget: "string" }
              - { label: "Role", name: "role", widget: "string" }
              - { label: "Credentials", name: "credentials", widget: "string", required: false }
              - { label: "Photo", name: "photo", widget: "image", required: false }

  - name: "services"
    label: "Services Page"
    files:
      - name: "services"
        label: "Services Page"
        file: "src/_data/services.json"
        fields:
          - { label: "Hero Eyebrow", name: "heroEyebrow", widget: "string" }
          - { label: "Hero Heading", name: "heroHeading", widget: "string" }
          - { label: "Hero Text", name: "heroText", widget: "text" }
          - { label: "Practice Areas Heading", name: "practiceAreasHeading", widget: "string" }
          - { label: "Practice Areas Intro", name: "practiceAreasIntro", widget: "text" }
          - label: "Practice Area Cards"
            name: "practiceAreas"
            widget: "list"
            summary: "{{title}}"
            fields:
              - { label: "Icon (emoji)", name: "icon", widget: "string" }
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Services", name: "services", widget: "list", field: { label: "Service", name: "service", widget: "string" } }
              - { label: "Who We Help (tags)", name: "whoWeHelp", widget: "list", field: { label: "Tag", name: "tag", widget: "string" } }
              - label: "Stats"
                name: "stats"
                widget: "list"
                fields:
                  - { label: "Number", name: "number", widget: "string" }
                  - { label: "Label", name: "label", widget: "string" }
              - { label: "Call-to-Action Text", name: "ctaText", widget: "string" }
          - { label: "Fees Heading", name: "feesHeading", widget: "string" }
          - { label: "Fees Paragraphs", name: "feesParagraphs", widget: "list", field: { label: "Paragraph", name: "paragraph", widget: "text" } }
          - { label: "Fees Call-to-Action Text", name: "feesCtaText", widget: "string" }

  - name: "portfolio"
    label: "Portfolio Page"
    files:
      - name: "portfolio"
        label: "Portfolio Page"
        file: "src/_data/portfolio.json"
        fields:
          - { label: "Hero Eyebrow", name: "heroEyebrow", widget: "string" }
          - { label: "Hero Heading", name: "heroHeading", widget: "string" }
          - { label: "Hero Text", name: "heroText", widget: "text" }
          - label: "Stats Banner"
            name: "statsBanner"
            widget: "list"
            fields:
              - { label: "Number", name: "number", widget: "string" }
              - { label: "Label", name: "label", widget: "string" }
          - { label: "Practice Areas Heading", name: "practiceAreasHeading", widget: "string" }
          - { label: "Practice Areas Intro", name: "practiceAreasIntro", widget: "text" }
          - { label: "Case Studies Heading", name: "caseStudiesHeading", widget: "string" }
          - { label: "Case Studies Intro", name: "caseStudiesIntro", widget: "text" }
          - label: "Case Studies"
            name: "caseStudies"
            widget: "list"
            summary: "{{title}}"
            fields:
              - { label: "Icon (emoji)", name: "icon", widget: "string" }
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Tag", name: "tag", widget: "string" }
              - { label: "The Challenge", name: "challenge", widget: "text" }
              - { label: "The Approach", name: "approach", widget: "text" }
              - { label: "The Outcome", name: "outcome", widget: "text" }
          - { label: "Advantage Heading", name: "advantageHeading", widget: "string" }
          - { label: "Advantage Intro", name: "advantageIntro", widget: "text" }
          - label: "Advantages"
            name: "advantages"
            widget: "list"
            summary: "{{title}}"
            fields:
              - { label: "Icon (emoji)", name: "icon", widget: "string" }
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Text", name: "text", widget: "text" }
          - { label: "Resources Heading", name: "resourcesHeading", widget: "string" }
          - { label: "Resources Intro", name: "resourcesIntro", widget: "text" }
          - { label: "Resources List Heading", name: "resourcesListHeading", widget: "string" }
          - label: "Resources"
            name: "resources"
            widget: "list"
            summary: "{{title}}"
            fields:
              - { label: "Type (e.g. '📄 Checklist')", name: "type", widget: "string" }
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Text", name: "text", widget: "text" }
          - { label: "FAQ Heading", name: "faqHeading", widget: "string" }
          - label: "FAQ"
            name: "faq"
            widget: "list"
            summary: "{{question}}"
            fields:
              - { label: "Question", name: "question", widget: "string" }
              - { label: "Answer", name: "answer", widget: "text" }
          - { label: "Credentials Heading", name: "credentialsHeading", widget: "string" }
          - label: "Credentials"
            name: "credentials"
            widget: "list"
            summary: "{{text}}"
            fields:
              - { label: "Icon (emoji)", name: "icon", widget: "string" }
              - { label: "Text", name: "text", widget: "string" }
          - { label: "Gallery Heading", name: "galleryHeading", widget: "string" }
          - label: "Gallery"
            name: "gallery"
            widget: "list"
            summary: "{{caption}}"
            fields:
              - { label: "Image", name: "image", widget: "image" }
              - { label: "Alt Text", name: "alt", widget: "string" }
              - { label: "Caption", name: "caption", widget: "string" }

  - name: "ads"
    label: "Advertising Posts"
    folder: "src/_data/ads"
    create: true
    slug: "{{slug}}"
    summary: "{{title}} — {{date}}"
    fields:
      - { label: "Title (internal reference only)", name: "title", widget: "string" }
      - { label: "Image", name: "image", widget: "image" }
      - { label: "Caption / Ad Copy", name: "caption", widget: "text" }
      - { label: "Link (optional, e.g. a page on this site)", name: "link", widget: "string", required: false }
      - { label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD", date_format: "YYYY-MM-DD", time_format: false }
      - { label: "Already Posted to Facebook?", name: "posted", widget: "boolean", default: false }
