"use client"

import { CheckCircle, Star, Shield, TreePine, Scissors, AlertCircle, Leaf, ThumbsUp, Clock, Award, Phone, Mail } from "lucide-react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import FeatureCardTwentyFive from '@/components/sections/feature/FeatureCardTwentyFive';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TeamCardTwo from '@/components/sections/team/TeamCardTwo';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="mediumSizeLargeTitles"
      background="none"
      cardStyle="outline"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Catamount"
          navItems={[
            { name: "Services", id: "services" },
            { name: "Reviews", id: "testimonials" },
            { name: "About", id: "team" },
            { name: "FAQ", id: "faq" }
          ]}
          button={{
            text: "Call Now",            href: "tel:(802)-473-2606"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Expert Tree Service in Williamstown, VT"
          description="Professional tree removal, trimming, and maintenance. Available 24/7 for emergency services. Trusted by 78+ satisfied customers with a 4.9★ rating."
          background={{ variant: "plain" }}
          kpis={[
            { value: "4.9★", label: "Customer Rating" },
            { value: "78+", label: "Verified Reviews" },
            { value: "24/7", label: "Emergency Service" }
          ]}
          enableKpiAnimation={true}
          tag="Professional Arborists"
          tagIcon={CheckCircle}
          buttons={[
            { text: "Call (802) 473-2606", href: "tel:(802)-473-2606" },
            { text: "Request Quote", href: "#contact" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/unrecognizable-maintenance-worker-taking-care-court-autumn-low-angle-view-male-worker_7502-10255.jpg"
          imageAlt="Professional tree removal service"
          imagePosition="right"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwentyFive
          title="Our Tree Services"
          description="Comprehensive tree care solutions for residential and commercial properties throughout Williamstown and surrounding areas"
          tag="Professional Services"
          tagIcon={Shield}
          features={[
            {
              title: "Tree Removal",              description: "Safe and efficient removal of dead, diseased, or hazardous trees with complete debris cleanup",              icon: TreePine,
              mediaItems: [
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/unrecognizable-maintenance-worker-taking-care-court-autumn-low-angle-view-male-worker_7502-10255.jpg",                  imageAlt: "Tree removal in progress"
                },
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/unrecognizable-maintenance-worker-taking-care-court-autumn-low-angle-view-male-worker_7502-10255.jpg",                  imageAlt: "Professional removal team"
                }
              ]
            },
            {
              title: "Tree Trimming & Pruning",              description: "Expert trimming to improve tree health, appearance, and safety. Maintains proper growth patterns",              icon: Scissors,
              mediaItems: [
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/garden-tools-leaning-pine-tree-garden-garden-space-cleaning-outdoor-park-copy-space-with-garden-tools-necessary-ongoing-maintenance-park-public-space_166373-8646.jpg",                  imageAlt: "Tree trimming service"
                },
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/unrecognizable-maintenance-worker-taking-care-court-autumn-low-angle-view-male-worker_7502-10255.jpg",                  imageAlt: "Trimmed tree results"
                }
              ]
            },
            {
              title: "Emergency Tree Services",              description: "24/7 emergency response for storm damage, fallen trees, and hazardous situations. Rapid response team",              icon: AlertCircle,
              mediaItems: [
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/closeup-lumberjack-with-chainsaw-forest_181624-59761.jpg",                  imageAlt: "Emergency tree service"
                },
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/unrecognizable-maintenance-worker-taking-care-court-autumn-low-angle-view-male-worker_7502-10255.jpg",                  imageAlt: "Storm damage removal"
                }
              ]
            },
            {
              title: "Tree Maintenance",              description: "Regular maintenance programs to keep your trees healthy, strong, and beautiful year-round",              icon: Leaf,
              mediaItems: [
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/unrecognizable-maintenance-worker-taking-care-court-autumn-low-angle-view-male-worker_7502-10255.jpg",                  imageAlt: "Tree maintenance service"
                },
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/garden-tools-leaning-pine-tree-garden-garden-space-cleaning-outdoor-park-copy-space-with-garden-tools-necessary-ongoing-maintenance-park-public-space_166373-8646.jpg",                  imageAlt: "Healthy maintained trees"
                }
              ]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Get Free Quote", href: "#contact" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          title="What Our Customers Say"
          description="Real reviews from satisfied homeowners and businesses in Williamstown, VT who trust Catamount Tree Service"
          tag="4.9★ Rated"
          tagIcon={Star}
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              role: "Homeowner, Williamstown",              testimonial: "Incredible service! They removed a dangerous oak tree in my yard safely and professionally. Clean up was thorough. Highly recommend!",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              name: "Michael Chen",              role: "Property Manager",              testimonial: "Fast response time for our emergency tree situation. Professional crew, fair pricing, and excellent communication throughout.",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-middle-aged-attractive-woman-showing-thumb-up-outdoors_1262-12526.jpg",              imageAlt: "Michael Chen"
            },
            {
              id: "3",              name: "Emily Rodriguez",              role: "Business Owner, VT",              testimonial: "Best tree service in the area. They trimmed our large maple trees beautifully. Will definitely use them again for maintenance.",              imageSrc: "https://img.b2bpic.net/free-photo/cheerful-bearded-man-busines-clothes-showing-thumb-up-looking-camera-gray_171337-11351.jpg",              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",              name: "David Kim",              role: "Local Contractor",              testimonial: "Professional, reliable, and knowledgeable. They handled a complex removal on my property with expertise. Highly trustworthy team.",              imageSrc: "https://img.b2bpic.net/free-photo/hispanic-female-executive-gesturing-thumbs-up-against-isolated-background_662251-283.jpg",              imageAlt: "David Kim"
            },
            {
              id: "5",              name: "Jessica Brown",              role: "Resident, Williamstown",              testimonial: "Called for emergency removal after a storm. They came out immediately, assessed the damage, and got the job done safely and quickly.",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-african-american-man-posing-library_74855-1619.jpg",              imageAlt: "Jessica Brown"
            },
            {
              id: "6",              name: "Robert Walsh",              role: "Property Owner",              testimonial: "Outstanding work on our property. Fair pricing, professional crew, and attention to detail. Excellent customer service from start to finish.",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-young-professional-businesswoman-looking-upper-left-corner-with-hopeful-face-expression-standing-white_176420-41313.jpg",              imageAlt: "Robert Walsh"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          carouselMode="buttons"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Why Choose Catamount"
          description="Trusted by hundreds of satisfied customers throughout Williamstown and Vermont. Our proven track record speaks for itself."
          metrics={[
            {
              id: "1",              value: "78",              title: "Reviews",              description: "Verified customer feedback on Google and local platforms",              icon: ThumbsUp
            },
            {
              id: "2",              value: "4.9",              title: "Rating",              description: "Consistently excellent service quality and customer satisfaction",              icon: Star
            },
            {
              id: "3",              value: "24/7",              title: "Available",              description: "Emergency response team ready for urgent tree service needs",              icon: Clock
            },
            {
              id: "4",              value: "100%",              title: "Satisfied",              description: "Commitment to professional service and customer care",              icon: CheckCircle
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="scale-rotate"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="team" data-section="team">
        <TeamCardTwo
          title="Meet Our Team"
          description="Expert arborists and tree care professionals dedicated to serving Williamstown and the surrounding communities"
          tag="Licensed & Insured"
          tagIcon={Award}
          members={[
            {
              id: "1",              name: "James Patterson",              role: "Owner & Lead Arborist",              description: "20+ years of experience in professional tree care. Certified arborist with expertise in tree removal and emergency services.",              imageSrc: "https://img.b2bpic.net/free-photo/outdoor-shot-logger-having-rest-open-air-after-cutting-trees_176532-14596.jpg",              imageAlt: "James Patterson",              socialLinks: [
                { icon: Phone, url: "tel:(802)-473-2606" },
                { icon: Mail, url: "mailto:info@catamounttrees.com" }
              ]
            },
            {
              id: "2",              name: "Mike Thompson",              role: "Lead Climber",              description: "Specialized in high-risk removals and complex tree work. Dedicated to safety and precision in every job.",              imageSrc: "https://img.b2bpic.net/free-photo/outdoor-shot-logger-having-rest-open-air-after-cutting-trees_176532-14596.jpg",              imageAlt: "Mike Thompson",              socialLinks: [
                { icon: Phone, url: "tel:(802)-473-2606" }
              ]
            },
            {
              id: "3",              name: "Sarah Johnson",              role: "Certified Trimmer",              description: "Expert in tree health and aesthetic pruning. Passionate about maintaining beautiful healthy trees throughout the season.",              imageSrc: "https://img.b2bpic.net/free-photo/outdoor-shot-logger-having-rest-open-air-after-cutting-trees_176532-14596.jpg",              imageAlt: "Sarah Johnson",              socialLinks: [
                { icon: Phone, url: "tel:(802)-473-2606" }
              ]
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Frequently Asked Questions"
          sideDescription="Common questions about our tree services, pricing, and availability in Williamstown, VT"
          textPosition="left"
          useInvertedBackground="noInvert"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "Do you offer emergency tree removal?",              content: "Yes! We provide 24/7 emergency tree service for storm damage, fallen trees, and hazardous situations. Call us immediately at (802) 473-2606 for urgent assistance."
            },
            {
              id: "2",              title: "What areas do you serve?",              content: "We serve Williamstown, VT and surrounding communities throughout the region. Our team responds quickly to emergencies and provides regular maintenance services throughout the area."
            },
            {
              id: "3",              title: "How much does tree removal cost?",              content: "Pricing depends on tree size, location, complexity, and accessibility. We provide free estimates for all jobs. Contact us at (802) 473-2606 or submit a quote request for accurate pricing."
            },
            {
              id: "4",              title: "Are you licensed and insured?",              content: "Yes, Catamount Tree Service is fully licensed and insured. We maintain all necessary certifications and liability coverage to protect you and your property."
            },
            {
              id: "5",              title: "Do you handle hazardous tree removal?",              content: "Absolutely. We specialize in removing dead, diseased, and hazardous trees safely. Our certified arborists assess risk and use professional techniques for safe removal."
            },
            {
              id: "6",              title: "How quickly can you respond?",              content: "We respond to emergency calls as quickly as possible, often same-day for urgent situations. For regular appointments, we offer flexible scheduling throughout the week."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Get Your Free Tree Service Quote"
          description="Contact Catamount Tree Service today for professional assessment of your tree care needs. Call anytime or fill out the form for fast response."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "phone", type: "tel", placeholder: "(802) 473-2606", required: true },
            { name: "email", type: "email", placeholder: "Your Email", required: true },
            { name: "service", type: "text", placeholder: "Service Needed (Removal, Trimming, Emergency, etc.)", required: true }
          ]}
          textarea={{
            name: "message",            placeholder: "Describe your tree situation and any concerns...",            rows: 4,
            required: false
          }}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/unrecognizable-maintenance-worker-taking-care-court-autumn-low-angle-view-male-worker_7502-10255.jpg"
          imageAlt="Contact Catamount Tree Service"
          mediaPosition="right"
          buttonText="Request Quote"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Catamount Tree Service"
          columns={[
            {
              title: "Quick Links",              items: [
                { label: "Services", href: "#services" },
                { label: "Reviews", href: "#testimonials" },
                { label: "Team", href: "#team" },
                { label: "FAQ", href: "#faq" }
              ]
            },
            {
              title: "Contact",              items: [
                { label: "Call: (802) 473-2606", href: "tel:(802)-473-2606" },
                { label: "Email: info@catamounttrees.com", href: "mailto:info@catamounttrees.com" },
                { label: "Address: 1774 Baptist St, Williamstown, VT 05679", href: "https://maps.google.com/?q=1774+Baptist+St+Williamstown+VT+05679" },
                { label: "24/7 Emergency Service", href: "tel:(802)-473-2606" }
              ]
            },
            {
              title: "Service Areas",              items: [
                { label: "Williamstown, VT", href: "#" },
                { label: "Emergency Response", href: "#" },
                { label: "Free Estimates", href: "#contact" },
                { label: "Licensed & Insured", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 Catamount Tree Service. All rights reserved. Licensed & Insured."
        />
      </div>
    </ThemeProvider>
  );
}