"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
import TextAbout from '@/components/sections/about/TextAbout';
import FeatureCardNineteen from '@/components/sections/feature/FeatureCardNineteen';
import ProductCardFive from '@/components/sections/product/ProductCardFive';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterSocial from '@/components/sections/footer/FooterSocial';
import { Coffee, Sparkles, Star, Mail, Instagram, Facebook, Twitter, Globe } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="compact"
      sizing="largeSmallSizeLargeTitles"
      background="radialGradient"
      cardStyle="solid-accent-light"
      primaryButtonStyle="neon-glow-border"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple 
          brandName="Brew Haven"
          navItems={[
            { name: "About", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Process", id: "features" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardCarousel
          title="Craft Coffee, Crafted by Hand"
          description="Experience the art of specialty coffee. From sourcing to brewing, we perfect every detail."
          tag="Premium Coffee"
          tagIcon={Coffee}
          buttons={[
            { text: "Order Now", href: "products" },
            { text: "Learn Our Story", href: "about" }
          ]}
          mediaItems={[
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xzf536", imageAlt: "Specialty espresso with microfoam" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=it95sv", imageAlt: "Latte with beautiful latte art" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xogytp", imageAlt: "Cold brew iced coffee drink" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=d41cmt", imageAlt: "Close-up of premium roasted coffee beans" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604840520-tdvz52nd.jpg", imageAlt: "Cozy coffee shop interior ambiance" }
          ]}
          ariaLabel="Hero section showcasing premium coffee drinks"
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          title="We believe great coffee starts with passion, precision, and purpose. Every cup tells a story of craftsmanship, sustainability, and connection to the source."
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Explore Our Values", href: "features" },
            { text: "View Our Beans", href: "products" }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardNineteen
          title="The Art of Coffee Excellence"
          description="Our meticulous process ensures every bean delivers its full potential."
          tag="Our Process"
          tagIcon={Sparkles}
          features={[
            {
              id: 1,
              tag: "Sourcing",
              title: "Direct Trade Partnership",
              subtitle: "Building lasting relationships with farmers worldwide",
              description: "We work directly with coffee farmers across Ethiopia, Colombia, and Indonesia to source the finest single-origin beans. Our direct trade practices ensure fair prices and sustainable farming methods.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=v663sk",
              imageAlt: "Coffee plantation harvesting"
            },
            {
              id: 2,
              tag: "Roasting",
              title: "Precision Roasting",
              subtitle: "Bringing out the unique character of each bean",
              description: "Our expert roasters carefully monitor temperature and time to unlock each bean's unique flavor profile. Small-batch roasting allows us to experiment and perfect custom blends.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=21glag",
              imageAlt: "Coffee roasting process"
            },
            {
              id: 3,
              tag: "Brewing",
              title: "Expert Preparation",
              subtitle: "Every cup crafted with technique and care",
              description: "From pour-overs to espresso machines, our baristas employ proper technique to extract optimal flavor. Temperature, grind size, and timing make all the difference.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=rr2c6g",
              imageAlt: "Manual coffee brewing technique"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Start Your Journey", href: "products" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFive
          title="Our Signature Menu"
          description="Handcrafted specialty beverages designed for coffee enthusiasts"
          tag="Featured Drinks"
          tagIcon={Sparkles}
          products={[
            {
              id: "espresso",
              button: { text: "Order" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=3x80lb",
              imageAlt: "Rich espresso shot"
            },
            {
              id: "latte",
              button: { text: "Order" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=vvernd",
              imageAlt: "Creamy latte"
            },
            {
              id: "cappuccino",
              button: { text: "Order" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ie99c4",
              imageAlt: "Classic cappuccino"
            },
            {
              id: "americano",
              button: { text: "Order" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=g5hel2",
              imageAlt: "Smooth americano"
            }
          ]}
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          buttons={[
            { text: "View Full Menu", href: "contact" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Coffee Lovers Say"
          description="Hear from our community of passionate coffee enthusiasts"
          tag="Customer Reviews"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell, Designer",
              date: "Date: 15 November 2024",
              title: "The best morning ritual I've found",
              quote: "I've tried many specialty coffee shops, but Brew Haven stands out. The attention to detail is incredible—from the sourcing to the final pour. Their espresso has completely changed how I start my day.",
              tag: "Premium Member",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604850663-u53ensbz.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604850663-u53ensbz.jpg",
              imageAlt: "Sarah enjoying her coffee"
            },
            {
              id: "2",
              name: "James Chen, Software Engineer",
              date: "Date: 10 November 2024",
              title: "Worth every penny for quality",
              quote: "As someone who works from home, good coffee is essential. Brew Haven delivers consistently excellent drinks. I appreciate knowing exactly where their beans come from and how they're roasted.",
              tag: "Regular Customer",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604847098-1c4eppxp.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604847098-1c4eppxp.jpg",
              imageAlt: "James with his favorite brew"
            },
            {
              id: "3",
              name: "Emily Rodriguez, Coffee Connoisseur",
              date: "Date: 05 November 2024",
              title: "Exceptional flavor in every cup",
              quote: "The single-origin beans they source are genuinely different. I've ordered from them multiple times and each blend tells a distinct story. Their baristas actually know what they're doing.",
              tag: "Coffee Enthusiast",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604847098-1c4eppxp.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604847098-1c4eppxp.jpg",
              imageAlt: "Emily at the coffee counter"
            },
            {
              id: "4",
              name: "Michael Thompson, Business Owner",
              date: "Date: 28 October 2024",
              title: "Perfect for office supply",
              quote: "We switched our office coffee to Brew Haven's beans. Our team immediately noticed the upgrade. The sustainability message resonates with our company values too.",
              tag: "Business Partner",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604850663-u53ensbz.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604850663-u53ensbz.jpg",
              imageAlt: "Michael in his office"
            },
            {
              id: "5",
              name: "Rebecca Foster, Educator",
              date: "Date: 22 October 2024",
              title: "Great coffee, even better values",
              quote: "I love supporting businesses that care about sustainability and fair trade. Brew Haven puts their money where their mouth is, and the coffee reflects that commitment.",
              tag: "Conscious Consumer",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604847098-1c4eppxp.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604847098-1c4eppxp.jpg",
              imageAlt: "Rebecca enjoying premium coffee"
            },
            {
              id: "6",
              name: "David Park, Tech Executive",
              date: "Date: 18 October 2024",
              title: "A new standard for excellence",
              quote: "Their approach is methodical and results-driven. Every process step has been optimized for quality. This is what premium coffee should be—not pretentious, just genuinely excellent.",
              tag: "Premium Member",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604847098-1c4eppxp.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767604847098-1c4eppxp.jpg",
              imageAlt: "David with his espresso"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Everything you need to know about our coffee and service"
          tag="FAQ"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
          faqs={[
            {
              id: "1",
              title: "What makes your coffee different?",
              content: "Our coffee is special because of our direct trade relationships with farmers, small-batch roasting, and barista expertise. We focus on single-origin beans that showcase unique flavor profiles. Every step from farm to cup is carefully controlled for quality."
            },
            {
              id: "2",
              title: "Do you offer subscriptions?",
              content: "Yes! We offer monthly coffee bean subscriptions with rotating single-origins. Subscribers receive fresh-roasted beans delivered to their door and get 15% off all in-shop drinks. You can customize frequency and roast level."
            },
            {
              id: "3",
              title: "Are your beans organic and fair trade?",
              content: "Most of our beans are organic and all are direct trade. We work exclusively with farmers who receive above-market prices and use sustainable practices. We believe in transparency and can trace every batch to its source farm."
            },
            {
              id: "4",
              title: "What's the difference between espresso and americano?",
              content: "Espresso is concentrated coffee made by forcing hot water through finely ground beans—rich and intense. An americano adds hot water to espresso, creating a similar strength to drip coffee but with different flavor characteristics and more crema."
            },
            {
              id: "5",
              title: "How long are beans fresh after roasting?",
              content: "Coffee peaks in flavor 5-10 days after roasting and stays fresh for about 4 weeks in an airtight container. We roast in small batches and ship immediately. For best flavor, use within 2-3 weeks of receiving."
            },
            {
              id: "6",
              title: "Do you have decaf options?",
              content: "Yes, we offer naturally processed decaf from select origins. Our decaf maintains excellent flavor and goes through the same quality sourcing and roasting as our regular beans. Ask our baristas for recommendations."
            },
            {
              id: "7",
              title: "Can I visit your location?",
              content: "Absolutely! We're located at 142 Maple Street, downtown. We're open Monday-Friday 7am-7pm, Saturday 8am-6pm, and Sunday 9am-5pm. Come experience our cafe and meet our baristas in person."
            },
            {
              id: "8",
              title: "Do you ship internationally?",
              content: "Currently we ship within the continental United States. We're exploring international shipping options. Sign up for our newsletter to be notified when we expand shipping regions."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Get in Touch"
          ctaDescription="Have questions about our coffee or want to partner with us? We'd love to hear from you. Reach out and join our coffee community."
          ctaButton={{ text: "Email Us", href: "mailto:hello@brewhaven.com" }}
          ctaIcon={Mail}
          useInvertedBackground="noInvert"
          animationType="slide-up"
          accordionAnimationType="smooth"
          showCard={true}
          faqs={[
            {
              id: "contact-1",
              title: "How do I order beans online?",
              content: "Browse our selection on our website, add beans to your cart, and proceed to checkout. We accept all major credit cards. Orders ship within 2 business days via Priority Mail."
            },
            {
              id: "contact-2",
              title: "What's your shipping time?",
              content: "Domestic orders typically arrive within 3-5 business days. You'll receive tracking information via email. International orders are currently not available but coming soon."
            },
            {
              id: "contact-3",
              title: "Can I request custom roasts?",
              content: "Yes! We offer custom roasting for bulk orders (5+ lbs). Contact our team at wholesale@brewhaven.com to discuss your preferences and requirements."
            },
            {
              id: "contact-4",
              title: "Do you host coffee tastings?",
              content: "We host monthly cupping events at our cafe. These educational sessions showcase different origins and brewing methods. Spots fill quickly—email us to reserve your place."
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSocial
          logoText="Brew Haven"
          copyrightText="© Brew Haven, 2025. Crafted with passion and precision."
          columns={[
            {
              title: "Company",
              items: [
                { label: "About Us", href: "about" },
                { label: "Our Process", href: "features" },
                { label: "Sustainability", href: "about" },
                { label: "Careers", href: "contact" }
              ]
            },
            {
              title: "Products",
              items: [
                { label: "Menu", href: "products" },
                { label: "Subscriptions", href: "products" },
                { label: "Merchandise", href: "products" },
                { label: "Gift Cards", href: "contact" }
              ]
            },
            {
              title: "Connect",
              items: [
                { label: "Contact", href: "contact" },
                { label: "FAQs", href: "faq" },
                { label: "Hours & Location", href: "contact" },
                { label: "Newsletter", href: "contact" }
              ]
            }
          ]}
          socialLinks={[
            { icon: Instagram, href: "https://instagram.com", ariaLabel: "Instagram" },
            { icon: Facebook, href: "https://facebook.com", ariaLabel: "Facebook" },
            { icon: Twitter, href: "https://twitter.com", ariaLabel: "Twitter" },
            { icon: Globe, href: "https://brewhaven.com", ariaLabel: "Website" }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}