"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroSplit from "@/components/sections/hero/HeroSplit";
import ContactText from "@/components/sections/contact/ContactText";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import Link from "next/link";
import { Shield } from "lucide-react";

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Services", id: "services" },
    { name: "About", id: "about" },
    { name: "Reviews", id: "reviews" },
    { name: "Service Areas", id: "service-areas" },
    { name: "Contact", id: "contact" },
  ];

  const footerColumns = [
    {
      title: "Services",
      items: [
        { label: "Plumbing Repair", href: "/services" },
        { label: "Drain Cleaning", href: "/services" },
        { label: "Water Heater Service", href: "/services" },
        { label: "Electrical Repairs", href: "/services" },
      ],
    },
    {
      title: "Company",
      items: [
        { label: "About Us", href: "/about" },
        { label: "Customer Reviews", href: "/reviews" },
        { label: "Service Areas", href: "/" },
        { label: "Contact Us", href: "/contact" },
      ],
    },
    {
      title: "Contact",
      items: [
        { label: "Call: +1 (657) 439-3277", href: "tel:+16574393277" },
        { label: "24/7 Emergency Service", href: "tel:+16574393277" },
        { label: "Licensed & Insured", href: "/" },
        { label: "Request Service", href: "/contact" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="smallMedium"
      sizing="large"
      background="noise"
      cardStyle="glass-depth"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Dickerson Plumbing & Electrical"
          navItems={navItems}
          button={{
            text: "Call Now",
            href: "tel:+16574393277",
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Get in Touch with Dickerson Plumbing & Electrical"
          description="Need emergency plumbing or electrical service? Contact us today. Our licensed professionals are available 24/7 to help with any issue, big or small."
          tag="Professional Services"
          tagIcon={Shield}
          tagAnimation="slide-up"
          buttons={[
            {
              text: "Call Now: +1 (657) 439-3277",
              href: "tel:+16574393277",
            },
            {
              text: "Request Service",
              href: "#contact",
            },
          ]}
          buttonAnimation="slide-up"
          background={{
            variant: "noise",
          }}
          imageSrc="http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721517.jpg"
          imageAlt="Professional plumber working on pipe repair"
          mediaAnimation="blur-reveal"
          imagePosition="right"
        />
      </div>

      <div id="cta" data-section="cta">
        <ContactText
          text="Need Plumbing or Electrical Help Today?"
          animationType="entrance-slide"
          background={{
            variant: "radial-gradient",
          }}
          useInvertedBackground={true}
          buttons={[
            {
              text: "Call Now: +1 (657) 439-3277",
              href: "tel:+16574393277",
            },
            {
              text: "Request Service Online",
              href: "#contact",
            },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Dickerson Plumbing & Electrical"
          copyrightText="© 2025 Dickerson Plumbing & Electrical. All rights reserved."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}