"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import ContactText from '@/components/sections/contact/ContactText';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { MapPin } from 'lucide-react';

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="mediumLargeSizeMediumTitles"
      background="aurora"
      cardStyle="inset"
      primaryButtonStyle="flat"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Burenka"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Products", id: "/products" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="contact-main" data-section="contact-main">
        <ContactText
          text="Ready to experience the freshness of Burenka? Start your subscription today and taste the difference quality makes. Our team is ready to help you find the perfect dairy plan for your family."
          animationType="reveal-blur"
          buttons={[
            { text: "Subscribe Now", href: "/products" },
            { text: "Visit Our Farm", href: "https://maps.google.com" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact-info" data-section="contact-info">
        <MetricSplitMediaAbout
          tag="Visit Us"
          tagIcon={MapPin}
          title="Farm Shop & Delivery Center"
          description="Located in the heart of pastoral countryside, our farm shop offers the complete Burenka experience. Visit us to see where your milk comes from, meet our cows, and stock up on fresh products. Our delivery center coordinates daily routes across the region, ensuring your dairy products arrive fresh every morning."
          metrics={[
            { value: "7 Days", title: "Weekly Delivery" },
            { value: "24hr", title: "Farm to Door" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/smiling-truck-driver-working-gloves-opening-closing-truck-trailer-back-doors-checking-goods-transportation_342744-1307.jpg"
          imageAlt="Delivery truck and farm location"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact-faq" data-section="contact-faq">
        <FaqDouble
          title="Get In Touch"
          description="Common questions about ordering, delivery, and visiting our farm"
          faqs={[
            {
              id: "1",
              title: "How do I place my first order?",
              content: "You can start your order by visiting our Products page or calling us directly. We'll help you choose the right products and set up delivery to your area. First-time customers receive a welcome discount and free delivery."
            },
            {
              id: "2",
              title: "What are your farm shop hours?",
              content: "Our farm shop is open Tuesday through Sunday, 8 AM to 6 PM. We're closed on Mondays for farm maintenance. During shop hours, you can purchase products directly and take self-guided tours of the farm."
            },
            {
              id: "3",
              title: "Do you deliver to my area?",
              content: "We deliver within a 50km radius of our farm. Enter your address on our Products page to check availability. We're constantly expanding our delivery routes based on customer demand."
            },
            {
              id: "4",
              title: "Can I schedule a farm tour?",
              content: "Yes! We offer guided farm tours by appointment on weekends. Tours include meeting our cows, seeing our milking process, and learning about sustainable farming practices. Contact us to schedule your visit."
            },
            {
              id: "5",
              title: "What if I'm not satisfied with my order?",
              content: "We stand behind our quality 100%. If you're not completely satisfied with any product, contact us within 48 hours for a full refund or replacement. Customer satisfaction is our top priority."
            },
            {
              id: "6",
              title: "How can I contact customer service?",
              content: "Reach us by phone at +1234567890, email at info@burenka.local, or visit our farm shop during business hours. We respond to all inquiries within 4 hours during business days."
            }
          ]}
          animationType="smooth"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <FooterLogoEmphasis
        logoText="Burenka"
        columns={[
          {
            items: [
              { label: "Home", href: "/" },
              { label: "Products", href: "/products" },
              { label: "About", href: "/about" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            items: [
              { label: "Farm Shop Hours", href: "#" },
              { label: "Tue-Sun 8AM-6PM", href: "#" },
              { label: "Closed Mondays", href: "#" }
            ]
          },
          {
            items: [
              { label: "Delivery Info", href: "#" },
              { label: "Subscriptions", href: "#" },
              { label: "Pricing", href: "#" }
            ]
          },
          {
            items: [
              { label: "Email", href: "mailto:info@burenka.local" },
              { label: "Phone", href: "tel:+1234567890" },
              { label: "Farm Location", href: "#" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}