/**
 * Supplied company facts only. Do not add founding dates, headcount, client counts,
 * certifications, awards, or results here: none have been provided.
 */
export const siteConfig = {
  name: "Axidys Media",
  shortName: "Axidys",
  legalName: "Axidys Limited",
  url: "https://axidysmedia.com",
  domain: "axidysmedia.com",
  tagline: "Growth marketing for SaaS + e-commerce",
  description:
    "Growth marketing for SaaS and e-commerce companies. Paid media, SEO + AI search, CRO, analytics, and retention, measured against pipeline, CAC, and margin.",
  companyNumber: "3175091",
  address: {
    streetAddress: "8/F, China Hong Kong Tower, 8–12 Hennessy Road",
    addressLocality: "Wan Chai",
    addressRegion: "Hong Kong",
    addressCountry: "HK",
    countryName: "Hong Kong",
  },
  /** Public contact address. Override per environment with NEXT_PUBLIC_CONTACT_EMAIL. */
  contactEmail: process.env.NEXT_PUBLIC_CONTACT_EMAIL?.trim() || "info@axidysmedia.com",
  locale: "en",
} as const;

export function formatAddress(separator = ", "): string {
  const { streetAddress, addressLocality, countryName } = siteConfig.address;
  return [streetAddress, addressLocality, countryName].join(separator);
}

export function absoluteUrl(path = "/"): string {
  if (/^https?:\/\//.test(path)) return path;
  return `${siteConfig.url}${path === "/" ? "" : path.startsWith("/") ? path : `/${path}`}`;
}
