"use client"
import { Award, Heart, Sparkles } from "lucide-react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import FeatureCardSeven from '@/components/sections/feature/FeatureCardSeven';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterMedia from '@/components/sections/footer/FooterMedia';

export default function BakeryPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="compact"
      sizing="mediumLargeSizeLargeTitles"
      background="floatingGradient"
      cardStyle="subtle-shadow"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Sweet Haven Bakery"
          navItems={[
            { name: "About", id: "about" },
            { name: "Products", id: "products" },
            { name: "Why Us", id: "why-us" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Order Online",            href: "#contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDualMedia
          title="Handcrafted Goodness Baked Fresh Daily"
          description="Welcome to Sweet Haven Bakery, where tradition meets taste. We use only the finest organic ingredients and time-honored techniques to create exceptional baked goods that bring joy to every table."
          tag="Local Bakery"
          tagIcon={Sparkles}
          background={{ variant: "plain" }}
          mediaItems={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/delicious-various-loaves-bread_23-2147761313.jpg",              imageAlt: "Fresh bakery display with artisan breads and pastries"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/various-type-rustic-breads-box_23-2147975199.jpg",              imageAlt: "Baker preparing fresh dough in the oven"
            }
          ]}
          rating={5}
          ratingText="Loved by the community"
          buttons={[
            { text: "Order Now", href: "#contact" },
            { text: "Learn More", href: "#about" }
          ]}
          ariaLabel="Hero section - Welcome to Sweet Haven Bakery"
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="Our Story"
          description="Discover what makes Sweet Haven Bakery special and why families trust us."
          tabs={[
            {
              id: "heritage",              label: "Our Heritage",              description: "For over 20 years, Sweet Haven Bakery has been a cornerstone of our community. Founded by master baker Maria Santos, our bakery started with a single wood-fired oven and a passion for authentic baking. Today, we maintain those same values while bringing joy to thousands of customers every week."
            },
            {
              id: "method",              label: "Our Method",              description: "We believe in slow fermentation and traditional techniques. Every loaf is hand-shaped, every pastry is crafted with care. We start before dawn to ensure our customers wake up to the aroma of fresh bread. No shortcuts, no artificial preservatives—just pure, honest baking."
            },
            {
              id: "ingredients",              label: "Our Ingredients",              description: "Quality starts with ingredients. We partner directly with local organic farms to source the finest grains, butter, and produce. Every ingredient is chosen for flavor and nutritional value. We believe you can taste the difference when something is made with love and premium ingredients."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/woman-holding-bread-dark-table-with-eggs-flour-bowl-glass-oil_114579-22475.jpg"
          imageAlt="Warm and inviting bakery interior with fresh baked goods"
          imagePosition="right"
          useInvertedBackground="noInvert"
          ariaLabel="About section - Our bakery story and values"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          title="Signature Products"
          description="Hand-selected favorites from our daily baking lineup"
          tag="Best Sellers"
          tagIcon={Award}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          products={[
            {
              id: "sourdough",              name: "Artisan Sourdough Loaf",              price: "$8.99",              variant: "Rustic  Whole Grain Option",              imageSrc: "https://img.b2bpic.net/free-photo/bread-menu-restaurant_624325-713.jpg",              imageAlt: "Crusty artisan sourdough loaf"
            },
            {
              id: "croissants",              name: "Butter Croissants",              price: "$6.49",              variant: "Box of 4  Freshly Baked",              imageSrc: "https://img.b2bpic.net/free-photo/fresh-bread-wooden-spoon-old-wooden-background_169016-3149.jpg",              imageAlt: "Golden buttery croissants"
            },
            {
              id: "cheesecake",              name: "Classic New York Cheesecake",              price: "$24.99",              variant: "Whole Cake  Serves 8-10",              imageSrc: "https://img.b2bpic.net/free-photo/fresh-homemade-bread-recipe-idea_53876-105983.jpg",              imageAlt: "Creamy New York style cheesecake"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          ariaLabel="Signature products section"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardSeven
          title="Why Choose Sweet Haven"
          description="What sets our bakery apart from the rest"
          tag="Our Commitment"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          features={[
            {
              id: 1,
              title: "Custom Cakes for Every Occasion",              description: "From birthdays to weddings, our custom cake artisans create edible masterpieces. We work with you to design the perfect cake that matches your vision and celebrates your special day.",              imageSrc: "https://img.b2bpic.net/free-photo/italian-bread-wooden-board_23-2147686512.jpg"
            },
            {
              id: 2,
              title: "100% Organic Ingredients",              description: "We're committed to health and flavor. All our products are made with certified organic ingredients sourced directly from local farms. No artificial additives, preservatives, or shortcuts.",              imageSrc: "https://img.b2bpic.net/free-photo/arrangement-delicious-food-ingredients_23-2148869889.jpg"
            },
            {
              id: 3,
              title: "Support Local Community",              description: "When you shop at Sweet Haven, you're supporting local farmers, local jobs, and local traditions. We believe in building a stronger community through sustainable and ethical business practices.",              imageSrc: "https://img.b2bpic.net/free-photo/team-local-farmers-selling-natural-bio-produce_482257-77615.jpg"
            }
          ]}
          animationType="blur-reveal"
          ariaLabel="Features section - Why choose us"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          cardTitle="Trusted by thousands of happy customers throughout our community"
          cardTag="What our customers say"
          cardTagIcon={Heart}
          useInvertedBackground="invertDefault"
          testimonials={[
            {
              id: "1",              name: "Sarah Johnson",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-young-professional-businesswoman-looking-upper-left-corner-with-hopeful-face-expression-standing-white_176420-41313.jpg"
            },
            {
              id: "2",              name: "Michael Chen",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-beautiful-middle-aged-business-woman_1262-3085.jpg"
            },
            {
              id: "3",              name: "Emily Rodriguez",              imageSrc: "https://img.b2bpic.net/free-photo/studio-portrait-successful-young-businesswoman_1262-5844.jpg"
            },
            {
              id: "4",              name: "David Kim",              imageSrc: "https://img.b2bpic.net/free-photo/hopeful-young-manager-businesswoman-cross-arms-chest-smiling-looking-confident-like-real-professional-white-background_176420-47052.jpg"
            },
            {
              id: "5",              name: "Jessica Williams",              imageSrc: "https://img.b2bpic.net/free-photo/smiley-business-woman-posing-outdoors-suit_23-2148603024.jpg"
            },
            {
              id: "6",              name: "James Thompson",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-beautiful-business-office-business-center_1303-20365.jpg"
            }
          ]}
          ariaLabel="Customer testimonials section"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Find answers to common questions about our bakery, products, and services"
          tag="Help & Support"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "What are your bakery hours?",              content: "We're open Monday to Saturday from 6:00 AM to 7:00 PM, and Sunday from 7:00 AM to 5:00 PM. We arrive early each morning to ensure fresh products are available when we open. We're closed on major holidays."
            },
            {
              id: "2",              title: "Do you offer custom cake orders?",              content: "Absolutely! We love creating custom cakes for weddings, birthdays, anniversaries, and special occasions. Please contact us at least 2 weeks in advance for custom orders. We can accommodate dietary restrictions and design preferences."
            },
            {
              id: "3",              title: "Are your products gluten-free?",              content: "We offer a selection of gluten-free baked goods made in a dedicated area to avoid cross-contamination. Please let us know about allergies when ordering. Our gluten-free products maintain the same quality and flavor as our traditional items."
            },
            {
              id: "4",              title: "Can I pre-order breads?",              content: "Yes! We recommend pre-ordering specialty breads like our artisan sourdough and whole grain loaves. Simply call us the day before, and we'll have your order ready. This ensures you get exactly what you want, fresh from the oven."
            },
            {
              id: "5",              title: "What payment methods do you accept?",              content: "We accept cash, all major credit cards, and digital payments including Apple Pay and Google Pay. For large custom orders, a 50% deposit is required at the time of order, with the balance due upon pickup."
            },
            {
              id: "6",              title: "Do you deliver?",              content: "For orders over $50, we offer delivery within a 3-mile radius of our bakery. Delivery is free for orders over $75. Please contact us to arrange delivery times. Custom cakes are available for local delivery."
            }
          ]}
          ariaLabel="FAQ section"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Get in Touch"
          description="Have questions about our products or want to place a custom order? We'd love to hear from you. Send us a message or visit us in person at our cozy bakery."
          inputs={[
            {
              name: "name",              type: "text",              placeholder: "Your Name",              required: true
            },
            {
              name: "email",              type: "email",              placeholder: "Your Email",              required: true
            }
          ]}
          textarea={{
            name: "message",            placeholder: "Tell us about your order or ask a question...",            rows: 5,
            required: true
          }}
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/overhead-view-bread-loaves-chopping-board-wooden-table_23-2147872705.jpg"
          imageAlt="Sweet Haven Bakery storefront"
          mediaPosition="right"
          buttonText="Send Message"
          ariaLabel="Contact form section"
        />
      </div>

      <div id="testimonial" data-section="testimonial">
        <TestimonialCardTwelve
          cardTitle="Trusted by thousands of happy customers at Sweet Haven Bakery"
          cardTag="What our customers say"
          cardTagIcon={Heart}
          useInvertedBackground="invertDefault"
          testimonials={[
            {
              id: "1",
              name: "Sarah Johnson",
              imageSrc: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80"
            },
            {
              id: "2",
              name: "Michael Chen",
              imageSrc: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80"
            },
            {
              id: "3",
              name: "Emily Rodriguez",
              imageSrc: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80"
            }
          ]}
          ariaLabel="Customer testimonials section"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://img.b2bpic.net/free-photo/fresh-bread-wooden-spoon-old-wooden-background_169016-3149.jpg"
          imageAlt="Artisan bakery with fresh bread and pastries"
          logoText="Sweet Haven Bakery"
          copyrightText="© 2025 Sweet Haven Bakery. All rights reserved."
          columns={[
            {
              title: "Shop",              items: [
                { label: "Breads", href: "#products" },
                { label: "Pastries", href: "#products" },
                { label: "Custom Cakes", href: "#contact" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Why Choose Us", href: "#features" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Phone: (555) 123-4567", href: "tel:5551234567" },
                { label: "123 Main Street, Your City", href: "#" },
                { label: "Mon-Sat: 6AM - 7PM", href: "#" }
              ]
            }
          ]}
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}