"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import ContactFaq from "@/components/sections/contact/ContactFaq";
import FaqSplitMedia from "@/components/sections/faq/FaqSplitMedia";
import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal";
import { Phone, Mail, MessageCircle } from "lucide-react";

export default function CustomOrdersPage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Menu", id: "menu" },
    { name: "Custom Orders", id: "custom-orders" },
    { name: "About", id: "about" },
    { name: "Contact", id: "contact" },
  ];

  const footerColumns = [
    {
      title: "Shop",
      items: [
        { label: "All Products", href: "/" },
        { label: "Custom Cakes", href: "/custom-orders" },
        { label: "Gift Boxes", href: "/" },
        { label: "Seasonal Items", href: "/" },
        { label: "Track Order", href: "/" },
      ],
    },
    {
      title: "Company",
      items: [
        { label: "About Us", href: "/about" },
        { label: "Our Story", href: "/about" },
        { label: "Careers", href: "/" },
        { label: "Blog", href: "/" },
        { label: "Press", href: "/" },
      ],
    },
    {
      title: "Support",
      items: [
        { label: "Contact Us", href: "/custom-orders" },
        { label: "FAQs", href: "/custom-orders" },
        { label: "Shipping Info", href: "/" },
        { label: "Returns", href: "/" },
        { label: "Live Chat", href: "/" },
      ],
    },
    {
      title: "Legal",
      items: [
        { label: "Privacy Policy", href: "/" },
        { label: "Terms of Service", href: "/" },
        { label: "Cookie Policy", href: "/" },
        { label: "Accessibility", href: "/" },
        { label: "Contact Support", href: "/" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="small"
      sizing="medium"
      background="noiseDiagonalGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="N&H BAKERY"
          navItems={navItems}
          button={{
            text: "Order Now",
            href: "/",
          }}
        />
      </div>

      <div id="custom-orders-faq" data-section="custom-orders-faq" className="mx-auto px-4 md:px-6">
        <FaqSplitMedia
          title="Custom Orders Process"
          description="Learn how to place your custom cake order and what to expect at each stage of the process."
          tag="Step by Step"
          tagIcon="HelpCircle"
          tagAnimation="opacity"
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="slide-up"
          mediaAnimation="opacity"
          mediaPosition="right"
          imageSrc="http://img.b2bpic.net/free-photo/concentrated-african-american-call-center-operator-working_74855-4048.jpg?_wi=2"
          imageAlt="Customer support representation"
          faqsAnimation="blur-reveal"
          faqs={[
            {
              id: "faq-1",
              title: "How do I place a custom cake order?",
              content: "Start by contacting our team at hello@nhbakery.co.ke or call +254 (0)20 123 4567. Share your vision, preferred flavors, size, and event date. We'll schedule a consultation to finalize the design and pricing.",
            },
            {
              id: "faq-2",
              title: "What is the minimum order lead time?",
              content: "We require at least 7 days advance notice for custom orders. For complex designs or large quantities, we recommend 2-3 weeks. Rush orders may be available upon request with additional fees.",
            },
            {
              id: "faq-3",
              title: "Can I request specific flavors and fillings?",
              content: "Absolutely! We offer a range of premium flavors including chocolate, vanilla, red velvet, lemon, and seasonal specials. You can customize the cake layers, frosting, and filling to your preference.",
            },
            {
              id: "faq-4",
              title: "Do you offer tastings before the final order?",
              content: "Yes! We offer complimentary tastings for orders above KSh 2,500. Schedule your tasting appointment at least 3 days before your event to allow time for any adjustments.",
            },
            {
              id: "faq-5",
              title: "What are your pricing options?",
              content: "Pricing varies based on size, complexity, and design. Simple designs start from KSh 2,000, while elaborate custom creations can range from KSh 3,500 to KSh 8,000+. We'll provide a detailed quote after your consultation.",
            },
            {
              id: "faq-6",
              title: "Do you handle delivery and setup?",
              content: "Yes, we provide professional delivery and setup for all custom orders. Delivery is complimentary for orders above KSh 3,000 within Nairobi. Setup includes careful placement and final touch-ups at your venue.",
            },
          ]}
        />
      </div>

      <div id="contact-custom-orders" data-section="contact-custom-orders" className="mx-auto px-4 md:px-6">
        <ContactFaq
          useInvertedBackground={false}
          animationType="slide-up"
          ctaTitle="Ready to Create Your Perfect Cake?"
          ctaDescription="Contact our pastry team today to start planning your custom cake. We're excited to bring your vision to life!"
          ctaIcon={Phone}
          ctaButton={{
            text: "Start Your Order",
            href: "/custom-orders",
          }}
          faqs={[
            {
              id: "contact-1",
              title: "Phone",
              content: "+254 (0)20 123 4567 | +254 (0)712 345 678",
            },
            {
              id: "contact-2",
              title: "Email",
              content: "orders@nhbakery.co.ke",
            },
            {
              id: "contact-3",
              title: "WhatsApp",
              content: "+254 712 345 678 - Direct messaging available",
            },
            {
              id: "contact-4",
              title: "Visit Us",
              content: "123 Bakery Lane, Westlands, Nairobi, Kenya",
            },
            {
              id: "contact-5",
              title: "Hours",
              content: "Monday - Saturday: 7:00 AM - 7:00 PM | Sunday: 8:00 AM - 5:00 PM",
            },
            {
              id: "contact-6",
              title: "Social Media",
              content: "Instagram @nhbakery | WhatsApp +254 712 345 678",
            },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={footerColumns}
          copyrightText="© 2024 N&H BAKERY. All rights reserved. Freshly baked goodness since 2020."
        />
      </div>
    </ThemeProvider>
  );
}