"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import FeatureCardSixteen from '@/components/sections/feature/FeatureCardSixteen';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import TextSplitAbout from '@/components/sections/about/TextSplitAbout';
import { Calendar, CheckCircle, Clock, DollarSign, MapPin, Smile, ThumbsUp, Wrench } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="hover-magnetic"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="mediumSmall"
        sizing="medium"
        background="fluid"
        cardStyle="glass-elevated"
        primaryButtonStyle="shadow"
        secondaryButtonStyle="layered"
        headingFontWeight="bold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingOverlay
      navItems={[
        {
          name: "Home",
          id: "#hero",
        },
        {
          name: "Services",
          id: "#services",
        },
        {
          name: "How It Works",
          id: "#how-it-works",
        },
        {
          name: "Why Choose Us",
          id: "#why-us",
        },
        {
          name: "FAQ",
          id: "#faq",
        },
        {
          name: "Contact",
          id: "#contact",
        },
      ]}
      logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=9g9ha5"
      logoAlt="Drain Savants Logo"
      brandName="Drain Savants"
      button={{
        text: "Schedule Service",
        href: "#contact",
      }}
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroSplitKpi
      background={{
        variant: "radial-gradient",
      }}
      imagePosition="right"
      title="Your Trusted Partner for Flawless Plumbing in Chicagoland."
      description="Serving Berwyn, Oak Park, and the wider Chicagoland area with expert plumbing solutions. Experience peace of mind with Drain Savants – reliable service, every time."
      kpis={[
        {
          value: "5-Star",
          label: "Rating",
        },
        {
          value: "20+",
          label: "Years Experience",
        },
        {
          value: "24/7",
          label: "Emergency Ready",
        },
      ]}
      enableKpiAnimation={true}
      buttons={[
        {
          text: "Schedule Your Service",
          href: "#contact",
        },
        {
          text: "Get a Free Quote",
          href: "#contact",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/closeup-young-man-inspecting-repairing-kitchen-faucet_662251-2682.jpg"
      imageAlt="Professional plumber inspecting pipes with tools"
      mediaAnimation="slide-up"
      avatars={[
        {
          src: "http://img.b2bpic.net/free-photo/crazy-sports-man-funny-expression_1194-3317.jpg",
          alt: "Happy customer avatar",
        },
        {
          src: "http://img.b2bpic.net/free-photo/confident-smiling-young-businessman-making-hand-frame-against-orange-backdrop_23-2148119724.jpg",
          alt: "Satisfied client avatar",
        },
        {
          src: "http://img.b2bpic.net/free-photo/attractive-young-woman-holding-cellphone-happy-emoji-message-against-brick-wall_23-2147841183.jpg",
          alt: "Positive review avatar",
        },
        {
          src: "http://img.b2bpic.net/free-photo/real-estate-concept-happy-young-man-searching-home-rent-holding-paper-house-smiling_1258-23926.jpg",
          alt: "Trusted homeowner avatar",
        },
        {
          src: "http://img.b2bpic.net/free-photo/fun-3d-cartoon-illustration-indian-businessman_183364-114440.jpg",
          alt: "Recommended service avatar",
        },
      ]}
      avatarText="Trusted by 1000+ Chicagoland residents"
      marqueeItems={[
        {
          type: "text-icon",
          text: "Licensed & Insured",
          icon: CheckCircle,
        },
        {
          type: "text-icon",
          text: "24/7 Emergency Service",
          icon: Clock,
        },
        {
          type: "text-icon",
          text: "Transparent Pricing",
          icon: DollarSign,
        },
        {
          type: "text-icon",
          text: "Local Chicagoland Experts",
          icon: MapPin,
        },
        {
          type: "text-icon",
          text: "Satisfaction Guaranteed",
          icon: ThumbsUp,
        },
      ]}
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardTwo
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      carouselMode="buttons"
      testimonials={[
        {
          id: "1",
          name: "Sarah J.",
          role: "Homeowner, Oak Park",
          testimonial: "Drain Savants saved the day! Quick response, professional service, and they fixed our leaky faucet perfectly. Highly recommend their expertise.",
          imageSrc: "http://img.b2bpic.net/free-photo/smiling-business-woman-looking-up-copy-space_1262-3088.jpg",
          imageAlt: "Sarah J.",
        },
        {
          id: "2",
          name: "Michael T.",
          role: "Property Manager, Chicago",
          testimonial: "As a property manager, I need reliable partners. Drain Savants consistently delivers exceptional service for all our plumbing needs. True professionals.",
          imageSrc: "http://img.b2bpic.net/free-photo/handsome-man-smiling-with-copy-space_23-2148435784.jpg",
          imageAlt: "Michael T.",
        },
        {
          id: "3",
          name: "Emily R.",
          role: "Resident, Berwyn",
          testimonial: "Our water heater died unexpectedly. Drain Savants provided clear options and a swift installation. They truly are plumbing savants!",
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-shot-attractive-dark-skinned-girl-looks-joyfully_273609-28709.jpg",
          imageAlt: "Emily R.",
        },
        {
          id: "4",
          name: "David K.",
          role: "Small Business Owner, Chicago",
          testimonial: "Fast, efficient, and friendly! Drain Savants handled our commercial drain issue with minimal disruption. Fantastic service from start to finish.",
          imageSrc: "http://img.b2bpic.net/free-photo/smiling-senior-businessman-pointing-with-finger_1262-3108.jpg",
          imageAlt: "David K.",
        },
        {
          id: "5",
          name: "Jessica L.",
          role: "Homeowner, Oak Park",
          testimonial: "The team at Drain Savants was incredibly thorough and transparent about the work. It's a relief to finally find a plumbing company I can fully trust.",
          imageSrc: "http://img.b2bpic.net/free-photo/service-maintenance-worker-repairing_23-2149176721.jpg",
          imageAlt: "Jessica L.",
        },
      ]}
      title="Hear From Our Happy Homeowners"
      description="We're proud of the trust we've built across Berwyn, Oak Park, and the Chicagoland area. See what our clients have to say about our reliable and professional service."
    />
  </div>

  <div id="services" data-section="services">
      <FeatureCardSixteen
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={true}
      negativeCard={{
        items: [
          "Endless drips and leaks (Water Damage worries)",
          "Cold showers from failing heaters (Inconsistent Comfort)",
          "Slow, backed-up drains (Unpleasant Odors & Overflows)",
          "Hidden pipe damage worries (Costly Future Repairs)",
        ],
      }}
      positiveCard={{
        items: [
          "Expert Leak Detection & Repair: Protect your home from water damage with precise, long-lasting fixes.",
          "Efficient Drain Cleaning: Restore clear flow and prevent future blockages with our advanced techniques.",
          "Water Heater Service & Installation: Enjoy reliable hot water, always, with our expert maintenance and new installations.",
          "Sewer Line Solutions: Keep your main lines clear and functioning perfectly, safeguarding your entire plumbing system.",
        ],
      }}
      title="Comprehensive Plumbing Solutions You Can Rely On"
      description="From frustrating clogs to complex water heater issues, Drain Savants provides expert care tailored to your home's needs. We focus on lasting solutions, ensuring your peace of mind."
      buttons={[
        {
          text: "View All Services",
          href: "#contact",
        },
        {
          text: "Schedule Your Service",
          href: "#contact",
        },
      ]}
    />
  </div>

  <div id="how-it-works" data-section="how-it-works">
      <MetricCardThree
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      metrics={[
        {
          id: "step-1",
          icon: Calendar,
          title: "Schedule Online",
          value: "Easily book your preferred date and time for service through our simple online system or a quick call to our friendly team.",
        },
        {
          id: "step-2",
          icon: Wrench,
          title: "Expert Service",
          value: "Our certified plumbers arrive on time, diagnose issues quickly, and provide transparent solutions tailored to your needs.",
        },
        {
          id: "step-3",
          icon: Smile,
          title: "Guaranteed Satisfaction",
          value: "We ensure every job is done right the first time, leaving you with reliable plumbing and complete peace of mind.",
        },
      ]}
      title="Getting Expert Plumbing Help is Simple"
      description="We've streamlined our process to make scheduling, service, and satisfaction effortless for homeowners in Berwyn, Oak Park, and across Chicagoland."
    />
  </div>

  <div id="why-us" data-section="why-us">
      <TextSplitAbout
      useInvertedBackground={true}
      title="Experience the Drain Savants Difference"
      description={[
        "At Drain Savants, we're not just fixing pipes; we're building lasting relationships based on trust and exceptional service. We understand the unique plumbing challenges homeowners face in the Chicagoland area, from Berwyn to Oak Park, and we're dedicated to providing solutions that truly last.",
        "Our team consists of highly trained, licensed, and insured plumbing professionals committed to the highest standards of workmanship and customer care. We use the latest technology for diagnostics and repairs, ensuring efficiency and precision on every job, big or small. You deserve transparent pricing, clear communication, and a plumbing partner who truly cares about your home's well-being. Choose Drain Savants for unparalleled plumbing expertise.",
      ]}
      buttons={[
        {
          text: "Get Your Free Quote",
          href: "#contact",
        },
      ]}
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqSplitMedia
      textboxLayout="default"
      useInvertedBackground={false}
      faqs={[
        {
          id: "q1",
          title: "What areas do Drain Savants serve?",
          content: "Drain Savants proudly serves homeowners in Berwyn, Oak Park, and throughout the greater Chicagoland area. Contact us to confirm service availability in your specific neighborhood.",
        },
        {
          id: "q2",
          title: "How quickly can you respond to an emergency?",
          content: "We offer 24/7 emergency plumbing services. Our team is structured for rapid response to critical issues, aiming to be on-site as quickly as possible to mitigate damage and restore function.",
        },
        {
          id: "q3",
          title: "Do you offer free estimates or quotes?",
          content: "Yes, we provide free, no-obligation quotes for most of our services. For complex diagnostics, a nominal fee may apply, which is often waived upon proceeding with the repair. Transparency is key!",
        },
        {
          id: "q4",
          title: "Are your plumbers licensed and insured?",
          content: "Absolutely. All Drain Savants plumbers are fully licensed, certified, and insured professionals. We adhere to all local and state regulations, ensuring safe and reliable service every time.",
        },
        {
          id: "q5",
          title: "What types of payment do you accept?",
          content: "For your convenience, we accept a variety of payment methods including major credit cards, debit cards, and secure online payments. Financing options may also be available for larger projects.",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/little-girl-drinking-water-teacher_23-2148597977.jpg"
      imageAlt="Customer support representative helping a client"
      mediaAnimation="slide-up"
      mediaPosition="left"
      title="Common Questions, Clear Answers"
      description="Have questions about our services, pricing, or scheduling? We've compiled answers to the most common inquiries to provide clarity and peace of mind for our clients in Berwyn, Oak Park, and the wider Chicago area."
      faqsAnimation="slide-up"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactSplitForm
      useInvertedBackground={true}
      title="Ready for Reliable Plumbing Service?"
      description="Schedule your appointment or request a free quote today. Our expert team is ready to provide top-tier service across Berwyn, Oak Park, and the entire Chicagoland area. Fill out the form below!"
      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: "Your Phone Number",
          required: true,
        },
      ]}
      multiSelect={{
        name: "serviceType",
        label: "Select Service Type",
        options: [
          "Drain Cleaning",
          "Water Heater Repair/Install",
          "Leak Detection",
          "Sewer Line Service",
          "Emergency Service",
          "Other Plumbing Issue",
        ],
      }}
      textarea={{
        name: "message",
        placeholder: "Briefly describe your plumbing need or question...",
        rows: 4,
        required: false,
      }}
      imageSrc="http://img.b2bpic.net/free-photo/young-man-blue-t-shirt-cap-holding-glasses-looking-astonished_176474-16789.jpg"
      imageAlt="Drain Savants service van in a residential area"
      mediaPosition="right"
      buttonText="Submit Request"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterMedia
      imageSrc="http://img.b2bpic.net/free-photo/high-angle-shot-beautiful-cityscape-greenville-south-carolina-sunset_181624-10517.jpg"
      imageAlt="Chicagoland city skyline at night"
      logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=9g9ha5"
      logoAlt="Drain Savants Logo"
      logoText="Drain Savants"
      columns={[
        {
          title: "Services",
          items: [
            {
              label: "Drain Cleaning",
              href: "#services",
            },
            {
              label: "Water Heaters",
              href: "#services",
            },
            {
              label: "Leak Repair",
              href: "#services",
            },
            {
              label: "Emergency Service",
              href: "#services",
            },
          ],
        },
        {
          title: "Company",
          items: [
            {
              label: "About Us",
              href: "#why-us",
            },
            {
              label: "Testimonials",
              href: "#testimonials",
            },
            {
              label: "FAQ",
              href: "#faq",
            },
          ],
        },
        {
          title: "Contact",
          items: [
            {
              label: "Schedule Online",
              href: "#contact",
            },
            {
              label: "Get a Quote",
              href: "#contact",
            },
            {
              label: "Call: (312) 555-1234",
              href: "tel:+13125551234",
            },
            {
              label: "Email: info@drainsavants.com",
              href: "mailto:info@drainsavants.com",
            },
          ],
        },
      ]}
      copyrightText="© 2024 Drain Savants. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
