"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroBillboardCarousel from "@/components/sections/hero/HeroBillboardCarousel";
import TestimonialAboutCard from "@/components/sections/about/TestimonialAboutCard";
import FeatureCardNineteen from "@/components/sections/feature/FeatureCardNineteen";
import MetricCardTwo from "@/components/sections/metrics/MetricCardTwo";
import TestimonialCardThirteen from "@/components/sections/testimonial/TestimonialCardThirteen";
import FaqDouble from "@/components/sections/faq/FaqDouble";
import ContactCenter from "@/components/sections/contact/ContactCenter";
import FooterBase from "@/components/sections/footer/FooterBase";
import { Zap, CheckCircle, Clock, Wrench, ListChecks, Award, Star, TrendingUp, HelpCircle } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="medium"
      sizing="largeSmallSizeMediumTitles"
      background="noiseDiagonalGradient"
      cardStyle="gradient-mesh"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Mastermind Plumbing"
          navItems={[
            { name: "Services", id: "services" },
            { name: "Process", id: "process" },
            { name: "Why Us", id: "why-us" },
            { name: "Testimonials", id: "testimonials" },
            { name: "FAQ", id: "faq" },
          ]}
          button={{
            text: "Call Now",            href: "tel:+1-647-832-8100"}}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardCarousel
          title="Fast, Honest, Local Plumbing for Richmond Hill & the GTA"
          description="Same-day service with upfront transparent pricing. Licensed, insured, and trusted by hundreds of local homeowners. Get a free quote today."
          background={{ variant: "plain" }}
          tag="Same-Day Service Available"
          tagIcon={Zap}
          tagAnimation="slide-up"
          buttons={[
            { text: "Call Now: +1 (647) 832-8100", href: "tel:+1-647-832-8100" },
            { text: "Get a Free Quote", href: "#final-cta" },
          ]}
          buttonAnimation="slide-up"
          mediaItems={[
            {
              imageSrc: "http://img.b2bpic.net/free-photo/cheerful-asian-plumber-sitting-floor-repairing-kitchen-sink_1098-17780.jpg?_wi=1",              imageAlt: "Professional plumber providing licensed plumbing service"},
            {
              imageSrc: "http://img.b2bpic.net/free-photo/plumbing-repair-service_181624-27146.jpg?_wi=1",              imageAlt: "Expert drain cleaning and clog removal service"},
            {
              imageSrc: "http://img.b2bpic.net/free-photo/male-worker-operating-machinery-factory_107420-96043.jpg?_wi=1",              imageAlt: "Advanced leak detection and pipe repair"},
            {
              imageSrc: "http://img.b2bpic.net/free-photo/modern-sink-black-faucet-marble-countertop_169016-69284.jpg?_wi=1",              imageAlt: "Professional faucet and toilet installation"},
            {
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-handsome-male-technician-doing-work-report-broken-fridge-home-kitchen_662251-2719.jpg?_wi=1",              imageAlt: "Emergency plumbing service available 24/7"},
          ]}
          ariaLabel="Hero section showcasing Mastermind Plumbing services"
        />
      </div>

      <div id="value-proposition" data-section="value-proposition">
        <TestimonialAboutCard
          tag="Why Choose Mastermind"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          title="Same-Day Service with Transparent Pricing"
          description="Emergency Response"
          subdescription="Available when you need us most"
          icon={Clock}
          imageSrc="http://img.b2bpic.net/free-photo/portrait-handsome-male-technician-doing-work-report-broken-fridge-home-kitchen_662251-2719.jpg?_wi=2"
          imageAlt="Same-day emergency plumbing response"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
          ariaLabel="Value proposition section highlighting same-day service"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardNineteen
          title="Our Core Services"
          description="Comprehensive plumbing solutions for all your needs across Richmond Hill, Vaughan, Markham, Thornhill, and North York"
          tag="Services"
          tagIcon={Wrench}
          tagAnimation="slide-up"
          features={[
            {
              id: 1,
              tag: "Drainage",              title: "Drain Cleaning & Clog Removal",              subtitle: "Fast and effective drainage solutions",              description: "Expert drain cleaning and clog removal using state-of-the-art equipment. We handle everything from simple clogs to complex drainage issues without damage to your pipes.",              imageSrc: "http://img.b2bpic.net/free-photo/plumbing-repair-service_181624-27146.jpg?_wi=2",              imageAlt: "Professional drain cleaning service"},
            {
              id: 2,
              tag: "Detection",              title: "Leak Detection & Pipe Repair",              subtitle: "Find and fix leaks before they cause damage",              description: "Advanced leak detection technology to identify hidden problems. Precise repairs that solve the root cause, preventing future issues and water damage.",              imageSrc: "http://img.b2bpic.net/free-photo/male-worker-operating-machinery-factory_107420-96043.jpg?_wi=2",              imageAlt: "Leak detection and pipe repair work"},
            {
              id: 3,
              tag: "Installation",              title: "Faucet & Toilet Installation & Repair",              subtitle: "Professional fixture installation and repair",              description: "Expert installation of new faucets and toilets with careful attention to detail. Quick repairs for leaking or malfunctioning fixtures to restore functionality.",              imageSrc: "http://img.b2bpic.net/free-photo/modern-sink-black-faucet-marble-countertop_169016-69284.jpg?_wi=2",              imageAlt: "Faucet and toilet installation service"},
            {
              id: 4,
              tag: "Maintenance",              title: "Water Valve Replacement",              subtitle: "Reliable valve service and replacement",              description: "Professional water valve replacement and maintenance. We ensure proper functionality to prevent leaks and maintain efficient water pressure throughout your home.",              imageSrc: "http://img.b2bpic.net/free-photo/portrait-handsome-male-technician-doing-work-report-broken-fridge-home-kitchen_662251-2719.jpg?_wi=3",              imageAlt: "Water valve replacement and maintenance"},
            {
              id: 5,
              tag: "Bathroom",              title: "Shower & Tub Repair",              subtitle: "Expert bathroom plumbing solutions",              description: "Complete shower and tub repair services including valve replacement, fixture repair, and leak detection. We restore your bathroom to perfect working condition.",              imageSrc: "http://img.b2bpic.net/free-photo/modern-sink-black-faucet-marble-countertop_169016-69284.jpg?_wi=3",              imageAlt: "Shower and tub repair services"},
            {
              id: 6,
              tag: "Emergency",              title: "Emergency Plumbing Services",              subtitle: "24/7 rapid response when you need it",              description: "Available around the clock for plumbing emergencies. Burst pipes, severe leaks, backups—we respond quickly with professional solutions to minimize damage.",              imageSrc: "http://img.b2bpic.net/free-photo/portrait-handsome-male-technician-doing-work-report-broken-fridge-home-kitchen_662251-2719.jpg?_wi=4",              imageAlt: "24/7 emergency plumbing response"},
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="Services section with 6 core plumbing services"
        />
      </div>

      <div id="process" data-section="process">
        <FeatureCardNineteen
          title="Our 4-Step Process"
          description="From your first call to completed repair, we keep you informed every step of the way"
          tag="How It Works"
          tagIcon={ListChecks}
          tagAnimation="slide-up"
          features={[
            {
              id: 1,
              tag: "Contact",              title: "Initial Consultation",              subtitle: "Call or book online",              description: "Reach out to us at +1 (647) 832-8100 or request a free quote online. We'll listen to your plumbing issue and schedule a convenient appointment.",              imageSrc: "http://img.b2bpic.net/free-photo/cheerful-asian-plumber-sitting-floor-repairing-kitchen-sink_1098-17780.jpg?_wi=2",              imageAlt: "Customer contacting Mastermind Plumbing"},
            {
              id: 2,
              tag: "Assessment",              title: "Expert Diagnosis",              subtitle: "Thorough problem assessment",              description: "Our licensed technician arrives on time and conducts a complete evaluation. We explain the issue clearly, show you the problem, and provide upfront pricing with no hidden costs.",              imageSrc: "http://img.b2bpic.net/free-photo/male-worker-operating-machinery-factory_107420-96043.jpg?_wi=3",              imageAlt: "Professional plumber diagnosing plumbing problem"},
            {
              id: 3,
              tag: "Service",              title: "Professional Repair",              subtitle: "Expert work with clear communication",              description: "We complete the repair with precision and care, respecting your property. You'll receive photo and video updates so you know exactly what's being done.",              imageSrc: "http://img.b2bpic.net/free-photo/plumbing-repair-service_181624-27146.jpg?_wi=3",              imageAlt: "Expert plumber performing professional repair work"},
            {
              id: 4,
              tag: "Completion",              title: "Final Inspection & Follow-Up",              subtitle: "Job done right the first time",              description: "We test everything thoroughly to ensure it works perfectly. You receive a detailed invoice, and we're always available if you have any questions about your repair.",              imageSrc: "http://img.b2bpic.net/free-photo/portrait-handsome-male-technician-doing-work-report-broken-fridge-home-kitchen_662251-2719.jpg?_wi=5",              imageAlt: "Quality inspection and completed plumbing work"},
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="4-step process section"
        />
      </div>

      <div id="why-us" data-section="why-us">
        <TestimonialAboutCard
          tag="Our Differentiators"
          tagIcon={Award}
          tagAnimation="slide-up"
          title="Why Homeowners Choose Mastermind Plumbing"
          description="Local Experts"
          subdescription="Serving Richmond Hill & the Greater Toronto Area"
          icon={CheckCircle}
          imageSrc="http://img.b2bpic.net/free-photo/cheerful-asian-plumber-sitting-floor-repairing-kitchen-sink_1098-17780.jpg?_wi=3"
          imageAlt="Mastermind Plumbing licensed and insured professionals"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
          ariaLabel="Why choose us section"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Customers Say"
          description="Real reviews from real homeowners, condo owners, and property managers who trust Mastermind Plumbing"
          tag="5-Star Rated"
          tagIcon={Star}
          tagAnimation="slide-up"
          showRating={true}
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              handle: "Homeowner, Richmond Hill",              testimonial: "Mastermind Plumbing responded to my emergency burst pipe on the same day. They were professional, honest about pricing, and fixed everything perfectly. Highly recommended!",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/attractive-blonde-girl-tulle-skirt-having-fun-stairs-she-is-smiling-down_197531-617.jpg",              imageAlt: "Sarah Mitchell, satisfied homeowner"},
            {
              id: "2",              name: "David Chen",              handle: "Condo Owner, Markham",              testimonial: "The team was punctual, respectful of my property, and communicated every step of the repair. The upfront pricing meant no surprises. They're my go-to plumber now.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageAlt: "David Chen, satisfied condo owner"},
            {
              id: "3",              name: "Jennifer Rodriguez",              handle: "Property Manager, Vaughan",              testimonial: "Managing multiple properties, I need reliable plumbers. Mastermind Plumbing is dependable, licensed, fully insured, and handles emergencies beautifully. Worth every penny.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg",              imageAlt: "Jennifer Rodriguez, property manager"},
            {
              id: "4",              name: "Michael Thompson",              handle: "Homeowner, Thornhill",              testimonial: "They diagnosed my hidden leak with advanced equipment and repaired it without any fuss. The photos they sent during the work gave me complete confidence in their service.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/modern-businesswoman_23-2148012909.jpg",              imageAlt: "Michael Thompson, homeowner"},
            {
              id: "5",              name: "Angela Wong",              handle: "Landlord, North York",              testimonial: "As a landlord managing rental units, I appreciate their professionalism and quick turnaround. They treat tenant issues with urgency and always communicate clearly with me.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/happy-businesswoman-smiling-looking-camera-successful-confident-grey-haired-manager-sitting-office-room-workplace-business-management-concept_74855-7343.jpg",              imageAlt: "Angela Wong, landlord"},
            {
              id: "6",              name: "Robert Parker",              handle: "Homeowner, Richmond Hill",              testimonial: "Same-day quote, same-day service, and transparent pricing. No upselling, just honest professional work. They've earned my trust and I recommend them to everyone.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-standing-airport-terminal_107420-85070.jpg",              imageAlt: "Robert Parker, satisfied homeowner"},
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          ariaLabel="Customer testimonials section with 6 reviews"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="Trusted by the Community"
          description="Proven track record of excellence and reliability"
          tag="Our Track Record"
          tagIcon={TrendingUp}
          tagAnimation="slide-up"
          metrics={[
            { id: "1", value: "5.0★", description: "Google Rating" },
            { id: "2", value: "500+", description: "Jobs Completed" },
            { id: "3", value: "100%", description: "Licensed & Insured" },
            { id: "4", value: "24/7", description: "Emergency Service" },
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="Trust metrics section"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Find answers to common questions about our services, pricing, and service areas"
          tag="Help & Support"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          faqs={[
            {
              id: "1",              title: "Are you licensed and insured?",              content: "Yes, absolutely. Mastermind Plumbing is fully licensed and insured. We provide proof of all credentials upon request. Your peace of mind and property protection are our top priorities."},
            {
              id: "2",              title: "What areas do you serve?",              content: "We serve Richmond Hill and the Greater Toronto Area including Vaughan, Markham, Thornhill, and North York. If you're unsure whether your location is within our service area, please call us at +1 (647) 832-8100 and we'll confirm."},
            {
              id: "3",              title: "Do you offer same-day service?",              content: "Yes! We specialize in same-day service for most plumbing issues. Many emergencies can be addressed the same day you call. For fastest response, call us at +1 (647) 832-8100 to check current availability."},
            {
              id: "4",              title: "How do you handle pricing to ensure no hidden costs?",              content: "We believe in complete transparency. We provide upfront pricing before any work begins. You'll know exactly what the repair costs before we start. If the issue is more complex than initially assessed, we inform you immediately and confirm your approval before proceeding."},
            {
              id: "5",              title: "Do you work on condo buildings and rental properties?",              content: "Yes, we have extensive experience working with condo buildings, rental properties, and landlords. We coordinate with property managers, landlords, and tenants professionally and respectfully. We understand the unique needs of multi-unit properties."},
            {
              id: "6",              title: "What can I expect on the day of service?",              content: "Our technician will arrive on time with all necessary equipment. We'll explain the problem clearly, show you what needs to be fixed, provide upfront pricing, and answer all your questions. During the work, we keep your property clean and respectful. You'll receive photo and video updates, and we'll do a final inspection to ensure everything works perfectly."},
            {
              id: "7",              title: "Are you available for emergencies outside regular hours?",              content: "Yes, we offer 24/7 emergency plumbing service. If you have a burst pipe, severe leak, or backup at midnight, we're available. Call +1 (647) 832-8100 anytime for emergency assistance."},
            {
              id: "8",              title: "How can I get a free quote?",              content: "You can call us at +1 (647) 832-8100 to discuss your issue and schedule a free consultation, or use our online form to request a free quote. We'll assess your plumbing problem and provide transparent pricing with no obligation."},
          ]}
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="smooth"
          ariaLabel="FAQ section with 8 common questions"
        />
      </div>

      <div id="final-cta" data-section="final-cta">
        <ContactCenter
          tag="Limited Daily Availability"
          tagIcon={Zap}
          title="Don't Wait—Get Your Plumbing Fixed Today"
          description="Same-day booking available for qualified emergencies. Contact us now for a free quote or to schedule your service."
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={false}
          inputPlaceholder="Enter your email"
          buttonText="Get Free Quote"
          termsText="We respect your privacy. Unsubscribe at any time."
          ariaLabel="Final CTA section"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Mastermind Plumbing"
          copyrightText="© 2025 Mastermind Plumbing. Licensed & Insured. Serving Richmond Hill & the GTA."
          columns={[
            {
              title: "Services",              items: [
                { label: "Drain Cleaning", href: "#services" },
                { label: "Leak Detection", href: "#services" },
                { label: "Emergency Service", href: "#services" },
                { label: "Water Valve Replacement", href: "#services" },
              ],
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#why-us" },
                { label: "Our Process", href: "#process" },
                { label: "Testimonials", href: "#testimonials" },
                { label: "FAQ", href: "#faq" },
              ],
            },
            {
              title: "Contact",              items: [
                { label: "Call: +1 (647) 832-8100", href: "tel:+1-647-832-8100" },
                { label: "Service Areas", href: "#services" },
                { label: "Get a Free Quote", href: "#final-cta" },
                { label: "Emergency Service", href: "tel:+1-647-832-8100" },
              ],
            },
          ]}
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}
