"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import FooterCard from "@/components/sections/footer/FooterCard";
import { Facebook, Twitter } from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "Services", id: "/services" },
  { name: "About", id: "/about" },
  { name: "Contact", id: "/contact" },
];

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="large"
      background="grid"
      cardStyle="glass-elevated"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="extrabold"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          navItems={navItems}
          brandName="Dennis King"
          button={{ text: "Call Now", href: "tel:+441904000000" }}
        />
      </div>

      {/* Main Contact CTA Section */}
      <div id="contact-main" data-section="contact-main">
        <ContactCTA
          tag="Contact Us"
          title="Get in Touch with Dennis King Electrical"
          description="We're here to help with your electrical needs. Whether you need a free quotation, emergency repair, or safety inspection, contact our team today. We aim to respond to all inquiries within 24 hours."
          buttons={[
            { text: "Call 01904 000000", href: "tel:+441904000000" },
            { text: "Email Support", href: "mailto:info@denniskingelectrical.co.uk" },
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      {/* Trust Credentials Section */}
      <div id="contact-trust" data-section="contact-trust">
        <SocialProofOne
          title="Why You Can Trust Dennis King Electrical"
          description="Your confidence in our service is built on decades of proven expertise and customer satisfaction."
          tag="Our Credentials"
          textboxLayout="default"
          useInvertedBackground={true}
          names={[
            "50+ Years in Business",
            "Fully Qualified Team",
            "Comprehensive Insurance",
            "Industry Certified",
            "Local York Experts",
            "Emergency Response Available",
            "Free Quotations",
            "100% Customer Focused",
          ]}
          speed={50}
          showCard={true}
        />
      </div>

      {/* Secondary Contact Section */}
      <div id="contact-secondary" data-section="contact-secondary">
        <ContactCTA
          tag="Additional Support"
          title="Emergency Electrical Services Available"
          description="If you experience an electrical emergency or urgent issue, we're available 24/7. Contact us immediately for fast, professional assistance."
          buttons={[
            { text: "Emergency Call", href: "tel:+441904000000" },
            { text: "Schedule Appointment", href: "/" },
          ]}
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={true}
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterCard
          logoText="Dennis King Electrical"
          copyrightText="© 2025 Dennis King Electrical Limited. All rights reserved."
          socialLinks={[
            { icon: Facebook, href: "https://facebook.com", ariaLabel: "Facebook" },
            { icon: Twitter, href: "https://twitter.com", ariaLabel: "Twitter" },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}