export type Seo = { title: string; description: string | null };

export type NavService = { slug: string; title: string; card_title: string };

export type Contact = {
  phone: string | null;
  email: string | null;
  address: string | null;
  map_url: string | null;
  map_embed: string | null;
  linkedin: string | null;
  instagram: string | null;
  telegram: string | null;
  experience_title: string;
};

export type Navigation = {
  contact: Contact;
  experience_title: string;
  services: NavService[];
};

export type Step = { title: string; text: string };

export type ServiceCard = {
  slug: string;
  title: string;
  card_title: string;
  summary: string;
  icon: string;
  is_featured: boolean;
  secondary: { slug: string; label: string } | null;
};

export type ServiceDetail = ServiceCard & {
  intro: string;
  problem: string;
  capabilities: string[];
  process_steps: Step[];
  deliverables: string[];
  audiences: string[];
  faq: { question: string; answer: string }[];
  legal_note: string | null;
  seo: Seo;
};

export type HomeData = {
  hero_title: string;
  hero_lead: string;
  cta_title: string;
  cta_body: string;
  why_items: { title: string; text: string }[];
  problems: { problem: string; solution: string }[];
  process_steps: Step[];
  advantages: string[];
  services: ServiceCard[];
  seo: Seo;
};

export type CmsPage = {
  slug: string;
  title: string;
  sections: { title: string; body: string }[];
  seo: Seo;
};

export type Domain = { slug: string; title: string; summary: string; body: string };

export type ProjectCard = {
  slug: string;
  title: string;
  client_name: string | null;
  category: string;
  category_label: string;
  technologies: string[];
};

export type ProjectDetail = ProjectCard & {
  problem: string;
  solution: string;
  role: string;
  results: string | null;
  images: string[];
  seo: Seo;
};

export type ArticleCard = {
  slug: string;
  title: string;
  excerpt: string;
  author_name: string;
  category: { slug: string; name: string } | null;
  cover: string | null;
  published_at: string | null;
  published_at_jalali: string | null;
};

export type ArticleDetail = ArticleCard & {
  body: string;
  related: ArticleCard[];
  seo: Seo;
};

export type Member = { name: string; role: string; bio: string | null; photo: string | null };
