"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroSplitDoubleCarousel from '@/components/sections/hero/HeroSplitDoubleCarousel';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import FeatureCardTwentyFive from '@/components/sections/feature/FeatureCardTwentyFive';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Wrench, Droplet, Search } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="mediumLargeSizeLargeTitles"
      background="none"
      cardStyle="gradient-radial"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Dania Plumbing Services"
          navItems={[
            { "name": "Home", "id": "#home" },
            { "name": "Services", "id": "#services" },
            { "name": "About Us", "id": "#about" },
            { "name": "Testimonials", "id": "#testimonials" },
            { "name": "FAQ", "id": "#faq" },
            { "name": "Contact", "id": "#contact" }
          ]}
          button={{
            "text": "Get A Free Quote",            "href": "#contact"
          }}
        />
      </div>

      <div id="home" data-section="home">
        <HeroSplitDoubleCarousel
          title="South Florida's Trusted Plumbing Experts"
          description="Dania Plumbing Services delivers reliable, high-quality solutions for all your home plumbing needs, from emergency repairs to advanced installations. Experience luxury service with every call."
          background={{ "variant": "plain" }}
          leftCarouselItems={[
            { "imageSrc": "http://img.b2bpic.net/free-photo/technician-checking-heating-system-boiler-room_169016-55519.jpg", "imageAlt": "Plumber working on a modern sink" },
            { "imageSrc": "http://img.b2bpic.net/free-photo/female-plumber-working-fix-problems-client-s-house_23-2150990724.jpg", "imageAlt": "Technician inspecting pipes in a clean home" },
            { "imageSrc": "http://img.b2bpic.net/free-photo/happy-industry-40-solar-panels-plant-elderly-supervisor-overseeing-facility_482257-126656.jpg", "imageAlt": "Plumber checking a water pressure gauge" },
            { "imageSrc": "http://img.b2bpic.net/free-photo/male-plumber-working-with-client-fix-kitchen-problems_23-2150990683.jpg", "imageAlt": "Plumber talking to a homeowner" },
            { "imageSrc": "http://img.b2bpic.net/free-photo/urban-abandoned-factory_181624-35.jpg", "imageAlt": "Underground pipe system for a modern home" },
            { "imageSrc": "http://img.b2bpic.net/free-photo/electrical-technician-looking-focused-while-working-switchboard-with-fuses_169016-23718.jpg", "imageAlt": "New water heater installation" }
          ]}
          rightCarouselItems={[
            { "imageSrc": "http://img.b2bpic.net/free-photo/basin-black-faucet-green-bathroom-with-lighting-cozy-spa-nook_169016-69326.jpg", "imageAlt": "Plumber fixing a kitchen faucet" },
            { "imageSrc": "http://img.b2bpic.net/free-photo/water-gas-pipe-engineering-filtered-image-processed-vintage-effect_1232-4929.jpg", "imageAlt": "Clean pipe system in a bathroom" },
            { "imageSrc": "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721567.jpg", "imageAlt": "Plumber working on a toilet flush system" },
            { "imageSrc": "http://img.b2bpic.net/free-photo/close-up-kid-filling-bottle-with-water_23-2148972906.jpg", "imageAlt": "Water flowing from a clean faucet" },
            { "imageSrc": "http://img.b2bpic.net/free-photo/high-angle-man-working-as-plumber_23-2150746300.jpg", "imageAlt": "Plumber inspecting pipes with a flashlight" },
            { "imageSrc": "http://img.b2bpic.net/free-photo/medium-shot-man-taking-shower_23-2150323100.jpg", "imageAlt": "Luxurious shower head with water drops" }
          ]}
          tag="Emergency Service"
          buttons={[
            { "text": "Schedule Service", "href": "#contact" },
            { "text": "See Our Work", "href": "#services" }
          ]}
          carouselPosition="right"
          tagAnimation="entrance-slide"
          buttonAnimation="slide-up"
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          title="Excellence in Every Pipe & Fixture"
          description="With over two decades of dedicated service in South Florida, Dania Plumbing is synonymous with integrity, rapid response, and unparalleled craftsmanship. We solve your toughest plumbing challenges with lasting solutions, ensuring peace of mind for your home."
          metrics={[
            { "value": "20+", "title": "Years of Experience" },
            { "value": "5000+", "title": "Happy Customers" },
            { "value": "24/7", "title": "Availability" }
          ]}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/pleased-young-male-builder-wearing-uniform-safety-helmet-holding-out-hand-camera-putting-hip-other-hand-pink_141793-74587.jpg"
          imageAlt="Professional plumber smiling confidently"
          mediaAnimation="slide-up"
          metricsAnimation="slide-up"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwentyFive
          title="Comprehensive Plumbing Solutions"
          description="From routine maintenance to complex installations, our certified plumbers are equipped to handle every aspect of your home's plumbing system with precision and care."
          features={[
            {
              "title": "Emergency Repairs",              "description": "Rapid response for unexpected plumbing emergencies, preventing further damage to your home.",              "icon": Wrench,
              "mediaItems": [
                { "imageSrc": "http://img.b2bpic.net/free-photo/deliveryman-having-phone-call-car_23-2147767588.jpg", "imageAlt": "Emergency plumbing van arriving at night" },
                { "imageSrc": "http://img.b2bpic.net/free-photo/woman-calling-plumber-solve-kitchen-problems_23-2150990681.jpg", "imageAlt": "Plumber fixing a burst pipe in a kitchen" }
              ]
            },
            {
              "title": "Water Heater Services",              "description": "Installation, repair, and maintenance for all types of water heaters, ensuring consistent hot water supply.",              "icon": Droplet,
              "mediaItems": [
                { "imageSrc": "http://img.b2bpic.net/free-photo/modern-autonomous-heating-system-boiler-room_169016-53691.jpg", "imageAlt": "Modern water heater installation" },
                { "imageSrc": "http://img.b2bpic.net/free-photo/old-corroded-water-heater-removal_23-2150746394.jpg", "imageAlt": "Old corroded water heater removal" }
              ]
            },
            {
              "title": "Leak Detection & Repair",              "description": "Utilizing advanced technology to accurately locate and efficiently repair hidden leaks, saving you from costly damage.",              "icon": Search,
              "mediaItems": [
                { "imageSrc": "http://img.b2bpic.net/free-photo/vivid-blurred-colorful-wallpaper-background_58702-2929.jpg", "imageAlt": "Thermal imaging camera for leak detection" },
                { "imageSrc": "http://img.b2bpic.net/free-photo/closeup-shot-red-metal-ground_181624-21818.jpg", "imageAlt": "Plumber repairing drywall after a leak" }
              ]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="packages" data-section="packages">
        <ProductCardFour
          title="Premium Service Packages"
          description="Elevate your home's plumbing with our exclusive service packages, designed for optimal performance, efficiency, and long-term peace of mind."
          products={[
            { "id": "annual-maintenance", "name": "Annual Maintenance Plan", "price": "$299/Year", "variant": "Preventative Care", "imageSrc": "http://img.b2bpic.net/free-photo/couple-discussing-digital-tablet-kitchen_107420-84887.jpg", "imageAlt": "Plumber conducting an annual home inspection" },
            { "id": "whole-home-filtration", "name": "Whole-Home Water Filtration", "price": "Custom Quote", "variant": "Purity & Health", "imageSrc": "http://img.b2bpic.net/free-photo/close-up-man-engineer-designing-building-model-maquette-layout-architecture-work-architect-working-construction-structure-design-urban-development-project_482257-37228.jpg", "imageAlt": "Whole house water filtration system" },
            { "id": "smart-leak-protection", "name": "Smart Home Leak Protection", "price": "$349 Installation", "variant": "Advanced Safety", "imageSrc": "http://img.b2bpic.net/free-photo/electrical-technician-looking-focused-while-working-switchboard-with-fuses_169016-23720.jpg", "imageAlt": "Smart home leak detector device" },
            { "id": "drain-jetting", "name": "Advanced Drain Jetting", "price": "$189/Service", "variant": "Clog Removal", "imageSrc": "http://img.b2bpic.net/free-photo/male-plumber-using-wrench-tighten-water-faucet-kitchen-seen-up-close_662251-2697.jpg", "imageAlt": "Drain cleaning machine high pressure" },
            { "id": "bathroom-remodel", "name": "Luxury Bathroom Remodel", "price": "Starting at $5000", "variant": "Design & Install", "imageSrc": "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721568.jpg", "imageAlt": "Modern bathroom remodeling design" },
            { "id": "water-softener", "name": "Water Softener Installation", "price": "Custom Quote", "variant": "Hard Water Solution", "imageSrc": "http://img.b2bpic.net/free-photo/view-water-tank-storage_23-2151748378.jpg", "imageAlt": "Water softener system installation" }
          ]}
          gridVariant="bento-grid"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="metrics-trust" data-section="metrics-trust">
        <MetricCardEleven
          title="Our Commitment to Your Home"
          description="Driven by dedication and expertise, our metrics reflect the trust and satisfaction homeowners place in Dania Plumbing Services every day."
          metrics={[
            { "id": "customer-satisfaction", "value": "99%", "title": "Customer Satisfaction", "description": "Our clients consistently praise our professionalism and quality of work.", "imageSrc": "http://img.b2bpic.net/free-photo/couple-home-enjoying-life_23-2149167740.jpg", "imageAlt": "Happy homeowner giving a thumbs up" },
            { "id": "five-star-rating", "value": "5-Star", "title": "Rated Service", "description": "Consistently recognized across all major platforms for exceptional service.", "imageSrc": "http://img.b2bpic.net/free-photo/review-increase-rating-ranking-evaluation-classification-concept-businessman-draw-five-yellow-star-increase-rating-his-company_1212-723.jpg", "imageAlt": "Golden five star rating icon" },
            { "id": "fast-response", "value": "Fast", "title": "Reliable Response", "description": "We pride ourselves on swift, efficient service, especially during emergencies.", "imageSrc": "http://img.b2bpic.net/free-photo/plumber-holding-clock_1368-6309.jpg", "imageAlt": "Clock hands spinning fast urgent service" }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Valued Clients Say"
          description="Hear directly from homeowners across South Florida who've experienced the Dania Plumbing difference: prompt, professional, and perfection."
          testimonials={[
            { "id": "1", "name": "Sarah J.", "date": "March 15, 2024", "title": "Outstanding Emergency Service!", "quote": "Dania Plumbing came to our rescue late at night. The plumber was incredibly professional, fixed our burst pipe quickly, and even cleaned up afterwards. Highly recommend!", "tag": "Emergency Repair", "avatarSrc": "http://img.b2bpic.net/free-photo/modern-businesswoman_23-2148012909.jpg", "avatarAlt": "Sarah J. Avatar", "imageSrc": "http://img.b2bpic.net/free-photo/household-repair-middle-aged-man-inspecting-pipe-touching-hand-sink-stylish-modern-kitchen_259150-58265.jpg", "imageAlt": "Clean modern bathroom sink faucet" },
            { "id": "2", "name": "Michael R.", "date": "February 28, 2024", "title": "New Water Heater, Perfect Installation", "quote": "Our old water heater failed, and Dania Plumbing replaced it with a new, more efficient model the very next day. Seamless installation and great communication throughout the process.", "tag": "Water Heater", "avatarSrc": "http://img.b2bpic.net/free-photo/person-indian-origin-having-fun_23-2150285285.jpg", "avatarAlt": "Michael R. Avatar", "imageSrc": "http://img.b2bpic.net/free-photo/service-maintenance-worker-repairing_23-2149176720.jpg", "imageAlt": "Water heater running efficiently clean" },
            { "id": "3", "name": "Emily & David L.", "date": "January 20, 2024", "title": "Expert Leak Detection, Saved Our Home!", "quote": "We had a mysterious leak for weeks. Dania Plumbing used their advanced equipment to find it instantly, repairing it before it caused major damage. True professionals!", "tag": "Leak Detection", "avatarSrc": "http://img.b2bpic.net/free-photo/elegant-woman-making-frame-with-fingers_1149-1146.jpg", "avatarAlt": "Emily & David L. Avatars", "imageSrc": "http://img.b2bpic.net/free-photo/cinematic-style-mall_23-2151551284.jpg", "imageAlt": "Luxurious outdoor shower installation" },
            { "id": "4", "name": "Robert S.", "date": "December 10, 2023", "title": "Reliable & Trustworthy Plumbers", "quote": "For years, Dania Plumbing has handled all our home's plumbing needs. They are always on time, thorough, and provide honest advice. A truly trustworthy service in South Florida.", "tag": "Routine Maintenance", "avatarSrc": "http://img.b2bpic.net/free-photo/happy-mature-businessman-glasses-shaking-hands-with-female-partner-meeting-co-working-space_74855-10006.jpg", "avatarAlt": "Robert S. Avatar", "imageSrc": "http://img.b2bpic.net/free-photo/wasteless-concept-with-blossoming-bouquet_23-2149696444.jpg", "imageAlt": "Neat pipework in a residential basement" },
            { "id": "5", "name": "Jessica M.", "date": "November 5, 2023", "title": "Prompt, Professional, and Polite", "quote": "From scheduling to completion, every interaction with Dania Plumbing was excellent. The technician was polite, explained everything clearly, and left the area spotless. Fantastic!", "tag": "General Plumbing", "avatarSrc": "http://img.b2bpic.net/free-photo/female-professional-headshot-confident_1258-194628.jpg", "avatarAlt": "Jessica M. Avatar", "imageSrc": "http://img.b2bpic.net/free-photo/man-is-sitting-toilet_1204-357.jpg", "imageAlt": "Eco-friendly toilet modern design" }
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted Partners & Accreditations"
          description="Our commitment to excellence is recognized by leading industry associations and respected local partners, ensuring you receive the highest standard of service."
          names={[
            "HomeAdvisor",            "Angi",            "BBB Accredited",            "Plumbers Association of FL",            "South Florida Home Builders",            "Local Real Estate Partners",            "Property Management Groups"
          ]}
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Common Plumbing Questions"
          description="Find quick answers to your most pressing plumbing inquiries. For detailed assistance, our team is always ready to help."
          faqs={[
            { "id": "1", "title": "What are your emergency service hours?", "content": "We offer 24/7 emergency plumbing services across South Florida. Call us anytime, day or night, for immediate assistance." },
            { "id": "2", "title": "How often should I service my water heater?", "content": "We recommend annual maintenance for your water heater to ensure efficiency, extend its lifespan, and prevent unexpected breakdowns." },
            { "id": "3", "title": "What areas do you serve in South Florida?", "content": "Dania Plumbing Services proudly serves homeowners throughout Broward, Palm Beach, and Miami-Dade counties." },
            { "id": "4", "title": "Do you offer free estimates?", "content": "Yes, we provide free, no-obligation estimates for all new installations and major repairs. Contact us to schedule yours today." }
          ]}
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Connect with Us"
          title="Your South Florida Plumbing Solution Awaits"
          description="Ready for swift, professional plumbing service? Contact Dania Plumbing today for a free estimate or emergency assistance. We're here for you 24/7."
          background={{ "variant": "radial-gradient" }}
          useInvertedBackground={true}
          inputPlaceholder="Your Email Address"
          buttonText="Get Free Quote"
          termsText="By clicking Get Free Quote you're confirming that you agree with our Terms and Conditions."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="Dania Plumbing Services"
          columns={[
            { "items": [
                { "label": "Emergency Service", "href": "#services" },
                { "label": "Water Heater Repair", "href": "#services" },
                { "label": "Leak Detection", "href": "#services" },
                { "label": "Drain Cleaning", "href": "#packages" }
            ]},
            { "items": [
                { "label": "About Us", "href": "#about" },
                { "label": "Our Values", "href": "#about" },
                { "label": "Testimonials", "href": "#testimonials" },
                { "label": "Areas Served", "href": "#faq" }
            ]},
            { "items": [
                { "label": "FAQ", "href": "#faq" },
                { "label": "Contact Us", "href": "#contact" },
                { "label": "Privacy Policy", "href": "#" },
                { "label": "Terms of Service", "href": "#" }
            ]}
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
