"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import SplitAbout from '@/components/sections/about/SplitAbout';
import FeatureCardTwentyTwo from '@/components/sections/feature/FeatureCardTwentyTwo';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Coffee, Heart, Globe, Flame, Users, Leaf, Star, Gift, MessageCircle, MapPin } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="small"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="gradient-mesh"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Brew Haven"
          navItems={[
            { name: "Menu", id: "menu" },
            { name: "About", id: "about" },
            { name: "Locations", id: "contact" },
            { name: "Merch", id: "products" }
          ]}
          button={{
            text: "Order Now",            href: "#contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Your Daily Escape Starts Here"
          description="Handcrafted coffee, warm atmosphere, and community connections. Experience the perfect blend."
          background={{ variant: "sparkles-gradient" }}
          tag="Premium Specialty Coffee"
          tagIcon={Coffee}
          imageSrc="https://img.b2bpic.net/free-photo/cup-white-coffee-with-saucer-spoon-wooden-table_23-2147862860.jpg"
          imageAlt="Fresh coffee cup"
          buttons={[
            { text: "View Menu", href: "#menu" },
            { text: "Visit Us", href: "#contact" }
          ]}
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg", alt: "Customer 1" },
            { src: "https://img.b2bpic.net/free-photo/african-american-curly-businesswoman-standing-with-folded-hands-portrait-successful-confident-young-pretty-female-office-employer-suit-posing-work-business-company-management-concept_74855-6735.jpg", alt: "Customer 2" },
            { src: "https://img.b2bpic.net/free-photo/portrait-cheerful-teenage-girl-sitting-cafe_1262-3048.jpg", alt: "Customer 3" }
          ]}
          avatarText="Join 5,000+ daily coffee lovers"
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="Crafted Coffee, Genuine Connection"
          description="Since 2010, Brew Haven has been dedicated to sourcing the finest coffee beans and creating a welcoming space for our community."
          tag="Our Story"
          tagIcon={Heart}
          imagePosition="right"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/parisian-coffee-shop-style-with-tasty-coffee-served-wooden-table-coffee-shop-design_482257-18283.jpg"
          imageAlt="Brew Haven Interior"
          bulletPoints={[
            {
              title: "Single-Origin Sourcing",              description: "Direct relationships with ethical coffee farmers across the globe",              icon: Globe
            },
            {
              title: "Expert Roasting",              description: "Small-batch roasting brings out unique flavor profiles in every bean",              icon: Flame
            },
            {
              title: "Community Hub",              description: "A welcoming space for conversations, creativity, and connection",              icon: Users
            },
            {
              title: "Sustainability",              description: "Eco-friendly practices and compostable packaging throughout",              icon: Leaf
            }
          ]}
          buttons={[{ text: "Learn Our Values", href: "#values" }]}
        />
      </div>

      <div id="menu" data-section="menu">
        <FeatureCardTwentyTwo
          title="Featured Signature Blends"
          description="Explore our most-loved coffee creations, crafted with precision and passion"
          tag="Menu Highlights"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          features={[
            {
              id: "1",              title: "The Classic Espresso Ritual",              category: ["Espresso", "Bold", "Traditional"],
              imageSrc: "https://img.b2bpic.net/free-photo/waffles-coffee-wooden-table_501050-1062.jpg",              imageAlt: "Double espresso shot"
            },
            {
              id: "2",              title: "Silky Cappuccino Dreams",              category: ["Cappuccino", "Creamy", "Smooth"],
              imageSrc: "https://img.b2bpic.net/free-photo/high-angle-croissants-coffee-cup_23-2148877594.jpg",              imageAlt: "Cappuccino with latte art"
            },
            {
              id: "3",              title: "Refreshing Iced Coffee",              category: ["Iced", "Cold", "Seasonal"],
              imageSrc: "https://img.b2bpic.net/free-photo/still-life-relaxing-coffee-cup-terrace_23-2149711965.jpg",              imageAlt: "Iced coffee with ice"
            },
            {
              id: "4",              title: "Cold Brew Concentrate",              category: ["Cold Brew", "Smooth", "Specialty"],
              imageSrc: "https://img.b2bpic.net/free-photo/decoration-old-mug-aroma-wooden_1150-1578.jpg",              imageAlt: "Cold brew in glass"
            }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Coffee Shop Merchandise"
          description="Take home a piece of Brew Haven with our exclusive collection"
          tag="Shop Our Merch"
          tagIcon={Gift}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "1",              name: "Premium Coffee Beans - 1lb",              price: "$16.99",              imageSrc: "https://img.b2bpic.net/free-photo/coffee-beans-glass-jar-black-background-closeup-selective-focus-vertical-frame-roasting-preparing-coffee-vertical-frame_166373-2289.jpg",              imageAlt: "Premium coffee beans"
            },
            {
              id: "2",              name: "Brew Haven Ceramic Mug",              price: "$12.99",              imageSrc: "https://img.b2bpic.net/free-photo/cup-coffee-biscuits-wooden-plate_114579-57875.jpg",              imageAlt: "Ceramic coffee mug"
            },
            {
              id: "3",              name: "Brew Haven T-Shirt",              price: "$24.99",              imageSrc: "https://img.b2bpic.net/free-photo/vanilla-cookies-pralines-with-cup-tea_114579-4412.jpg",              imageAlt: "Branded t-shirt"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Coffee Lovers Say"
          description="Hear from the community that makes Brew Haven special"
          tag="Testimonials"
          tagIcon={MessageCircle}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell, Regular Customer",              date: "Date: 15 January 2025",              title: "My favorite place to start the day",              quote: "The moment I walk through the door, I feel at home. The baristas remember my order, and every cup is crafted with care. This isn't just coffee - it's an experience.",              tag: "Daily Regular",              avatarSrc: "https://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg",              avatarAlt: "Sarah Mitchell",              imageSrc: "https://img.b2bpic.net/free-photo/cup-white-coffee-with-saucer-spoon-wooden-table_23-2147862860.jpg"
            },
            {
              id: "2",              name: "James Rodriguez, Remote Worker",              date: "Date: 12 January 2025",              title: "The perfect workspace vibe",              quote: "I've tried many cafes for remote work, but Brew Haven stands out. Excellent WiFi, comfortable seating, and coffee that actually gets better each time I visit.",              tag: "Tech Professional",              avatarSrc: "https://img.b2bpic.net/free-photo/african-american-curly-businesswoman-standing-with-folded-hands-portrait-successful-confident-young-pretty-female-office-employer-suit-posing-work-business-company-management-concept_74855-6735.jpg",              avatarAlt: "James Rodriguez",              imageSrc: "https://img.b2bpic.net/free-photo/parisian-coffee-shop-style-with-tasty-coffee-served-wooden-table-coffee-shop-design_482257-18283.jpg"
            },
            {
              id: "3",              name: "Emma Chen, Coffee Enthusiast",              date: "Date: 8 January 2025",              title: "Single-origin excellence",              quote: "As someone who appreciates specialty coffee, I'm impressed by the sourcing and roasting quality. The pour-overs are exceptional and really showcase each origin's unique character.",              tag: "Coffee Connoisseur",              avatarSrc: "https://img.b2bpic.net/free-photo/portrait-cheerful-teenage-girl-sitting-cafe_1262-3048.jpg",              avatarAlt: "Emma Chen",              imageSrc: "https://img.b2bpic.net/free-photo/waffles-coffee-wooden-table_501050-1062.jpg"
            },
            {
              id: "4",              name: "David Park, Social Butterfly",              date: "Date: 5 January 2025",              title: "Where connections happen",              quote: "Brew Haven has become the heart of our community. It's where friends meet, ideas spark, and memories are made over a perfect cup of coffee. Truly special place.",              tag: "Community Member",              avatarSrc: "https://img.b2bpic.net/free-photo/happy-professional_1098-12931.jpg",              avatarAlt: "David Park",              imageSrc: "https://img.b2bpic.net/free-photo/high-angle-croissants-coffee-cup_23-2148877594.jpg"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Visit Us Today"
          ctaDescription="Stop by for a perfect cup of coffee and good conversation. We're open daily."
          ctaButton={{
            text: "Get Directions",            href: "#map"
          }}
          ctaIcon={MapPin}
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          faqs={[
            {
              id: "1",              title: "What are your hours?",              content: "We're open Monday to Friday, 6:00 AM - 7:00 PM. Saturday and Sunday, 7:00 AM - 6:00 PM. Closed on major holidays."
            },
            {
              id: "2",              title: "Do you offer gift cards?",              content: "Yes! We offer digital and physical gift cards in denominations from $10 to $100. Perfect for coffee lovers."
            },
            {
              id: "3",              title: "Can I order online?",              content: "We currently accept orders through our website for pickup. Delivery is available in select areas through our partnership with local services."
            },
            {
              id: "4",              title: "Do you have dairy-free options?",              content: "Absolutely! We offer oat, almond, soy, and coconut milk alternatives at no extra charge. Ask our baristas for recommendations."
            },
            {
              id: "5",              title: "Can I host events at Brew Haven?",              content: "Yes, we have private event space available for small gatherings, book clubs, and business meetings. Contact us for details and availability."
            },
            {
              id: "6",              title: "Do you source ethically?",              content: "We work directly with Fair Trade certified farmers and ensure transparent supply chains. All our packaging is recyclable or compostable."
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Brew Haven"
          columns={[
            {
              title: "Menu",              items: [
                { label: "Coffee", href: "#menu" },
                { label: "Pastries", href: "#menu" },
                { label: "Merchandise", href: "#products" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Careers", href: "/careers" },
                { label: "Blog", href: "/blog" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Contact", href: "#contact" }
              ]
            }
          ]}
          copyrightText="© 2025 Brew Haven. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}