backend:
  name: github
  repo: HenryTheHank/backyard-greens-crew
  branch: main
  base_url: https://backyardgreenscrew.com
  auth_endpoint: api/auth

media_folder: "images/services"
public_folder: "/images/services"

media_libraries:
  default:
    config:
      max_file_size: 10485760
      multiple: false
      transformations:
        raster_image:
          format: webp
          quality: 82
          width: 1600
          height: 1600
          fit: inside

collections:
  - name: "site_settings"
    label: "Website Content"
    files:
      - name: "site_data"
        label: "Business Info, Hero & Services"
        file: "content/site-data.json"
        fields:
          - label: "Integrations"
            name: "integrations"
            widget: "object"
            fields:
              - { label: "Cloudflare Turnstile Site Key", name: "turnstileSiteKey", widget: "string" }
          - label: "Business Information"
            name: "business"
            widget: "object"
            fields:
              - { label: "Business Name", name: "name", widget: "string" }
              - { label: "Tagline", name: "tagline", widget: "string" }
              - { label: "Phone Number", name: "phone", widget: "string" }
              - { label: "Public Contact Email", name: "email", widget: "string" }
              - { label: "Service Area", name: "serviceArea", widget: "string" }
              - { label: "Operating Hours", name: "hours", widget: "string" }
          - label: "Hero Section"
            name: "hero"
            widget: "object"
            fields:
              - { label: "Headline", name: "headline", widget: "string" }
              - { label: "Subheadline", name: "subheadline", widget: "text" }
              - { label: "Button Label", name: "ctaLabel", widget: "string" }
              - { label: "Hero Photo", name: "image", widget: "image", media_folder: "/images/hero", public_folder: "/images/hero" }
              - { label: "Hero Photo Alt Text", name: "imageAlt", widget: "string" }
          - label: "Services"
            name: "services"
            widget: "list"
            summary: "{{fields.title}} — {{fields.headline}}"
            fields:
              - { label: "Service ID (slug)", name: "id", widget: "string" }
              - { label: "Service Title (Kicker)", name: "title", widget: "string" }
              - { label: "Modal Display Headline", name: "headline", widget: "string" }
              - { label: "Card Summary", name: "shortDescription", widget: "text" }
              - { label: "Modal Full Description", name: "fullDescription", widget: "text" }
              - { label: "What's Included (Highlights)", name: "highlights", widget: "list", field: { label: "Highlight", name: "item", widget: "string" } }
              - { label: "Great For (Tags)", name: "greatFor", widget: "list", required: false, field: { label: "Tag", name: "item", widget: "string" } }
              - { label: "Service Photo", name: "image", widget: "image" }
              - { label: "Photo Alt Text", name: "imageAlt", widget: "string" }
