"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import HeroSplitTestimonial from "@/components/sections/hero/HeroSplitTestimonial";
import MetricSplitMediaAbout from "@/components/sections/about/MetricSplitMediaAbout";
import FeatureCardTwentyOne from "@/components/sections/feature/FeatureCardTwentyOne";
import MetricCardEleven from "@/components/sections/metrics/MetricCardEleven";
import TestimonialCardTwo from "@/components/sections/testimonial/TestimonialCardTwo";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import FaqBase from "@/components/sections/faq/FaqBase";
import ContactFaq from "@/components/sections/contact/ContactFaq";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import { AlertCircle, Wrench, Toolbox, Star, HelpCircle, MapPin, Phone } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="mediumLargeSizeLargeTitles"
      background="noise"
      cardStyle="gradient-bordered"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "home" },
            { name: "Services", id: "services" },
            { name: "About", id: "about" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          brandName="New Plumbing Phoenix"
          bottomLeftText="24/7 Emergency Service"
          bottomRightText="(480) 956-6332"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitTestimonial
          title="Expert Plumbing Solutions, Available 24/7"
          description="Trusted emergency plumbing service in Phoenix. Same-day repairs, professional technicians, and transparent pricing for residential and commercial properties."
          tag="Emergency Response Available"
          tagIcon={AlertCircle}
          tagAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/male-plumber-working-fix-problems-client-s-house_23-2150990698.jpg?_wi=1"
          imageAlt="Professional plumber at work"
          imagePosition="right"
          mediaAnimation="slide-up"
          testimonials={[
            {
              name: "Michael Torres",              handle: "Homeowner, Scottsdale",              testimonial: "Called at midnight with a burst pipe. They arrived in 45 minutes and fixed it perfectly. Exceptional service!",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=1",              imageAlt: "Michael Torres"
            }
          ]}
          buttons={[
            { text: "Schedule Service", href: "#contact" },
            { text: "Emergency Call", href: "tel:(480)956-6332" }
          ]}
          buttonAnimation="blur-reveal"
          useInvertedBackground={false}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="Our Story"
          tagIcon={Wrench}
          tagAnimation="slide-up"
          title="20+ Years of Plumbing Excellence"
          description="New Plumbing Phoenix has been serving the greater Phoenix area with reliable, professional plumbing solutions since 2004. Our team of certified technicians is committed to solving your plumbing issues quickly and affordably. From emergency repairs to planned installations, we handle it all with integrity and expertise."
          metrics={[
            { value: "20+", title: "Years in Business" },
            { value: "5★", title: "Average Rating" }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/portrait-happy-auto-repairman-looking-camera-while-his-customers-are-standing-background_637285-7790.jpg"
          imageAlt="Experienced plumbing team"
          mediaAnimation="slide-up"
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwentyOne
          title="Comprehensive Plumbing Services"
          description="We offer a full range of residential and commercial plumbing services to meet all your needs."
          tag="What We Do"
          tagIcon={Toolbox}
          tagAnimation="slide-up"
          accordionItems={[
            {
              id: "1",              title: "Emergency Repairs",              content: "24/7 availability for urgent plumbing problems including burst pipes, leaks, backups, and system failures. We respond quickly to minimize damage and restore functionality."
            },
            {
              id: "2",              title: "Drain Cleaning & Maintenance",              content: "Professional drain cleaning services to clear clogs and prevent future issues. We use advanced equipment for thorough and safe cleaning of residential and commercial drain systems."
            },
            {
              id: "3",              title: "Water Heater Services",              content: "Installation, repair, and maintenance of traditional and tankless water heaters. We ensure optimal performance and energy efficiency for year-round comfort."
            },
            {
              id: "4",              title: "Fixture Installation & Repair",              content: "Expert installation and repair of faucets, toilets, showers, and other fixtures. We work with quality products and provide craftsmanship that lasts."
            },
            {
              id: "5",              title: "Pipe Inspection & Repair",              content: "Advanced camera inspection to identify issues within your pipes. We provide solutions for cracks, corrosion, and deterioration with minimal disruption."
            }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/man-fixing-kitchen-sink_53876-13430.jpg?_wi=1"
          imageAlt="Emergency plumbing service"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
          mediaPosition="left"
          buttons={[{ text: "Learn More", href: "#contact" }]}
        />
      </div>

      <div id="why-us" data-section="why-us">
        <MetricCardEleven
          title="Why Choose New Plumbing Phoenix"
          description="Setting the standard for plumbing excellence in the Phoenix area through our commitment to quality and customer satisfaction."
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          metrics={[
            {
              id: "1",              value: "45min",              title: "Average Response Time",              description: "Quick arrival for all emergency calls",              imageSrc: "http://img.b2bpic.net/free-photo/man-fixing-kitchen-sink_53876-13430.jpg?_wi=2",              imageAlt: "emergency plumbing 24/7 service urgent repair water leak"
            },
            {
              id: "2",              value: "$0",              title: "Upfront Diagnostic Fee",              description: "Transparent pricing with honest assessments",              imageSrc: "http://img.b2bpic.net/free-photo/male-plumber-working-with-client-fix-kitchen-problems_23-2150990690.jpg",              imageAlt: "plumbing maintenance routine inspection preventive care pipe maintenance"
            },
            {
              id: "3",              value: "100%",              title: "Satisfaction Guarantee",              description: "Quality work backed by our reputation",              imageSrc: "http://img.b2bpic.net/free-photo/male-plumber-working-fix-problems-client-s-house_23-2150990698.jpg?_wi=2",              imageAlt: "plumbing installation new fixtures bathroom installation pipe installation"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          title="What Our Customers Say"
          description="Hear from satisfied customers throughout the Phoenix area about their experiences with New Plumbing Phoenix."
          tag="Client Testimonials"
          tagIcon={Star}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          testimonials={[
            {
              id: "1",              name: "Jennifer Martinez",              role: "Homeowner",              testimonial: "They fixed our kitchen sink issue in under an hour. Professional, clean, and reasonably priced. Will definitely call them again!",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=2",              imageAlt: "Jennifer Martinez"
            },
            {
              id: "2",              name: "David Chen",              role: "Property Manager",              testimonial: "Managing multiple properties and having a reliable plumber is crucial. New Plumbing Phoenix is our go-to service for all tenant issues.",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=3",              imageAlt: "David Chen"
            },
            {
              id: "3",              name: "Sarah Williams",              role: "Business Owner",              testimonial: "Our restaurant's plumbing backup was catastrophic. They responded immediately and solved it with minimal downtime. Lifesavers!",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=4",              imageAlt: "Sarah Williams"
            },
            {
              id: "4",              name: "Robert Johnson",              role: "Homeowner",              testimonial: "New water heater installation was seamless. The technician explained everything and cleaned up perfectly after. Highly recommend.",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=5",              imageAlt: "Robert Johnson"
            },
            {
              id: "5",              name: "Lisa Anderson",              role: "Homeowner",              testimonial: "Called for an emergency 2am call. They actually answered and showed up at 3am. That level of service is rare and appreciated.",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=6",              imageAlt: "Lisa Anderson"
            },
            {
              id: "6",              name: "James Rodriguez",              role: "HOA President",              testimonial: "Managing common area plumbing for our community, we trust New Plumbing Phoenix. Reliable, professional, and fair pricing.",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=7",              imageAlt: "James Rodriguez"
            }
          ]}
        />
      </div>

      <div id="service-areas" data-section="service-areas">
        <SocialProofOne
          title="Serving Greater Phoenix Area"
          description="We proudly serve residential and commercial customers throughout Phoenix, Scottsdale, Tempe, Chandler, Gilbert, and surrounding communities."
          tag="Service Coverage"
          tagIcon={MapPin}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          names={["Phoenix", "Scottsdale", "Tempe", "Chandler", "Gilbert", "Peoria", "Glendale", "Surprise", "Ahwatukee", "Paradise Valley"]}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Find answers to common questions about our services, pricing, and availability."
          tag="Help & Support"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          animationType="smooth"
          showCard={true}
          faqs={[
            {
              id: "1",              title: "What areas do you service?",              content: "We serve the greater Phoenix metropolitan area including Phoenix, Scottsdale, Tempe, Chandler, Gilbert, and surrounding communities. Call us to confirm service availability for your specific location at (480) 956-6332."
            },
            {
              id: "2",              title: "Do you offer emergency service?",              content: "Yes! We offer 24/7 emergency plumbing service. Call (480) 956-6332 anytime for urgent plumbing issues including burst pipes, backups, leaks, and system failures. Our average response time is 45 minutes."
            },
            {
              id: "3",              title: "Is there a diagnostic fee?",              content: "No. We charge $0 for our initial diagnostic evaluation. We believe in transparent pricing with honest assessments so you know exactly what you need before any work begins."
            },
            {
              id: "4",              title: "Do you provide warranties?",              content: "Yes. All our work is backed by our quality guarantee. We stand behind our craftsmanship and will address any issues that arise from our service at no additional charge."
            },
            {
              id: "5",              title: "How quickly can you schedule service?",              content: "For emergencies, we respond 24/7 with an average arrival time of 45 minutes. For non-emergency service, we typically have availability within 24-48 hours. Contact us to check availability for your specific needs."
            },
            {
              id: "6",              title: "Can you help with commercial plumbing?",              content: "Absolutely. We serve both residential and commercial clients including restaurants, offices, retail spaces, and multi-unit properties. We understand the urgency of business plumbing issues and respond accordingly."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Ready to Schedule Service?"
          ctaDescription="Contact New Plumbing Phoenix today for emergency repairs or scheduled service. We're available 24/7 to help."
          ctaButton={{ text: "Call Now: (480) 956-6332", href: "tel:(480)956-6332" }}
          ctaIcon={Phone}
          useInvertedBackground={false}
          animationType="slide-up"
          accordionAnimationType="smooth"
          showCard={true}
          faqs={[
            {
              id: "1",              title: "What's your service address?",              content: "3811 E Bell Rd Ste. #114, Phoenix, AZ 85032. We service the greater Phoenix area and surrounding communities. Call for service availability in your specific location."
            },
            {
              id: "2",              title: "How do I pay for services?",              content: "We accept all major credit cards, debit cards, checks, and cash. Payment is due upon completion of work. We provide itemized invoices for your records and insurance purposes."
            },
            {
              id: "3",              title: "Do you offer financing options?",              content: "Yes. For larger projects like water heater replacement or extensive repairs, we can discuss flexible payment options. Contact us to learn more about available financing solutions."
            },
            {
              id: "4",              title: "Are you licensed and insured?",              content: "Yes. We are fully licensed, insured, and bonded to provide plumbing services in Arizona. Your property and our work are fully protected."
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="New Plumbing Phoenix"
          columns={[
            {
              title: "Services",              items: [
                { label: "Emergency Repairs", href: "#services" },
                { label: "Drain Cleaning", href: "#services" },
                { label: "Water Heaters", href: "#services" },
                { label: "Fixtures", href: "#services" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Our Team", href: "#about" },
                { label: "Service Areas", href: "#service-areas" },
                { label: "Testimonials", href: "#testimonials" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQ", href: "#faq" },
                { label: "Contact Us", href: "#contact" },
                { label: "Emergency Service", href: "tel:(480)956-6332" },
                { label: "Schedule Service", href: "#contact" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "License & Insurance", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 New Plumbing Phoenix | 24/7 Emergency Service | (480) 956-6332"
        />
      </div>
    </ThemeProvider>
  );
}
