"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
          brandName="Dennis King"
          navItems={navItems}
          button={{ text: "Call Now", href: "tel:+441904000000" }}
        />
      </div>

      {/* About Section */}
      <div id="about-main" data-section="about-main">
        <SplitAbout
          tag="Our History"
          title="Five Decades of Excellence in York Electrical Services"
          description="Dennis King Electrical Limited has been a trusted name in domestic electrical services for over 50 years. Founded on principles of expertise, reliability, and safety, our family-run business has built a reputation as York's premier choice for qualified electrical work. We're proud to serve three generations of families in York and the surrounding area."
          bulletPoints={[
            {
              title: "Established Legacy",              description:
                "Over 50 years of continuous service to York homeowners, building trust through quality workmanship and professional standards.",              icon: MapPin,
            },
            {
              title: "Family Business",              description:
                "A true family operation committed to treating every customer like family, with personal attention and care.",              icon: MapPin,
            },
            {
              title: "Industry Leaders",              description:
                "Continuous investment in training, certifications, and the latest technology to stay ahead of industry standards.",              icon: MapPin,
            },
          ]}
          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"
          imageAlt="Dennis King Electrical professional team"
          imagePosition="right"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "Our Services", href: "/services" }]}
        />
      </div>

      {/* Service Area Section */}
      <div id="service-area" data-section="service-area">
        <SplitAbout
          tag="Local Coverage"
          title="Serving York and Surrounding Areas"
          description="Based in York, we proudly serve homeowners throughout York city centre and the surrounding Yorkshire communities. Our local knowledge and established reputation make us the trusted choice for domestic electrical work in the region. We understand the unique electrical needs of York properties, from Victorian townhouses to modern developments."
          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,
            },
          ]}
          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}
        />
      </div>

      {/* CTA Section */}
      <div id="about-cta" data-section="about-cta">
        <ContactCTA
          tag="Ready to Work Together?"
          title="Let's Discuss Your Electrical Needs"
          description="Whether it's a small repair, a major installation, or a safety inspection, Dennis King Electrical is here to help. Contact us today for a free, no-obligation quotation and let our expertise work for you."
          buttons={[
            { text: "Get Free Quote", href: "/contact" },
            { text: "Call Now", href: "tel:+441904000000" },
          ]}
          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>
  );
}