"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroLogo from '@/components/sections/hero/HeroLogo';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import TextAbout from '@/components/sections/about/TextAbout';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Phone } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSmallSizeMediumTitles"
      background="circleGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="TN Lawn Care Pros"
          navItems={[
            { name: "Services", id: "services" },
            { name: "Why Us", id: "why-us" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Call Now",            href: "tel:(615)992-0482"
          }}
        />
      </div>
      
      <div id="hero" data-section="hero">
        <HeroLogo
          logoText="TN Lawn Care Pros"
          description="Reliable, affordable lawn care done right. 4.8-star rated service in Tennessee."
          buttons={[
            { text: "Call Now", href: "tel:(615)992-0482" },
            { text: "Get Free Quote", href: "#contact" }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/attractive-gardener-posing-while-trimming-conifer-bush-by-electric-hedge-clippers-sunny-day_7502-10442.jpg"
          imageAlt="Professional lawn mowing service"
          showDimOverlay={true}
        />
      </div>
      
      <div id="trust-signals" data-section="trust-signals">
        <MetricCardSeven
          title="Why Homeowners Trust Us"
          description="Join hundreds of satisfied customers across Tennessee"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          metrics={[
            {
              id: "1",              value: "4.8★",              title: "Customer Rating",              items: ["21 verified reviews", "Consistently punctual", "Attention to detail"]
            },
            {
              id: "2",              value: "100%",              title: "Satisfaction Guaranteed",              items: ["No upfront costs", "Free estimates", "Fair pricing"]
            },
            {
              id: "3",              value: "24/7",              title: "Easy Scheduling",              items: ["Simple booking process", "Flexible appointments", "Responsive service"]
            }
          ]}
        />
      </div>
      
      <div id="services" data-section="services">
        <FeatureCardTwentyOne
          tag="Our Services"
          title="Comprehensive Lawn Care Solutions"
          description="From basic mowing to complete landscaping projects, we handle all your yard care needs with professional expertise and affordable pricing."
          imageSrc="http://img.b2bpic.net/free-photo/man-cutting-grass-with-lawn-mover-back-yard-male-shirt_1157-41448.jpg"
          imageAlt="Professional lawn care services"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
          mediaPosition="left"
          accordionItems={[
            {
              id: "1",              title: "Lawn Mowing",              content: "Professional grass cutting with attention to detail. We cut your lawn exactly as you want it—at the height you prefer, on your schedule. Edges trimmed clean and crisp."
            },
            {
              id: "2",              title: "Edging & Trimming",              content: "Clean, precise edging along walkways and gardens. We trim hedges, shrubs, and overgrown areas to enhance your yard's appearance and curb appeal."
            },
            {
              id: "3",              title: "Landscaping",              content: "Design and implement beautiful yard transformations. Whether it's mulching, planting, or complete landscape redesign, we bring your vision to life."
            },
            {
              id: "4",              title: "Seasonal Cleanup",              content: "Spring and fall cleanups to remove debris, leaves, and dead growth. Keep your yard looking fresh and healthy year-round with our seasonal services."
            },
            {
              id: "5",              title: "Ongoing Maintenance Plans",              content: "Subscribe to our recurring lawn care plans for consistent, hassle-free yard maintenance. Set it and forget it—we handle the rest."
            }
          ]}
          buttons={[
            { text: "Get Your Free Estimate", href: "#contact" }
          ]}
        />
      </div>
      
      <div id="why-us" data-section="why-us">
        <TextAbout
          tag="Why Choose Us"
          title="Punctual. Reliable. Affordable. Locally Owned & Operated."
          useInvertedBackground={false}
          buttons={[
            { text: "Schedule Service Today", href: "tel:(615)992-0482" }
          ]}
        />
      </div>
      
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="What Our Customers Say"
          description="Real feedback from homeowners we've served across Tennessee"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          gridVariant="uniform-all-items-equal"
          testimonials={[
            {
              id: "1",              name: "Sarah Martinez",              role: "Homeowner",              company: "Nashville",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/attractive-blonde-girl-tulle-skirt-having-fun-stairs-she-is-smiling-down_197531-617.jpg?_wi=1",              imageAlt: "Sarah Martinez"
            },
            {
              id: "2",              name: "Michael Johnson",              role: "Property Manager",              company: "Memphis",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/front-view-cute-girl-looking-away_23-2148436134.jpg?_wi=1",              imageAlt: "Michael Johnson"
            },
            {
              id: "3",              name: "Jennifer Davis",              role: "Homeowner",              company: "Knoxville",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/attractive-blonde-girl-tulle-skirt-having-fun-stairs-she-is-smiling-down_197531-617.jpg?_wi=2",              imageAlt: "Jennifer Davis"
            },
            {
              id: "4",              name: "Robert Thompson",              role: "Busy Professional",              company: "Nashville",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/front-view-cute-girl-looking-away_23-2148436134.jpg?_wi=2",              imageAlt: "Robert Thompson"
            },
            {
              id: "5",              name: "Patricia Wilson",              role: "Elderly Homeowner",              company: "Clarksville",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/attractive-blonde-girl-tulle-skirt-having-fun-stairs-she-is-smiling-down_197531-617.jpg?_wi=3",              imageAlt: "Patricia Wilson"
            },
            {
              id: "6",              name: "David Anderson",              role: "Homeowner",              company: "Franklin",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-middle-aged-attractive-woman-showing-thumb-up-outdoors_1262-12526.jpg",              imageAlt: "David Anderson"
            }
          ]}
        />
      </div>
      
      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Ready to Get Started"
          tagIcon={Phone}
          title="Get Your Free Lawn Care Estimate Today"
          description="Call us now or fill out a quick form. No obligation, no pressure—just honest, upfront pricing for quality lawn care service."
          buttons={[
            { text: "Call (615) 992-0482", href: "tel:(615)992-0482" },
            { text: "Request Quote", href: "#" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>
      
      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Company",              items: [
                { label: "About Us", href: "#why-us" },
                { label: "Services", href: "#services" },
                { label: "Reviews", href: "#testimonials" }
              ]
            },
            {
              title: "Contact",              items: [
                { label: "Call Now", href: "tel:(615)992-0482" },
                { label: "Get Quote", href: "#contact" },
                { label: "Hours: Open - Closes 8:30 PM", href: "#" }
              ]
            },
            {
              title: "Service Area",              items: [
                { label: "Nashville", href: "#" },
                { label: "Memphis", href: "#" },
                { label: "Knoxville", href: "#" }
              ]
            }
          ]}
          bottomLeftText="© 2025 TN Lawn Care Pros. All rights reserved."
          bottomRightText="Serving Tennessee with pride"
        />
      </div>
    </ThemeProvider>
  );
}