"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import TextSplitAbout from '@/components/sections/about/TextSplitAbout';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Coffee, Star, Users, Globe, Leaf, Mail } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeLargeTitles"
      background="none"
      cardStyle="soft-shadow"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered 
          brandName="BrewHaven"
          navItems={[
            { name: "Home", id: "home" },
            { name: "Menu", id: "products" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" },
            { name: "Reviews", id: "testimonials" }
          ]}
          button={{
            text: "Order Now",            href: "products"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Discover Your Perfect Brew"
          description="Experience premium specialty coffee crafted by expert baristas. From rich espressos to smooth cold brews, find your favorite blend at BrewHaven."
          tag="Premium Coffee Since 2015"
          tagIcon={Coffee}
          imageSrc="https://img.b2bpic.net/free-photo/delicious-organic-latte-macchiato-with-milk_23-2148420329.jpg"
          imageAlt="Premium coffee espresso drink"
          imagePosition="right"
          buttons={[
            { text: "Explore Menu", href: "products" },
            { text: "Visit Us", href: "contact" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <TextSplitAbout
          title="Craft & Community"
          description={[
            "At BrewHaven, we believe coffee is more than just a beverage—it's a ritual, a moment of connection, and a celebration of craftsmanship.",            "Since 2015, we've been sourcing the finest beans from sustainable farms around the world. Our passionate baristas spend years perfecting their craft to ensure every cup meets our exacting standards.",            "Whether you're a coffee connoisseur or just starting your coffee journey, we welcome you to our warm, vibrant community where quality meets comfort."
          ]}
          showBorder={true}
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "Learn Our Story", href: "about" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Featured Menu Items"
          description="Handcrafted drinks designed to elevate your coffee experience"
          tag="Menu Favorites"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          products={[
            {
              id: "1",              name: "Single Origin Espresso",              price: "$5.50",              imageSrc: "https://img.b2bpic.net/free-photo/cloth-bag-with-coffee-beans_23-2148937258.jpg",              imageAlt: "coffee bag roasted beans premium"
            },
            {
              id: "2",              name: "Artisan Cappuccino",              price: "$6.25",              imageSrc: "https://img.b2bpic.net/free-photo/cloth-bag-with-coffee-beans_23-2148937260.jpg",              imageAlt: "cappuccino coffee cup latte foam"
            },
            {
              id: "3",              name: "Cold Brew Concentrate",              price: "$7.00",              imageSrc: "https://img.b2bpic.net/free-photo/coffee-beans-burlap-sack-plywood_23-2148255005.jpg",              imageAlt: "cold brew iced coffee drink"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Our Impact"
          description="Celebrating our growth and commitment to coffee excellence"
          tag="BrewHaven Milestones"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          metrics={[
            {
              id: "1",              value: "15K",              title: "Happy Customers",              description: "Loyal coffee enthusiasts who visit us regularly",              icon: Users
            },
            {
              id: "2",              value: "8",              title: "Years Strong",              description: "Crafting quality coffee since 2015",              icon: Coffee
            },
            {
              id: "3",              value: "50+",              title: "Coffee Origins",              description: "Single-origin beans from around the world",              icon: Globe
            },
            {
              id: "4",              value: "100%",              title: "Sustainable",              description: "Ethically sourced from partner farms",              icon: Leaf
            }
          ]}
          gridVariant="four-items-2x2-equal-grid"
          animationType="scale-rotate"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Customers Say"
          description="Hear from coffee lovers who've made BrewHaven their favorite spot"
          tag="Customer Reviews"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          showRating={true}
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              handle: "@sarahcoffeelover",              testimonial: "The best espresso I've had in years! The baristas really know their craft. Every visit is a highlight of my day.",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg",              imageAlt: "woman portrait professional smile headshot"
            },
            {
              id: "2",              name: "James Rodriguez",              handle: "@jamesrphoto",              testimonial: "Amazing atmosphere, incredible coffee quality, and genuine people who care about their customers. Highly recommended!",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-business-woman-standing-outside-office-buildings-business-success-concept_58466-12274.jpg",              imageAlt: "man portrait professional smile headshot"
            },
            {
              id: "3",              name: "Emma Chen",              handle: "@emmawrites",              testimonial: "I write here almost daily. Perfect spot for productivity and the cold brew is absolutely delicious. They're always smiling!",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/beautiful-charming-casual-girl-joyfully-looking-camera-isolated_574295-3854.jpg",              imageAlt: "woman portrait smile professional friendly"
            },
            {
              id: "4",              name: "Marcus Thompson",              handle: "@marcusvisuals",              testimonial: "From bean selection to execution, everything about BrewHaven is premium. Worth every penny. My go-to coffee destination.",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/business-woman-posing-street_23-2148213514.jpg",              imageAlt: "man portrait smile professional friendly"
            },
            {
              id: "5",              name: "Lisa Anderson",              handle: "@lisaandesigns",              testimonial: "The specialty drinks are innovative and delicious. Love their commitment to sustainability. Best local coffee shop!",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg",              imageAlt: "woman portrait professional smile headshot"
            },
            {
              id: "6",              name: "David Park",              handle: "@davidparkdirect",              testimonial: "Consistent excellence. Whether it's a simple black coffee or complex specialty drink, BrewHaven delivers every single time.",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-business-woman-standing-outside-office-buildings-business-success-concept_58466-12274.jpg",              imageAlt: "man portrait professional smile headshot"
            }
          ]}
          animationType="slide-up"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Questions About BrewHaven?"
          sideDescription="Find answers to common questions about our coffee, ordering, and services."
          textPosition="left"
          useInvertedBackground="invertDefault"
          faqs={[
            {
              id: "1",              title: "What coffee beans do you use?",              content: "We source single-origin and specialty blend beans from sustainable farms across South America, Africa, and Asia. Each batch is carefully selected and roasted in-house to preserve flavor profiles and quality."
            },
            {
              id: "2",              title: "Do you offer oat or plant-based milk options?",              content: "Yes! We offer oat, almond, soy, and coconut milk alternatives at no extra charge. We also have dairy-free pastry options available."
            },
            {
              id: "3",              title: "Can I order online for pickup?",              content: "Absolutely! You can order through our website or app and pick up your order within 15 minutes. We also offer delivery through our partners."
            },
            {
              id: "4",              title: "Do you have a loyalty program?",              content: "Yes, join our BrewRewards program! Earn points on every purchase and redeem them for free drinks, pastries, and exclusive items."
            },
            {
              id: "5",              title: "Are your coffee beans available for home purchase?",              content: "Yes! We sell whole bean and ground coffee in 12oz bags. Visit us in-store or order online. Free shipping on orders over $50!"
            }
          ]}
          animationType="smooth"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Stay Connected"
          title="Join Our Coffee Community"
          description="Subscribe to our newsletter for exclusive deals, new menu items, and brewing tips delivered straight to your inbox."
          tagIcon={Mail}
          useInvertedBackground="noInvert"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime with one click."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Navigate",              items: [
                { label: "Home", href: "home" },
                { label: "Menu", href: "products" },
                { label: "About", href: "about" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Twitter", href: "https://twitter.com" },
                { label: "Email", href: "mailto:hello@brewhaven.com" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Accessibility", href: "#" }
              ]
            }
          ]}
          bottomLeftText="© 2025 BrewHaven Coffee. All rights reserved."
          bottomRightText="Crafted with ☕ for coffee lovers"
        />
      </div>
    </ThemeProvider>
  );
}