"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroOverlayTestimonial from '@/components/sections/hero/HeroOverlayTestimonial';
import AboutMetric from '@/components/sections/about/AboutMetric';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Star, CalendarDays, Users, Award, Clock, ThermometerSun, CloudFog, Wind, Leaf, Quote } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="smallMedium"
      sizing="largeSmallSizeLargeTitles"
      background="none"
      cardStyle="inset"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Minneapolis Heating & Cooling"
          navItems={[
            { name: "Home", id: "/" },
            { name: "About", id: "#about" },
            { name: "Services", id: "#services" },
            { name: "Testimonials", id: "#testimonials" },
            { name: "FAQ", id: "#faq" }
          ]}
          button={{
            text: "Get a Free Quote",            href: "#contact"
          }}
        />
      </div>
      <div id="hero" data-section="hero">
        <HeroOverlayTestimonial
          title="Your Home Comfort, Our Priority"
          description="Expert heating and cooling services for Minneapolis homes and businesses. Enjoy perfect indoor climate year-round with our trusted HVAC solutions."
          testimonials={[
            { id: "1", name: "Koen Roderick", handle: "@koen_r", testimonial: "After years of neglect, I finally had my A/C vents cleaned, and the difference is astounding. The team arrived promptly, taking a little under an hour to complete the job. The air feels fresher, and I can already tell it's helping with my overall indoor air quality.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/close-up-young-adult-getting-warm-by-heating_23-2149134349.jpg?_wi=1" },
            { id: "2", name: "Ernest Mariana", handle: "@ernest_m", testimonial: "After a smooth installation process, the air quality in my home has noticeably improved. The team was punctual and professional, completing the job efficiently. Highly recommend for anyone needing ductwork done!", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-holding-tablet_23-2148781056.jpg?_wi=1" }
          ]}
          testimonialRotationInterval={7000}
          tag="Rated 4.9 Stars on Google"
          tagIcon={Star}
          buttons={[
            { text: "Schedule Service", href: "#contact" },
            { text: "Explore Services", href: "#services" }
          ]}
          avatars={[
            { src: "http://img.b2bpic.net/free-photo/woman-smiling_1187-3196.jpg", alt: "Happy customer John" },
            { src: "http://img.b2bpic.net/free-photo/woman-with-coffee-cup-showing-thumb-up_23-2148055893.jpg", alt: "Satisfied client Sarah" },
            { src: "http://img.b2bpic.net/free-photo/colleagues-giving-high-five_53876-30758.jpg", alt: "Pleased client Michael" },
            { src: "http://img.b2bpic.net/free-photo/smiley-woman-looking-away-while-holding-book_23-2148396296.jpg", alt: "Delighted customer Emily" }
          ]}
          avatarText="Join 200+ Happy Customers"
          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="HVAC technician servicing a furnace"
          showBlur={true}
          textPosition="bottom"
          useInvertedBackground={false}
        />
      </div>
      <div id="about" data-section="about">
        <AboutMetric
          title="Minneapolis Heating & Cooling: Your Trusted HVAC Partner"
          metrics={[
            { icon: CalendarDays, label: "Years in Business", value: "20+" },
            { icon: Users, label: "Satisfied Customers", value: "500+" },
            { icon: Award, label: "Certified Technicians", value: "15+" },
            { icon: Clock, label: "Avg. Response Time", value: "1 Hour" }
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={true}
        />
      </div>
      <div id="services" data-section="services">
        <FeatureBento
          title="Comprehensive HVAC Solutions for Every Need"
          description="From routine maintenance to emergency repairs, we cover all your heating and cooling needs with professionalism and expertise."
          features={[
            { title: "Heating Repair & Installation", description: "Ensure your home stays warm through the Minnesota winters with our expert furnace repair and new heating system installations.", bentoComponent: "reveal-icon", icon: ThermometerSun },
            { title: "AC Service & Installation", description: "Beat the summer heat with our reliable air conditioning repair, maintenance, and energy-efficient AC unit installations.", bentoComponent: "reveal-icon", icon: CloudFog },
            { title: "Duct Cleaning & Sealing", description: "Improve air quality and system efficiency with professional duct cleaning and sealing services, removing allergens and dust.", bentoComponent: "reveal-icon", icon: Wind },
            { title: "Indoor Air Quality Solutions", description: "Breathe easier with our advanced indoor air quality solutions, including purifiers, humidifiers, and ventilation systems.", bentoComponent: "reveal-icon", icon: Leaf }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>
      <div id="metrics" data-section="metrics">
        <MetricCardSeven
          title="Our Impact: Numbers Speak for Themselves"
          description="Proudly serving the Twin Cities with excellence and dedication, ensuring comfort and peace of mind."
          metrics={[
            { id: "m1", value: "1000+", title: "Projects Completed", items: ["New Installations", "Major Repairs", "Seasonal Maintenance"] },
            { id: "m2", value: "98%", title: "Customer Satisfaction", items: ["On-time Service", "Quality Workmanship", "Friendly Technicians"] },
            { id: "m3", value: "24/7", title: "Emergency Service", items: ["Rapid Response", "Nights & Weekends", "Holiday Coverage"] }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Trusted by Your Neighbors"
          description="Hear what our valued customers in Minneapolis are saying about our heating and cooling services."
          testimonials={[
            { id: "1", name: "Koen Roderick", handle: "Minneapolis Resident", testimonial: "After years of neglect, I finally had my A/C vents cleaned, and the difference is astounding. The team arrived promptly, taking a little under an hour to complete the job. The air feels fresher, and I can already tell it's helping with my overall indoor air quality.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-young-adult-getting-warm-by-heating_23-2149134349.jpg?_wi=2", icon: Quote },
            { id: "2", name: "Ernest Mariana", handle: "Local Homeowner", testimonial: "After a smooth installation process, the air quality in my home has noticeably improved. The team was punctual and professional, completing the job efficiently. Highly recommend for anyone needing ductwork done!", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-holding-tablet_23-2148781056.jpg?_wi=2", icon: Quote },
            { id: "3", name: "Sarah J.", handle: "North Loop Business", testimonial: "Appreciated how carefully the technician inspected the HVAC system. He identified the issue quickly and resolved it efficiently. Everything is working smoothly now, and our business is comfortable once again.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-woman-holding-remote_23-2149266795.jpg", icon: Quote },
            { id: "4", name: "David K.", handle: "Uptown Homeowner", testimonial: "They respected our home and delivered excellent results. The furnace repair was done swiftly, and the technician was incredibly knowledgeable. Highly recommended for any HVAC needs!", imageSrc: "http://img.b2bpic.net/free-photo/blond-businessman-happy-expression_1194-3846.jpg", icon: Quote },
            { id: "5", name: "Emily R.", handle: "Downtown Resident", testimonial: "The service was completed in a timely manner. Our AC unit started blowing cold air almost immediately after the repair. Professional, efficient, and great communication throughout the process.", imageSrc: "http://img.b2bpic.net/free-photo/happy-young-girl-eating-cereals-with-fruits-from-bowl-sitting-couch-home_231208-640.jpg", icon: Quote }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>
      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Find quick answers to common questions about our HVAC services, pricing, and scheduling."
          faqs={[
            { id: "1", title: "How often should I have my HVAC system serviced?", content: "We recommend professional HVAC maintenance at least once a year, ideally in the spring for your AC and in the fall for your furnace, to ensure optimal performance and longevity." },
            { id: "2", title: "What areas do you serve?", content: "Minneapolis Heating & Cooling proudly serves Minneapolis and the surrounding Twin Cities metropolitan area. Contact us to confirm service availability in your specific location." },
            { id: "3", title: "Do you offer emergency HVAC services?", content: "Yes, we provide 24/7 emergency heating and cooling services. If you have an urgent issue, please call our emergency line at (612) 294-3727 for immediate assistance." },
            { id: "4", title: "What brands of HVAC equipment do you work with?", content: "Our technicians are experienced with all major HVAC brands and models. Whether you need service for an existing unit or installation of a new system, we can help." },
            { id: "5", title: "How can I improve my home's indoor air quality?", content: "Improving indoor air quality can involve duct cleaning, installing air purifiers or humidifiers, and regular filter changes. We offer comprehensive solutions to help you breathe cleaner, healthier air." }
          ]}
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>
      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Ready for Comfort?"
          title="Get Your Free HVAC Estimate Today"
          description="Contact Minneapolis Heating & Cooling for reliable and efficient heating and cooling solutions tailored to your needs. We're here to help!"
          buttons={[
            { text: "Call Now", href: "tel:+16122943727" },
            { text: "Request Service", href: "#" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>
      <div id="footer" data-section="footer">
        <FooterBase
          columns={[
            { title: "Services", items: [{ label: "Heating Repair", href: "#services" }, { label: "AC Installation", href: "#services" }, { label: "Duct Cleaning", href: "#services" }, { label: "Air Quality", href: "#services" }] },
            { title: "Company", items: [{ label: "About Us", href: "#about" }, { label: "Testimonials", href: "#testimonials" }, { label: "FAQ", href: "#faq" }] },
            { title: "Contact", items: [{ label: "Get a Quote", href: "#contact" }, { label: "(612) 294-3727", href: "tel:+16122943727" }, { label: "528 Nicollet Mall", href: "https://www.google.com/maps/search/528+Nicollet+Mall,+Minneapolis,+MN+55402" }] }
          ]}
          logoText="Minneapolis Heating & Cooling"
          copyrightText="© 2024 Minneapolis Heating & Cooling. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}
