"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroBillboardScroll from '@/components/sections/hero/HeroBillboardScroll';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FaqBase from '@/components/sections/faq/FaqBase';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import Link from 'next/link';

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="small"
      sizing="medium"
      background="circleGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Fiona"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Shop", id: "/shop" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Order Now",            href: "/shop"
          }}
        />
      </div>

      <div id="contact-hero" data-section="contact-hero">
        <HeroBillboardScroll
          title="Get in Touch with Fiona"
          description="Have questions? We'd love to hear from you. Reach out anytime and our team will respond within 24 hours."
          background={{ variant: "plain" }}
        />
      </div>

      <div id="contact-section" data-section="contact-section">
        <ContactSplit
          tag="Contact Us"
          title="We're Here to Help"
          description="Whether you have questions about our flowers, need help with an order, or want to discuss custom arrangements, our friendly team is ready to assist."
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/front-view-beautiful-roses-vase_23-2148387998.jpg"
          mediaPosition="right"
          inputPlaceholder="your@email.com"
          buttonText="Send Message"
          termsText="We'll respond to your message within 24 business hours."
        />
      </div>

      <div id="contact-faq" data-section="contact-faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Find answers to common questions about our flowers, delivery, and services"
          faqs={[
            {
              id: "1",              title: "How long will my flowers last?",              content: "With proper care, most of our arrangements will last 7-10 days. We include care instructions with every delivery. Change water every 2-3 days, trim stems at an angle, and keep flowers in a cool location away from direct sunlight."
            },
            {
              id: "2",              title: "What areas do you deliver to?",              content: "We offer same-day delivery within a 15-mile radius of our downtown location. For deliveries outside this area, we can arrange next-day delivery. Contact us for specific address availability."
            },
            {
              id: "3",              title: "Can I customize an arrangement?",              content: "Absolutely! We love creating custom arrangements. Call us or use our custom order form to discuss your vision, color preferences, and budget. Our florists will create a one-of-a-kind masterpiece for you."
            },
            {
              id: "4",              title: "What's your refund policy?",              content: "We offer a 100% satisfaction guarantee. If you're not completely happy with your flowers, we'll either replace them or provide a full refund within 7 days of delivery."
            },
            {
              id: "5",              title: "Do you offer subscription services?",              content: "Yes! Our Fiona Weekly service delivers fresh arrangements every week. Choose from our curated selections or work with our florists to design custom weekly bouquets."
            },
            {
              id: "6",              title: "Are your flowers ethically sourced?",              content: "Yes, we partner exclusively with certified growers who practice sustainable farming and fair labor practices. We're proud to support ethical flower production worldwide."
            }
          ]}
          animationType="smooth"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact-footer" data-section="contact-footer">
        <FooterLogoEmphasis
          logoText="Fiona"
          columns={[
            {
              items: [
                { label: "Home", href: "/" },
                { label: "Shop", href: "/shop" },
                { label: "About", href: "/about" }
              ]
            },
            {
              items: [
                { label: "Delivery Info", href: "/delivery" },
                { label: "Care Tips", href: "/care" },
                { label: "FAQ", href: "/faq" }
              ]
            },
            {
              items: [
                { label: "Privacy Policy", href: "/privacy" },
                { label: "Terms", href: "/terms" },
                { label: "Sustainability", href: "/sustainability" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}