"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="hover-bubble"
        defaultTextAnimation="entrance-slide"
        borderRadius="soft"
        contentWidth="medium"
        sizing="largeSmallSizeMediumTitles"
        background="fluid"
        cardStyle="subtle-shadow"
        primaryButtonStyle="flat"
        secondaryButtonStyle="layered"
        headingFontWeight="bold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleFullscreen
      navItems={[
        {
          name: "Home",
          id: "/",
        },
        {
          name: "Services",
          id: "/services",
        },
        {
          name: "About Us",
          id: "/about",
        },
        {
          name: "Reviews",
          id: "/reviews",
        },
        {
          name: "Areas",
          id: "/service-areas",
        },
        {
          name: "Contact",
          id: "/contact",
        },
      ]}
      logoSrc="http://img.b2bpic.net/free-vector/eagle-logo-icon-heraldic-style_126523-770.jpg"
      logoAlt="Eagle Towing Company Logo"
      brandName="Eagle Towing"
      button={{
        text: "Call Now: (314) 123-4567",
        href: "tel:+13141234567",
      }}
    />
  </div>

  <div id="contact-form-page" data-section="contact-form-page">
      <ContactSplitForm
      useInvertedBackground={true}
      title="Get in Touch with Eagle Towing"
      description="For immediate assistance, please call us 24/7. For general inquiries or service requests, use the form below, and we'll respond promptly."
      inputs={[
        {
          name: "name",
          type: "text",
          placeholder: "Your Full Name",
          required: true,
        },
        {
          name: "email",
          type: "email",
          placeholder: "Your Email Address",
          required: true,
        },
        {
          name: "phone",
          type: "tel",
          placeholder: "Phone Number (Optional)",
        },
      ]}
      multiSelect={{
        name: "serviceType",
        label: "Select Service Needed",
        options: [
          "Emergency Towing",
          "Roadside Assistance",
          "Jump Start",
          "Battery Service",
          "Lockout Service",
          "Fuel Delivery",
          "Tire Change",
          "Accident Recovery",
          "Motorcycle Towing",
          "Flatbed Towing",
          "General Inquiry",
        ],
      }}
      textarea={{
        name: "message",
        placeholder: "Tell us about your request or situation...",
        rows: 5,
        required: true,
      }}
      imageSrc="http://img.b2bpic.net/free-photo/young-farmer-taking-care-his-business_329181-15949.jpg"
      imageAlt="Customer service agent on the phone for towing requests"
      mediaAnimation="opacity"
      mediaPosition="left"
      buttonText="Send Message"
    />
  </div>

  <div id="contact-faqs" data-section="contact-faqs">
      <FaqSplitText
      useInvertedBackground={false}
      faqs={[
        {
          id: "cfaq1",
          title: "What's the best way to request emergency service?",
          content: "For immediate towing or roadside assistance, please call us directly at (314) 123-4567. This ensures the fastest response.",
        },
        {
          id: "cfaq2",
          title: "Can I get a quote over the phone?",
          content: "Yes, for most standard services, we can provide an estimated quote over the phone. For complex situations like accident recovery, we'll need more details.",
        },
        {
          id: "cfaq3",
          title: "What information do you need when I call?",
          content: "Please be ready to provide your exact location, vehicle make and model, a brief description of the issue, and a contact phone number.",
        },
        {
          id: "cfaq4",
          title: "Do you offer service outside of St. Louis?",
          content: "Yes, we cover St. Louis City & County, and extended areas including St. Charles, Chesterfield, Ballwin, and many more. Check our Service Areas page for full coverage.",
        },
      ]}
      sideTitle="Quick Answers"
      sideDescription="Questions about contacting us or getting service? Find your answers here."
      buttons={[
        {
          text: "Call Us Now",
          href: "tel:+13141234567",
        },
      ]}
      faqsAnimation="slide-up"
      textPosition="right"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterLogoEmphasis
      logoSrc="http://img.b2bpic.net/free-vector/eagle-logo-icon-heraldic-style_126523-770.jpg"
      logoAlt="Eagle Towing Logo"
      columns={[
        {
          items: [
            {
              label: "Home",
              href: "/",
            },
            {
              label: "Services",
              href: "/services",
            },
            {
              label: "About Us",
              href: "/about",
            },
            {
              label: "Reviews",
              href: "/reviews",
            },
          ],
        },
        {
          items: [
            {
              label: "Service Areas",
              href: "/service-areas",
            },
            {
              label: "Contact Us",
              href: "/contact",
            },
            {
              label: "Get a Quote",
              href: "/contact#quote",
            },
            {
              label: "Privacy Policy",
              href: "#",
            },
          ],
        },
        {
          items: [
            {
              label: "Call 24/7",
              href: "tel:+13141234567",
            },
            {
              label: "Email: info@eagletowingstl.com",
              href: "mailto:info@eagletowingstl.com",
            },
            {
              label: "St. Louis, MO",
              href: "/service-areas#st-louis",
            },
            {
              label: "Facebook",
              href: "https://facebook.com/eagletowing",
            },
          ],
        },
      ]}
      logoText="Eagle Towing - St. Louis's most trusted 24/7 roadside partner."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
