"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import HeroLogo from "@/components/sections/hero/HeroLogo";
import TestimonialCardThirteen from "@/components/sections/testimonial/TestimonialCardThirteen";
import FeatureCardTen from "@/components/sections/feature/FeatureCardTen";
import MetricCardEleven from "@/components/sections/metrics/MetricCardEleven";
import InlineImageSplitTextAbout from "@/components/sections/about/InlineImageSplitTextAbout";
import FaqBase from "@/components/sections/faq/FaqBase";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterSimple from "@/components/sections/footer/FooterSimple";
import { Award, CheckCircle, Clock, DollarSign, Lightbulb, Phone, Shield, Wrench } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="compact"
      sizing="largeSmall"
      background="floatingGradient"
      cardStyle="gradient-mesh"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          brandName="Matti Plumbing"
          navItems={[
            { name: "Services", id: "services" },
            { name: "Why Us", id: "differentiators" },
            { name: "About", id: "about" },
            { name: "FAQ", id: "faq" },
            { name: "Contact", id: "contact" }
          ]}
          bottomLeftText="Available 24/7"
          bottomRightText="(07) 3554 0350"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogo
          logoText="Brisbane's Most Reliable 24/7 Plumbing Experts"
          description="Fast response. Honest pricing. Quality workmanship you can trust."
          buttons={[
            { text: "☎️ Call Now", href: "tel:0735540350" },
            { text: "📅 Book a Job", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/flexible-connector-different-wrenches_23-2147772264.jpg?w=1200&h=600&fit=cover&q=80"
          imageAlt="Professional plumbing service in action"
          showDimOverlay={true}
          ariaLabel="Hero section - Brisbane plumbing service"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Customers Say"
          description="Real reviews from Brisbane homeowners and businesses who trust Matti Plumbing"
          textboxLayout="default"
          useInvertedBackground={false}
          showRating={true}
          animationType="slide-up"
          testimonials={[
            {
              id: "1",              name: "Sarah Johnson",              handle: "Homeowner",              testimonial: "Showed up when they said they would and did an excellent job. Honest pricing, no hidden fees. Highly recommend!",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-happy-businessman-with-tablet-pc_1262-1044.jpg",              imageAlt: "Sarah Johnson"
            },
            {
              id: "2",              name: "Michael Chen",              handle: "Business Owner",              testimonial: "Fantastic service! Professional and communicated everything clearly. Fixed our blocked drain quickly.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/bald-man-with-beard-wearing-business-clothes-glasses-puffing-cheeks-with-funny-face-mouth-inflated-with-air-crazy-expression_839833-2502.jpg",              imageAlt: "Michael Chen"
            },
            {
              id: "3",              name: "Emily Rodriguez",              handle: "Homeowner",              testimonial: "Arrived quickly and worked until the issue was fully fixed. Very thorough and friendly team.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",              name: "David Kim",              handle: "Property Manager",              testimonial: "Best emergency plumbing service in Brisbane. Available 24/7 and always professional. Our go-to company.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-middle-aged-attractive-woman-showing-thumb-up-outdoors_1262-12526.jpg",              imageAlt: "David Kim"
            }
          ]}
          carouselMode="buttons"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTen
          title="Complete Plumbing Solutions"
          description="From routine maintenance to emergency repairs, we handle all your plumbing needs with expertise and care."
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          tag="Our Services"
          tagIcon={Wrench}
          features={[
            {
              id: "hot-water",              title: "Hot Water Systems",              description: "Installation, repair, and maintenance of all hot water systems",              media: {
                imageSrc: "http://img.b2bpic.net/free-photo/young-engineer-adjusting-autonomous-heating_1303-26537.jpg?w=800&h=600&fit=cover&q=80",                imageAlt: "Hot water system installation"
              },
              items: [
                { icon: CheckCircle, text: "Electric & gas systems" },
                { icon: CheckCircle, text: "Quick installation" }
              ],
              reverse: false
            },
            {
              id: "leak-detection",              title: "Leak Detection & Repairs",              description: "Advanced detection technology to find and fix leaks before they cause damage",              media: {
                imageSrc: "http://img.b2bpic.net/free-photo/woman-fixing-kitchen-sink_53876-139620.jpg?w=800&h=600&fit=cover&q=80",                imageAlt: "Leak detection service"
              },
              items: [
                { icon: CheckCircle, text: "Pinpoint accuracy" },
                { icon: CheckCircle, text: "Minimal disruption" }
              ],
              reverse: true
            },
            {
              id: "blocked-drains",              title: "Blocked Drains",              description: "Fast, effective solutions for all types of drain blockages",              media: {
                imageSrc: "http://img.b2bpic.net/free-photo/man-cleaning-kitchen-rack-with-pull-out-faucet-sprayer-rinsing-drainer_169016-69667.jpg?w=800&h=600&fit=cover&q=80",                imageAlt: "Drain cleaning service"
              },
              items: [
                { icon: CheckCircle, text: "24/7 emergency service" },
                { icon: CheckCircle, text: "Eco-friendly methods" }
              ],
              reverse: false
            }
          ]}
        />
      </div>

      <div id="differentiators" data-section="differentiators">
        <MetricCardEleven
          title="Why Locals Choose Matti Plumbing"
          description="We've built our reputation on reliability, honesty, and exceptional service."
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          tag="Our Promise"
          tagIcon={Shield}
          metrics={[
            {
              id: "on-time",              value: "Always",              title: "On Time",              description: "We respect your time and always arrive when promised",              videoSrc: "https://example.com/video.mp4?_wi=1",              videoAriaLabel: "On-time service video"
            },
            {
              id: "communication",              value: "100%",              title: "Clear Communication",              description: "No surprises – we explain everything upfront",              videoSrc: "https://example.com/video.mp4?_wi=2",              videoAriaLabel: "Clear communication video"
            },
            {
              id: "cleanliness",              value: "Professional",              title: "Clean & Respectful",              description: "We treat your home like our own",              videoSrc: "https://example.com/video.mp4?_wi=3",              videoAriaLabel: "Professional service video"
            },
            {
              id: "honest",              value: "Fair",              title: "Honest Pricing",              description: "No upselling – just quality work at fair rates",              videoSrc: "https://example.com/video.mp4?_wi=4",              videoAriaLabel: "Fair pricing video"
            }
          ]}
        />
      </div>

      <div id="local-trust" data-section="local-trust">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "Proudly Serving Brisbane" }
          ]}
          useInvertedBackground={false}
          buttons={[
            { text: "Service Area Details", href: "#" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "Built on Reliability & Trust" }
          ]}
          useInvertedBackground={false}
        />
      </div>

      <div id="process" data-section="process">
        <FeatureCardTen
          title="Simple, Stress-Free Process"
          description="From your first call to job completion, we keep things straightforward."
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          tag="How It Works"
          tagIcon={Lightbulb}
          features={[
            {
              id: "step-1",              title: "Call or Book Online",              description: "Reach out via phone or our online booking system",              media: {
                imageSrc: "http://img.b2bpic.net/free-photo/call-center-employee-handling-customer-complaints-offering-helpful-solutions_482257-126776.jpg?w=800&h=600&fit=cover&q=80",                imageAlt: "Customer calling for service"
              },
              items: [
                { icon: Phone, text: "(07) 3554 0350" },
                { icon: Clock, text: "24/7 availability" }
              ],
              reverse: false
            },
            {
              id: "step-2",              title: "We Arrive On Time",              description: "Our team shows up exactly when promised with all necessary equipment",              media: {
                imageSrc: "http://img.b2bpic.net/free-photo/man-with-tattoos-producing-craft-beer_23-2148110874.jpg?w=800&h=600&fit=cover&q=80",                imageAlt: "Plumber arriving at home"
              },
              items: [
                { icon: Clock, text: "Punctual arrival" },
                { icon: CheckCircle, text: "Fully equipped" }
              ],
              reverse: true
            },
            {
              id: "step-3",              title: "Problem Diagnosed Clearly",              description: "We explain the issue and provide an honest assessment with no pressure",              media: {
                imageSrc: "http://img.b2bpic.net/free-photo/female-plumber-working-fix-problems-client-s-house_23-2150990725.jpg?w=800&h=600&fit=cover&q=80",                imageAlt: "Professional plumber diagnosing problem"
              },
              items: [
                { icon: CheckCircle, text: "Transparent diagnosis" },
                { icon: DollarSign, text: "Fair pricing" }
              ],
              reverse: false
            },
            {
              id: "step-4",              title: "Fixed Fast & Properly",              description: "Professional workmanship that lasts with warranty coverage",              media: {
                imageSrc: "http://img.b2bpic.net/free-photo/water-tap-prevention-concentrated-man-leaning-water-faucet-touching-spout-pipe_259150-58276.jpg?w=800&h=600&fit=cover&q=80",                imageAlt: "Plumber fixing installation"
              },
              items: [
                { icon: CheckCircle, text: "Quality guarantee" },
                { icon: Award, text: "Licensed & insured" }
              ],
              reverse: true
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Quick answers to common questions about our plumbing services"
          textboxLayout="default"
          animationType="smooth"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          showCard={true}
          faqs={[
            {
              id: "1",              title: "How quickly can you arrive?",              content: "We pride ourselves on fast response times. For emergency calls, we typically arrive within 30-60 minutes depending on your location in Brisbane. Our 24/7 availability means help is never far away."
            },
            {
              id: "2",              title: "Do you offer upfront pricing?",              content: "Absolutely. We provide transparent, upfront quotes before any work begins. There are no hidden fees or surprise charges – what we quote is what you pay."
            },
            {
              id: "3",              title: "Are you available after hours?",              content: "Yes! We're available 24/7, including nights, weekends, and public holidays. Emergency plumbing issues don't wait for business hours, and neither do we."
            },
            {
              id: "4",              title: "What areas do you service?",              content: "We serve Brisbane and surrounding suburbs including Ashgrove, Paddington, Red Hill, Kelvin Grove, and the greater Brisbane area. Call us to confirm your specific location."
            },
            {
              id: "5",              title: "Are your plumbers licensed and insured?",              content: "Yes, all our plumbers are fully licensed, qualified, and insured. We comply with all Australian plumbing standards and regulations."
            },
            {
              id: "6",              title: "Do you offer warranties on your work?",              content: "We stand behind our work with comprehensive warranties. Ask us about specific coverage when you book your service."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Ready to Get It Sorted?"
          description="Contact us now for fast, reliable plumbing solutions. We're available 24/7."
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/portrait-smiling-photovoltaics-factory-workers-optimizing-production-flow_482257-120437.jpg?w=800&h=600&fit=cover&q=80"
          imageAlt="Professional plumbing team"
          mediaAnimation="slide-up"
          mediaPosition="right"
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "phone", type: "tel", placeholder: "Your Phone Number", required: true },
            { name: "email", type: "email", placeholder: "Your Email", required: true }
          ]}
          textarea={{
            name: "message",            placeholder: "Describe your plumbing issue",            rows: 4,
            required: true
          }}
          buttonText="Request Callback"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Services",              items: [
                { label: "Hot Water Systems", href: "#services" },
                { label: "Leak Detection", href: "#services" },
                { label: "Blocked Drains", href: "#services" },
                { label: "Emergency Plumbing", href: "#services" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Why Choose Us", href: "#differentiators" },
                { label: "FAQ", href: "#faq" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Contact",              items: [
                { label: "📞 (07) 3554 0350", href: "tel:0735540350" },
                { label: "📍 Kelvin Grove, Brisbane", href: "#" },
                { label: "Available 24/7", href: "#" },
                { label: "Licensed & Insured", href: "#" }
              ]
            }
          ]}
          bottomLeftText="© 2024 Matti Plumbing Pty Ltd"
          bottomRightText="All rights reserved"
        />
      </div>
    </ThemeProvider>
  );
}