"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import FeatureCardTwentySix from '@/components/sections/feature/FeatureCardTwentySix';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBase from '@/components/sections/footer/FooterBase';
import { CheckCircle, Shield, Star } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="compact"
      sizing="medium"
      background="grid"
      cardStyle="soft-shadow"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Papa & Sons"
          navItems={[
            { name: "Why Us", id: "why-us" },
            { name: "About", id: "about" },
            { name: "Services", id: "services" },
            { name: "Process", id: "process" },
            { name: "Testimonials", id: "testimonials" }
          ]}
          button={{ text: "Schedule Consultation", href: "#contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Where Craftsmanship Meets Commitment"
          description="Papa & Sons Contracting delivers premium roofing solutions defined by precision, transparency, and lasting protection. When your home matters, experience matters."
          tag="Licensed & Fully Insured"
          tagIcon={Shield}
          tagAnimation="slide-up"
          buttons={[
            { text: "Schedule Your Free Roof Consultation", href: "#contact" },
            { text: "View Recent Projects", href: "#testimonials" }
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "plain" }}
          imageSrc="http://img.b2bpic.net/free-photo/modern-house-architecture-navy-roof-wooden-soffit-blue-sky_626616-509.jpg"
          imageAlt="Premium roofing installation by Papa & Sons"
          imagePosition="right"
          mediaAnimation="blur-reveal"
          fixedMediaHeight={true}
        />
      </div>

      <div id="why-us" data-section="why-us">
        <FeatureCardTwentySix
          title="A Higher Standard of Roofing"
          description="In an industry where cutting corners is common, Papa & Sons Contracting stands apart by prioritizing structural integrity, detailed workmanship, and honest communication. Every roof is treated as if it were protecting our own family."
          features={[
            {
              title: "Transparent, Fair Pricing",              description: "Detailed, straightforward estimates with no hidden fees. Our competitive pricing never compromises quality.",              imageSrc: "http://img.b2bpic.net/free-photo/worker-cuts-steel-profiles-drywall-close-up-selective-focus-preparing-installation-ceiling-profile-system-frame-renovation-repair_166373-1903.jpg",              imageAlt: "Transparent pricing consultation",              buttonIcon: CheckCircle,
              buttonHref: "#contact"
            },
            {
              title: "Detail-Oriented Craftsmanship",              description: "From full plywood inspections to reinforced flashing, our work exceeds surface-level installation. Precision is standard.",              imageSrc: "http://img.b2bpic.net/free-photo/full-shot-roofers-working-with-helmets_23-2149343708.jpg",              imageAlt: "Detail-oriented roof craftsmanship",              buttonIcon: CheckCircle,
              buttonHref: "#contact"
            },
            {
              title: "Direct Owner Communication",              description: "Robert personally walks clients through every step. Questions answered. Concerns addressed. Expectations clear.",              imageSrc: "http://img.b2bpic.net/free-photo/portrait-confident-experienced-carpenter_329181-15660.jpg",              imageAlt: "Owner Robert guiding roofing project",              buttonIcon: CheckCircle,
              buttonHref: "#contact"
            },
            {
              title: "Clean & Respectful Execution",              description: "Your property left spotless. Materials handled responsibly. Landscaping protected. Professionalism extends beyond the roof.",              imageSrc: "http://img.b2bpic.net/free-photo/man-walking-roof_1321-1041.jpg",              imageAlt: "Clean job site after roofing completion",              buttonIcon: CheckCircle,
              buttonHref: "#contact"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          tag="What Sets Us Apart"
          tagIcon={Star}
          tagAnimation="slide-up"
          buttonAnimation="slide-up"
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "A Family Legacy of Quality Built on Precision" }
          ]}
          useInvertedBackground={false}
          buttons={[
            { text: "Schedule Your Consultation", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="services" data-section="services">
        <ProductCardTwo
          title="Comprehensive Roofing Solutions"
          description="From complete replacements to specialized copper work, Papa & Sons handles every roofing need with expertise and care."
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          products={[
            {
              id: "1",              brand: "Papa & Sons",              name: "Full Roof Replacement",              price: "Professional Grade",              rating: 5,
              reviewCount: "100+",              imageSrc: "http://img.b2bpic.net/free-photo/full-shot-roofers-working-with-helmets_23-2149343708.jpg",              imageAlt: "Full roof replacement project"
            },
            {
              id: "2",              brand: "Papa & Sons",              name: "Roof Repairs & Leak Detection",              price: "Targeted Solutions",              rating: 5,
              reviewCount: "100+",              imageSrc: "http://img.b2bpic.net/free-photo/man-walking-roof_1321-1041.jpg",              imageAlt: "Roof repair and leak detection"
            },
            {
              id: "3",              brand: "Papa & Sons",              name: "Custom Flashing & Copper Work",              price: "Premium Details",              rating: 5,
              reviewCount: "100+",              imageSrc: "http://img.b2bpic.net/free-photo/worker-cuts-steel-profiles-drywall-close-up-selective-focus-preparing-installation-ceiling-profile-system-frame-renovation-repair_166373-1903.jpg",              imageAlt: "Custom copper flashing installation"
            }
          ]}
        />
      </div>

      <div id="process" data-section="process">
        <MetricCardTwo
          title="A Seamless, Professional Experience"
          description="Our proven four-step process ensures clarity, quality, and your complete satisfaction at every stage."
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          metrics={[
            { id: "1", value: "Step 1", description: "Personal Consultation & Assessment" },
            { id: "2", value: "Step 2", description: "Detailed Written Estimate" },
            { id: "3", value: "Step 3", description: "Precision Installation" },
            { id: "4", value: "Step 4", description: "Final Walkthrough & Sign-Off" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="From start to finish, the experience was excellent. Rob was incredibly communicative and helpful. The results exceeded expectations. Outstanding service, fair pricing, excellent communication, and professional, respectful work."
          rating={5}
          author="Joseph D., Homeowner"
          avatars={[
            { src: "http://img.b2bpic.net/free-photo/cheerful-female-professional-with-tablet-meeting-table-with-satisfied-customers_74855-8866.jpg", alt: "Joseph D." },
            { src: "http://img.b2bpic.net/free-photo/cheerful-female-professional-with-tablet-meeting-table-with-satisfied-customers_74855-8866.jpg", alt: "Alexa N." },
            { src: "http://img.b2bpic.net/free-photo/attractive-blonde-girl-tulle-skirt-having-fun-stairs-she-is-smiling-down_197531-617.jpg", alt: "Peter C." },
            { src: "http://img.b2bpic.net/free-photo/attractive-blonde-girl-tulle-skirt-having-fun-stairs-she-is-smiling-down_197531-617.jpg", alt: "David H." }
          ]}
          ratingAnimation="slide-up"
          avatarsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Common Questions About Our Roofing Services"
          description="Find answers to questions homeowners commonly ask about roof replacement, repairs, and maintenance."
          textboxLayout="default"
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/high-angle-beautiful-wooden-house-with-new-roof_23-2149343703.jpg"
          imageAlt="Home exterior and roofing overview"
          mediaAnimation="blur-reveal"
          mediaPosition="left"
          faqsAnimation="slide-up"
          faqs={[
            {
              id: "1",              title: "What is included in a free roof consultation?",              content: "Our free consultation includes a thorough assessment of your roof's condition, detailed discussion of your options, and a transparent explanation of what repairs or replacement might be needed. We walk you through the process and answer all your questions—no obligation."
            },
            {
              id: "2",              title: "How long does a typical roof replacement take?",              content: "Most full roof replacements take 2-5 days depending on the size and complexity of your roof. We always provide a clear timeline upfront so you know exactly what to expect."
            },
            {
              id: "3",              title: "Do you offer warranties on your roofing work?",              content: "Yes. We stand behind our work with comprehensive warranties that protect your investment. We discuss warranty details during your consultation to ensure you understand your coverage."
            },
            {
              id: "4",              title: "What types of roofing materials do you recommend?",              content: "We work with premium shingles and materials designed for long-term durability and weather resistance. During your consultation, we discuss options that fit your home's needs and your budget."
            },
            {
              id: "5",              title: "How do you handle storm damage roof repairs?",              content: "We provide accurate diagnosis of storm damage, handle insurance claims coordination when applicable, and deliver targeted repairs to restore your roof's integrity and appearance."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Protect What Matters Most. Your home deserves expert care and uncompromising craftsmanship. Experience the professionalism and attention to detail that homeowners consistently trust."
          animationType="entrance-slide"
          buttons={[
            { text: "Request Your Free Estimate Today", href: "tel:+1-XXX-XXX-XXXX" },
            { text: "Schedule Online Now", href: "#hero" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Papa & Sons Contracting"
          copyrightText="© 2025 Papa & Sons Contracting. All Rights Reserved. | Licensed & Fully Insured | Family-Owned & Operated"
          columns={[
            {
              title: "Services",              items: [
                { label: "Full Roof Replacement", href: "#services" },
                { label: "Roof Repairs", href: "#services" },
                { label: "Custom Flashing", href: "#services" },
                { label: "Preventative Maintenance", href: "#services" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Our Process", href: "#process" },
                { label: "Testimonials", href: "#testimonials" },
                { label: "FAQ", href: "#faq" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Contact", href: "#contact" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
