"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import FeatureBorderGlow from '@/components/sections/feature/featureBorderGlow/FeatureBorderGlow';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Coffee, Leaf, Flame, Zap, Heart } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSmallSizeMediumTitles"
      background="circleGradient"
      cardStyle="inset"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal
          brandName="Brew Haven"
          button={{ text: "Order Now", href: "#contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboard
          logoText="Brew Haven"
          description="Specialty coffee crafted with precision and passion. Experience ethically sourced, expertly roasted beans transformed into extraordinary coffee moments."
          background={{ variant: "sparkles-gradient" }}
          imageSrc="https://img.b2bpic.net/free-photo/breakfast-composition_23-2148104746.jpg"
          imageAlt="Brew Haven specialty coffee showcase with latte art"
          frameStyle="card"
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="Our Story"
          tagIcon={Coffee}
          title="Coffee Crafted with Purpose"
          description="At Brew Haven, we believe exceptional coffee begins with respect for the craft. Every bean is sourced from sustainable farms, roasted in small batches to preserve flavor complexity, and prepared by skilled baristas who understand the art of espresso. Since 2015, we've been dedicated to creating a space where coffee quality and community converge."
          metrics={[
            { value: "15K+", title: "Cups Served Weekly" },
            { value: "32", title: "Origin Single-Origins" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/coffee-beans-glass-jar-black-background-closeup-selective-focus-vertical-frame-roasting-preparing-coffee-vertical-frame_166373-2308.jpg"
          imageAlt="Brew Haven cozy interior with modern seating"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Signature Selections"
          description="Explore our handcrafted specialty drinks available year-round and seasonal creations"
          products={[
            {
              id: "1",              name: "Espresso Perfetto",              price: "$4.50",              imageSrc: "https://img.b2bpic.net/free-photo/pouring-milk-cup-coffee_1153-548.jpg",              imageAlt: "Double shot espresso with perfect crema",              initialQuantity: 1
            },
            {
              id: "2",              name: "Cappuccino Classico",              price: "$5.75",              imageSrc: "https://img.b2bpic.net/free-photo/man-white-shirt-drinks-coffee-outdoors-summer_72229-136.jpg",              imageAlt: "Creamy cappuccino with latte art",              initialQuantity: 1
            },
            {
              id: "3",              name: "Cold Brew Harmony",              price: "$5.50",              imageSrc: "https://img.b2bpic.net/free-photo/waiter-pouring-caramel-into-triple-color-coffee-drink-from-milk-pot_140725-4147.jpg",              imageAlt: "Refreshing iced cold brew with cream",              initialQuantity: 1
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBorderGlow
          title="Why Coffee Lovers Choose Us"
          description="Discover what makes Brew Haven the destination for specialty coffee enthusiasts"
          features={[
            {
              icon: Leaf,
              title: "Ethically Sourced",              description: "Direct relationships with coffee farmers ensuring fair wages, sustainable practices, and transparency from origin to cup."
            },
            {
              icon: Flame,
              title: "Small-Batch Roasting",              description: "Our in-house roastery perfects each origin, preserving unique flavor profiles and delivering coffee at peak freshness."
            },
            {
              icon: Zap,
              title: "Expert Baristas",              description: "Certified specialists who master espresso technique, latte art, and alternative brewing methods to craft your perfect cup."
            },
            {
              icon: Heart,
              title: "Community First",              description: "A welcoming space designed for meaningful connections, creative work, and celebration of coffee culture."
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          title="Loved by Our Community"
          description="Real words from coffee enthusiasts who've discovered their perfect brew"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              role: "Coffee Enthusiast",              testimonial: "The quality of coffee here is unmatched. Every visit, I discover new flavor notes I never experienced before. The baristas truly care about the craft.",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-cheerful-dark-skinned-female-with-bushy-afro-haistyle-holds-cup-coffee-latte-sits-against-cafeteria-interior-being-good-mood_273609-3171.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              name: "James Chen",              role: "Regular Customer",              testimonial: "I've tried specialty coffee shops across the city, but Brew Haven's attention to detail from sourcing to preparation is exceptional. My daily ritual.",              imageSrc: "https://img.b2bpic.net/free-photo/cropped-shot-good-looking-cheerful-african-american-female-holds-cup-coffee-has-lunch-cozy-cafeteria-rests-after-excursion-recreats-resort-country_273609-3409.jpg",              imageAlt: "James Chen"
            },
            {
              id: "3",              name: "Emma Rodriguez",              role: "Creative Professional",              testimonial: "More than great coffee—it's the atmosphere, the knowledgeable staff, and the sense of belonging. My creative sanctuary.",              imageSrc: "https://img.b2bpic.net/free-photo/positive-young-woman-with-glad-expression-smiles-happily-hears-something-funny-drinks-takeaway-coffee-dressed-casual-jumper-poses-against-blurred-background-people-lifestyle-leisure-concept_273609-56911.jpg",              imageAlt: "Emma Rodriguez"
            },
            {
              id: "4",              name: "Michael Park",              role: "Coffee Explorer",              testimonial: "The single-origin selection here educates my palate every week. Supporting ethical sourcing while enjoying phenomenal coffee. Perfect.",              imageSrc: "https://img.b2bpic.net/free-photo/woman-drinking-hot-coffee-outdoor_1139-312.jpg",              imageAlt: "Michael Park"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Get In Touch"
          description="Have questions about our coffee? Want to book a tasting or learn about wholesale options? We'd love to hear from you."
          inputs={[
            { name: "name", type: "text", placeholder: "Your name", required: true },
            { name: "email", type: "email", placeholder: "Email address", required: true }
          ]}
          textarea={{
            name: "message",            placeholder: "Tell us what brings you in...",            rows: 5,
            required: true
          }}
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/high-angle-desk-arrangement-with-coffee-cup_23-2149073078.jpg"
          imageAlt="Coffee preparation workspace"
          mediaPosition="right"
          buttonText="Send Message"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Brew Haven"
          columns={[
            {
              title: "Shop",              items: [
                { label: "Coffee Beans", href: "#products" },
                { label: "Signature Drinks", href: "#products" },
                { label: "Gift Cards", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Our Story", href: "#about" },
                { label: "Sustainability", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Contact", href: "#contact" },
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Newsletter", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 Brew Haven | Crafted with Care"
        />
      </div>
    </ThemeProvider>
  );
}