"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import SplitAbout from "@/components/sections/about/SplitAbout";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import FooterCard from "@/components/sections/footer/FooterCard";
import { MapPin, 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 AboutPage() {
  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>

      {/* About Company Section */}
      <div id="about-company" data-section="about-company">
        <SplitAbout
          title="Five Decades of Electrical Excellence in York"
          description="Dennis King Electrical Limited has been serving York and surrounding areas for over 50 years. Our family-run business is built on a foundation of expertise, reliability, and unwavering commitment to safety. Every installation is performed by fully qualified electricians who stay current with the latest industry standards and regulations."
          tag="Our Legacy"
          bulletPoints={[
            {
              title: "Founded in 1975",
              description: "Over 50 years of continuous service to the York community and beyond.",
              icon: null,
            },
            {
              title: "Family-Run Business",
              description: "A trusted name passed down through generations, built on personal relationships and quality work.",
              icon: null,
            },
            {
              title: "Commitment to Excellence",
              description: "Every project reflects our dedication to superior craftsmanship and customer satisfaction.",
              icon: null,
            },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/happy-manual-worker-presenting-results-business-development-while-giving-presentation-company-leaders-his-team-factory_637285-4144.jpg?_wi=2"
          imageAlt="Dennis King Electrical professional team"
          imagePosition="right"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "Learn About Our Services", href: "/services" }]}
        />
      </div>

      {/* Local Service Area Section */}
      <div id="local-area" data-section="local-area">
        <SplitAbout
          title="Serving York and Surrounding Areas"
          description="Based in York, we proudly serve homeowners throughout York and the surrounding Yorkshire communities. Our local knowledge and established reputation make us the trusted choice for domestic electrical work in the region."
          tag="Local Coverage"
          bulletPoints={[
            {
              title: "York City Centre",
              description: "Historic properties and modern homes throughout York's city centre.",
              icon: MapPin,
            },
            {
              title: "Northern Suburbs",
              description: "Serving Rawcliffe, Wigginton, and surrounding northern communities.",
              icon: MapPin,
            },
            {
              title: "Southern Areas",
              description: "Covering Bishopthorpe, Strensall, and villages to the south.",
              icon: MapPin,
            },
            {
              title: "Extended Coverage",
              description: "We also service communities throughout the wider Yorkshire region.",
              icon: MapPin,
            },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/bold-metro-station-chatelet-paris_23-2148232435.jpg"
          imageAlt="Map of York and service area"
          imagePosition="left"
          textboxLayout="default"
          useInvertedBackground={true}
          buttons={[{ text: "Contact Us Today", href: "/contact" }]}
        />
      </div>

      {/* Contact CTA Section */}
      <div id="contact-cta" data-section="contact-cta">
        <ContactCTA
          tag="Get in Touch"
          title="Let's Discuss Your Electrical Needs"
          description="Whether you have questions about our services or need a quotation, our friendly team is ready to help. Contact us today for expert electrical solutions."
          buttons={[
            { text: "Call 01904 000000", href: "tel:+441904000000" },
            { text: "Send Message", href: "/contact" },
          ]}
          background={{ variant: "animated-grid" }}
          useInvertedBackground={false}
        />
      </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>
  );
}