"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Shield, CheckCircle, Mail } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="layered-gradient"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Hernandez Roofing"
          navItems={[
            { name: "Services", id: "services" },
            { name: "About", id: "about" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Get Free Quote",            href: "#contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Expert Roofing Solutions for Your Home"
          description="Hernandez Roofing delivers top-quality roof installations, repairs, and maintenance services. Over 20 years of trusted service to residential and commercial properties."
          tag="Licensed & Insured Roofing Contractor"
          tagIcon={Shield}
          background={{ variant: "glowing-orb" }}
          kpis={[
            { value: "20+", label: "Years Experience" },
            { value: "1000+", label: "Projects Completed" },
            { value: "4.9/5", label: "Customer Rating" }
          ]}
          enableKpiAnimation={true}
          imageSrc="https://img.b2bpic.net/free-photo/full-shot-roofers-working-with-helmets_23-2149343708.jpg"
          imageAlt="Professional roofing installation"
          imagePosition="right"
          buttons={[
            { text: "Get Free Inspection", href: "#contact" },
            { text: "View Services", href: "#services" }
          ]}
        />
      </div>

      <div id="services" data-section="services">
        <ProductCardTwo
          title="Roofing Materials & Services"
          description="Premium roofing solutions with professional installation and maintenance services."
          tag="Expert Quality"
          tagIcon={CheckCircle}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "1",              brand: "Hernandez Roofing",              name: "Asphalt Shingles Installation",              price: "From $5,000",              rating: 5,
              reviewCount: "428",              imageSrc: "https://img.b2bpic.net/free-photo/closeup-roof-house-made-wooden-tiles_169016-24989.jpg",              imageAlt: "Asphalt shingles roofing"
            },
            {
              id: "2",              brand: "Hernandez Roofing",              name: "Metal Roofing Systems",              price: "From $8,500",              rating: 5,
              reviewCount: "312",              imageSrc: "https://img.b2bpic.net/free-photo/metallic-background-with-black-lines_23-2148744336.jpg",              imageAlt: "Metal roofing installation"
            },
            {
              id: "3",              brand: "Hernandez Roofing",              name: "Clay Tile Roofing",              price: "From $12,000",              rating: 5,
              reviewCount: "267",              imageSrc: "https://img.b2bpic.net/free-photo/closeup-roof-house-made-wooden-tiles_169016-25417.jpg",              imageAlt: "Spanish tile roofing"
            }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "Trusted roofing expertise since" },
            { type: "text", content: "2004" }
          ]}
          buttons={[
            { text: "Learn Our Story", href: "#" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardOne
          title="Complete Roofing Services"
          description="From routine maintenance to full replacements, we handle all your roofing needs with precision and care."
          tag="Our Services"
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground="invertDefault"
          gridVariant="two-columns-alternating-heights"
          features={[
            {
              title: "Roof Inspections",              description: "Professional inspections to identify damage, leaks, and maintenance needs before they become costly problems.",              imageSrc: "https://img.b2bpic.net/free-photo/specialist-technician-professional-engineer-with-laptop-tablet-maintenance-checking-installing-solar-roof-panel-factory-rooftop-sunlight-engineers-team-survey-check-solar-panel-roof_609648-2202.jpg",              imageAlt: "Roof inspection service"
            },
            {
              title: "Roof Repairs",              description: "Expert repairs for leaks, missing shingles, flashing issues, and storm damage with fast response times.",              imageSrc: "https://img.b2bpic.net/free-photo/man-working-roof-with-drill_23-2148748770.jpg",              imageAlt: "Roof repair work"
            },
            {
              title: "Full Roof Replacement",              description: "Complete roof replacement with quality materials and expert installation for long-lasting protection.",              imageSrc: "https://img.b2bpic.net/free-photo/specialist-technician-professional-engineer-with-laptop-tablet-maintenance-checking-installing-solar-roof-panel-factory-rooftop-sunlight-engineers-team-survey-check-solar-panel-roof_609648-2178.jpg",              imageAlt: "Roof replacement service"
            },
            {
              title: "Gutter & Cleaning",              description: "Gutter installation, repair, and cleaning services to protect your home's foundation and structure.",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-construction-worker-standing-rooftops-high-silos-storage-tanks-working-tablet-computer_342744-441.jpg",              imageAlt: "Gutter cleaning service"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="What Our Customers Say"
          description="Read real testimonials from satisfied homeowners and business owners across our service area."
          tag="Customer Reviews"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",              name: "James Rodriguez",              handle: "Homeowner, Phoenix AZ",              testimonial: "Hernandez Roofing fixed our leak quickly and professionally. The team was courteous and the price was fair. Highly recommended!",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-outdoors-business-man-smiles_23-2148763856.jpg",              imageAlt: "James Rodriguez"
            },
            {
              id: "2",              name: "Maria Garcia",              handle: "Business Owner, Scottsdale AZ",              testimonial: "We replaced our entire commercial roof. Their expertise and attention to detail made all the difference. Outstanding service!",              imageSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1588.jpg",              imageAlt: "Maria Garcia"
            },
            {
              id: "3",              name: "David Chen",              handle: "Homeowner, Tempe AZ",              testimonial: "After a monsoon damaged our roof, Hernandez Roofing responded immediately and did excellent work. Very professional team.",              imageSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1576.jpg",              imageAlt: "David Chen"
            },
            {
              id: "4",              name: "Patricia Williams",              handle: "Property Manager, Mesa AZ",              testimonial: "We manage multiple properties and trust Hernandez for all our roofing needs. They're reliable, skilled, and affordable.",              imageSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1551.jpg",              imageAlt: "Patricia Williams"
            },
            {
              id: "5",              name: "Michael Torres",              handle: "Homeowner, Chandler AZ",              testimonial: "Best roofing company I've worked with. They explained everything clearly and completed the job ahead of schedule.",              imageSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1664.jpg",              imageAlt: "Michael Torres"
            },
            {
              id: "6",              name: "Sandra Lopez",              handle: "Homeowner, Gilbert AZ",              testimonial: "From inspection to final cleanup, everything was perfect. Hernandez Roofing is my first call for any roof issues.",              imageSrc: "https://img.b2bpic.net/free-photo/man-portrait-posing-loft-modern-space_158595-5367.jpg",              imageAlt: "Sandra Lopez"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get Your Free Quote"
          tagIcon={Mail}
          title="Request Your Roofing Inspection"
          description="Contact us today for a free inspection and quote. Our team will assess your roofing needs and provide expert recommendations."
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/beautiful-house-with-chimney-blue-sky_23-2149627194.jpg"
          imageAlt="Home roofing exterior"
          mediaPosition="right"
          inputPlaceholder="Enter your email address"
          buttonText="Get Free Quote"
          termsText="We respect your privacy. Your information is secure and we'll only contact you about your roofing needs."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Hernandez Roofing"
          copyrightText="© 2025 Hernandez Roofing Company. All rights reserved."
          columns={[
            {
              title: "Services",              items: [
                { label: "Roof Inspections", href: "#services" },
                { label: "Roof Repairs", href: "#services" },
                { label: "Full Replacement", href: "#services" },
                { label: "Gutter Services", href: "#services" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Contact", href: "#contact" },
                { label: "Testimonials", href: "#testimonials" },
                { label: "Service Areas", href: "#" }
              ]
            },
            {
              title: "Contact",              items: [
                { label: "(480) 555-ROOF", href: "tel:4805555763" },
                { label: "info@hernandezroofing.com", href: "mailto:info@hernandezroofing.com" },
                { label: "Phoenix, AZ 85001", href: "#" },
                { label: "24/7 Emergency Service", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}