"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroBillboardDashboard from "@/components/sections/hero/HeroBillboardDashboard";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import FeatureCardTwentyOne from "@/components/sections/feature/FeatureCardTwentyOne";
import TestimonialAboutCard from "@/components/sections/about/TestimonialAboutCard";
import TestimonialCardSix from "@/components/sections/testimonial/TestimonialCardSix";
import ContactText from "@/components/sections/contact/ContactText";
import FooterCard from "@/components/sections/footer/FooterCard";
import Link from "next/link";
import { Star, Hammer, Building2, Handshake, Phone, MapPin, Mail, CheckCircle, Home, Building2 as Building2Icon, Wrench, Quote, CircleDollarSign, ArrowLeftRight, Send, House, MessageSquareText, Settings } from "lucide-react";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="smallMedium"
      sizing="large"
      background="circleGradient"
      cardStyle="layered-gradient"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="A & P Concrete"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "About", id: "/about" },
            { name: "Reviews", id: "/reviews" },
            { name: "Contact", id: "/contact" },
          ]}
          button={{ text: "📞 Call (501) 762-3999", href: "tel:+15017623999" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardDashboard
          title="Hot Springs' Trusted Concrete Contractor"
          description="Driveways, Slabs, Buildings & Dirt Work — Free Estimates. Licensed, Insured & Locally Owned."
          tag="4.7★ Rated • 53+ Reviews"
          tagIcon={Star}
          buttons={[
            { text: "Call Now (501) 762-3999", href: "tel:+15017623999" },
            { text: "Get Free Estimate", href: "/contact" },
          ]}
          background={{ variant: "plain" }}
          dashboard={{
            title: "Why Choose A & P Concrete",            logoIcon: CheckCircle,
            imageSrc: "http://img.b2bpic.net/free-photo/long-shot-man-with-protective-gear_23-2148269794.jpg?_wi=1",            sidebarItems: [
              { icon: Phone },
              { icon: MapPin },
              { icon: Star },
            ],
            buttons: [
              { text: "Request Estimate", href: "/contact" },
              { text: "View Recent Work", href: "#projects" },
            ],
            stats: [
              {
                title: "Years Experience",                values: [15, 18, 20],
                description: "Serving Hot Springs & Garland County"},
              {
                title: "Projects Completed",                values: [500, 600, 750],
                description: "Residential & Commercial"},
              {
                title: "Client Satisfaction",                values: [95, 97, 98],
                valuePrefix: "",                valueSuffix: "%",                description: "Highly Rated & Trusted"},
            ],
            chartTitle: "Service Areas",            chartData: [
              { value: 85 },
              { value: 90 },
              { value: 88 },
              { value: 92 },
              { value: 87 },
            ],
            listTitle: "Latest Projects",            listItems: [
              { icon: Home, title: "Residential Driveway", status: "Completed" },
              { icon: Building2Icon, title: "Metal Building Pad", status: "In Progress" },
              { icon: Wrench, title: "Dirt Work & Prep", status: "Completed" },
            ],
            searchPlaceholder: "Ready to start your project?"}}
        />
      </div>

      <div id="trust-bar" data-section="trust-bar">
        <SocialProofOne
          title="Why Hot Springs Trusts A & P Concrete"
          description="Licensed • Insured • Free Estimates • Honest Pricing • Family Owned"
          textboxLayout="default"
          useInvertedBackground={false}
          names={["Licensed & Insured", "Free Estimates", "Local Owned", "Fast Turnaround", "Fair Pricing"]}
          showCard={true}
          speed={40}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwentyOne
          title="Our Services"
          description="Complete concrete solutions for residential and commercial needs. From driveways to metal building pads, we deliver quality every time."
          tag="Services"
          tagIcon={Hammer}
          accordionItems={[
            {
              id: "driveways",              title: "Driveway Replacement",              content: "Professional driveway installation and replacement. We pour lasting, beautiful driveways that handle Arkansas weather. Free estimates on all projects."},
            {
              id: "slabs",              title: "Concrete Slabs",              content: "Residential and commercial concrete slabs for patios, garages, and foundations. Expert finishing for durability and curb appeal."},
            {
              id: "metal-buildings",              title: "Metal Building Pads",              content: "Precision-poured foundation pads for metal buildings. We ensure perfect sizing and durability for your project."},
            {
              id: "dirt-work",              title: "Dirt Work & Site Prep",              content: "Full site preparation services including excavation, grading, and drainage solutions. We prepare your land right the first time."},
            {
              id: "asphalt",              title: "Asphalt Removal & Replacement",              content: "Complete asphalt removal and concrete replacement. We handle the entire process professionally and efficiently."},
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/long-shot-man-with-protective-gear_23-2148269794.jpg?_wi=2"
          imageAlt="Professional concrete driveway installation"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
          mediaPosition="right"
        />
      </div>

      <div id="why-choose" data-section="why-choose">
        <TestimonialAboutCard
          tag="About A & P"
          tagIcon={Building2}
          title="Reliable. Honest. Local."
          description="Mike & the A & P Team"
          subdescription="Serving Hot Springs Since 2005"
          icon={Handshake}
          imageSrc="http://img.b2bpic.net/free-photo/inspectors-interacting_1098-14279.jpg?_wi=1"
          imageAlt="A & P Concrete team working on site"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="reviews" data-section="reviews">
        <TestimonialCardSix
          title="What Our Clients Say"
          description="See why 53+ homeowners and property managers in Hot Springs trust A & P Concrete for their projects."
          testimonials={[
            {
              id: "1",              name: "Sarah Johnson",              handle: "Hot Springs Homeowner",              testimonial: "A & P replaced our old driveway and it looks amazing. Fast, professional, and they communicated every step of the way. Highly recommend!",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg?_wi=1",              imageAlt: "Sarah Johnson"},
            {
              id: "2",              name: "Michael Davis",              handle: "Lake Hamilton Property Manager",              testimonial: "We manage multiple properties and A & P is our go-to contractor. Reasonable pricing, reliable scheduling, and quality work every time.",              imageSrc: "http://img.b2bpic.net/free-photo/happy-professional_1098-12931.jpg?_wi=1",              imageAlt: "Michael Davis"},
            {
              id: "3",              name: "Emma Rodriguez",              handle: "Commercial Property Owner",              testimonial: "Had them pour a metal building pad for our new warehouse. Professional crew, finished on schedule, and the work is flawless.",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg?_wi=2",              imageAlt: "Emma Rodriguez"},
            {
              id: "4",              name: "James Wilson",              handle: "Hot Springs Resident",              testimonial: "Best decision we made was calling A & P. They showed up when they said they would and did exactly what they promised. Fair pricing too!",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "James Wilson"},
            {
              id: "5",              name: "Patricia Brown",              handle: "Garland County Developer",              testimonial: "We use A & P for all our foundation work. Consistent quality, great communication, and they handle rush jobs without cutting corners.",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg?_wi=3",              imageAlt: "Patricia Brown"},
            {
              id: "6",              name: "Robert Chen",              handle: "Hot Springs Business Owner",              testimonial: "Free estimate was honest. No surprises during the project. They cleaned up after themselves and the work exceeded expectations.",              imageSrc: "http://img.b2bpic.net/free-photo/happy-professional_1098-12931.jpg?_wi=2",              imageAlt: "Robert Chen"},
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          speed={40}
        />
      </div>

      <div id="projects" data-section="projects">
        <TestimonialCardSix
          title="Recent Projects"
          description="Before and after examples from recent work across Hot Springs and surrounding areas."
          testimonials={[
            {
              id: "project-1",              name: "Residential Driveway - Hot Springs",              handle: "Completed",              testimonial: "Professional driveway installation with expert finishing. Beautiful results that enhance curb appeal and durability for years to come.",              imageSrc: "http://img.b2bpic.net/free-photo/path-passing-through-grass_1252-1048.jpg",              imageAlt: "Driveway replacement before and after"},
            {
              id: "project-2",              name: "Metal Building Pad - Lake Hamilton",              handle: "Completed",              testimonial: "Precision-poured foundation pad for metal building. Perfect sizing and industrial-grade durability for commercial structures.",              imageSrc: "http://img.b2bpic.net/free-photo/workers-putting-metal-structure-construction_1122-981.jpg?_wi=1",              imageAlt: "Metal building foundation pad"},
            {
              id: "project-3",              name: "Slab & Dirt Work - Garland County",              handle: "Completed",              testimonial: "Complete site preparation with excavation, grading, and concrete slab pouring. Professional execution from start to finish.",              imageSrc: "http://img.b2bpic.net/free-photo/photo-wall-texture-pattern_58702-14472.jpg?_wi=1",              imageAlt: "Concrete slab and site work"},
            {
              id: "project-4",              name: "Dirt Work & Excavation - Hot Springs",              handle: "Completed",              testimonial: "Expert site preparation and excavation services. Proper grading and drainage solutions for optimal project foundation.",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-worker-backhoe-working-construction-site_640221-302.jpg?_wi=1",              imageAlt: "Dirt work and site preparation"},
            {
              id: "project-5",              name: "Concrete Slab - Commercial",              handle: "Completed",              testimonial: "Large-scale commercial concrete slab with superior finish quality. Ready for building construction and heavy equipment use.",              imageSrc: "http://img.b2bpic.net/free-photo/male-worker-screeding-floor-construction-site_651396-2362.jpg?_wi=1",              imageAlt: "Concrete slab foundation work"},
            {
              id: "project-6",              name: "Mixed Services Project",              handle: "Completed",              testimonial: "Comprehensive project combining dirt work, site prep, and concrete slab. Complete solution delivering excellence throughout.",              imageSrc: "http://img.b2bpic.net/free-photo/workers-putting-metal-structure-construction_1122-981.jpg?_wi=2",              imageAlt: "Mixed construction project"},
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          speed={40}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to start your concrete project? Get a free estimate today. No pressure, just honest pricing."
          animationType="entrance-slide"
          buttons={[
            { text: "📞 Call (501) 762-3999", href: "tel:+15017623999" },
            { text: "Request Free Estimate", href: "/contact" },
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="A & P Concrete"
          copyrightText="© 2025 A & P Concrete Construction. All rights reserved."
          socialLinks={[
            { icon: Phone, href: "tel:+15017623999", ariaLabel: "Call A & P Concrete" },
            { icon: MapPin, href: "https://maps.google.com/?q=735+Rock+Creek+Rd,+Hot+Springs,+AR+71913", ariaLabel: "Visit A & P Concrete location" },
            { icon: Mail, href: "mailto:info@apconcretearkansas.com", ariaLabel: "Email A & P Concrete" },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}