export interface FAQItem {
  answer: string;
  category?: string;
  id: string;
  question: string;
}

export interface FAQSectionProps {
  faqs: FAQItem[];
  subtitle?: string;
  title?: string;
}

export interface FAQItemProps {
  answer: string;
  question: string;
}

export type FAQCategory =
  | "general"
  | "home"
  | "services"
  | "pricing"
  | "support"
  | "technical";

export type FAQConfig = Record<
  string,
  {
    title?: string;
    subtitle?: string;
    faqs: FAQItem[];
  }
>;

// FAQ Data
const sampleFAQs: FAQItem[] = [
  {
    id: "headless-marketing-velocity",
    question:
      "How does a headless architecture help my marketing team move faster?",
    answer:
      "It decouples your website's front-end from the back-end CMS. This means marketers can launch new pages, A/B test content, and integrate new tools with minimal developer help, cutting down your time-to-market dramatically.",
    category: "home",
  },
  {
    id: "ab-testing-without-dev",
    question: "Can my team really A/B test without a developer?",
    answer:
      "Yes. We integrate tools like Posthog and Vercel that allow your marketing team to set up and run experiments directly. For more complex tests, minimal developer involvement is needed, but the goal is marketer self-sufficiency.",
    category: "home",
  },
  {
    id: "content-management-ease",
    question: "How easy is it for non-technical users to manage content?",
    answer:
      "Extremely easy. Modern headless CMSs like Sanity and Contentful provide intuitive, user-friendly interfaces similar to Word or Google Docs, with live previews and collaboration tools. We provide full training to get your team comfortable.",
    category: "home",
  },
  {
    id: "seo-migration-impact",
    question: "Will my SEO rankings be affected during the migration?",
    answer:
      "Our migration process is designed to improve SEO performance. We handle all redirects, optimize Core Web Vitals (a key ranking factor), and ensure your site is faster than before. Most clients see a significant boost in rankings post-launch.",
    category: "home",
  },
  {
    id: "typical-engagement",
    question: "What does a typical engagement look like?",
    answer:
      "We always start with a paid Performance & Strategy Audit. This allows us to deeply understand your goals and technical landscape. From there, we present a detailed project proposal, followed by agile development sprints with constant communication.",
    category: "home",
  },
  {
    id: "cms-choice-sanity-contentful",
    question: "Which headless CMS is right for us? Sanity or Contentful?",
    answer:
      "It depends on your team's workflow. Sanity offers an amazing, customizable editing experience for content-heavy teams. Contentful is excellent for enterprise-level governance and multi-brand content distribution. We'll recommend the best fit during our audit.",
    category: "home",
  },
];

// Shopify Headless FAQs
const shopifyHeadlessFAQs: FAQItem[] = [
  {
    id: "shopify-headless-cost",
    question: "How much does a headless Shopify build cost?",
    answer:
      "Every project is scoped individually based on complexity, catalog size, and integrations. We always start with a paid Performance & Strategy Audit so you get a transparent, detailed proposal before committing. Most headless Shopify builds range from $25K to $80K+ depending on scope.",
    category: "services",
  },
  {
    id: "shopify-headless-timeline",
    question: "How long does the migration take?",
    answer:
      "A typical headless Shopify migration takes 8 to 14 weeks from audit to launch. This includes discovery, architecture design, development sprints, QA, and a staged rollout to minimize risk. We provide a detailed timeline during the audit phase.",
    category: "services",
  },
  {
    id: "shopify-headless-seo-rankings",
    question: "Will I lose my SEO rankings during migration?",
    answer:
      "No. SEO preservation is baked into our process from day one. We handle all URL redirects, maintain structured data, optimize Core Web Vitals, and run a full crawl comparison before and after launch. Most clients see improved rankings within weeks thanks to faster load times.",
    category: "services",
  },
  {
    id: "shopify-headless-content-updates",
    question: "Can my marketing team still update content without a developer?",
    answer:
      "Absolutely. We integrate a headless CMS (like Sanity or Contentful) that gives your marketing team full control over pages, collections, and content blocks. The editing experience is intuitive and we provide thorough training at launch.",
    category: "services",
  },
  {
    id: "shopify-headless-ongoing-support",
    question: "What happens after launch, do you offer ongoing support?",
    answer:
      "Yes. We offer retainer-based support packages that include performance monitoring, feature iterations, CMS assistance, and priority bug fixes. We treat the launch as the beginning of the partnership, not the end.",
    category: "services",
  },
  {
    id: "shopify-headless-why-not-theme",
    question: "Why headless instead of just upgrading my Shopify theme?",
    answer:
      "Theme upgrades are limited by Liquid's rendering model and Shopify's shared infrastructure. Headless gives you full control over performance, design, and user experience while keeping Shopify as your commerce engine. The result is dramatically faster pages, higher conversions, and complete creative freedom.",
    category: "services",
  },
  {
    id: "shopify-headless-tech-choice",
    question: "Do you use Hydrogen, Next.js, or something else?",
    answer:
      "We primarily build with Next.js and the Shopify Storefront API. Next.js gives us the best balance of performance, SEO, and developer ecosystem. We evaluate Hydrogen on a case-by-case basis and will recommend the best fit for your specific needs during the audit.",
    category: "technical",
  },
  {
    id: "shopify-headless-existing-apps",
    question: "Will my existing Shopify apps still work?",
    answer:
      "Most Shopify apps that operate on the backend (inventory, fulfillment, analytics, email) continue to work seamlessly. Storefront-facing apps (reviews, wishlists, loyalty) may need API-based alternatives, which we identify and plan for during the audit phase.",
    category: "technical",
  },
];

// WordPress Headless FAQs
const wordpressHeadlessFAQs: FAQItem[] = [
  {
    id: "wordpress-headless-cost",
    question: "How much does a WordPress headless migration cost?",
    answer:
      "Pricing depends on the complexity of your site, number of custom post types, plugin dependencies, and integrations. We scope every project individually after a paid Performance & Strategy Audit. Most WordPress headless migrations range from $20K to $60K+ depending on scope.",
    category: "services",
  },
  {
    id: "wordpress-headless-admin",
    question: "Will my content editors still use the WordPress admin?",
    answer:
      "Yes. That is one of the biggest advantages of going headless with WordPress. Your editors keep the familiar wp-admin interface they already know. The only change is that the front-end is now a blazing-fast, modern application that pulls content via the WordPress REST API or GraphQL.",
    category: "services",
  },
  {
    id: "wordpress-headless-timeline",
    question: "How long does the migration take?",
    answer:
      "A typical WordPress headless migration takes 8 to 12 weeks from audit to launch. Complex WooCommerce sites or heavily customized installations may take longer. We provide a detailed timeline and milestones during the audit phase.",
    category: "services",
  },
  {
    id: "wordpress-headless-seo-rankings",
    question: "Will I lose SEO rankings during the migration?",
    answer:
      "No. SEO is a core part of our migration process. We handle all URL redirects, preserve structured data, optimize Core Web Vitals, and perform before-and-after crawl comparisons. The performance gains from headless typically lead to improved rankings post-launch.",
    category: "services",
  },
  {
    id: "wordpress-headless-team-independence",
    question: "Can my team maintain the new site without you?",
    answer:
      "Yes. Content management stays in WordPress, and we provide comprehensive documentation and training. For front-end changes, your development team can work with the Next.js codebase. We also offer retainer support for teams that prefer ongoing partnership.",
    category: "services",
  },
  {
    id: "wordpress-headless-plugins",
    question: "What happens to my existing plugins?",
    answer:
      "Backend plugins (SEO, forms, analytics, WooCommerce) continue to work since WordPress remains your CMS. Front-end rendering plugins become unnecessary because the new front-end handles all presentation. We audit every plugin during discovery and map out replacements or API integrations where needed.",
    category: "technical",
  },
  {
    id: "wordpress-headless-performance-guarantee",
    question: "Do you guarantee performance results?",
    answer:
      "Yes. We guarantee 95+ Lighthouse scores and sub-1.5-second load times. These targets are written into our project agreements. If we do not meet them, we continue working at no additional cost until we do.",
    category: "services",
  },
  {
    id: "wordpress-headless-not-right-fit",
    question: "What if headless isn't right for my site?",
    answer:
      "That is exactly what our audit is for. If we determine that headless is not the right fit, for example, if your site is simple enough that a well-optimized WordPress theme would suffice, we will tell you. We would rather earn your trust with honesty than sell you a solution you do not need.",
    category: "services",
  },
];

// WordPress Maintenance FAQ
const wpMaintenanceFAQs: FAQItem[] = [
  {
    id: "wp-maint-downtime",
    question: "What happens if my site goes down?",
    answer:
      "We detect downtime within 60 seconds via 24/7 monitoring. Our team is alerted instantly, starts triage immediately, and most outages are resolved before your visitors notice. You receive an incident report afterward with root cause and prevention steps.",
  },
  {
    id: "wp-maint-themes-plugins",
    question: "Do you work with any WordPress theme and plugins?",
    answer:
      "Yes. We maintain sites running custom themes, page builders (Elementor, Divi, Bricks), WooCommerce extensions, and enterprise plugin stacks. When a plugin conflict arises, we reproduce it on staging and resolve it there before touching production.",
  },
  {
    id: "wp-maint-host-replacement",
    question: "Is this a replacement for my hosting from Kinsta or WP Engine?",
    answer:
      "No. Premium hosts like Kinsta and WP Engine handle infrastructure: servers, firewalls, DDoS protection. Our wordpress maintenance service handles the application layer: plugin updates, theme conflicts, WAF tuning, content backups, performance optimization. The two are complementary, not competing.",
  },
  {
    id: "wp-maint-support",
    question: "How do I request support?",
    answer:
      "All clients get a dedicated support inbox plus priority Slack channel (Pro and Enterprise). Most tickets are acknowledged within 1 hour during business days. Enterprise gets sub-2h emergency response guaranteed via phone or text.",
  },
  {
    id: "wp-maint-tune-up",
    question: "What's included in a performance tune-up?",
    answer:
      "Weekly tasks: cache warm-up, image optimization (auto WebP/AVIF), database cleanup, query profiling, Core Web Vitals tracking, frontend asset audit. Quarterly: full performance baseline with Lighthouse, WebPageTest, competitor benchmarks. Our wordpress care goes well beyond the basics.",
  },
  {
    id: "wp-maint-hacked-already",
    question: "My site is already hacked. Can you fix it?",
    answer:
      "Yes. Our Professional and Enterprise plans include a hacked site cleanup guarantee. We perform full malware removal, blacklist removal request, vulnerability patching, and a 90-day reinfection guarantee. Most cleanups complete within 24 hours. Emergency intervention is available for Enterprise clients.",
  },
  {
    id: "wp-maint-woocommerce-multisite",
    question: "Do you offer maintenance for WooCommerce or Multisite?",
    answer:
      "Yes. WooCommerce stores get the same maintenance plan with additional cart, checkout, and order-flow monitoring. Multisite networks scale linearly: pricing depends on the number of subsites and traffic patterns. Both are explicitly supported with no add-on fees.",
  },
  {
    id: "wp-maint-team-type",
    question: "Are you a solo freelancer or an agency?",
    answer:
      "Eleva is a small team, not a freelancer. Multiple senior WordPress engineers cover your account so there is no single point of failure. We are not a managed service provider (MSP) reselling another team's work; everything is handled in-house by our specialists.",
  },
];

// WordPress Security FAQ
const wpSecurityFAQs: FAQItem[] = [
  {
    id: "wp-sec-waf-speed",
    question: "Will the WAF slow down my site?",
    answer:
      "No. Our WAF operates at the edge (CDN level), meaning requests are filtered before they even reach your server. Most clients see improved load times because the WAF also blocks bot traffic that was previously consuming server resources.",
  },
  {
    id: "wp-sec-hardening-time",
    question: "How long does security hardening take?",
    answer:
      "Initial hardening is completed within 24-48 hours. This includes WAF deployment, file permission lockdown, authentication hardening, security header configuration, and vulnerability patching. Ongoing monitoring begins immediately after.",
  },
  {
    id: "wp-sec-already-hacked",
    question: "What if I'm already hacked, can you help?",
    answer:
      "Yes. We offer emergency incident response with an under-2-hour SLA. We isolate the infection, remove all malware, identify the attack vector, patch the vulnerability, and harden the site to prevent reinfection. This is included in all managed security plans.",
  },
  {
    id: "wp-sec-woocommerce",
    question: "Does this work with WooCommerce and custom plugins?",
    answer:
      "Absolutely. We have extensive experience securing WooCommerce stores and sites with custom plugin ecosystems. Our hardening process is tailored to your specific stack, and we test every change in staging before deploying to production.",
  },
  {
    id: "wp-sec-hosting-diff",
    question: "My hosting provider includes security, how is this different?",
    answer:
      "Hosting security protects the server infrastructure. We protect your WordPress application: the plugins, themes, user accounts, file system, and database that hosting providers explicitly exclude from their security scope. Think of it as the difference between a building's security system and a personal bodyguard.",
  },
  {
    id: "wp-sec-certifications",
    question: "What certifications do your security engineers hold?",
    answer:
      "Our team holds certifications including OSCP (Offensive Security), CEH (Certified Ethical Hacker), and WordPress-specific security credentials. We also participate in responsible disclosure programs and stay current with the latest CVE databases.",
  },
  {
    id: "wp-sec-cancel",
    question: "Can I cancel the managed security plan anytime?",
    answer:
      "Yes. All plans are month-to-month with no long-term contracts. If you cancel, we provide a full handover document detailing your current security configuration so your team or next provider can maintain continuity.",
  },
  {
    id: "wp-sec-compliance",
    question: "Do you provide compliance reports (GDPR, PCI)?",
    answer:
      "Yes. We provide monthly security reports that include vulnerability scan results, incident logs, and compliance status. For PCI DSS and GDPR requirements, we can generate specific documentation and work with your compliance team to ensure all controls are met.",
  },
];

// SEO Technical Training FAQ
const seoTrainingFAQs: FAQItem[] = [
  {
    id: "seo-train-experience",
    question: "Do my developers need SEO experience to attend?",
    answer:
      "No prior SEO knowledge is required. The training is designed to meet developers where they are. We start with how search engines crawl and render JavaScript, then build up to advanced topics like structured data and crawl budget optimization.",
  },
  {
    id: "seo-train-remote",
    question: "Is the training remote or on-site?",
    answer:
      "Both options are available. Remote sessions are conducted via live video with screen sharing and collaborative coding. On-site training is available for teams in major cities. Contact us for availability and travel arrangements.",
  },
  {
    id: "seo-train-tools",
    question: "What tools do we need installed before the session?",
    answer:
      "We send a detailed prep guide one week before the session. Typically you'll need Chrome DevTools, Lighthouse, Screaming Frog (free version is fine), and access to Google Search Console. We provide all other materials and test environments.",
  },
  {
    id: "seo-train-customize",
    question: "Can you customize the curriculum for our tech stack?",
    answer:
      "Absolutely. We tailor every session to your stack, whether you're on Next.js, Nuxt, Astro, or a traditional server-rendered setup. We audit your actual codebase before the training so examples and exercises use your real-world scenarios.",
  },
  {
    id: "seo-train-mentorship",
    question: "What does the 30-day mentorship include?",
    answer:
      "After the training, your team gets 30 days of async support via a dedicated Slack channel. Team members can ask questions, submit code for review, and get feedback on SEO implementations. We also do a final review call at the end of the period.",
  },
  {
    id: "seo-train-instructor",
    question: "Who delivers the training?",
    answer:
      "Training is delivered by senior engineers who work on client SEO projects daily, not career trainers reading slides. They bring real-world experience from optimizing sites with millions of pages and complex JavaScript rendering challenges.",
  },
  {
    id: "seo-train-levels",
    question: "What if some team members are more advanced than others?",
    answer:
      "We assess each participant's level beforehand with a short questionnaire. During the session, we use breakout exercises at different difficulty levels so everyone is challenged. Advanced developers get deeper optimization tasks while others solidify fundamentals.",
  },
  {
    id: "seo-train-certificate",
    question: "Is the certificate recognized by any industry body?",
    answer:
      "The certificate is issued by Eleva and validates completion of our technical SEO curriculum. While it's not tied to a formal accreditation body, it is recognized by our partner network and clients as proof of hands-on technical SEO competency.",
  },
];

// AI for Marketers Training FAQ
const aiTrainingFAQs: FAQItem[] = [
  {
    id: "ai-train-technical",
    question: "Do I need technical skills to attend?",
    answer:
      "Not at all. The training is designed for marketers, content strategists, and growth managers, not engineers. We start from the basics of how AI models work and quickly move into practical, hands-on exercises you can apply immediately.",
  },
  {
    id: "ai-train-tools",
    question: "Which AI tools do you cover (ChatGPT, Claude, Midjourney)?",
    answer:
      "We cover the major platforms including ChatGPT, Claude, Midjourney, and DALL-E, plus specialized marketing tools like Jasper and Copy.ai. The focus is on understanding prompt engineering principles that transfer across any tool, not just one platform.",
  },
  {
    id: "ai-train-industry",
    question: "Is the training customized to our industry?",
    answer:
      "Yes. Before each session, we research your industry, competitors, and typical content workflows. All exercises and prompt templates are tailored to your vertical, whether that's SaaS, e-commerce, finance, healthcare, or another sector.",
  },
  {
    id: "ai-train-prompt-library",
    question: "What's included in the prompt library?",
    answer:
      "You receive a curated library of 50+ battle-tested prompts organized by use case: content creation, SEO optimization, social media, email marketing, data analysis, and competitive research. Each prompt includes usage notes and customization guidelines.",
  },
  {
    id: "ai-train-mentorship",
    question: "What does the 30-day mentorship include?",
    answer:
      "After the training, your team gets 30 days of async support via a dedicated Slack channel. You can share prompts for feedback, ask questions about new use cases, and get help integrating AI into your existing workflows. We close with a review call.",
  },
  {
    id: "ai-train-split-days",
    question: "Can we split the training across multiple days?",
    answer:
      "Yes. While the standard format is a full-day intensive, we can split it into half-day sessions across 2-3 days. This gives your team time to practice between sessions and come back with real questions from their daily work.",
  },
  {
    id: "ai-train-advanced",
    question: "What if my team already uses AI tools daily?",
    answer:
      "We assess your team's current usage beforehand and adjust the curriculum. For experienced users, we skip the basics and focus on advanced prompt chains, automation workflows, quality control frameworks, and measuring ROI from AI-assisted content.",
  },
  {
    id: "ai-train-pricing",
    question: "Is the $699 price per person or per session?",
    answer:
      "The $699 starting price is per session for up to 8 participants. Additional participants can be added at a reduced per-person rate. For larger teams, we offer custom pricing. Contact us for a tailored quote.",
  },
];

// CRO Audit FAQs
// Unused: cro-audit page defines its own FAQs inline
const _croAuditFAQs: FAQItem[] = [
  {
    id: "cro-audit-deliverable",
    question: "What exactly do I get for $349?",
    answer:
      "A full UX behavior analysis, heatmap report, Core Web Vitals assessment, conversion funnel audit, and a prioritized 30/60/90-day action plan. Delivered in 5 business days.",
    category: "cro-audit",
  },
  {
    id: "cro-audit-vs-analytics",
    question: "How is this different from Google Analytics?",
    answer:
      "GA tells you what happened. Our audit tells you why and what to fix. We combine quantitative data with qualitative behavior analysis (heatmaps, session recordings, and UX expert review) to deliver actionable recommendations, not just data.",
    category: "cro-audit",
  },
  {
    id: "cro-audit-tracking",
    question: "Do you install tracking tools on my site?",
    answer:
      "Yes. We install lightweight heatmap and session recording tools (Hotjar or Microsoft Clarity) for the audit period. These add less than 50ms to load time and are removed after the audit unless you want to keep them.",
    category: "cro-audit",
  },
  {
    id: "cro-audit-platforms",
    question: "What platforms do you audit?",
    answer:
      "We audit Shopify, Shopify Plus, WordPress, WooCommerce, and custom-built sites. If your site runs on a web platform and has conversion challenges, we can audit it.",
    category: "cro-audit",
  },
  {
    id: "cro-audit-timeline",
    question: "How long does the audit take?",
    answer:
      "5 business days from kickoff. We schedule a 30-minute discovery call, install tracking, collect 3-5 days of behavior data, then deliver the full report.",
    category: "cro-audit",
  },
  {
    id: "cro-audit-implementation",
    question: "Will you implement the recommendations?",
    answer:
      "The audit is a standalone deliverable. If you want us to implement the fixes, we offer a full CRO optimization service that picks up exactly where the audit leaves off.",
    category: "cro-audit",
  },
  {
    id: "cro-audit-already-decent",
    question: "What if my conversion rate is already decent?",
    answer:
      "Even sites converting at 3-5% have significant room for improvement. Our audit often uncovers mobile-specific issues, checkout friction, and page speed problems that unlock 20-40% additional conversions.",
    category: "cro-audit",
  },
  {
    id: "cro-audit-guarantee",
    question: "Can I get a refund if I'm not satisfied?",
    answer:
      "We offer a satisfaction guarantee. If the audit does not meet your expectations in terms of depth and actionability, we revise it at no additional cost until it does.",
    category: "cro-audit",
  },
];

// CRO Service FAQs
const croServiceFAQs: FAQItem[] = [
  {
    id: "cro-service-cost",
    question: "How much does CRO optimization cost?",
    answer:
      "Engagements start at $5K/month for a 3-month minimum. Scope depends on site complexity, traffic volume, and number of conversion points. We always start with an audit to scope accurately.",
    category: "cro-service",
  },
  {
    id: "cro-service-timeline",
    question: "How long before I see results?",
    answer:
      "Quick-win speed and UX fixes typically show impact within 2-3 weeks. Statistically significant A/B test results usually emerge in 4-6 weeks. Our 90-day guarantee ensures meaningful lift.",
    category: "cro-service",
  },
  {
    id: "cro-service-guarantee",
    question: "Do you guarantee conversion improvements?",
    answer:
      "Yes. We guarantee a minimum 25% conversion rate improvement within 90 days. If we don't hit it, we keep working at no additional cost until we do.",
    category: "cro-service",
  },
  {
    id: "cro-service-tools",
    question: "What tools do you use for A/B testing?",
    answer:
      "PostHog, VWO, or Google Optimize depending on your stack. For heatmaps and session recordings, Hotjar or Microsoft Clarity. For analytics, GA4 with enhanced e-commerce tracking.",
    category: "cro-service",
  },
  {
    id: "cro-service-seo",
    question: "Will CRO changes affect my SEO?",
    answer:
      "Positively. Page speed improvements directly boost Core Web Vitals, a Google ranking factor. UX improvements reduce bounce rates and increase dwell time, both positive SEO signals.",
    category: "cro-service",
  },
  {
    id: "cro-service-dev-team",
    question: "Do you work with our existing dev team?",
    answer:
      "Yes. We can work alongside your developers or handle all implementation independently. We provide detailed specs and staging environments for review before any change goes live.",
    category: "cro-service",
  },
  {
    id: "cro-service-after",
    question: "What happens after the 8-week engagement?",
    answer:
      "You receive a complete handoff including monitoring dashboards, a test roadmap for the next 6 months, and team training. We also offer ongoing retainer packages for continuous optimization.",
    category: "cro-service",
  },
  {
    id: "cro-service-checkout-only",
    question: "Can you optimize just the checkout flow?",
    answer:
      "Yes. Checkout-only optimization is available as a focused engagement. We often recommend starting here for e-commerce sites, as checkout improvements deliver the fastest ROI.",
    category: "cro-service",
  },
];

// FAQ configurations for different sections
const faqConfigs: FAQConfig = {
  home: {
    title: "Frequently Asked Questions",
    subtitle:
      "The most common questions from marketing leaders and growth teams.",
    faqs: sampleFAQs.filter((faq) => faq.category === "home"),
  },
  services: {
    title: "Service-Related Questions",
    subtitle: "Learn more about our development process and service offerings.",
    faqs: sampleFAQs.filter(
      (faq) => faq.category === "services" || faq.category === "technical"
    ),
  },
  pricing: {
    title: "Pricing & Support",
    subtitle: "Transparent pricing and comprehensive support information.",
    faqs: sampleFAQs.filter(
      (faq) => faq.category === "pricing" || faq.category === "support"
    ),
  },
};

// WordPress Malware Removal FAQ
const wpMalwareRemovalFAQs: FAQItem[] = [
  {
    id: "wp-malware-signs",
    question: "How do I know if my WordPress site has malware?",
    answer:
      "Common signs include unexpected redirects to spam sites, Google Search Console security warnings, a sudden drop in organic traffic, unknown admin accounts, defaced pages, your host suspending your account, or browsers displaying 'This site may be hacked' warnings. If you notice any of these, act immediately.",
  },
  {
    id: "wp-malware-cost",
    question: "How much does WordPress malware removal cost?",
    answer:
      "Our Express Cleanup starts at $499 (scan + removal + report within 48 hours). For a complete cleanup with security hardening and a 90-day guarantee, our Cleanup + Hardening plan is $899. We also offer a Managed Protection plan at $299/month with continuous monitoring and unlimited cleanups.",
  },
  {
    id: "wp-malware-timeline",
    question: "How long does the malware cleanup take?",
    answer:
      "Most cleanups are completed within 24 to 48 hours. The exact timeline depends on the severity of the infection and the size of your site. For critical e-commerce sites, we offer priority intervention with same-day response.",
  },
  {
    id: "wp-malware-reinfection",
    question: "Will my site get hacked again after cleanup?",
    answer:
      "Our Cleanup + Hardening plan includes over 40 security hardening measures and a 90-day guarantee: if your site is reinfected within 90 days, we clean it again at no cost. Our Managed Protection plan provides continuous monitoring to prevent reinfection entirely.",
  },
  {
    id: "wp-malware-emergency",
    question: "Do you offer emergency intervention?",
    answer:
      "Yes. We understand that a hacked site means lost revenue every minute. Contact us for priority handling. We begin the forensic analysis within hours of receiving your request, not days.",
  },
  {
    id: "wp-malware-woocommerce",
    question: "Do you clean WooCommerce sites too?",
    answer:
      "Absolutely. We have extensive experience with WooCommerce malware infections, including payment skimmer injections, database compromises, and checkout redirect attacks. We ensure your store is clean, PCI-compliant, and hardened against future attacks.",
  },
  {
    id: "wp-malware-blacklist",
    question: "Can you remove my site from the Google blacklist?",
    answer:
      "Yes. After completing the malware removal and hardening, we submit a review request to Google Search Console on your behalf. Google typically removes the blacklist warning within 24 to 72 hours after verifying the site is clean.",
  },
  {
    id: "wp-malware-access",
    question: "Do you need access to my hosting?",
    answer:
      "Yes. We need FTP/SFTP or SSH access plus WordPress admin access to perform a thorough cleanup. We also need database access (phpMyAdmin or equivalent) to scan and clean the database. All credentials are handled securely and deleted after the intervention.",
  },
];

// WordPress Hub FAQ
const wordpressHubFAQs: FAQItem[] = [
  {
    id: "wp-hub-services",
    question: "What WordPress services do you offer?",
    answer:
      "We focus on three areas: managed maintenance (core/plugin updates, backups, monitoring, performance), security hardening (WAF deployment, file integrity, incident response), and malware removal (forensic cleanup with a 90-day reinfection guarantee). Each service is staffed by senior WordPress engineers, with no outsourcing.",
  },
  {
    id: "wp-hub-which-service",
    question: "How do I know which WordPress service I need?",
    answer:
      "If your site is currently compromised or showing security warnings, start with malware removal. If your site is healthy but you have no defined patching cadence or backup strategy, start with managed maintenance. If you handle payments, manage sensitive data, or have already been targeted, add security hardening on top of maintenance.",
  },
  {
    id: "wp-hub-hosting-replacement",
    question: "Do these services replace my managed WordPress host?",
    answer:
      "No. Managed hosts (WP Engine, Kinsta, Cloudways) cover the infrastructure layer: server, network, baseline backups. Our services cover the application layer they explicitly exclude: WordPress core, plugins, themes, custom code, user accounts, and editorial workflows. The two layers are complementary.",
  },
  {
    id: "wp-hub-engagement-format",
    question: "Are these services one-time or ongoing?",
    answer:
      "Malware removal is a one-time engagement (with optional Managed Protection retainer). Security hardening is a one-time deployment plus optional monthly monitoring. Managed maintenance is monthly. All plans are month-to-month with no long-term contract lock-in.",
  },
  {
    id: "wp-hub-tech-stack",
    question:
      "Do you support WooCommerce and page builders like Elementor or Bricks?",
    answer:
      "Yes. We work with WooCommerce stores (including custom checkout flows and payment gateways) and all major page builders (Elementor, Divi, Bricks, Oxygen, Beaver Builder). We test every change in a staging environment before pushing to production.",
  },
  {
    id: "wp-hub-emergency",
    question: "Do you handle emergencies?",
    answer:
      "Yes. For active malware infections or sites currently down, contact us for priority handling. We start forensic analysis within hours, not days. Critical e-commerce sites get same-day intervention.",
  },
];

// Training Hub FAQ
const trainingHubFAQs: FAQItem[] = [
  {
    id: "training-hub-programs",
    question: "What training programs do you offer?",
    answer:
      "Two formats: AI for Marketers (prompt engineering, content automation, AI-assisted workflows for marketing and content teams) and Technical SEO (Core Web Vitals, structured data, JavaScript rendering, crawl budget, hands-on for developers). Both ship with practical exercises, a prompt or audit library, and 30-day async mentorship.",
  },
  {
    id: "training-hub-audience",
    question: "Who are these trainings for?",
    answer:
      "AI for Marketers targets marketers, content strategists, and growth managers who want to integrate AI into their daily workflow. Technical SEO targets front-end and full-stack developers who need to ship SEO-correct code on Next.js, Nuxt, Astro, or traditional server-rendered stacks. No prior expertise is assumed in either program.",
  },
  {
    id: "training-hub-format",
    question: "Are sessions remote or on-site?",
    answer:
      "Both. Remote sessions run via live video with screen sharing and collaborative exercises. On-site is available for teams in major European and North American cities. We can also split a full-day training into two or three half-day sessions so your team can apply what they learned between meetings.",
  },
  {
    id: "training-hub-customization",
    question: "Do you customize the content for our team?",
    answer:
      "Yes. Before each session we research your industry and audit a sample of your codebase or content workflow. Exercises and case studies are then tailored to your real-world stack rather than generic examples. For mixed-level groups, we use breakout exercises at different difficulty tiers.",
  },
  {
    id: "training-hub-deliverables",
    question: "What does each participant receive?",
    answer:
      "A practical guide, a curated prompt or audit library you can reuse internally, an attendance certificate, and 30 days of async mentorship via a dedicated Slack channel. Optional session recordings are available on request.",
  },
  {
    id: "training-hub-instructors",
    question: "Who delivers the training?",
    answer:
      "Senior practitioners who work on client SEO and AI projects daily, not career trainers. They bring real-world experience from optimizing sites with millions of pages, deploying production AI workflows, and shipping technical SEO at scale.",
  },
];

// Builds Hub FAQ
const buildsHubFAQs: FAQItem[] = [
  {
    id: "builds-hub-what",
    question: "What does a headless build involve?",
    answer:
      "A modern decoupled architecture where the front-end (Next.js or Hydrogen) is separated from the back-end commerce or content layer (Shopify, WooCommerce, headless CMS). The result is faster pages, full creative control over the UX, easier experimentation, and a back-office your editors already know.",
  },
  {
    id: "builds-hub-platforms",
    question: "Do you build on Shopify or WordPress?",
    answer:
      "Both. Shopify Headless uses Shopify as the commerce engine with a Next.js or Hydrogen front-end and a headless CMS for content. WordPress Headless keeps wp-admin for editors and serves a Next.js front-end via the REST API or WPGraphQL. We recommend the right stack during the discovery audit.",
  },
  {
    id: "builds-hub-timeline",
    question: "How long does a headless build take?",
    answer:
      "A typical Shopify Headless build runs 8 to 14 weeks from discovery to launch. WordPress Headless runs 8 to 12 weeks. Heavily customized installations or complex integrations can extend the timeline. Every engagement starts with a paid audit so the timeline is precise, not estimated.",
  },
  {
    id: "builds-hub-cost",
    question: "How much does a headless build cost?",
    answer:
      "Pricing depends on catalog size, integrations, and scope. Most Shopify Headless builds range from $25K to $80K+. Most WordPress Headless migrations range from $20K to $60K+. We always scope after a paid audit so you receive a transparent, line-item proposal before committing.",
  },
  {
    id: "builds-hub-seo",
    question: "Will my SEO survive the migration?",
    answer:
      "Yes. SEO preservation is part of every build: URL redirect mapping, structured data, hreflang, sitemap regeneration, and pre/post-launch crawl comparisons. The performance gains from headless typically improve rankings within weeks of launch.",
  },
  {
    id: "builds-hub-team-autonomy",
    question: "Can my team manage the site after launch?",
    answer:
      "Yes. Editors keep their familiar back-office (wp-admin or Shopify admin) and your marketing team gets a headless CMS for landing pages and blocks. We provide full documentation, training, and an optional retainer for ongoing front-end iterations.",
  },
];

// Locale-aware FAQ helpers
import {
  aiTrainingFAQsFr,
  buildsHubFAQsFr,
  croServiceFAQsFr,
  faqConfigsFr,
  seoTrainingFAQsFr,
  shopifyHeadlessFAQsFr,
  trainingHubFAQsFr,
  wordpressHeadlessFAQsFr,
  wordpressHubFAQsFr,
  wpMaintenanceFAQsFr,
  wpMalwareRemovalFAQsFr,
  wpSecurityFAQsFr,
} from "./faq-fr";

export function getShopifyHeadlessFAQs(locale: string): FAQItem[] {
  return locale === "fr" ? shopifyHeadlessFAQsFr : shopifyHeadlessFAQs;
}

export function getWordpressHeadlessFAQs(locale: string): FAQItem[] {
  return locale === "fr" ? wordpressHeadlessFAQsFr : wordpressHeadlessFAQs;
}

export function getWpMaintenanceFAQs(locale: string): FAQItem[] {
  return locale === "fr" ? wpMaintenanceFAQsFr : wpMaintenanceFAQs;
}

export function getWpSecurityFAQs(locale: string): FAQItem[] {
  return locale === "fr" ? wpSecurityFAQsFr : wpSecurityFAQs;
}

export function getSeoTrainingFAQs(locale: string): FAQItem[] {
  return locale === "fr" ? seoTrainingFAQsFr : seoTrainingFAQs;
}

export function getAiTrainingFAQs(locale: string): FAQItem[] {
  return locale === "fr" ? aiTrainingFAQsFr : aiTrainingFAQs;
}

export function getCroServiceFAQs(locale: string): FAQItem[] {
  return locale === "fr" ? croServiceFAQsFr : croServiceFAQs;
}

export function getWpMalwareRemovalFAQs(locale: string): FAQItem[] {
  return locale === "fr" ? wpMalwareRemovalFAQsFr : wpMalwareRemovalFAQs;
}

export function getWordpressHubFAQs(locale: string): FAQItem[] {
  return locale === "fr" ? wordpressHubFAQsFr : wordpressHubFAQs;
}

export function getTrainingHubFAQs(locale: string): FAQItem[] {
  return locale === "fr" ? trainingHubFAQsFr : trainingHubFAQs;
}

export function getBuildsHubFAQs(locale: string): FAQItem[] {
  return locale === "fr" ? buildsHubFAQsFr : buildsHubFAQs;
}

export function getFaqConfigs(locale: string): FAQConfig {
  return locale === "fr" ? faqConfigsFr : faqConfigs;
}
