"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import FeatureCardTwentySeven from '@/components/sections/feature/FeatureCardTwentySeven';
import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Award, Briefcase, Hammer, Phone, Star } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="mediumSizeLargeTitles"
      background="fluid"
      cardStyle="glass-depth"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="St. George Roofing"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "Services", id: "services" },
            { name: "About", id: "about" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Premium Roofing Services You Can Trust"
          description="Protect your home with expert roofing solutions. From repairs to complete replacements, St. George Roofing delivers quality craftsmanship and reliable service."
          tag="Professional Roofing"
          tagIcon={Hammer}
          tagAnimation="slide-up"
          background={{ variant: "glowing-orb" }}
          buttons={[
            { text: "Get Free Quote", href: "contact" },
            { text: "View Services", href: "services" }
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/man-sitting-roof_23-2148748778.jpg"
          imageAlt="Professional roofer installing new shingles on residential home"
          imagePosition="right"
          mediaAnimation="slide-up"
          fixedMediaHeight={true}
        />
      </div>

      <div id="about" data-section="about">
        <TestimonialAboutCard
          tag="Why Choose Us"
          tagIcon={Award}
          tagAnimation="slide-up"
          title="Over 20 Years of Roofing Excellence"
          description="John Martinez, Owner & Founder"
          subdescription="St. George Roofing"
          icon={Star}
          imageSrc="http://img.b2bpic.net/free-photo/three-men-looking-aside-construction-site_259150-57679.jpg"
          imageAlt="Experienced roofing team at work"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwentySeven
          title="Our Services"
          description="Complete roofing solutions for residential and commercial properties"
          tag="Services"
          tagIcon={Briefcase}
          tagAnimation="slide-up"
          features={[
            {
              id: "1",              title: "Roof Repair",              description: "Fast and reliable repairs for leaks, damage, and deterioration. We identify issues early and provide cost-effective solutions to extend your roof's lifespan.",              imageSrc: "http://img.b2bpic.net/free-photo/man-working-roof-with-drill_23-2148748770.jpg",              imageAlt: "Roof repair service"
            },
            {
              id: "2",              title: "New Installation",              description: "Complete roof installation with premium materials and expert workmanship. We ensure proper installation for maximum durability and weather protection.",              imageSrc: "http://img.b2bpic.net/free-photo/closeup-roof-house-made-wooden-tiles_169016-24989.jpg",              imageAlt: "New roof installation"
            },
            {
              id: "3",              title: "Roof Replacement",              description: "Full roof replacement services for aging or damaged roofs. We remove old materials and install new roofing systems with industry-leading warranties.",              imageSrc: "http://img.b2bpic.net/free-photo/long-shot-men-working-together-roof_23-2149343674.jpg",              imageAlt: "Roof replacement project"
            }
          ]}
          gridVariant="uniform-4-items"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "Schedule Inspection", href: "contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardFourteen
          title="Proven Track Record of Excellence and Customer Satisfaction"
          tag="Our Success"
          tagAnimation="slide-up"
          metrics={[
            {
              id: "1",              value: "1000+",              description: "Roofing projects completed successfully across residential and commercial properties"
            },
            {
              id: "2",              value: "98%",              description: "Customer satisfaction rate with repeat business and referrals"
            },
            {
              id: "3",              value: "20+",              description: "Years of professional roofing experience and industry expertise"
            },
            {
              id: "4",              value: "24/7",              description: "Emergency roofing services available for storm damage and urgent repairs"
            }
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="St. George Roofing completely transformed our home. Their team was professional, punctual, and the quality of work exceeded our expectations. We couldn't be happier!"
          rating={5}
          author="Sarah Johnson, Homeowner"
          avatars={[
            { src: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg", alt: "Customer testimonial" },
            { src: "http://img.b2bpic.net/free-photo/woman-showing-ok-sign_23-2148990150.jpg", alt: "Customer testimonial" },
            { src: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg", alt: "Customer testimonial" },
            { src: "http://img.b2bpic.net/free-photo/woman-showing-ok-sign_23-2148990150.jpg", alt: "Customer testimonial" }
          ]}
          ratingAnimation="slide-up"
          avatarsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Get Started"
          tagIcon={Phone}
          tagAnimation="slide-up"
          title="Ready for Professional Roofing Services?"
          description="Contact St. George Roofing today for a free inspection and quote. Our team is ready to help protect your home with quality roofing solutions."
          buttons={[
            { text: "Request Free Quote", href: "tel:555-0100" },
            { text: "Schedule Inspection" }
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Services",              items: [
                { label: "Roof Repair", href: "#services" },
                { label: "New Installation", href: "#services" },
                { label: "Roof Replacement", href: "#services" },
                { label: "Emergency Services", href: "#contact" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Testimonials", href: "#testimonials" },
                { label: "Contact", href: "#contact" },
                { label: "Blog", href: "#" }
              ]
            },
            {
              title: "Contact",              items: [
                { label: "Phone: (555) 123-0100", href: "tel:555-0100" },
                { label: "Email: info@stgeorgeroofing.com", href: "mailto:info@stgeorgeroofing.com" },
                { label: "Available 24/7", href: "#" },
                { label: "Licensed & Insured", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 St. George Roofing. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}
