/* Site-wide config — single source of truth for contact details + endpoints */

const AxiomConfig = {
  // Contact form endpoint — handled by the Cloudflare Pages Function at
  // functions/api/contact.js. The relative URL works on any domain without changes.
  // The Pages Function validates, sends emails via SendGrid, and fire-and-forgets
  // to the Apps Script (APPS_SCRIPT_URL env var) to keep the Google Sheet log.
  // Until the Pages Function is deployed, forms fall back to opening the visitor's email client.
  FORM_ENDPOINT: '/api/contact',

  // AxiomPOS app URL — where "Start free trial" CTAs send users.
  // The POS app handles signup, PayFast card capture, onboarding,
  // and the live till from this URL onwards. Update once to switch
  // to a custom subdomain (e.g. app.axiomdigital.co.za) — every
  // page reads from here, so no link hunt across the codebase.
  POS_APP_URL: 'https://generic-pos-test.azurewebsites.net',

  // Site's canonical base URL — update this in ONE place when the real domain is purchased.
  SITE_URL: 'https://axiom-digital-solutions.dessetsatsi.workers.dev',

  // Public-facing contact details (shown in CTA blocks + footer).
  // Update these in one place; they propagate everywhere.
  CONTACT: {
    phone: '+27 72 334 1328',
    phoneHref: 'tel:+27723341328',
    email: 'hello@axiomds.co.za',
    emailHref: 'mailto:hello@axiomds.co.za',
    location: 'Pretoria, Gauteng',
  },
};

window.AxiomConfig = AxiomConfig;
