"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import FeatureCardTwentyFour from '@/components/sections/feature/FeatureCardTwentyFour';
import FooterBase from '@/components/sections/footer/FooterBase';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import PricingCardThree from '@/components/sections/pricing/PricingCardThree';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import TextAbout from '@/components/sections/about/TextAbout';
import { Heart, Phone, ShieldCheck } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="expand-hover"
        defaultTextAnimation="entrance-slide"
        borderRadius="pill"
        contentWidth="smallMedium"
        sizing="mediumLargeSizeMediumTitles"
        background="none"
        cardStyle="glass-elevated"
        primaryButtonStyle="shadow"
        secondaryButtonStyle="layered"
        headingFontWeight="normal"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingInline
      navItems={[
        { name: "Home", id: "hero" },
        { name: "About", id: "about" },
        { name: "Services", id: "features" },
        { name: "Contact", id: "contact" },
      ]}
      brandName="Pioneer Pest Control"
      button={{
        text: "Get Quote",        href: "#contact"}}
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroSplitDualMedia
      background={{ variant: "plain" }}
      title="Your Trusted Experts in San Angelo Pest Control"
      description="Keep your home and business safe with Pioneer Pest Control. Expert solutions tailored for West Texas pests, delivered by certified professionals."
      tag="Serving San Angelo since 2010"
      mediaItems={[
        {
          imageSrc: "http://img.b2bpic.net/free-photo/front-view-man-stairs-with-copy-space_23-2148384465.jpg",          imageAlt: "Professional pest control in San Angelo"},
        {
          imageSrc: "http://img.b2bpic.net/free-photo/modern-country-houses-construction_1385-15.jpg",          imageAlt: "Residential home protection"}
      ]}
      mediaAnimation="slide-up"
      rating={5}
      ratingText="Rated 5 stars by over 500 happy San Angelo residents"
      tagIcon={ShieldCheck}
    />
  </div>

  <div id="about" data-section="about">
      <TextAbout
      useInvertedBackground={false}
      title="Protecting What Matters Most in Your Home"
      tag="Our Commitment"
      tagIcon={Heart}
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardTwentyFour
      animationType="slide-up"
      textboxLayout="split"
      useInvertedBackground={false}
      features={[
        { id: "f1", title: "General Pest Control", author: "Indoor & Outdoor", description: "Treatment for spiders, ants, roaches, and silverfish.", tags: ["Annual", "Effective"], imageSrc: "http://img.b2bpic.net/free-photo/cute-rat-city-lifestyle_23-2150841119.jpg" },
        { id: "f2", title: "Rodent & Wildlife", author: "Exclusion Services", description: "Humane removal and exclusion of mice, rats, and more.", tags: ["Preventative"], imageSrc: "http://img.b2bpic.net/free-photo/view-sanitation-worker-protective-suit-spraying-city-streets-with-disinfectant-covid19-epidemic_637285-7944.jpg" },
        { id: "f3", title: "Termite Protection", author: "Expert Inspection", description: "Proactive protection and treatment plans for your property.", tags: ["Critical"], imageSrc: "http://img.b2bpic.net/free-photo/sanitation-worker-hazmat-suit-disinfecting-public-building-coronavirus-epidemic_637285-7928.jpg" },
        { id: "f4", title: "Mosquito Barrier", author: "Yard Treatment", description: "Effective barrier sprays to keep mosquitoes away.", tags: ["Seasonal"], imageSrc: "http://img.b2bpic.net/free-photo/man-is-using-thermal-fog-machine-protect-mosquito-spreading_1150-6183.jpg" },
        { id: "f5", title: "Inspection Services", author: "Detailed Assessment", description: "Thorough property inspections to detect early signs.", tags: ["Proactive"], imageSrc: "http://img.b2bpic.net/free-photo/interdiction-barrier-with-safety-tape_58702-16482.jpg" },
      ]}
      title="Our Specialized Services"
      description="Comprehensive pest management solutions designed to eliminate infestations and prevent future issues."
    />
  </div>

  <div id="pricing" data-section="pricing">
      <PricingCardThree
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      plans={[
        { id: "basic", price: "$99", name: "One-Time Service", features: ["Full interior check", "Exterior barrier spray", "30-day warranty"], buttons: [{ text: "Book Now", href: "#contact" }] },
        { id: "pro", price: "$59/mo", name: "Quarterly Defense", features: ["Year-round protection", "Unlimited free retreats", "Priority support"], buttons: [{ text: "Select Plan", href: "#contact" }] },
      ]}
      title="Plans That Fit Your Needs"
      description="Transparent pricing for all our standard service plans."
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardSeven
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      metrics={[
        { id: "m1", value: "15+", title: "Years Experience", items: ["Serving West Texas since 2010"] },
        { id: "m2", value: "5k+", title: "Homes Protected", items: ["Reliable local service"] },
        { id: "m3", value: "99%", title: "Customer Satisfaction", items: ["Proven effective results"] },
      ]}
      title="Why San Angelo Chooses Pioneer"
      description="Our numbers speak for themselves in our local community."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardTen
      textboxLayout="default"
      useInvertedBackground={false}
      testimonials={[
        { id: "t1", title: "Fast and Effective", quote: "They got rid of my ant problem in one day. Fantastic team!", name: "Sarah Miller", role: "Local Resident", imageSrc: "http://img.b2bpic.net/free-photo/portrait-man-drinking-coffee-construction-side_329181-3771.jpg" },
        { id: "t2", title: "Professionalism", quote: "I appreciate the transparency and thoroughness of their technicians.", name: "John Davis", role: "Property Owner", imageSrc: "http://img.b2bpic.net/free-photo/man-winking-thumb-up_1187-3210.jpg" },
        { id: "t3", title: "Very Responsive", quote: "Called them for a wasp emergency, they were here in hours.", name: "Emily Watson", role: "Homeowner", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-adult-woman-works-her-tablet-sits-with-notebook-kitchen-floor-home-studie_1258-183235.jpg" },
        { id: "t4", title: "Highly Recommend", quote: "Consistent, reliable, and professional service every single time.", name: "David Smith", role: "Business Owner", imageSrc: "http://img.b2bpic.net/free-photo/man-with-phone-drinking-wine_23-2147770783.jpg" },
        { id: "t5", title: "Great Peace of Mind", quote: "Their quarterly plan gives us complete peace of mind.", name: "Lisa Johnson", role: "Homeowner", imageSrc: "http://img.b2bpic.net/free-photo/cute-brown-eyed-girl-with-smile-poses-brick-building-woman-cap-white-shirt-holding-smartphone_197531-15083.jpg" },
      ]}
      title="Hear From Our Community"
      description="Trusted by hundreds of families across the San Angelo area."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqDouble
      textboxLayout="default"
      useInvertedBackground={false}
      faqs={[
        { id: "q1", title: "Are your sprays safe for pets?", content: "Yes, we prioritize eco-friendly solutions and safe application methods for homes with children and pets." },
        { id: "q2", title: "How often should I get service?", content: "We recommend quarterly maintenance to ensure your property remains a protected zone." },
        { id: "q3", title: "What areas do you serve?", content: "We proudly serve all of San Angelo, Texas, and immediate surrounding areas." },
      ]}
      title="Common Pest Questions"
      description="Have questions? We have answers to help you stay pest-free."
      faqsAnimation="slide-up"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactCenter
      useInvertedBackground={false}
      background={{ variant: "plain" }}
      tag="Contact Us"
      title="Ready for a Pest-Free Home?"
      description="Contact us today for a free inspection in San Angelo."
      tagIcon={Phone}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBase
      columns={[
        { title: "Company", items: [{ label: "About Us", href: "#about" }, { label: "Services", href: "#features" }] },
        { title: "Support", items: [{ label: "FAQ", href: "#faq" }, { label: "Contact", href: "#contact" }] },
      ]}
      logoText="Pioneer Pest Control"
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
