"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Coffee } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="small"
      sizing="largeSmallSizeLargeTitles"
      background="circleGradient"
      cardStyle="gradient-mesh"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Brew Haven"
          navItems={[
            { name: "About", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Discover the Perfect Cup"
          description="Handcrafted coffee made from premium beans, roasted fresh daily. Experience the warmth and richness of exceptional coffee at Brew Haven."
          background={{ variant: "sparkles-gradient" }}
          tag="Specialty Coffee"
          tagIcon={Coffee}
          imageSrc="https://img.b2bpic.net/free-photo/close-up-hand-pouring-milk-delicious-coffee-cup_23-2148865585.jpg"
          imageAlt="Premium espresso being prepared"
          buttons={[
            { text: "View Our Menu", href: "products" },
            { text: "Visit Us", href: "contact" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="Why Brew Haven"
          description="We believe in the art and science of great coffee"
          tabs={[
            {
              id: "quality",              label: "Premium Quality",              description: "We source only the finest arabica and robusta beans from ethically managed farms around the world. Each batch is hand-selected and roasted to perfection."
            },
            {
              id: "expertise",              label: "Expert Craft",              description: "Our baristas are trained in advanced techniques and compete in regional competitions. Every cup is crafted with precision and passion."
            },
            {
              id: "community",              label: "Community",              description: "We're more than a coffee shop—we're a gathering place. We host events, support local artists, and build connections in our community."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/empty-wood-chair-restaurant_1339-5949.jpg"
          imageAlt="Brew Haven coffee shop interior"
          imagePosition="right"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Our Signature Blends"
          description="Carefully curated selections that define our menu. Each blend offers a unique flavor profile and story."
          products={[
            {
              id: "1",              name: "Single-Origin Espresso",              price: "$5.50",              imageSrc: "https://img.b2bpic.net/free-photo/cup-hot-americanoand-glass-water_140725-9775.jpg",              imageAlt: "Rich single-origin espresso"
            },
            {
              id: "2",              name: "Velvety Cappuccino",              price: "$6.00",              imageSrc: "https://img.b2bpic.net/free-photo/easter-coffee-decorations-still-life_23-2150244082.jpg",              imageAlt: "Cappuccino with latte art"
            },
            {
              id: "3",              name: "Bold Americano",              price: "$4.75",              imageSrc: "https://img.b2bpic.net/free-photo/leftover-coffee-black-cup-window-sill_23-2147898257.jpg",              imageAlt: "Classic americano"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="By The Numbers"
          description="Our impact in the community since opening our doors"
          metrics={[
            {
              id: "1",              value: "8K+",              description: "Happy Customers Daily"
            },
            {
              id: "2",              value: "15",              description: "Years of Excellence"
            },
            {
              id: "3",              value: "50+",              description: "Origin Countries"
            },
            {
              id: "4",              value: "98%",              description: "Customer Satisfaction"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="scale-rotate"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          title="What Our Customers Love"
          description="Join thousands of coffee enthusiasts who've made Brew Haven their daily ritual"
          testimonials={[
            {
              id: "1",              title: "The Best Coffee in Town",              quote: "I've been coming here for years and every single cup is consistently amazing. The baristas know my order by heart, and the atmosphere is always welcoming.",              name: "Sarah Mitchell",              role: "Marketing Manager",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-woman_23-2148574874.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              title: "A True Coffee Experience",              quote: "What sets Brew Haven apart is their commitment to quality. You can taste the difference in every sip—the freshness, the care, the expertise.",              name: "Michael Chen",              role: "Software Engineer",              imageSrc: "https://img.b2bpic.net/free-photo/caucasion-woman-casual-confident-concept_53876-137678.jpg",              imageAlt: "Michael Chen"
            },
            {
              id: "3",              title: "My Second Home",              quote: "More than just great coffee, this place has become my sanctuary. The community, the vibe, the entire experience keeps me coming back.",              name: "Jessica Rodriguez",              role: "Freelance Designer",              imageSrc: "https://img.b2bpic.net/free-photo/positive-blond-girl-shows-tongue-winks-camera-makes-happy-funny-face-stands-against-white-background_176420-46979.jpg",              imageAlt: "Jessica Rodriguez"
            },
            {
              id: "4",              title: "Exceptional Service",              quote: "The staff is incredibly knowledgeable and passionate about coffee. They helped me discover my favorite blend and always personalize my experience.",              name: "David Kim",              role: "Local Entrepreneur",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-attractive-african-american-woman-smiling-looking-happy-standing-yellow-background_1258-54850.jpg",              imageAlt: "David Kim"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Frequently Asked Questions"
          sideDescription="Everything you need to know about Brew Haven and our coffee"
          faqs={[
            {
              id: "1",              title: "What coffee beans do you use?",              content: "We source premium arabica and robusta beans from ethical, sustainable farms around the world. Our beans are roasted fresh in-house every 2-3 days to ensure maximum flavor and freshness."
            },
            {
              id: "2",              title: "Do you offer single-origin options?",              content: "Yes! We feature rotating single-origin selections that change seasonally. Ask our baristas about our current offerings—they can tell you about the farm, altitude, and tasting notes."
            },
            {
              id: "3",              title: "Are you vegan and gluten-free friendly?",              content: "Absolutely. We offer oat, almond, and soy milk alternatives, and all our pastries are clearly labeled. Our baristas are trained to handle dietary restrictions with care."
            },
            {
              id: "4",              title: "Do you have a loyalty program?",              content: "Yes! Our Brew Rewards program gives you a free coffee after every 10 purchases. Download our app to start earning points today."
            },
            {
              id: "5",              title: "Can I order online for pickup?",              content: "Yes, you can order through our website or app for curbside pickup or in-store pickup. Most orders are ready within 10 minutes."
            }
          ]}
          textPosition="left"
          useInvertedBackground="invertDefault"
          animationType="smooth"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to experience the perfect cup? Visit us today or reach out with any questions. We'd love to welcome you to Brew Haven."
          animationType="reveal-blur"
          buttons={[
            { text: "Get Directions", href: "https://maps.google.com" },
            { text: "Send Message", href: "contact" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Company",              items: [
                { label: "About Us", href: "about" },
                { label: "Our Story", href: "about" },
                { label: "Careers", href: "https://brewhaven.com/careers" }
              ]
            },
            {
              title: "Menu",              items: [
                { label: "Coffee Drinks", href: "products" },
                { label: "Pastries", href: "products" },
                { label: "Merchandise", href: "products" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Contact Us", href: "contact" },
                { label: "Instagram", href: "https://instagram.com/brewhaven" },
                { label: "Newsletter", href: "contact" }
              ]
            }
          ]}
          copyrightText="© 2025 Brew Haven. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}