/**
 * Content model for the homepage.
 *
 * `defaultContent` mirrors the approved V4 Premium design verbatim and is the
 * fallback whenever WordPress is unreachable or a field is missing, so the
 * site never renders empty. WordPress (ACF fields on the "home" page) is
 * deep-merged over these values in lib/wordpress.ts.
 */

export interface Product {
  code: string;
  img: string;
  tagline: string;
  price: string;
  cadence: string;
  features: string[];
}

export interface Feature {
  h: string;
  p: string;
  /** key into the icon set in components/icons.tsx */
  icon: "dollar" | "phone" | "card";
}

export interface Stat {
  n: string;
  l: string;
}

export interface Partner {
  name: string;
  logo: string;
}

export interface Review {
  quote: string;
  initials: string;
  name: string;
  role: string;
}

export interface Faq {
  q: string;
  a: string;
}

export interface Promo {
  eyebrow: string;
  scriptLine: string;
  headline: string;
  subline: string;
  body: string;
  code: string;
  discountPrefix: string;
  discountValue: string;
  discountSuffix: string;
  cta: string;
  ctaUrl: string;
  image: string;
}

export interface NavLink {
  label: string;
  url: string;
}

export interface FooterLink {
  label: string;
  url: string;
}

export interface SeoData {
  title: string;
  description: string;
  canonicalUrl: string;
  robots: string;
  keywords: string;
  ogTitle: string;
  ogDescription: string;
  ogType: string;
  ogUrl: string;
  ogSiteName: string;
  twitterTitle: string;
  twitterDescription: string;
  twitterCard: string;
}

export interface HomeContent {
  siteTitle: string;
  siteDescription: string;
  siteIcon: string;
  seo: SeoData;
  hero: {
    badge: string;
    titleLead: string;
    titleAccent: string;
    body: string;
    cta: string;
    ctaHref: string;
    phoneDisplay: string;
    phoneHref: string;
    image?: string;
    chip1Title: string;
    chip1Subtitle: string;
    chip2Title: string;
    chip2Subtitle: string;
  };
  header: {
    logo?: string;
    ctaText: string;
    ctaUrl: string;
    navLinks: NavLink[];
  };
  trust: { rating: string; reviewsLine: string };
  promo: Promo;
  packages: { eyebrow: string; titleLead: string; titleAccent: string; body: string; ctaUrl: string; products: Product[] };
  stats: Stat[];
  why: { eyebrow: string; titleLead: string; titleAccent: string; features: Feature[] };
  bank: { eyebrow: string; titleLead: string; titleAccent: string; partners: Partner[] };
  lead: {
    badge: string;
    titleLead: string;
    titleAccent: string;
    body: string;
    benefits: string[];
    formTitle: string;
    formSubtitle: string;
    submitLabel: string;
    smsConsent: string;
    phoneDisplay: string;
    phoneHref: string;
  };
  reviews: { eyebrow: string; titleLead: string; titleAccent: string; items: Review[] };
  faq: { eyebrow: string; titleLead: string; titleAccent: string; items: Faq[] };
  finalCta: { titleLead: string; titleAccent: string; titleTail: string; body: string; cta: string; ctaUrl: string };
  footer: {
    blurb: string;
    address: string;
    phone: string;
    logo?: string;
    col1Heading: string;
    col1Links: FooterLink[];
    col2Heading: string;
    col2Links: FooterLink[];
    col3Heading: string;
    col3Links: FooterLink[];
    legalLinks: FooterLink[];
  };
}

export const defaultContent: HomeContent = {
  siteTitle: "Sigma Tax Pro — Professional Tax Software",
  siteDescription:
    "Professional tax software with bank products built in, free data conversion, and a real person on the phone — including weekends through the season.",
  siteIcon: "/favicon.ico",
  seo: {
    title: "Sigma Tax Pro — Professional Tax Software",
    description: "Professional tax software with bank products built in, free data conversion, and a real person on the phone — including weekends through the season.",
    canonicalUrl: "",
    robots: "index, follow",
    keywords: "",
    ogTitle: "Sigma Tax Pro — Professional Tax Software",
    ogDescription: "Professional tax software with bank products built in, free data conversion, and a real person on the phone — including weekends through the season.",
    ogType: "website",
    ogUrl: "",
    ogSiteName: "Sigma Tax Pro",
    twitterTitle: "Sigma Tax Pro — Professional Tax Software",
    twitterDescription: "Professional tax software with bank products built in, free data conversion, and a real person on the phone — including weekends through the season.",
    twitterCard: "summary_large_image",
  },
  hero: {
    badge: "The complete back office for tax pros",
    titleLead: "A back office that answers ",
    titleAccent: "when you call.",
    body: "Professional tax software with bank products built in, free data conversion, and a real person on the phone — including weekends through the season.",
    cta: "Let's get started now",
    ctaHref: "#lead",
    phoneDisplay: "(866) 386-4769",
    phoneHref: "tel:+18663864769",
    image: "/img/hero-support-desk.webp",
    chip1Title: "E-file accepted",
    chip1Subtitle: "Johnson · 1040 · 99.4%",
    chip2Title: "Refund advance funded",
    chip2Subtitle: "Garcia · +$1,500",
  },

  header: {
    logo: "/img/logo.webp",
    ctaText: "Get a demo",
    ctaUrl: "#lead",
    navLinks: [
      { label: "Tax Software", url: "#packages" },
      { label: "Bank Products", url: "#bank" },
      { label: "Why Sigma", url: "#why" },
      { label: "FAQ", url: "#faq" },
    ],
  },

  trust: { rating: "5.0", reviewsLine: "Based on 312 verified reviews" },

  promo: {
    eyebrow: "Limited-time promotion",
    scriptLine: "This season's",
    headline: "Special offer",
    subline: "Save 20% on any package",
    body: "Placeholder copy — swap this line for the current offer's details, eligibility, and end date.",
    code: "EARLY20",
    discountPrefix: "up to",
    discountValue: "20%",
    discountSuffix: "OFF",
    cta: "Claim this offer",
    ctaUrl: "#packages",
    image: "/img/mascot.webp",
  },

  packages: {
    eyebrow: "Tax software packages",
    titleLead: "One platform, priced for the ",
    titleAccent: "practice you run.",
    body: "Every package includes bank products, live support, auto-updates, and free data conversion from your current software.",
    ctaUrl: "#lead",
    products: [
      {
        code: "1040-TW",
        img: "/img/box-tw.webp",
        tagline: "Cloud-based. Ideal for new and growing EROs.",
        price: "$495",
        cadence: "/season",
        features: [
          "Cloud-based — any device, any browser",
          "All federal & state forms",
          "Built-in interview wizard",
          "Software co-branding included",
          "Off-site backup storage",
        ],
      },
      {
        code: "1040-DR",
        img: "/img/box-dr.webp",
        tagline: "Full business suite. Complex returns & high volume.",
        price: "$895",
        cadence: "/season",
        features: [
          "Supports 1040, 1120, 1120S & 1065",
          "Interview + forms input methods",
          "Joint vs. separate comparison report",
          "Client write-up accounting package",
          "Free data conversion from prior software",
        ],
      },
      {
        code: "1040-SR",
        img: "/img/box-sr.webp",
        tagline: "High-volume offices that need speed.",
        price: "$495",
        cadence: "/season",
        features: [
          "Fast form-based input",
          "All federal & state forms",
          "Seamless error correction",
          "Customizable reports",
          "Free taxpayer mobile app",
        ],
      },
    ],
  },

  stats: [
    { n: "2002", l: "Serving independent tax professionals" },
    { n: "5.0", l: "Average rating across 312 verified reviews" },
    { n: "99.4%", l: "Returns accepted on first e-file attempt" },
    { n: "$495", l: "Starting price per season, every package" },
  ],

  why: {
    eyebrow: "Why Sigma",
    titleLead: "Everything you need to ",
    titleAccent: "compete with the big firms.",
    features: [
      {
        h: "Lowest prices available",
        p: "Professional-grade software at prices that let you keep more of what you earn. Bank products make it even more affordable.",
        icon: "dollar",
      },
      {
        h: "Best-in-class support",
        p: "Real humans. Extended hours. Weekend availability. Your account manager calls back immediately — no ticket queues.",
        icon: "phone",
      },
      {
        h: "Bank products built in",
        p: "Collect prep fees directly from refunds. Offer taxpayer advances. Integrated with TPG, EPS, Republic Bank, and more.",
        icon: "card",
      },
    ],
  },

  bank: {
    eyebrow: "Integrated banking partners",
    titleLead: "Collect prep fees straight from ",
    titleAccent: "refunds.",
    partners: [
      { name: "Tax Products Group", logo: "/img/bank-tpg.webp" },
      { name: "EPS Financial", logo: "/img/bank-eps.webp" },
      { name: "Republic Bank", logo: "/img/bank-republic.webp" },
      { name: "Refund Advantage", logo: "/img/bank-refund-advantage.webp" },
      { name: "Refundo", logo: "/img/bank-refundo.webp" },
    ],
  },

  lead: {
    badge: "Free, no obligation",
    titleLead: "Find your fit in ",
    titleAccent: "one phone call.",
    body: "A real person — not a ticket queue — walks you through pricing, demos, and setup.",
    benefits: [
      "Lowest prices in professional tax software",
      "Bank products built in — collect fees from refunds",
      "Free data conversion from your current software",
      "Extended hours + weekend support",
    ],
    formTitle: "Get your free demo",
    formSubtitle: "Takes 30 seconds. We'll call within one business day.",
    submitLabel: "Download the demo",
    smsConsent:
      "By checking this box, I agree to receive SMS messages about conversational from Sigma Tax Pro at the phone number provided above. The SMS frequency may vary. Data rates may apply. Text HELP to (561) 20450-6422 for assistance. Reply STOP to opt out of receiving SMS messages. Please review our Privacy Policy.",
    phoneDisplay: "(866) 386-4769",
    phoneHref: "tel:+18663864769",
  },

  reviews: {
    eyebrow: "In their words",
    titleLead: "Numbers that ",
    titleAccent: "speak for themselves.",
    items: [
      {
        quote:
          "The support alone is worth it — they actually pick up the phone. Switched two seasons ago and never looked back.",
        initials: "MD",
        name: "Marcus D.",
        role: "Independent ERO",
      },
      {
        quote:
          "We run four locations and managing everything through one platform has made tax season dramatically less painful.",
        initials: "SK",
        name: "Sandra K.",
        role: "Multi-location office owner",
      },
      {
        quote:
          "Bank product integration is seamless. Our refund transfers have grown every year since we made the switch.",
        initials: "RT",
        name: "Raymond T.",
        role: "Tax office owner",
      },
    ],
  },

  faq: {
    eyebrow: "FAQ",
    titleLead: "Questions, ",
    titleAccent: "before you switch.",
    items: [
      {
        q: "What is the best tax software for professionals?",
        a: "Our packages are built to meet a range of needs, from high-volume client management with the 1040-SR to more complex cases with the 1040-DR. Each includes seamless error correction, filing status comparisons, and advanced permission controls.",
      },
      {
        q: "How much does professional tax software cost?",
        a: "Packages start at $495 per season, with our most powerful package — the 1040-DR — at $895 per season. Every plan includes bank products, live support, free data conversion, and auto-updates throughout the season.",
      },
      {
        q: "Are your solutions cloud or desktop-based?",
        a: "We offer both cloud-based and desktop options, so you can choose the setup that fits your office. All three packages are available in either format, though business returns such as Forms 1120 and 1065 require the desktop version.",
      },
      {
        q: "Does your tax software work on Mac and PC?",
        a: "Our web-based tax software works on any device with a browser, including Mac, PC, Chromebook, tablet, or phone.",
      },
      {
        q: "What customer support is available during tax season?",
        a: "All packages include unlimited support with extended hours and weekend availability throughout tax season. Your account manager returns calls directly — no ticket queues.",
      },
      {
        q: "Do you offer bank products and taxpayer advances?",
        a: "Yes. We integrate with TPG, EPS Financial, Republic Bank, Refund Advantage, and PayDash. You can collect prep fees directly from refunds and offer taxpayer cash advances where eligible.",
      },
    ],
  },

  finalCta: {
    titleLead: "Run your ",
    titleAccent: "best tax season",
    titleTail: " yet.",
    body: "Download a free demo and see why thousands of preparers trust Sigma.",
    cta: "Download a free demo",
    ctaUrl: "#lead",
  },

  footer: {
    blurb:
      "Professional tax software with bank products built in. Trusted by thousands of tax professionals nationwide.",
    address: "955 NW 17th Ave #E, Delray Beach, FL 33445",
    phone: "(866) 386-4769",
    logo: "/img/logo.webp",
    col1Heading: "Software",
    col1Links: [
      { label: "1040-TW", url: "#packages" },
      { label: "1040-SR", url: "#packages" },
      { label: "1040-DR", url: "#packages" },
      { label: "Compare packages", url: "#packages" },
    ],
    col2Heading: "Bank products",
    col2Links: [
      { label: "Tax Products Group", url: "#bank" },
      { label: "EPS Financial", url: "#bank" },
      { label: "Republic Bank", url: "#bank" },
      { label: "Refund Advantage", url: "#bank" },
    ],
    col3Heading: "Company",
    col3Links: [
      { label: "About us", url: "#why" },
      { label: "Meet the team", url: "/team/" },
      { label: "Blog", url: "/blog" },
      { label: "Contact", url: "#lead" },
    ],
    legalLinks: [
      { label: "Privacy", url: "#" },
      { label: "Terms", url: "#" },
      { label: "Accessibility", url: "#" },
    ],
  },
};

export const socials = [
  { label: "Facebook", href: "https://www.facebook.com/sigmataxpro/", icon: "facebook" },
  { label: "X (Twitter)", href: "https://x.com/SigmaTaxPro", icon: "x" },
  { label: "LinkedIn", href: "https://www.linkedin.com/company/sigma-tax-pro", icon: "linkedin" },
  { label: "YouTube", href: "https://www.youtube.com/channel/UCgwwW2S68xfE5so52ewFD1g", icon: "youtube" },
  { label: "Instagram", href: "https://www.instagram.com/sigmataxpro/", icon: "instagram" },
] as const;

export interface BreadcrumbItem { label: string; href?: string }

/** A single item in the WordPress navigation menu. */
export interface MenuItem {
  id: string;
  label: string;
  url: string;
  uri: string;
  target: string;
  children: MenuItem[];
}

/** Structured content for any WordPress page (not just home). */
export interface PageContent {
  title: string;
  uri: string;
  /** Rendered Elementor/block HTML from WordPress. */
  bodyHtml: string;
  /** ACF flexible sections (only populated for pages using the sections plugin). */
  sections: Array<Record<string, unknown>>;
  seo: {
    title: string;
    description: string;
    canonical: string;
    robots: string;
    keywords: string;
    ogTitle: string;
    ogDescription: string;
    ogType: string;
    ogUrl: string;
    ogSiteName: string;
    twitterTitle: string;
    twitterDescription: string;
    twitterCard: string;
  };
}
