"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import Link from "next/link";
import { Rocket } from "lucide-react";

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Features", id: "features" },
    { name: "Pricing", id: "pricing" },
    { name: "About", id: "about" },
    { name: "Contact", id: "contact" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="small"
      sizing="largeSmallSizeLargeTitles"
      background="none"
      cardStyle="gradient-mesh"
      primaryButtonStyle="flat"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="WindowFlow"
          bottomLeftText="Streamline Operations"
          bottomRightText="hello@windowflow.com"
        />
      </div>

      <div id="faq" data-section="faq" className="mx-auto px-4 md:px-6">
        <FaqSplitText
          sideTitle="Common Questions About WindowFlow"
          sideDescription="Find answers to frequently asked questions about our platform, features, and pricing. Can't find what you're looking for? Our support team is happy to help."
          faqs={[
            {
              id: "faq-1",
              title: "How long does it take to set up WindowFlow?",
              content: "Most businesses are up and running within 24 hours. Our onboarding team guides you through data migration and team setup. We provide comprehensive training videos and one-on-one support during the first week."
            },
            {
              id: "faq-2",
              title: "Can I import my existing customer and order data?",
              content: "Yes, absolutely. We handle data migration from most industry platforms at no extra charge. Our technical team ensures a smooth transition with zero downtime."
            },
            {
              id: "faq-3",
              title: "Does WindowFlow work on mobile?",
              content: "Yes. Our native mobile app is available on iOS and Android. Installers can access measurements, customer notes, and update job status in real-time from the field."
            },
            {
              id: "faq-4",
              title: "What kind of support do you offer?",
              content: "All plans include email support. Professional and Enterprise plans include priority phone support, live chat, and a dedicated account manager. We're available Monday-Friday, 8am-6pm EST."
            },
            {
              id: "faq-5",
              title: "Is my data secure?",
              content: "We use enterprise-grade encryption and comply with GDPR, SOC 2, and industry standards. Regular security audits, automated backups, and 99.9% uptime guarantee keep your business running safely."
            },
            {
              id: "faq-6",
              title: "Can I integrate WindowFlow with my other tools?",
              content: "Yes. We integrate with QuickBooks, Xero, Mailchimp, Zapier, and 100+ other business apps. Enterprise customers get custom API access for unlimited integration possibilities."
            }
          ]}
          textPosition="left"
          useInvertedBackground={false}
          animationType="smooth"
          showCard={true}
          faqsAnimation="slide-up"
          buttons={[
            {
              text: "Contact Support",
              href: "#"
            }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="contact-cta" data-section="contact-cta" className="mx-auto px-4 md:px-6">
        <ContactCTA
          tag="Ready to Transform Your Business?"
          tagIcon={Rocket}
          tagAnimation="slide-up"
          title="Start Your Free Trial Today"
          description="Join hundreds of window furnishing businesses using WindowFlow to streamline operations, reduce costs, and delight customers. No credit card required."
          background={{
            variant: "radial-gradient"
          }}
          buttons={[
            {
              text: "Start Free Trial",
              href: "#"
            },
            {
              text: "Schedule a Demo",
              href: "#"
            }
          ]}
          buttonAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BB1l1c7xNTHi2gGoCUeRPx9S5j/professional-footer-image-showing-window-1773947897833-cc57e18c.png?_wi=3"
          imageAlt="WindowFlow footer visual"
          logoText="WindowFlow"
          copyrightText="© 2025 WindowFlow. All rights reserved."
          columns={[
            {
              title: "Product",
              items: [
                {
                  label: "Features",
                  href: "/features"
                },
                {
                  label: "Pricing",
                  href: "/pricing"
                },
                {
                  label: "Security",
                  href: "#"
                },
                {
                  label: "Roadmap",
                  href: "#"
                }
              ]
            },
            {
              title: "Company",
              items: [
                {
                  label: "About Us",
                  href: "/about"
                },
                {
                  label: "Blog",
                  href: "#"
                },
                {
                  label: "Careers",
                  href: "#"
                },
                {
                  label: "Contact",
                  href: "/contact"
                }
              ]
            },
            {
              title: "Resources",
              items: [
                {
                  label: "Help Center",
                  href: "#"
                },
                {
                  label: "API Docs",
                  href: "#"
                },
                {
                  label: "Status Page",
                  href: "#"
                },
                {
                  label: "Support",
                  href: "#"
                }
              ]
            },
            {
              title: "Legal",
              items: [
                {
                  label: "Privacy Policy",
                  href: "#"
                },
                {
                  label: "Terms of Service",
                  href: "#"
                },
                {
                  label: "Cookie Policy",
                  href: "#"
                },
                {
                  label: "Compliance",
                  href: "#"
                }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}