"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import HeroOverlay from "@/components/sections/hero/HeroOverlay";
import MetricCardThree from "@/components/sections/metrics/MetricCardThree";
import FeatureCardSeven from "@/components/sections/feature/FeatureCardSeven";
import SplitAbout from "@/components/sections/about/SplitAbout";
import TestimonialCardTwelve from "@/components/sections/testimonial/TestimonialCardTwelve";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import FooterCard from "@/components/sections/footer/FooterCard";
import {
  Star,
  ThumbsUp,
  Clock,
  MapPin,
  Phone,
  Heart,
} from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "Services", id: "/services" },
  { name: "About", id: "/about" },
  { name: "Reviews", id: "/reviews" },
];

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="layered-gradient"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Peter Tavener"
          navItems={navItems}
          button={{
            text: "Call Now",            href: "tel:0733944918"}}
          animateOnLoad={true}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroOverlay
          title="Trusted Local Plumbers in Holland Park West – 24/7 Service"
          description="Reliable, honest plumbing services backed by 4.9-star customer satisfaction. We handle emergency repairs, hot water systems, leak detection, and more."
          tag="Local Brisbane Plumbers"
          imageSrc="http://img.b2bpic.net/free-photo/plumber-with-his-tools_1368-956.jpg?_wi=1"
          imageAlt="Professional plumber with tools"
          textPosition="bottom-left"
          showBlur={true}
          showDimOverlay={false}
          buttons={[
            { text: "Call Now (07) 3394 4918", href: "tel:0733944918" },
            { text: "Request a Quote", href: "/contact" },
          ]}
        />
      </div>

      <div id="trust-badges" data-section="trust-badges">
        <MetricCardThree
          title="Why Choose Peter Tavener Plumbing"
          description="Local expertise you can trust, backed by proven service excellence"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          metrics={[
            { id: "rating", icon: Star, title: "Google Rating", value: "4.9★" },
            { id: "reviews", icon: ThumbsUp, title: "Customer Reviews", value: "86" },
            { id: "hours", icon: Clock, title: "Availability", value: "24/7" },
            { id: "location", icon: MapPin, title: "Service Area", value: "Brisbane" },
          ]}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardSeven
          title="Our Plumbing Services"
          description="Comprehensive solutions for all your plumbing needs"
          tag="Professional Services"
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="blur-reveal"
          features={[
            {
              id: 1,
              title: "Emergency Plumbing",              description: "24/7 emergency response for burst pipes, flooding, and urgent repairs. We're always ready to help when you need us most.",              imageSrc: "http://img.b2bpic.net/free-photo/man-fixing-kitchen-sink_53876-13430.jpg?_wi=1",              imageAlt: "Emergency plumbing service"},
            {
              id: 2,
              title: "Hot Water Systems",              description: "Professional installation, repair, and maintenance of hot water systems. Fast diagnostics and reliable solutions.",              imageSrc: "http://img.b2bpic.net/free-photo/view-plumber-working-fix-problems_23-2150990693.jpg?_wi=1",              imageAlt: "Hot water system installation"},
            {
              id: 3,
              title: "Leak Detection",              description: "Advanced leak detection technology to identify hidden leaks quickly and accurately. Save water and money.",              imageSrc: "http://img.b2bpic.net/free-photo/male-worker-operating-machinery-factory_107420-96043.jpg?_wi=1",              imageAlt: "Professional leak detection"},
            {
              id: 4,
              title: "Blocked Drains",              description: "Expert blocked drain services using modern equipment. We clear stubborn blockages safely and efficiently.",              imageSrc: "http://img.b2bpic.net/free-photo/top-view-plumber-checking-kitchen-fixtures_1098-17864.jpg?_wi=1",              imageAlt: "Drain cleaning service"},
            {
              id: 5,
              title: "General Maintenance",              description: "Regular plumbing maintenance to prevent issues before they start. Inspections, repairs, and preventive care.",              imageSrc: "http://img.b2bpic.net/free-photo/male-plumber-working-with-client-fix-kitchen-problems_23-2150990690.jpg?_wi=1",              imageAlt: "Plumbing maintenance and inspection"},
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="About Peter Tavener Plumbing"
          description="Local plumbing expertise serving Holland Park West and surrounding Brisbane suburbs with honest, reliable service."
          textboxLayout="default"
          useInvertedBackground={false}
          bulletPoints={[
            {
              title: "Local Expertise",              description: "Serving Holland Park West and surrounding Brisbane areas with deep local knowledge and trusted service.",              icon: MapPin,
            },
            {
              title: "Professional Team",              description: "Experienced, fully licensed plumbers committed to quality workmanship and customer satisfaction.",              icon: Heart,
            },
            {
              title: "Honest Pricing",              description: "Transparent, competitive pricing with no hidden fees. We respect your budget and deliver value.",              icon: Heart,
            },
            {
              title: "24/7 Availability",              description: "Always available when you need us, day or night. Emergency service is our priority.",              icon: Clock,
            },
          ]}
          imagePosition="right"
          imageSrc="http://img.b2bpic.net/free-photo/plumber-with-his-tools_1368-956.jpg?_wi=2"
          imageAlt="Peter Tavener Plumbing Team"
          mediaAnimation="none"
        />
      </div>

      <div id="reviews" data-section="reviews">
        <TestimonialCardTwelve
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-confident-manager-cafeteria_1098-20954.jpg?_wi=1",              imageAlt: "Sarah Mitchell"},
            {
              id: "2",              name: "Michael Chen",              imageSrc: "http://img.b2bpic.net/free-photo/business-woman-standing_1187-1543.jpg?_wi=1",              imageAlt: "Michael Chen"},
            {
              id: "3",              name: "Jennifer Walsh",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-handsome-businessman-leaning-knees_1262-5774.jpg?_wi=1",              imageAlt: "Jennifer Walsh"},
            {
              id: "4",              name: "David Thompson",              imageSrc: "http://img.b2bpic.net/free-photo/happy-successful-young-business-woman-standing-with-arms-folded-posing-co-working-coffee-shop-interior-looking-camera-smiling_74855-10036.jpg?_wi=1",              imageAlt: "David Thompson"},
          ]}
          cardTitle="Work conducted well and pricing reasonable. A young man, Tyson arrived and did a wonderful job from start to finish. Definitely our 'go to' people for plumbing needs."
          cardTag="Trusted by local homeowners"
          cardTagIcon={Heart}
          cardAnimation="blur-reveal"
          useInvertedBackground={true}
        />
      </div>

      <div id="contact-cta" data-section="contact-cta">
        <ContactCTA
          tag="Get in Touch"
          tagIcon={Phone}
          title="Ready for Reliable Plumbing Service?"
          description="Call us now for immediate assistance or request a quote. Our team is ready to help with any plumbing emergency or service need."
          buttons={[
            { text: "Call (07) 3394 4918", href: "tel:0733944918" },
            { text: "Request a Quote", href: "/contact" },
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="Peter Tavener Plumbing"
          copyrightText="© 2025 Peter Tavener Plumbing Services Pty Ltd. 9 Hamel Rd, Holland Park West QLD 4121. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}