"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import HeroCentered from "@/components/sections/hero/HeroCentered";
import FeatureCardTwentySix from "@/components/sections/feature/FeatureCardTwentySix";
import TestimonialCardFive from "@/components/sections/testimonial/TestimonialCardFive";
import MetricSplitMediaAbout from "@/components/sections/about/MetricSplitMediaAbout";
import FaqBase from "@/components/sections/faq/FaqBase";
import FooterMedia from "@/components/sections/footer/FooterMedia";
import { CheckCircle, Clock, Award, MessageSquare, MapPin, Hammer } from "lucide-react";

const navItems = [
  { name: "Home", id: "home" },
  { name: "Services", id: "services" },
  { name: "About", id: "about" },
  { name: "FAQ", id: "faq" },
  { name: "Contact", id: "contact" },
];

const footerColumns = [
  {
    title: "Services",    items: [
      { label: "Emergency Plumbing", href: "/services" },
      { label: "Water Heater Repair", href: "/services" },
      { label: "Heating & Furnace", href: "/services" },
      { label: "Drain Issues", href: "/services" },
    ],
  },
  {
    title: "Company",    items: [
      { label: "About Us", href: "#about" },
      { label: "Contact", href: "#contact" },
      { label: "FAQ", href: "#faq" },
      { label: "Service Areas", href: "#" },
    ],
  },
  {
    title: "Legal",    items: [
      { label: "Privacy Policy", href: "#" },
      { label: "Terms of Service", href: "#" },
      { label: "Licenses & Certifications", href: "#" },
      { label: "Contact Us", href: "#contact" },
    ],
  },
];

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="noise"
      cardStyle="soft-shadow"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={navItems}
          button={{
            text: "Request Service",            href: "#contact"}}
          brandName="Schneider Plumbing & Heating"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCentered
          background={{ variant: "downward-rays-static" }}
          avatars={[
            { src: "http://img.b2bpic.net/free-photo/business-people-shaking-hands-finishing-up-meeting-deals-business-concept_1150-2981.jpg", alt: "Happy customer 1" },
            { src: "http://img.b2bpic.net/free-photo/close-up-successful-woman-with-blue-shirt_1098-3627.jpg", alt: "Happy customer 2" },
            { src: "http://img.b2bpic.net/free-photo/front-view-smiley-business-woman_23-2148603016.jpg", alt: "Happy customer 3" },
          ]}
          avatarText="Trusted by hundreds of local homeowners"
          title="Trusted Plumbing & Heating Experts You Can Count On"
          description="Fast response, honest pricing, and experienced plumbers serving local homeowners. Emergency service available 24/7."
          buttons={[
            { text: "Call Now", href: "tel:+1-555-0123" },
            { text: "Request Service", href: "#contact" },
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="why-choose-us" data-section="why-choose-us">
        <FeatureCardTwentySix
          title="Why Choose Schneider Plumbing & Heating"
          description="We're committed to honest pricing, quick response times, and exceptional service that homeowners can trust."
          tag="Our Advantages"
          features={[
            {
              title: "Honest Pricing",              description: "No hidden fees. We explain everything clearly before any work begins.",              imageSrc: "http://img.b2bpic.net/free-photo/handsome-young-carpenter-working-with-experienced-man_329181-15627.jpg",              imageAlt: "Professional plumber",              buttonIcon: CheckCircle,
            },
            {
              title: "Emergency Service",              description: "24/7 emergency response for urgent plumbing issues that can't wait.",              imageSrc: "http://img.b2bpic.net/free-photo/female-plumber-working-fix-problems-client-s-house_23-2150990727.jpg",              imageAlt: "Emergency service",              buttonIcon: Clock,
            },
            {
              title: "Experienced Plumbers",              description: "Skilled professionals with years of experience in residential plumbing.",              imageSrc: "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721547.jpg",              imageAlt: "Expert technician",              buttonIcon: Award,
            },
            {
              title: "Clear Communication",              description: "We explain every step of the process so you understand what we're doing.",              imageSrc: "http://img.b2bpic.net/free-vector/waters-supply-plumbing-service-isomertic-banners_1284-17769.jpg",              imageAlt: "Communication",              buttonIcon: MessageSquare,
            },
            {
              title: "Local Trusted Company",              description: "Been serving the community for years with consistent, reliable service.",              imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-working-as-plumber_23-2150746297.jpg",              imageAlt: "Local team",              buttonIcon: MapPin,
            },
            {
              title: "Quality Workmanship",              description: "We take pride in every job and ensure work is done right the first time.",              imageSrc: "http://img.b2bpic.net/free-photo/engineer-assembling-hvac-unit-manometers_482257-92713.jpg",              imageAlt: "Quality work",              buttonIcon: Hammer,
            },
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Customers Say"
          description="Real feedback from local homeowners who trust Schneider Plumbing & Heating."
          tag="Testimonials"
          testimonials={[
            {
              id: "1",              name: "Lori Thurston",              date: "Date: 2024",              title: "Exceptional Knowledge and Service",              quote: "Schneider Plumbing & Heating has helped me out at my house several times. They always do a wonderful job and are extremely knowledgeable. They explained everything clearly in ways I could understand. I'm extremely happy with the company.",              tag: "Homeowner",              avatarSrc: "http://img.b2bpic.net/free-photo/business-people-shaking-hands-finishing-up-meeting-deals-business-concept_1150-2981.jpg",              avatarAlt: "Lori Thurston",              imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-working-as-plumber_23-2150746297.jpg",              imageAlt: "Team working"},
            {
              id: "2",              name: "Konnolly",              date: "Date: 2024",              title: "Fair Pricing and Professionalism",              quote: "They came out for an emergency plumbing issue without any notice and charged us very fairly. The plumber was kind and explained everything clearly. This is the kind of service you want in an emergency.",              tag: "Emergency Service",              avatarSrc: "http://img.b2bpic.net/free-photo/close-up-successful-woman-with-blue-shirt_1098-3627.jpg",              avatarAlt: "Konnolly",              imageSrc: "http://img.b2bpic.net/free-photo/handsome-young-carpenter-working-with-experienced-man_329181-15627.jpg",              imageAlt: "Plumber at work"},
            {
              id: "3",              name: "Cynthia Ravosa",              date: "Date: 2024",              title: "Saved Our Holiday",              quote: "Bob really helped us out of a jam. Rats destroyed my mom's hot water heater right before Thanksgiving. Schneider Plumbing saved our holiday and made sure everything was working again perfectly.",              tag: "Water Heater",              avatarSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-business-woman_23-2148603016.jpg",              avatarAlt: "Cynthia Ravosa",              imageSrc: "http://img.b2bpic.net/free-vector/waters-supply-plumbing-service-isomertic-banners_1284-17769.jpg",              imageAlt: "Water heater"},
            {
              id: "4",              name: "Phil Knight",              date: "Date: 2024",              title: "Professional and Knowledgeable",              quote: "The plumber was professional, polite, and very knowledgeable. He was happy to show me what he was doing and answer all my questions. That level of communication really puts you at ease.",              tag: "Professional Service",              avatarSrc: "http://img.b2bpic.net/free-photo/pretty-teenager-talking-phone_23-2148804639.jpg",              avatarAlt: "Phil Knight",              imageSrc: "http://img.b2bpic.net/free-photo/engineer-assembling-hvac-unit-manometers_482257-92713.jpg",              imageAlt: "Heating system"},
            {
              id: "5",              name: "Dori Urch",              date: "Date: 2024",              title: "Master of the Craft",              quote: "Bob Schneider is an artist who happens to be a plumber. Truly the best. His attention to detail and commitment to quality is unmatched in our community.",              tag: "Expert Service",              avatarSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-businessman-sitting-sofa-waiting-area_107420-95816.jpg",              avatarAlt: "Dori Urch",              imageSrc: "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721547.jpg",              imageAlt: "Drain service"},
            {
              id: "6",              name: "R S",              date: "Date: 2024",              title: "Expert and Efficient",              quote: "Very pleased with their expertise and professionalism. Fast and efficient work. They treated our home with respect and completed the job exactly as promised.",              tag: "Professional",              avatarSrc: "http://img.b2bpic.net/free-photo/general-director-reviewing-data-analytics-with-team-successful-development_482257-111924.jpg",              avatarAlt: "R S",              imageSrc: "http://img.b2bpic.net/free-photo/handsome-young-carpenter-working-with-experienced-man_329181-15627.jpg",              imageAlt: "Professional work"},
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="About Us"
          title="Local Plumbing Experts You Can Trust"
          description="Schneider Plumbing & Heating is a trusted local company known for honest work, experienced plumbers, and clear communication with customers. Whether it's an emergency repair or a routine installation, our team focuses on solving problems quickly and explaining the process so homeowners feel confident in the work being done. Led by owner Bob Schneider and supported by experienced technicians like Carl, we've built our reputation on reliability and excellence."
          metrics={[
            { value: "20+", title: "Years of Service" },
            { value: "1000+", title: "Happy Homeowners" },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/full-shot-man-working-as-plumber_23-2150746297.jpg"
          imageAlt="Schneider Plumbing team"
          useInvertedBackground={false}
          mediaAnimation="slide-up"
          metricsAnimation="slide-up"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Find answers to common questions about our plumbing and heating services."
          tag="FAQ"
          faqs={[
            {
              id: "1",              title: "Do you offer emergency plumbing service?",              content: "Yes! We offer 24/7 emergency plumbing service. When you have an urgent issue like a burst pipe or major leak, call us immediately and we'll send a technician as quickly as possible."},
            {
              id: "2",              title: "How quickly can you respond to an emergency?",              content: "We prioritize emergency calls and typically respond within 1-2 hours depending on your location and current workload. We serve the local area and maintain a fleet of service vehicles for rapid response."},
            {
              id: "3",              title: "What types of water heaters do you service?",              content: "We repair and install all major types of water heaters including tank-style gas and electric, tankless water heaters, and hybrid systems. We can help you choose the right system for your home and budget."},
            {
              id: "4",              title: "Do you offer financing options?",              content: "Yes, we work with several financing partners to help make larger repairs and installations more affordable. Ask about our available financing options when you call."},
            {
              id: "5",              title: "Are your estimates free?",              content: "Yes! We provide free estimates on all plumbing and heating work. We'll explain what needs to be done and give you a clear price before we start any work."},
            {
              id: "6",              title: "Do you guarantee your work?",              content: "Absolutely. We stand behind our work with quality guarantees. If you're not satisfied with any repair or installation, we'll make it right."},
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="http://img.b2bpic.net/free-photo/full-shot-man-working-as-plumber_23-2150746297.jpg"
          imageAlt="Schneider Plumbing team"
          columns={footerColumns}
          logoText="Schneider Plumbing & Heating"
          copyrightText="© 2025 Schneider Plumbing & Heating. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}