"use client";

import { Building2, Check, HelpCircle, Hammer, Star, Wrench } from "lucide-react";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroBillboardScroll from "@/components/sections/hero/HeroBillboardScroll";
import MetricSplitMediaAbout from "@/components/sections/about/MetricSplitMediaAbout";
import FeatureCardTen from "@/components/sections/feature/FeatureCardTen";
import TestimonialCardSix from "@/components/sections/testimonial/TestimonialCardSix";
import MetricCardFourteen from "@/components/sections/metrics/MetricCardFourteen";
import FaqSplitMedia from "@/components/sections/faq/FaqSplitMedia";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="compact"
      sizing="largeSmallSizeMediumTitles"
      background="blurBottom"
      cardStyle="subtle-shadow"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="layered"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Built 2 Last"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Services", id: "services" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Free Estimate", href: "contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardScroll
          title="Family-Owned Contractor Built to Last"
          description="Quality interior and exterior remodeling in York, PA. 70% of our work comes from referrals—see why homeowners trust us."
          tag="Local Excellence"
          tagIcon={Hammer}
          background={{ variant: "blurBottom" }}
          imageSrc="http://img.b2bpic.net/free-photo/workers-talking-phone-doing-paperwork_23-2147668775.jpg"
          imageAlt="Built 2 Last completed remodeling project"
          buttons={[
            { text: "Request Your Free Estimate", href: "contact" },
            { text: "View Our Work", href: "services" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="Our Story"
          tagIcon={Building2}
          title="Built on Trust, Delivered with Excellence"
          description="Built 2 Last is a family-owned general contractor serving York, PA and surrounding communities. With decades of combined experience, we specialize in kitchen remodeling, bathroom renovations, roofing, and exterior projects. Our commitment to quality craftsmanship, transparent communication, and customer satisfaction has made us the contractor families trust for their most important home projects."
          metrics={[
            { value: "70%", title: "Work from Referrals" },
            { value: "15+", title: "Years in Business" }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/builders-unfinished-construction_1098-15482.jpg"
          imageAlt="Built 2 Last team members at project site"
          useInvertedBackground={false}
          mediaAnimation="slide-up"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTen
          title="Services We Provide"
          description="From kitchen remodels to roofing replacements, we handle all your interior and exterior remodeling needs with professional expertise."
          tag="Full Service Contractor"
          tagIcon={Wrench}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          features={[
            {
              id: "1",              title: "Kitchen Remodeling",              description: "Transform your kitchen with custom cabinetry, countertops, appliances, and layouts designed for modern living.",              media: { imageSrc: "http://img.b2bpic.net/free-photo/woman-man-working-laptop-home-modern-kitchen_651396-3535.jpg" },
              items: [
                { icon: Check, text: "Custom cabinet design" },
                { icon: Check, text: "Premium countertops" },
                { icon: Check, text: "Lighting & fixtures" },
                { icon: Check, text: "Layout optimization" }
              ],
              reverse: false
            },
            {
              id: "2",              title: "Bathroom Renovations",              description: "Create your spa-like retreat with updated fixtures, tile work, vanities, and efficient layouts.",              media: { imageSrc: "http://img.b2bpic.net/free-photo/tidy-bathroom-with-shiny-tiles_1203-1501.jpg" },
              items: [
                { icon: Check, text: "Tile & flooring" },
                { icon: Check, text: "Fixtures & hardware" },
                { icon: Check, text: "Vanities & storage" },
                { icon: Check, text: "Shower/tub systems" }
              ],
              reverse: true
            },
            {
              id: "3",              title: "Roofing Solutions",              description: "Quality roofing for both residential and commercial properties. We ensure durability and weather protection.",              media: { imageSrc: "http://img.b2bpic.net/free-photo/full-shot-roofers-working-with-helmets_23-2149343708.jpg" },
              items: [
                { icon: Check, text: "Roof replacement" },
                { icon: Check, text: "Repairs & maintenance" },
                { icon: Check, text: "Multiple material options" },
                { icon: Check, text: "Warranty coverage" }
              ],
              reverse: false
            },
            {
              id: "4",              title: "Exterior & Outdoor",              description: "Enhance your home's curb appeal with siding, decks, patios, and landscaping solutions.",              media: { imageSrc: "http://img.b2bpic.net/free-photo/happy-young-couple-sitting-rooftop-enjoying-dating_23-2147891124.jpg" },
              items: [
                { icon: Check, text: "Siding installation" },
                { icon: Check, text: "Deck & patio building" },
                { icon: Check, text: "Outdoor living spaces" },
                { icon: Check, text: "Landscape integration" }
              ],
              reverse: true
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="What Our Customers Say"
          description="Real stories from homeowners who trusted Built 2 Last with their most important spaces."
          tag="Customer Reviews"
          tagIcon={Star}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          testimonials={[
            {
              id: "1",              name: "Margaret Collins",              handle: "York, PA",              testimonial: "Built 2 Last transformed our kitchen beyond our expectations. The team was professional, clean, and finished on time. We couldn't be happier!",              imageSrc: "http://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg?_wi=1",              imageAlt: "Margaret Collins"
            },
            {
              id: "2",              name: "James & Patricia Murphy",              handle: "Homeowners",              testimonial: "The bathroom renovation was seamless from start to finish. The quality of work and attention to detail is outstanding. Highly recommend!",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-embracing-couple_1098-401.jpg?_wi=1",              imageAlt: "James & Patricia Murphy"
            },
            {
              id: "3",              name: "David Thompson",              handle: "York, PA",              testimonial: "We had our roof replaced last year. Still looks great and the crew was respectful of our property. Great service at fair pricing.",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-standing-airport_107420-85035.jpg?_wi=1",              imageAlt: "David Thompson"
            },
            {
              id: "4",              name: "Sarah & Michael Chen",              handle: "Homeowners",              testimonial: "Our new deck is the perfect addition to our home. Built 2 Last's craftsmanship and communication made the whole process enjoyable.",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-embracing-couple_1098-401.jpg?_wi=2",              imageAlt: "Sarah & Michael Chen"
            },
            {
              id: "5",              name: "Robert Kennedy",              handle: "York, PA",              testimonial: "Professional, reliable, and honest. That's Built 2 Last. They completed our basement renovation exactly as promised. Five stars!",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-standing-airport_107420-85035.jpg?_wi=2",              imageAlt: "Robert Kennedy"
            },
            {
              id: "6",              name: "Linda Garcia",              handle: "Homeowner",              testimonial: "Best decision we made for our home renovation. The team communicated every step of the way and delivered exceptional results.",              imageSrc: "http://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg?_wi=2",              imageAlt: "Linda Garcia"
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardFourteen
          title="Why Homeowners Choose Built 2 Last for Their Remodeling Projects"
          tag="Trust Signals"
          tagAnimation="slide-up"
          metrics={[
            {
              id: "1",              value: "24/7",              description: "Available for emergency roofing repairs and urgent contractor needs whenever you need us most."
            },
            {
              id: "2",              value: "Financing",              description: "Flexible financing options available to make your dream renovation project more affordable."
            }
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Common Questions About Our Services"
          description="Everything you need to know about working with Built 2 Last for your remodeling project."
          tag="FAQ"
          tagIcon={HelpCircle}
          textboxLayout="default"
          mediaAnimation="slide-up"
          faqsAnimation="slide-up"
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/close-up-men-working-with-helmets_23-2148751989.jpg"
          imageAlt="Built 2 Last contractor at work site"
          mediaPosition="right"
          faqs={[
            {
              id: "1",              title: "How long does a typical kitchen remodel take?",              content: "Kitchen remodeling typically takes 4-8 weeks depending on the scope of work. We'll provide a detailed timeline during your free estimate consultation."
            },
            {
              id: "2",              title: "Do you offer financing options?",              content: "Yes! We work with several financing partners to help make your project more affordable. Ask about our flexible payment plans during your consultation."
            },
            {
              id: "3",              title: "Are you licensed and insured?",              content: "Absolutely. Built 2 Last is fully licensed, bonded, and insured. We maintain current certifications and carry comprehensive liability coverage for your peace of mind."
            },
            {
              id: "4",              title: "How do I get a free estimate?",              content: "Simply contact us via phone, email, or our online form. We'll schedule a time to meet at your home, assess your project, and provide a detailed no-obligation estimate."
            },
            {
              id: "5",              title: "Do you handle emergency repairs?",              content: "Yes, we offer 24/7 emergency roofing and contractor services. Call us immediately if you experience weather damage or urgent repair needs."
            },
            {
              id: "6",              title: "What areas do you serve?",              content: "We primarily serve York, PA and surrounding communities within a reasonable radius. Contact us to confirm we service your area."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Get Your Free Estimate Today"
          description="Contact Built 2 Last to discuss your remodeling project. Our team will provide a detailed, no-obligation estimate and answer all your questions."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "email", type: "email", placeholder: "Your Email", required: true },
            { name: "phone", type: "tel", placeholder: "Your Phone Number", required: true },
            { name: "service", type: "text", placeholder: "Type of Project (Kitchen, Bathroom, Roofing, etc.)", required: true }
          ]}
          textarea={{
            name: "message",            placeholder: "Tell us about your project and any specific needs or timeline...",            rows: 5,
            required: true
          }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/three-men-looking-aside-construction-site_259150-57679.jpg"
          imageAlt="Built 2 Last team working on home renovation"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Request Estimate"
        />
      </div>

      <FooterBaseReveal
        columns={[
          {
            title: "Company",            items: [
              { label: "About Us", href: "#about" },
              { label: "Services", href: "#services" },
              { label: "Testimonials", href: "#testimonials" },
              { label: "Contact", href: "#contact" }
            ]
          },
          {
            title: "Services",            items: [
              { label: "Kitchen Remodeling", href: "#services" },
              { label: "Bathroom Renovations", href: "#services" },
              { label: "Roofing Solutions", href: "#services" },
              { label: "Exterior Work", href: "#services" }
            ]
          },
          {
            title: "Contact",            items: [
              { label: "115 Edgar St, York PA 17401", href: "#" },
              { label: "Available 24/7", href: "#" },
              { label: "Free Estimates", href: "#contact" }
            ]
          }
        ]}
        copyrightText="© 2025 Built 2 Last General Contractor. All rights reserved."
      />
    </ThemeProvider>
  );
}
