"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import HeroSplitDoubleCarousel from "@/components/sections/hero/HeroSplitDoubleCarousel";
import ContactCenter from "@/components/sections/contact/ContactCenter";
import FaqSplitMedia from "@/components/sections/faq/FaqSplitMedia";
import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal";
import { Sparkles, HelpCircle, Mail } from "lucide-react";

const ContactPage = () => {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "About", id: "about" },
    { name: "Menu", id: "menu" },
    { name: "Contact", id: "contact" },
  ];

  const footerColumns = [
    {
      title: "Navigation",
      items: [
        { label: "Home", href: "/" },
        { label: "About", href: "/about" },
        { label: "Menu", href: "/menu" },
        { label: "Contact", href: "/contact" },
      ],
    },
    {
      title: "Dining",
      items: [
        { label: "Reservations", href: "/contact" },
        { label: "Private Events", href: "#" },
        { label: "Catering", href: "#" },
        { label: "Gift Cards", href: "#" },
      ],
    },
    {
      title: "Connect",
      items: [
        { label: "Instagram", href: "#" },
        { label: "Facebook", href: "#" },
        { label: "Contact Us", href: "/contact" },
        { label: "Newsletter", href: "#" },
      ],
    },
    {
      title: "Legal",
      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
        { label: "Cookie Policy", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="largeSmallSizeLargeTitles"
      background="noiseDiagonalGradient"
      cardStyle="outline"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple brandName="Donacio" navItems={navItems} />
      </div>

      <div id="contact-hero" data-section="contact-hero">
        <HeroSplitDoubleCarousel
          title="Get in Touch with Donacio"
          description="Whether you're looking to make a reservation, inquire about private events, or simply want to learn more about our restaurant, we're here to help. Experience the warmth and hospitality of Donacio."
          background={{ variant: "plain" }}
          leftCarouselItems={[
            {
              imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-woman-working-luxury-restaurant_23-2150598335.jpg?_wi=2",
              imageAlt: "Restaurant waiter providing attentive service",
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/view-table-etiquette-dressing_23-2148914876.jpg?_wi=2",
              imageAlt: "Elegant table setting with fine dining place settings",
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/home-still-life-with-candles-vase-living-room_169016-5976.jpg?_wi=3",
              imageAlt: "Elegant restaurant dining room with warm ambiance",
            },
          ]}
          rightCarouselItems={[
            {
              imageSrc: "http://img.b2bpic.net/free-photo/preparing-refreshing-cocktail-bar_23-2148176765.jpg?_wi=2",
              imageAlt: "Craft cocktails prepared by professional bartender",
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/lovely-couple-enjoying-new-year-party_23-2149173296.jpg?_wi=2",
              imageAlt: "Live music performance in intimate restaurant setting",
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/royal-dining-room-with-wooden-furniture-chandeliers_114579-2222.jpg",
              imageAlt: "Luxury restaurant interior design",
            },
          ]}
          tag="Contact & Reservations"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "Back to Menu", href: "/menu" },
            { text: "Back Home", href: "/" },
          ]}
          buttonAnimation="slide-up"
          carouselPosition="right"
          ariaLabel="Contact section hero"
        />
      </div>

      <div id="contact-form" data-section="contact-form">
        <ContactCenter
          tag="Get in Touch"
          title="Ready to Dine with Us?"
          description="Reserve your table and experience Donacio's exceptional hospitality, culinary excellence, and warm ambiance. We look forward to welcoming you."
          tagIcon={Mail}
          tagAnimation="slide-up"
          background={{ variant: "plain" }}
          useInvertedBackground={true}
          inputPlaceholder="Enter your email to reserve"
          buttonText="Reserve Now"
          termsText="By reserving, you agree to our Terms and Conditions. We'll send you confirmation details."
          ariaLabel="Contact and reservation section"
        />
      </div>

      <div id="contact-faq" data-section="contact-faq">
        <FaqSplitMedia
          title="Frequently Asked Questions"
          description="Have questions about Donacio? Find answers to common inquiries about our dining experience, reservations, and more."
          tag="Help & Support"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          faqs={[
            {
              id: "1",
              title: "How do I make a reservation?",
              content: "You can reserve your table directly through our website's contact page, by phone, or through popular reservation platforms. We recommend booking in advance, especially for weekends and special occasions.",
            },
            {
              id: "2",
              title: "Do you offer private dining?",
              content: "Yes! We have beautiful spaces available for private events, celebrations, and business gatherings. Contact us to discuss your specific needs.",
            },
            {
              id: "3",
              title: "What is your dress code?",
              content: "Donacio maintains a smart casual to elegant dress code. We want our guests to feel comfortable while respecting the sophisticated ambiance of our restaurant.",
            },
            {
              id: "4",
              title: "Do you have a wine selection?",
              content: "We offer a curated wine list featuring selections from around the world, personally chosen to complement our menu. Our sommelier is happy to make recommendations.",
            },
            {
              id: "5",
              title: "Can you accommodate dietary restrictions?",
              content: "Absolutely. Our chefs are experienced in preparing dishes for various dietary needs and preferences. Please inform us of any restrictions when making your reservation.",
            },
            {
              id: "6",
              title: "Do you have live music every night?",
              content: "We feature live music on select evenings. Check our website or call ahead to confirm the music schedule for your preferred date.",
            },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/chef-with-tablet_23-2148145531.jpg?_wi=2"
          imageAlt="Professional restaurant kitchen"
          mediaAnimation="slide-up"
          mediaPosition="left"
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="Contact FAQ section"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={footerColumns}
          copyrightText="© 2024 Donacio. All rights reserved. Crafted with passion for exceptional dining experiences."
          ariaLabel="Footer"
        />
      </div>
    </ThemeProvider>
  );
};

export default ContactPage;