"use client";

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

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "Reviews", id: "/reviews" },
    { name: "Gallery", id: "/gallery" },
    { name: "Contact", id: "/contact" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="largeSizeMediumTitles"
      background="aurora"
      cardStyle="subtle-shadow"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Dynamite Plumbing"
          navItems={navItems}
        />
      </div>

      <div id="contact-cta" data-section="contact-cta">
        <ContactFaq
          faqs={[
            { id: "1", title: "What areas do you serve?", content: "We proudly serve Greenville, Commerce, Quinlan, Royse City, and all surrounding areas in Hunt County, Texas." },
            { id: "2", title: "How quickly can you respond?", content: "For emergency calls, we typically respond within 30 minutes. For scheduled appointments, we work around your availability with flexible scheduling." },
            { id: "3", title: "Do you guarantee your work?", content: "Yes. We stand behind every job with a 100% satisfaction guarantee. If you're not happy, we'll make it right." },
          ]}
          ctaTitle="Ready to Get Your Plumbing Fixed?"
          ctaDescription="Call now for immediate assistance or schedule your free estimate. We're here to help."
          ctaButton={{ text: "Call 469-410-2657", href: "tel:469-410-2657" }}
          ctaIcon={Phone}
          useInvertedBackground={true}
          animationType="slide-up"
          accordionAnimationType="smooth"
        />
      </div>

      <div id="faq-details" data-section="faq-details">
        <FaqSplitMedia
          title="Common Questions"
          description="Get answers to frequently asked questions about our plumbing services, pricing, and availability."
          tag="FAQ"
          tagAnimation="slide-up"
          faqs={[
            { id: "1", title: "Do you offer emergency plumbing services?", content: "Yes! We provide 24/7 emergency plumbing services for Hunt County. Call us immediately for burst pipes, gas leaks, or other urgent issues. We guarantee a 30-minute response time." },
            { id: "2", title: "How much does a typical plumbing repair cost?", content: "Pricing varies based on the problem and complexity. We provide free estimates for all jobs so you know the cost upfront before we start work. No surprises, no hidden fees—just honest pricing." },
            { id: "3", title: "Are you licensed and insured?", content: "Absolutely. We are fully licensed, insured, and bonded. You can trust that all work is completed to code and backed by our commitment to quality." },
            { id: "4", title: "Do you service rental properties?", content: "Yes, we work with property managers and landlords. We offer maintenance packages and priority scheduling for rental property repairs." },
            { id: "5", title: "What payment methods do you accept?", content: "We accept cash, check, credit cards, and financing options. Talk to us about flexible payment arrangements for larger jobs." },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/young-support-customer-woman-talking-into-headset-microphone-with-call-center-customer-while-working-startup-company-office-caucasian-female-consultant-providing-telemarketing-service_482257-28282.jpg?_wi=2"
          imageAlt="customer service support help professional"
          mediaAnimation="slide-up"
          mediaPosition="left"
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="Dynamite Plumbing"
          copyrightText="© 2025 Dynamite Plumbing of Texas. All rights reserved."
          socialLinks={[
            { icon: Phone, href: "tel:469-410-2657", ariaLabel: "Call us" },
            { icon: Mail, href: "mailto:contact@dynamiteplumbing.com", ariaLabel: "Email us" },
            { icon: MapPin, href: "#", ariaLabel: "Visit us" },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}