"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit';
import SplitAbout from '@/components/sections/about/SplitAbout';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBase from '@/components/sections/footer/FooterBase';
import { ChefHat, Sunrise, HandPlatter, Heart, MapPin } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="compact"
      sizing="large"
      background="noise"
      cardStyle="glass-depth"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Sapori di Italia"
          navItems={[
            { name: "Our Story", id: "about" },
            { name: "Menu", id: "features" },
            { name: "Reviews", id: "testimonials" },
            { name: "FAQ", id: "faq" }
          ]}
          button={{ text: "Order Now", href: "#contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboardSplit
          logoText="Sapori di Italia"
          description="Authentic Italian Made Fresh Daily. Massive sandwiches, real ingredients, family-run love. Every bite tastes like you walked into a small Italian trattoria—because you did."
          background={{ variant: "plain" }}
          buttons={[
            { text: "Order Now", href: "#contact" },
            { text: "Get Directions", href: "https://maps.google.com" }
          ]}
          buttonAnimation="slide-up"
          layoutOrder="default"
          imageSrc="http://img.b2bpic.net/free-photo/side-view-chef-baking-delicious-pizza_23-2150134282.jpg"
          imageAlt="Artisan Italian bakery with fresh bread and warm ambiance"
          mediaAnimation="opacity"
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="Family Heritage, Daily Craftsmanship"
          tag="Our Story"
          tagIcon={Heart}
          description="For over three decades, Sapori di Italia has been a neighborhood cornerstone, built on recipes passed down through generations and a commitment to using only the finest Italian ingredients. Every sandwich is made fresh daily. Every loaf is baked with care. We're not chasing trends—we're honoring tradition while serving our community like family."
          textboxLayout="default"
          useInvertedBackground={false}
          bulletPoints={[
            {
              title: "Authentic Recipes",              description: "Traditional Italian preparations using time-honored techniques and premium imported ingredients.",              icon: ChefHat
            },
            {
              title: "Fresh Daily",              description: "Every sandwich made to order, every loaf baked fresh each morning. No shortcuts, no pre-made inventory.",              icon: Sunrise
            },
            {
              title: "Generous Portions",              description: "We believe in real food for real appetites. Our sandwiches and baked goods are designed to satisfy.",              icon: HandPlatter
            },
            {
              title: "Community First",              description: "Family-owned and rooted in this neighborhood. We know our customers by name and we care about their experience."
            }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/couple-with-cupcakes-hand_1170-54.jpg"
          imageAlt="Italian family working together in their bakery kitchen"
          mediaAnimation="slide-up"
          imagePosition="right"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyOne
          title="What Makes Us Different"
          description="Discover the craftsmanship and care behind every bite at Sapori di Italia."
          textboxLayout="split"
          useInvertedBackground={true}
          accordionItems={[
            {
              id: "sandwiches",              title: "Signature Italian Sandwiches",              content: "Hand-pressed ciabatta, imported prosciutto, fresh mozzarella, roasted peppers, and housemade pesto. Each sandwich is assembled to order with ingredients selected for peak flavor and texture. Our Il Classico has been a neighborhood favorite for 25 years."
            },
            {
              id: "bread",              title: "Wood-Fired Bread & Focaccia",              content: "Our brick oven, imported from Tuscany, is fired daily to bake authentic ciabatta, rosemary focaccia, and traditional Italian loaves. The crust crackles. The crumb is perfect. This is bread that tastes like Italy."
            },
            {
              id: "pastries",              title: "Sweet Traditions",              content: "Cannoli filled with ricotta cream, sfogliatelle with honey, and traditional Italian cookies made with recipes from our nonna. Limited quantities daily—when they're gone, they're gone."
            },
            {
              id: "sourcing",              title: "Premium Italian Sourcing",              content: "We work directly with Italian suppliers for San Marzano tomatoes, Parmigiano-Reggiano, pancetta, and imported olive oils. We believe in real ingredients—no shortcuts, no substitutes."
            }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/picnic-basket-with-chicken-baguette-sandwich_1147-502.jpg"
          imageAlt="Generous Italian sandwich cross-section showing fresh ingredients"
          mediaAnimation="blur-reveal"
          mediaPosition="right"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          title="What Our Community Says"
          description="Real reviews from customers who've made Sapori di Italia part of their story."
          textboxLayout="default"
          useInvertedBackground={false}
          testimonials={[
            {
              id: "1",              title: "Best Hidden Gem in the Neighborhood",              quote: "I stumbled in by accident and haven't left since. The sandwiches are enormous, the bread is perfect, and you can taste the love in every bite. This is what real Italian food tastes like.",              name: "Maria Rossi",              role: "Local Food Blogger",              imageSrc: "http://img.b2bpic.net/free-photo/beautiful-girls-buys-buns-bakery_1157-24661.jpg",              imageAlt: "Maria Rossi smiling at the bakery"
            },
            {
              id: "2",              title: "Our Family Tradition",              quote: "Saturday mornings mean fresh bread and pastries from Sapori. My kids grew up with their cannoli. It's more than food—it's family.",              name: "Angela Torres",              role: "Regular Customer, 15+ Years",              imageSrc: "http://img.b2bpic.net/free-photo/woman-examines-fresh-homemade-bread-kitchen-bread-aroma_169016-71018.jpg",              imageAlt: "Angela Torres enjoying fresh Italian pastries"
            },
            {
              id: "3",              title: "Lunch Spot That Doesn't Disappoint",              quote: "The Il Classico sandwich is my daily ritual. Fresh ingredients, generous portions, and the staff remembers my order. This is how Italian food should be done.",              name: "Marco Valentini",              role: "Busy Professional",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-woman-pointing-purchase-paper-bag-held-by-husband-mall_1262-13029.jpg",              imageAlt: "Marco Valentini holding a fresh Italian sandwich"
            },
            {
              id: "4",              title: "Taste of Home",              quote: "As someone with Italian heritage, I appreciate authenticity. Sapori nails it. Their bread reminds me of my childhood. Worth every visit.",              name: "Isabella Martinelli",              role: "Heritage Seeker",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-serving-breadsticks-bakery_1170-592.jpg",              imageAlt: "Isabella Martinelli at the bakery counter"
            },
            {
              id: "5",              title: "Generosity in Every Bite",              quote: "The portions are no joke. I ordered one sandwich and couldn't finish it. Their focaccia is dangerously good. Can't wait to go back.",              name: "David Chen",              role: "Food Enthusiast",              imageSrc: "http://img.b2bpic.net/free-photo/young-pretty-woman-eating-pizza-pizza-bar_1303-20334.jpg",              imageAlt: "David Chen with a generous Italian sandwich"
            },
            {
              id: "6",              title: "Real Family Business",              quote: "You can tell this place is family-run. The care and attention to detail is obvious. No corporate chains can compete with this kind of warmth.",              name: "Jennifer Williams",              role: "Neighborhood Regular",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-restaurant-cafe-outdoor_624325-1183.jpg",              imageAlt: "Jennifer Williams smiling at the family bakery"
            }
          ]}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted by the Community"
          description="Featured in local food guides and trusted by neighborhood families for decades."
          textboxLayout="default"
          useInvertedBackground={true}
          names={[
            "Local Food Guide Top Pick",            "Family Business Award Winner",            "5-Star Community Favorite",            "Best Italian Sandwich 2024",            "Neighborhood Heritage Restaurant",            "Fresh Daily Recognition",            "Community Impact Leader"
          ]}
          logos={[
            "http://img.b2bpic.net/free-photo/side-view-chef-baking-delicious-pizza_23-2150134282.jpg",            "http://img.b2bpic.net/free-photo/couple-with-cupcakes-hand_1170-54.jpg",            "http://img.b2bpic.net/free-photo/picnic-basket-with-chicken-baguette-sandwich_1147-502.jpg",            "http://img.b2bpic.net/free-photo/white-bread-table_140725-5614.jpg",            "http://img.b2bpic.net/free-photo/top-view-chocolate-eclairs-white-oval-plate-fir-tree-branches-christmas-toys-slice-lemon-cup-tea-biscuits-cupcakes-dark-wooden-ground_140725-90888.jpg",            "http://img.b2bpic.net/free-photo/beautiful-girls-buys-buns-bakery_1157-24661.jpg",            "http://img.b2bpic.net/free-photo/woman-examines-fresh-homemade-bread-kitchen-bread-aroma_169016-71018.jpg"
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Questions About Sapori di Italia"
          description="Everything you need to know about our menu, ordering, and family story."
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          faqs={[
            {
              id: "1",              title: "What are your hours?",              content: "We're open Tuesday–Saturday, 8am–6pm, and Sunday 9am–4pm. Closed Mondays for family time. We recommend arriving early on Saturdays as fresh items sell out quickly."
            },
            {
              id: "2",              title: "Do you offer online ordering?",              content: "Yes! Order sandwiches, bread, and pastries online for same-day pickup. Call ahead for custom orders or large group requests. We also offer delivery through local apps."
            },
            {
              id: "3",              title: "Are there vegetarian options?",              content: "Absolutely. Our Vegetariano is stacked with roasted vegetables, fresh mozzarella, and basil pesto on ciabatta. We also have seasonal veggie focaccia and pastries."
            },
            {
              id: "4",              title: "What makes your bread special?",              content: "Our Tuscan brick oven, authentic recipes, and daily baking. No preservatives, no pre-made dough. We use imported Italian flour and traditional fermentation methods for flavor and digestibility."
            },
            {
              id: "5",              title: "Can I place a catering order?",              content: "Yes! We do platters, sandwich boxes, and bread assortments for events. Contact us 3–5 days in advance for custom catering packages."
            },
            {
              id: "6",              title: "Do you have allergy information?",              content: "We take allergies seriously. All our ingredients are listed, and we maintain a clean kitchen. Ask any team member—they know every ingredient and can guide you safely."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get In Touch"
          title="Order Fresh. Visit Soon. Join the Family."
          description="Order online for pickup, call for custom requests, or visit us in person to experience the warmth of Sapori di Italia. We're here to serve you like family."
          tagIcon={MapPin}
          background={{ variant: "plain" }}
          useInvertedBackground={true}
          imageSrc="http://img.b2bpic.net/free-photo/vintage-store-with-pastries_23-2148289386.jpg"
          imageAlt="Sapori di Italia bakery storefront with warm lighting"
          mediaAnimation="opacity"
          mediaPosition="right"
          inputPlaceholder="Enter your email for updates"
          buttonText="Stay Connected"
          termsText="By signing up, you'll get updates about new items, specials, and family stories. We respect your inbox."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Sapori di Italia"
          copyrightText="© 2025 Sapori di Italia. Family-Owned & Neighborhood-Rooted."
          columns={[
            {
              title: "Quick Links",              items: [
                { label: "Our Story", href: "#about" },
                { label: "Menu", href: "#features" },
                { label: "Reviews", href: "#testimonials" },
                { label: "FAQ", href: "#faq" }
              ]
            },
            {
              title: "Hours & Location",              items: [
                { label: "Tue–Sat: 8am–6pm", href: "#" },
                { label: "Sun: 9am–4pm", href: "#" },
                { label: "Closed Mondays", href: "#" },
                { label: "Get Directions", href: "https://maps.google.com" }
              ]
            },
            {
              title: "Contact",              items: [
                { label: "Call: (555) 123-4567", href: "tel:+15551234567" },
                { label: "Email: hello@saporidiitalia.com", href: "mailto:hello@saporidiitalia.com" },
                { label: "Order Online", href: "#contact" },
                { label: "Follow Us", href: "#" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Allergen Info", href: "#" },
                { label: "Catering Inquiry", href: "#contact" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}