"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplitTestimonial from '@/components/sections/hero/HeroSplitTestimonial';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import FeatureCardTwelve from '@/components/sections/feature/FeatureCardTwelve';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Shield, Hammer, TrendingUp, Phone } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="large"
      background="fluid"
      cardStyle="gradient-mesh"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="solid"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={[
            { name: "Home", id: "home" },
            { name: "Services", id: "services" },
            { name: "About", id: "about" },
            { name: "FAQ", id: "faq" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Get Quote", href: "contact" }}
          brandName="North Country Contracting"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitTestimonial
          title="Premium Contracting Services for Northern New Hampshire"
          description="North Country Contracting delivers exceptional results for residential, commercial, and renovation projects. With decades of experience and a commitment to quality, we transform your vision into reality."
          tag="Licensed & Insured"
          tagIcon={Shield}
          tagAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/engineers-helmets-standing-by-factory_1157-35514.jpg"
          imageAlt="Professional construction team at work"
          mediaAnimation="blur-reveal"
          imagePosition="right"
          useInvertedBackground={false}
          background={{ variant: "plain" }}
          buttons={[
            { text: "Request Free Estimate", href: "contact" },
            { text: "View Our Work", href: "services" }
          ]}
          buttonAnimation="slide-up"
          testimonials={[
            {
              name: "Michael Thompson",              handle: "Homeowner, Berlin NH",              testimonial: "North Country Contracting transformed our home. Their attention to detail and professionalism were exceptional. Highly recommend!",              rating: 5,
              imageSrc: "/placeholders/placeholder1.webp?_wi=1"
            },
            {
              name: "Sarah Davies",              handle: "Property Manager, Conway",              testimonial: "We've hired them for multiple commercial projects. They always deliver on time and within budget. Outstanding team!",              rating: 5,
              imageSrc: "/placeholders/placeholder1.webp?_wi=2"
            },
            {
              name: "Robert Cole",              handle: "Business Owner, Littleton",              testimonial: "The quality of their work speaks for itself. Our renovation exceeded expectations. Five stars!",              rating: 5,
              imageSrc: "/placeholders/placeholder1.webp?_wi=3"
            }
          ]}
          testimonialRotationInterval={5000}
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "Building Trust in Northern New Hampshire Since" },
            { type: "image", src: "http://img.b2bpic.net/free-photo/builders-unfinished-construction_1098-15482.jpg", alt: "Experienced construction team" },
            { type: "text", content: "1998" }
          ]}
          useInvertedBackground={true}
          buttons={[
            { text: "Learn Our Story", href: "#services" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwelve
          title="Our Specialized Services"
          description="We offer a comprehensive range of contracting services tailored to meet your specific needs, from initial planning to final inspection."
          tag="Services"
          tagIcon={Hammer}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          features={[
            {
              id: "residential",              label: "Residential",              title: "Home Construction & Renovation",              items: [
                "New home construction",                "Kitchen and bath remodeling",                "Deck and patio installation",                "Roofing and siding",                "Interior finishing"
              ],
              buttons: [
                { text: "Learn More", href: "#contact" }
              ]
            },
            {
              id: "commercial",              label: "Commercial",              title: "Business Infrastructure Solutions",              items: [
                "Commercial building construction",                "Office space build-outs",                "Retail renovation",                "Industrial improvements",                "Project management"
              ],
              buttons: [
                { text: "Get Started", href: "#contact" }
              ]
            },
            {
              id: "renovation",              label: "Restoration",              title: "Historic & Modern Restoration",              items: [
                "Historic home restoration",                "Modern renovation techniques",                "Damage repair services",                "Energy efficiency upgrades",                "Custom restoration"
              ],
              buttons: [
                { text: "Inquire Now", href: "#contact" }
              ]
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="Our Track Record"
          description="Two decades of proven results and satisfied clients throughout Northern New Hampshire."
          tag="By The Numbers"
          tagIcon={TrendingUp}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="scale-rotate"
          useInvertedBackground={true}
          metrics={[
            { id: "1", value: "500+", description: "Projects Completed" },
            { id: "2", value: "95%", description: "Client Satisfaction Rate" },
            { id: "3", value: "25+", description: "Years in Business" },
            { id: "4", value: "50+", description: "Awards & Recognitions" }
          ]}
        />
      </div>

      <div id="socialproof" data-section="socialproof">
        <SocialProofOne
          title="Trusted by Leading Organizations"
          description="North Country Contracting partners with top businesses and municipalities throughout New Hampshire."
          tag="Partners"
          textboxLayout="default"
          useInvertedBackground={false}
          names={[
            "White Mountain Resort",            "Conway Town Services",            "Berlin Chamber of Commerce",            "Littleton Business Alliance",            "North Country Development",            "Franconia Valley Partners",            "Regional Construction Association"
          ]}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Frequently Asked Questions"
          description="Get answers to common questions about our services, process, and project timelines."
          tag="Help & Support"
          textboxLayout="default"
          imageSrc="http://img.b2bpic.net/free-photo/high-angle-measuring-tools-still-life_23-2150440968.jpg"
          imageAlt="Construction planning and project management"
          mediaAnimation="blur-reveal"
          mediaPosition="left"
          faqsAnimation="slide-up"
          useInvertedBackground={true}
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "What areas of New Hampshire do you serve?",              content: "We proudly serve Northern New Hampshire, including the White Mountains region, Coos County, and surrounding areas. Our service area spans from the Canadian border south to the Lakes Region."
            },
            {
              id: "2",              title: "How long does a typical project take?",              content: "Project timelines vary based on scope and complexity. Residential remodels typically take 4-12 weeks, while commercial projects may take 3-6 months or longer. We provide detailed schedules during the initial consultation."
            },
            {
              id: "3",              title: "Are you licensed and insured?",              content: "Yes, we are fully licensed and insured for all types of contracting work. We maintain comprehensive liability coverage and workers' compensation insurance for your peace of mind."
            },
            {
              id: "4",              title: "What is your payment process?",              content: "We typically work on a deposit-payment schedule. The standard terms are 33% deposit to begin work, 33% at project midpoint, and 34% upon completion. Custom arrangements can be discussed."
            },
            {
              id: "5",              title: "Do you provide free estimates?",              content: "Absolutely! We offer free, no-obligation estimates for all projects. Our team will visit your property, assess your needs, and provide a detailed quote within 48 hours."
            },
            {
              id: "6",              title: "What warranties do you offer?",              content: "We stand behind our workmanship with comprehensive warranties. Most projects include a 1-year workmanship warranty, and we honor all manufacturer warranties on materials used."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Get In Touch"
          title="Ready for Your Next Project?"
          description="Contact North Country Contracting today for a free estimate. Our team is ready to discuss your vision and bring it to life."
          tagIcon={Phone}
          tagAnimation="slide-up"
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          inputPlaceholder="Your email address"
          buttonText="Request Estimate"
          termsText="We respect your privacy. Your information will only be used to contact you about your project."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Our Services", href: "#services" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Services",              items: [
                { label: "Residential", href: "#services" },
                { label: "Commercial", href: "#services" },
                { label: "Restoration", href: "#services" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQ", href: "#faq" },
                { label: "Get Quote", href: "#contact" },
                { label: "Testimonials", href: "#hero" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Licensing", href: "#" }
              ]
            }
          ]}
          bottomLeftText="© 2025 North Country Contracting. All rights reserved."
          bottomRightText="Serving Northern New Hampshire with Excellence"
        />
      </div>
    </ThemeProvider>
  );
}
