"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import AboutMetric from '@/components/sections/about/AboutMetric';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Leaf, Star, Clock, DollarSign, Shield } from 'lucide-react';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="mediumSizeLargeTitles"
      background="fluid"
      cardStyle="solid"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Sky Tree Services"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "About", id: "/about" },
            { name: "Reviews", id: "/reviews" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "📞 Call Now",            href: "tel:+16155689651"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDualMedia
          title="24/7 Tree Removal & Emergency Services in Nashville"
          description="Fast, Safe, Professional Tree Service — Fair Pricing & 4.9-Star Rated. Your trusted local tree experts for storm damage, tree removal, trimming, and hazardous tree removal."
          tag="Professional Tree Service"
          tagIcon={Leaf}
          background={{ variant: "plain" }}
          buttons={[
            { text: "📞 Call Now: (615) 568-9651", href: "tel:+16155689651" },
            { text: "Get a Free Estimate", href: "/contact" }
          ]}
          mediaItems={[
            { 
              imageSrc: "http://img.b2bpic.net/free-photo/outdoor-shot-logger-having-rest-open-air-after-cutting-trees_176532-14596.jpg", 
              imageAlt: "Professional tree service crew at work" 
            },
            { 
              imageSrc: "http://img.b2bpic.net/free-photo/climber-looking-his-carabiners_23-2147665142.jpg", 
              imageAlt: "Safe tree removal process" 
            }
          ]}
          mediaAnimation="none"
          rating={5}
          ratingText="Rated 4.9 Stars by 70 Nashville Customers"
        />
      </div>

      <div id="trust-indicators" data-section="trust-indicators">
        <AboutMetric
          title="Why Nashville Trusts Sky Tree Services"
          metrics={[
            { icon: Star, label: "4.9 Star Rating", value: "70 Reviews" },
            { icon: Clock, label: "Open 24 Hours", value: "365 Days/Year" },
            { icon: DollarSign, label: "Free Estimates", value: "Fair Pricing" },
            { icon: Shield, label: "Licensed & Insured", value: "Professional Crew" }
          ]}
          metricsAnimation="none"
          useInvertedBackground={false}
        />
      </div>

      <div id="why-us" data-section="why-us">
        <AboutMetric
          title="Why Choose Sky Tree Services"
          metrics={[
            { icon: Star, label: "Rapid Response", value: "Quick Arrival" },
            { icon: DollarSign, label: "Fair Pricing", value: "Transparent Quotes" },
            { icon: Shield, label: "Professional Crew", value: "Skilled & Trained" },
            { icon: Clock, label: "Safety First", value: "Fully Equipped" }
          ]}
          metricsAnimation="none"
          useInvertedBackground={false}
        />
      </div>

      <div id="emergency-banner" data-section="emergency-banner">
        <ContactText
          text="Storm Damage? Fallen Tree? We're Available 24/7 for Emergency Tree Services in Nashville"
          animationType="entrance-slide"
          buttons={[
            { text: "Call Now: (615) 568-9651", href: "tel:+16155689651" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to get your free tree service estimate? Contact us today or call for immediate assistance."
          animationType="background-highlight"
          buttons={[
            { text: "📞 Call Now: (615) 568-9651", href: "tel:+16155689651" },
            { text: "Request Free Estimate", href: "/contact" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <FooterBaseReveal
        columns={[
          {
            title: "Services",            items: [
              { label: "Tree Removal", href: "/services" },
              { label: "Emergency Services", href: "/services" },
              { label: "Tree Trimming", href: "/services" },
              { label: "Storm Cleanup", href: "/services" }
            ]
          },
          {
            title: "Company",            items: [
              { label: "About Us", href: "/about" },
              { label: "Reviews", href: "/reviews" },
              { label: "Contact", href: "/contact" },
              { label: "Service Areas", href: "/about" }
            ]
          },
          {
            title: "Contact",            items: [
              { label: "📞 (615) 568-9651", href: "tel:+16155689651" },
              { label: "Open 24 Hours", href: "/" },
              { label: "3037 Runabout Dr, Nashville, TN 37217", href: "/" },
              { label: "Emergency Service Available", href: "/" }
            ]
          }
        ]}
        copyrightText="© 2025 Sky Tree Services LLC. All rights reserved. Licensed & Insured."
      />
    </ThemeProvider>
  );
}