"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import FeatureCardNine from '@/components/sections/feature/FeatureCardNine';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import TeamCardSix from '@/components/sections/team/TeamCardSix';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Wrench } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="compact"
      sizing="largeSmallSizeMediumTitles"
      background="none"
      cardStyle="gradient-radial"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal
          brandName="Kretz Plumbing"
          button={{
            text: "Call Now",            href: "tel:(214)-663-7808"
          }}
          className="backdrop-blur-sm bg-card/80"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroOverlay
          title="Expert Plumbing Services in DFW"
          description="Licensed, insured plumbers serving the Dallas/Fort Worth Metroplex with over 21 years of trusted expertise. From emergency repairs to complete installations, we deliver quality solutions on time, every time."
          tag="Professional & Reliable"
          tagIcon={Wrench}
          imageSrc="https://img.b2bpic.net/free-photo/portrait-attractive-hispanic-handyman-writing-work-estimate-before-fixing-kitchen-sink_662251-2690.jpg"
          imageAlt="Professional plumbing service"
          textPosition="bottom-left"
          showDimOverlay={true}
          showBlur={true}
          buttons={[
            {
              text: "Schedule Service",              href: "#contact"
            },
            {
              text: "Call (214)-663-7808",              href: "tel:(214)-663-7808"
            }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="Why Choose Kretz Plumbing"
          description="With over 21 years of experience, we've built our reputation on quality work, customer satisfaction, and professional service."
          tabs={[
            {
              id: "expertise",              label: "21+ Years Experience",              description: "Our skilled team of licensed and insured plumbers has tackled thousands of plumbing issues, big and small. From the early 2000s to today, we've refined our craft and built lasting relationships with homeowners and businesses."
            },
            {
              id: "satisfaction",              label: "Customer First",              description: "We prioritize your satisfaction on every job. Our team maintains constant communication until the work is complete, ensuring transparency and trust throughout the process."
            },
            {
              id: "certified",              label: "Google Guaranteed",              description: "As a Google Guaranteed partner, every plumber on our team is thoroughly vetted, insured, and licensed. Your peace of mind is our priority."
            },
            {
              id: "service",              label: "24/7 Emergency Service",              description: "Plumbing emergencies don't wait for business hours. We offer round-the-clock emergency service to handle urgent issues whenever they arise."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/medium-shot-worker-wearing-vest_23-2149366621.jpg"
          imageAlt="Mike Kretz, Owner of Kretz Plumbing"
          imagePosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardNine
          title="Complete Plumbing Solutions"
          description="From routine maintenance to emergency repairs, we handle all your plumbing needs with professional expertise and reliable service."
          features={[
            {
              id: 1,
              title: "Water Heater Services",              description: "Expert installation, repair, and maintenance of water heaters. We ensure your home always has reliable hot water when you need it.",              phoneOne: {
                imageSrc: "https://img.b2bpic.net/free-photo/cheerful-asian-plumber-sitting-floor-repairing-kitchen-sink_1098-17780.jpg"
              },
              phoneTwo: {
                imageSrc: "https://img.b2bpic.net/free-photo/cheerful-asian-plumber-sitting-floor-repairing-kitchen-sink_1098-17780.jpg"
              }
            },
            {
              id: 2,
              title: "Pipe Repair & Replacement",              description: "Professional diagnosis and repair of damaged pipes. We use quality materials and proven techniques to restore your plumbing system.",              phoneOne: {
                imageSrc: "https://img.b2bpic.net/free-photo/portrait-handsome-male-technician-doing-work-report-broken-fridge-home-kitchen_662251-2719.jpg"
              },
              phoneTwo: {
                imageSrc: "https://img.b2bpic.net/free-photo/portrait-handsome-male-technician-doing-work-report-broken-fridge-home-kitchen_662251-2719.jpg"
              }
            },
            {
              id: 3,
              title: "Drainage Solutions",              description: "Clear clogs and resolve drainage issues quickly. Our team handles everything from simple drain cleaning to complex blockage removal.",              phoneOne: {
                imageSrc: "https://img.b2bpic.net/free-photo/man-kneeling-down-touching-sink-inspecting-pipes_259150-58251.jpg"
              },
              phoneTwo: {
                imageSrc: "https://img.b2bpic.net/free-photo/man-kneeling-down-touching-sink-inspecting-pipes_259150-58251.jpg"
              }
            }
          ]}
          showStepNumbers={true}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="Our Impact"
          description="Numbers that represent our commitment to excellence and customer satisfaction"
          metrics={[
            {
              id: "1",              value: "21+",              description: "Years of Plumbing Experience"
            },
            {
              id: "2",              value: "Google",              description: "Certified & Guaranteed Partner"
            },
            {
              id: "3",              value: "24/7",              description: "Emergency Service Available"
            },
            {
              id: "4",              value: "Licensed",              description: "Insured Professional Plumbers"
            }
          ]}
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="team" data-section="team">
        <TeamCardSix
          title="Meet The Team"
          description="Led by owner Mike Kretz, our skilled plumbers are dedicated to delivering quality service and customer satisfaction"
          members={[
            {
              id: "1",              name: "Mike Kretz",              role: "Owner & Master Plumber",              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-worker-wearing-vest_23-2149366621.jpg",              imageAlt: "Mike Kretz, Owner"
            },
            {
              id: "2",              name: "Professional Plumber",              role: "Licensed & Insured",              imageSrc: "https://img.b2bpic.net/free-photo/cheerful-asian-plumber-sitting-floor-repairing-kitchen-sink_1098-17780.jpg",              imageAlt: "Team member"
            },
            {
              id: "3",              name: "Expert Technician",              role: "Emergency Specialist",              imageSrc: "https://img.b2bpic.net/free-photo/household-repair-middle-aged-man-inspecting-pipe-touching-hand-sink-stylish-modern-kitchen_259150-58265.jpg",              imageAlt: "Team member"
            },
            {
              id: "4",              name: "Certified Plumber",              role: "System Specialist",              imageSrc: "https://img.b2bpic.net/free-photo/man-kneeling-down-touching-sink-inspecting-pipes_259150-58251.jpg",              imageAlt: "Team member"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="scale-rotate"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Find answers to common questions about our plumbing services and service areas"
          faqs={[
            {
              id: "1",              title: "What is your service area?",              content: "We proudly serve Kaufman County, Rockwall County, and select areas of Dallas County. This includes Forney, Killeen, Terrell, Mesquite, Crandall, and surrounding communities in the Dallas/Fort Worth Metroplex."
            },
            {
              id: "2",              title: "Do you offer emergency plumbing services?",              content: "Yes! We offer 24/7 emergency plumbing services for urgent issues. Whether it's a burst pipe, severe leak, or other emergency, we're ready to help at any time of day or night."
            },
            {
              id: "3",              title: "Are your plumbers licensed and insured?",              content: "Absolutely. All our plumbers are fully licensed and insured. As a Google Guaranteed partner, we maintain the highest standards of professionalism and customer protection."
            },
            {
              id: "4",              title: "What services do you offer?",              content: "We offer comprehensive plumbing services including water heater installation and repair, pipe repair and replacement, drainage solutions, emergency repairs, and complete plumbing installations for homes and businesses."
            },
            {
              id: "5",              title: "How quickly can you respond to an emergency call?",              content: "We prioritize emergency calls and work to respond as quickly as possible. Our 24/7 service ensures that help is available whenever you need it most."
            },
            {
              id: "6",              title: "Do you offer military and first responder discounts?",              content: "Yes! We offer a 5% discount to military members and first responders as a small token of our appreciation for their service."
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to solve your plumbing issues? Contact Kretz Plumbing today for fast, reliable service from licensed professionals."
          animationType="entrance-slide"
          buttons={[
            {
              text: "Schedule Appointment",              href: "tel:(214)-663-7808"
            },
            {
              text: "Contact Us",              href: "#footer"
            }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Services",              items: [
                {
                  label: "Water Heater Service",                  href: "https://kretzplumbing.com"
                },
                {
                  label: "Pipe Repair",                  href: "https://kretzplumbing.com"
                },
                {
                  label: "Drainage Solutions",                  href: "https://kretzplumbing.com"
                },
                {
                  label: "Emergency Service",                  href: "https://kretzplumbing.com"
                }
              ]
            },
            {
              title: "Company",              items: [
                {
                  label: "About Us",                  href: "#about"
                },
                {
                  label: "Service Areas",                  href: "https://kretzplumbing.com"
                },
                {
                  label: "Contact",                  href: "#contact"
                },
                {
                  label: "Schedule Service",                  href: "tel:(214)-663-7808"
                }
              ]
            },
            {
              title: "Contact",              items: [
                {
                  label: "Call: (214)-663-7808",                  href: "tel:(214)-663-7808"
                },
                {
                  label: "24/7 Emergency Service",                  href: "tel:(214)-663-7808"
                },
                {
                  label: "Serving Forney & DFW",                  href: "https://kretzplumbing.com"
                }
              ]
            }
          ]}
          copyrightText="© 2024 Kretz Plumbing Services. All Rights Reserved. Licensed | Insured | Google Guaranteed"
        />
      </div>
    </ThemeProvider>
  );
}