"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import MediaAbout from '@/components/sections/about/MediaAbout';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Heart, HelpCircle, Sparkles } from "lucide-react";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="medium"
      background="circleGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          navItems={[
            { name: "Hero", id: "hero-section" },
            { name: "About", id: "about-section" },
            { name: "Products", id: "products-section" },
            { name: "Features", id: "features-section" },
            { name: "Testimonials", id: "testimonials-section" },
            { name: "FAQ", id: "faq-section" },
            { name: "Contact", id: "contact-section" }
          ]}
          brandName="Artisan Bakery"
          bottomLeftText="Freshly Baked Daily"
          bottomRightText="hello@artisanbakery.com"
        />
      </div>

      <div id="hero-section" data-section="hero-section">
        <HeroSplitKpi
          title="Artisan Bakery"
          description="Handcrafted breads and pastries baked fresh daily. Experience the warmth of traditional baking techniques combined with premium, locally-sourced ingredients."
          background={{ variant: "radial-gradient" }}
          tag="Freshly Baked Daily"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { label: "Shop Now", href: "#products-section", dataWebildId: "hero_split_kpi_shop_btn" },
            { label: "View Menu", href: "#menu-section", dataWebildId: "hero_split_kpi_menu_btn" }
          ]}
          buttonAnimation="slide-up"
          imageSrc="https://img.b2bpic.net/free-photo/abstract-luxury-gradient-blue-background_53876-120942.jpg"
          imageAlt="artisan bakery showcase with fresh baked goods"
          mediaAnimation="fade-in"
          kpiItems={[
            { value: "500+", label: "Loaves Baked Daily" },
            { value: "15+", label: "Years of Tradition" },
            { value: "100%", label: "Locally Sourced" },
            { value: "4.9★", label: "Customer Rating" }
          ]}
          enableKpiAnimation={true}
          ariaLabel="Hero section for artisan bakery featuring fresh baked goods and key metrics"
        />
      </div>

      <div id="about-section" data-section="about-section">
        <MediaAbout
          title="Baked with Love, Made Fresh Daily"
          description="Since 2015, we've been committed to crafting exceptional baked goods using only the finest ingredients. Our small-batch approach ensures every croissant, sourdough, and pastry that leaves our ovens meets our exacting standards. We believe in transparency, sustainability, and creating moments of joy—one bite at a time."
          tag="Our Story"
          tagIcon={Heart}
          tagAnimation="slide-up"
          buttons={[
            { text: "Explore Our Menu", href: "#products-section" },
            { text: "Visit Us Today", href: "#contact-section" }
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/baker-forming-dough-sphere-wooden-board_74855-5658.jpg"
          imageAlt="baker kneading dough artisan baking process hands making bread"
          useInvertedBackground={false}
          ariaLabel="About our artisan bakery and baking philosophy"
        />
      </div>

      <div id="products-section" data-section="products-section">
        <ProductCardOne
          title="Our Freshly Baked Selection"
          description="Handcrafted with premium ingredients and baked fresh daily. From artisan breads to delicate pastries, each item is made with love and care."
          tag="New Arrivals"
          tagIcon={Sparkles}
          tagAnimation="opacity"
          textboxLayout="default"
          gridVariant="bento-grid"
          animationType="scale-rotate"
          useInvertedBackground={false}
          buttonAnimation="slide-up"
          buttons={[
            { text: "View All Products", href: "#" },
            { text: "Order Online", href: "#" }
          ]}
          products={[
            {
              id: "sourdough-bread",              name: "Artisan Sourdough",              price: "$8.99",              imageSrc: "http://img.b2bpic.net/free-photo/freshly-baked-sourdough-bread-loaf-with-slice-cut-off-slate-board-with-wheat-stalks_9975-124842.jpg",              imageAlt: "sourdough bread loaf artisan bread crusty sourdough",              isFavorited: false
            },
            {
              id: "croissants",              name: "Butter Croissants",              price: "$4.99",              imageSrc: "http://img.b2bpic.net/free-photo/view-tasty-croissants_23-2148531595.jpg",              imageAlt: "fresh croissants buttery pastries golden croissants",              isFavorited: false
            },
            {
              id: "chocolate-cake",              name: "Dark Chocolate Cake",              price: "$24.99",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=m6nuwa",              imageAlt: "chocolate cake layer cake chocolate ganache dessert",              isFavorited: false
            },
            {
              id: "cinnamon-rolls",              name: "Cinnamon Rolls",              price: "$5.99",              imageSrc: "http://img.b2bpic.net/free-photo/traditional-cinnamon-buns-white-table-homemade-sweet-buns_127032-2691.jpg",              imageAlt: "cinnamon rolls frosted pastries sweet rolls",              isFavorited: false
            },
            {
              id: "berry-tart",              name: "Mixed Berry Tart",              price: "$18.99",              imageSrc: "http://img.b2bpic.net/free-photo/vertical-selective-closeup-shot-pie-with-black-red-berries_181624-5189.jpg",              imageAlt: "berry tart fruit tart fresh berry dessert",              isFavorited: false
            },
            {
              id: "focaccia",              name: "Rosemary Focaccia",              price: "$6.99",              imageSrc: "http://img.b2bpic.net/free-photo/delicious-slice-pizza-with-vegetables_23-2148753757.jpg",              imageAlt: "focaccia bread rosemary bread italian focaccia",              isFavorited: false
            }
          ]}
          carouselMode="buttons"
          ariaLabel="Our freshly baked products showcase"
        />
      </div>

      <div id="features-section" data-section="features-section">
        <FeatureCardMedia
          title="Why Our Bakery Stands Out"
          description="Discover what makes our baked goods special—from sourcing to your table"
          tag="Crafted with Care"
          tagIcon={Heart}
          tagAnimation="opacity"
          animationType="slide-up"
          textboxLayout="split"
          useInvertedBackground={false}
          carouselMode="buttons"
          features={[
            {
              id: "feature-1",              title: "Artisan Ingredients",              description: "We source only the finest organic flour, European butter, and locally-sourced eggs to ensure every bite is exceptional. Our commitment to quality ingredients means you taste the difference in every pastry.",              tag: "Premium Quality",              imageSrc: "http://img.b2bpic.net/free-photo/milk-bakery-products_93675-134322.jpg",              imageAlt: "fresh baking ingredients organic flour quality ingredients"
            },
            {
              id: "feature-2",              title: "Small-Batch Baking",              description: "Every item is baked fresh daily in small batches to guarantee peak freshness and flavor. Our bakers arrive before dawn to ensure warm, delicious treats greet you each morning.",              tag: "Fresh Daily",              imageSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-baker-standing-with-arms-crossed_1170-2018.jpg",              imageAlt: "professional baker bakery staff baker portrait"
            },
            {
              id: "feature-3",              title: "Community Connection",              description: "We're more than a bakery—we're a gathering place where neighbors become friends. Join our loyalty program and be part of our growing family of baking enthusiasts.",              tag: "Local Love",              imageSrc: "http://img.b2bpic.net/free-photo/help-yourself_1098-16047.jpg",              imageAlt: "community gathering bakery customers social dining"
            },
            {
              id: "feature-4",              title: "Custom Orders Welcome",              description: "Planning a special event? Our team creates custom cakes, pastries, and bread for weddings, celebrations, and corporate events. Let us make your occasion unforgettable.",              tag: "Made to Order",              imageSrc: "http://img.b2bpic.net/free-photo/side-view-woman-delivering-coffee_23-2149663653.jpg",              imageAlt: "delivery service fast shipping bakery delivery"
            }
          ]}
          buttons={[
            { text: "Explore Our Story", href: "#about-section" }
          ]}
          buttonAnimation="opacity"
          ariaLabel="Bakery features and specialties"
        />
      </div>

      <div id="testimonials-section" data-section="testimonials-section">
        <TestimonialCardOne
          title="Loved by Our Community"
          description="Discover why customers return again and again for our freshly baked goods and exceptional service."
          tag="Customer Stories"
          tagIcon={Heart}
          tagAnimation="opacity"
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          carouselMode="buttons"
          animationType="slide-up"
          useInvertedBackground={false}
          ariaLabel="Customer testimonials and reviews"
          testimonials={[
            {
              id: "testimonial-1",              name: "Sarah Mitchell",              role: "Local Business Owner",              company: "Mitchell & Co.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=1",              imageAlt: "happy customer satisfied person portrait smiling"
            },
            {
              id: "testimonial-2",              name: "James Chen",              role: "Food Blogger",              company: "Taste & Tell",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiley-young-woman-holding-fresh-bread_23-2148454536.jpg",              imageAlt: "customer with bread happy person satisfied customer"
            },
            {
              id: "testimonial-3",              name: "Emma Rodriguez",              role: "Wedding Planner",              company: "Celebrations by Emma",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/young-happy-man-serving-food-dining-table-while-having-lunch-with-friends-home_637285-5866.jpg",              imageAlt: "family enjoying food happy family home gathering"
            },
            {
              id: "testimonial-4",              name: "Michael Thompson",              role: "Regular Customer",              company: "Downtown Community",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=2",              imageAlt: "customer testimonial happy person portrait satisfied client"
            },
            {
              id: "testimonial-5",              name: "Lisa Park",              role: "Café Owner",              company: "Park Street Café",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-happy-woman-eating-piece-cake_171337-4068.jpg",              imageAlt: "person eating pastry happy customer enjoying food"
            },
            {
              id: "testimonial-6",              name: "David Williams",              role: "Event Coordinator",              company: "Signature Events",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/man-baker-kitchen-by-pastry-cart_1303-32295.jpg",              imageAlt: "customer satisfaction happy person bakery customer"
            }
          ]}
          buttons={[
            { text: "Share Your Story", href: "#contact-section" }
          ]}
          buttonAnimation="opacity"
        />
      </div>

      <div id="faq-section" data-section="faq-section">
        <FaqBase
          title="Freshly Baked Questions"
          description="Everything you need to know about our artisan bakery, from sourcing our ingredients to placing your perfect order."
          tag="We're Here to Help"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          textboxLayout="default"
          faqsAnimation="slide-up"
          useInvertedBackground={false}
          animationType="smooth"
          showCard={true}
          ariaLabel="Frequently asked questions about our bakery"
          faqs={[
            {
              id: "faq-1",              title: "What ingredients do you use in your baked goods?",              content: "We believe in quality over shortcuts. Our breads and pastries are made with premium European flours, locally-sourced butter, and organic eggs. We avoid artificial preservatives and additives, ensuring every bite is as fresh and wholesome as possible. Our commitment to ingredient transparency means you always know exactly what you're enjoying."
            },
            {
              id: "faq-2",              title: "Can I place custom orders for special occasions?",              content: "Absolutely! We love creating custom cakes, decorated cookies, and specialty bread orders for weddings, birthdays, and corporate events. Please contact us at least 2 weeks in advance to discuss your vision. Our team will work with you to design something truly special that matches your celebration perfectly."
            },
            {
              id: "faq-3",              title: "Do you offer gluten-free or vegan options?",              content: "Yes, we're proud to offer a selection of gluten-free breads and pastries made with high-quality alternative flours. We also have delicious vegan options including dairy-free croissants and plant-based cakes. All items are prepared in our dedicated area to prevent cross-contamination. Ask our staff about current availability!"
            },
            {
              id: "faq-4",              title: "What are your hours and how do I place an online order?",              content: "We're open Tuesday through Sunday, 7 AM to 6 PM, and closed Mondays. You can place online orders through our website for pickup or local delivery. Orders must be placed 24 hours in advance. For same-day purchases, visit us in-store where our full selection is always available fresh from the ovens."
            },
            {
              id: "faq-5",              title: "How do you ensure freshness in your baked goods?",              content: "Everything is baked fresh daily in our open kitchen. We don't use preservatives, so we recommend enjoying our products within 2-3 days of purchase. Bread stays fresher longer when stored in a paper bag at room temperature, while pastries are best enjoyed the day of purchase. Freezing is also a great option for extending shelf life!"
            },
            {
              id: "faq-6",              title: "Do you offer wholesale or catering services?",              content: "We do! Our wholesale program is perfect for cafes, restaurants, and retailers looking for premium baked goods. We also provide catering for events of all sizes. Contact our team to discuss volume pricing, delivery schedules, and custom menu options tailored to your business needs."
            }
          ]}
          buttons={[
            { text: "Contact Us", href: "#contact-section" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="contact-section" data-section="contact-section">
        <ContactSplitForm
          title="Get in Touch"
          description="Have questions about our fresh baked goods or custom orders? We'd love to hear from you! Reach out and let's start a conversation about bringing warmth and joy to your table."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "email", type: "email", placeholder: "Your Email", required: true },
            { name: "phone", type: "tel", placeholder: "Phone Number (Optional)" }
          ]}
          textarea={{
            name: "message",            placeholder: "Tell us about your inquiry—custom orders, wholesale requests, or just say hello!",            rows: 5,
            required: true
          }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/trendy-bakery-shop_53876-23440.jpg"
          imageAlt="bakery storefront shop entrance welcoming store"
          mediaAnimation="blur-reveal"
          mediaPosition="right"
          buttonText="Send Message"
          ariaLabel="Contact us form section"
        />
      </div>

      <div id="footer-section" data-section="footer-section">
        <FooterBase
          logoText="Artisan Bakery"
          copyrightText="© 2025 Artisan Bakery. All rights reserved."
          columns={[
            {
              title: "Shop",              items: [
                { label: "Fresh Breads", href: "#products-section" },
                { label: "Pastries & Cakes", href: "#products-section" },
                { label: "Custom Orders", href: "#contact-section" },
                { label: "Seasonal Specials", href: "#products-section" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about-section" },
                { label: "Our Story", href: "#about-section" },
                { label: "Testimonials", href: "#testimonials-section" },
                { label: "Careers", href: "#contact-section" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQ", href: "#faq-section" },
                { label: "Contact Us", href: "#contact-section" },
                { label: "Shipping Info", href: "#contact-section" },
                { label: "Returns", href: "#contact-section" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Newsletter", href: "#contact-section" },
                { label: "Email", href: "mailto:hello@artisanbakery.com" }
              ]
            }
          ]}
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}