"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import ContactText from "@/components/sections/contact/ContactText";
import FaqBase from "@/components/sections/faq/FaqBase";
import TextSplitAbout from "@/components/sections/about/TextSplitAbout";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import { HelpCircle } from "lucide-react";

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "About", id: "/about" },
    { name: "Contact", id: "/contact" },
    { name: "Call Now", id: "tel:+18135378085" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="medium"
      background="circleGradient"
      cardStyle="soft-shadow"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="Clog Kings Tampa"
          bottomLeftText="24/7 Emergency Service"
          bottomRightText="(813) 537-8085"
        />
      </div>

      <div id="contact-hero" data-section="contact-hero">
        <ContactText
          text="Need emergency plumbing service? We're available 24/7/365. Call us now or submit the form below and we'll respond within the hour."
          animationType="entrance-slide"
          buttons={[
            { text: "Call Now (813) 537-8085", href: "tel:+18135378085" },
            { text: "Schedule Service", href: "#" },
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          ariaLabel="Contact us call to action section"
        />
      </div>

      <div id="contact-info" data-section="contact-info">
        <TextSplitAbout
          title="Get in Touch"
          description={[
            "Emergency or routine service? We handle it all with the same level of professionalism and care. Whether you need immediate assistance or want to schedule a maintenance visit, we're here to help.",            "Call us anytime at (813) 537-8085 for emergency plumbing service. Our 24/7 team will provide fast, affordable solutions to all your plumbing needs.",            "You can also request a callback using the form on this page, and we'll contact you within one hour during business hours or at the start of the next business day."]}
          buttons={[
            { text: "Call (813) 537-8085", href: "tel:+18135378085" },
            { text: "View Service Area", href: "/services" },
          ]}
          buttonAnimation="slide-up"
          showBorder={false}
          useInvertedBackground={false}
          ariaLabel="Contact information and communication options"
        />
      </div>

      <div id="contact-faq" data-section="contact-faq">
        <FaqBase
          faqs={[
            {
              id: "1",              title: "What's the fastest way to reach you?",              content: "Call (813) 537-8085 for immediate assistance. Our 24/7 team answers calls instantly and can often arrive within 30-60 minutes for emergencies."},
            {
              id: "2",              title: "Do you service my area?",              content: "We serve Tampa and surrounding areas within 30 minutes of our office. Call us to confirm service availability for your location. We offer same-day emergency service throughout our service area."},
            {
              id: "3",              title: "How much is an emergency service call?",              content: "Emergency calls include a service charge plus the cost of repairs. We provide free estimates and transparent pricing before any work begins. Call for specific pricing details."},
            {
              id: "4",              title: "Can you provide references?",              content: "Yes! We're happy to provide references from recent customers. You can also view our 4.9-star rating and 75+ Google reviews to see what customers say about our service."},
            {
              id: "5",              title: "What payment methods do you accept?",              content: "We accept cash, check, all major credit cards, and digital payment methods. Financing options are available for larger projects."},
            {
              id: "6",              title: "How do I schedule a routine maintenance appointment?",              content: "Call (813) 537-8085 to schedule. We'll find a time that works for you. Preventative maintenance helps avoid expensive emergency repairs down the road."},
          ]}
          title="Frequently Asked Questions"
          description="Have questions before reaching out? Find answers to common inquiries about contacting us."
          tag="Contact Help"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="smooth"
          ariaLabel="Contact page frequently asked questions"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Clog Kings Tampa"
          leftLink={{ text: "Privacy Policy", href: "#" }}
          rightLink={{ text: "(813) 537-8085", href: "tel:+18135378085" }}
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}