// Site-wide configuration — single place to edit deployment-specific values.
// Web developer: update FORM_ENDPOINT after creating a Formspree form.
// See README.md, section "Forms — Formspree wiring".
window.SITE_CONFIG = {
  // Replace YOUR_FORMSPREE_ID with the form ID from formspree.io.
  // Until this is set, both forms (Contact + Match Intake) will surface a
  // friendly error and tell visitors to email matters@tailoredmediation.com.
  FORM_ENDPOINT: 'https://formspree.io/f/YOUR_FORMSPREE_ID',

  // Subject line used by Formspree on the email it sends.
  FORM_SUBJECT_CONTACT: 'Tailored Mediation — new general inquiry',
  FORM_SUBJECT_INTAKE:  'Tailored Mediation — new match intake',

  // Where messages should land if the form fails.
  FALLBACK_EMAIL: 'matters@tailoredmediation.com',
};

// Helper — lets pages detect whether the form endpoint has been configured.
window.SITE_CONFIG.isFormEndpointConfigured = function() {
  return !this.FORM_ENDPOINT.includes('YOUR_FORMSPREE_ID');
};
