"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import FeatureCardNine from "@/components/sections/feature/FeatureCardNine";
import MetricCardThree from "@/components/sections/metrics/MetricCardThree";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import { Wrench, Zap, Droplet, Home } from "lucide-react";

export default function ServicesPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "Reviews", id: "/reviews" },
    { name: "Gallery", id: "/gallery" },
    { name: "Contact", id: "/contact" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSmall"
      background="circleGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="semibold"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="Dynamite Plumbing"
          bottomLeftText="Hunt County, TX"
          bottomRightText="+1 469-410-2657"
        />
      </div>

      {/* Full Services Overview */}
      <div id="services-full" data-section="services-full">
        <FeatureCardNine
          title="Complete Plumbing Services"
          description="We offer a full range of professional plumbing solutions for residential and commercial needs"
          tag="Our Expertise"
          tagAnimation="slide-up"
          features={[
            {
              id: 1,
              title: "Emergency Repairs",
              description: "24/7 emergency plumbing repair service. Burst pipes, leaks, and clogs handled quickly and professionally. Same-day service available.",
              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/man-kneeling-down-inspect-pipes-sink_259150-58249.jpg?_wi=3",
                imageAlt: "Emergency plumbing repair",
              },
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/man-kneeling-down-inspect-pipes-sink_259150-58249.jpg?_wi=4",
                imageAlt: "Emergency plumbing repair",
              },
            },
            {
              id: 2,
              title: "Gas Line Services",
              description: "Safe and code-compliant gas line installation for appliances, heating systems, and pool heaters. Full inspection and certification.",
              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/seasoned-mechanic-using-soft-dusting-brush-sweep-away-built-up-layer-dirt-debris-from-hvac-system-coil-while-adept-repairman-refills-air-conditioner-cooling-system-refrigerant-tank_482257-63969.jpg?_wi=3",
                imageAlt: "Gas line installation",
              },
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/seasoned-mechanic-using-soft-dusting-brush-sweep-away-built-up-layer-dirt-debris-from-hvac-system-coil-while-adept-repairman-refills-air-conditioner-cooling-system-refrigerant-tank_482257-63969.jpg?_wi=4",
                imageAlt: "Gas line installation",
              },
            },
            {
              id: 3,
              title: "Water Line Installation & Repair",
              description: "New water line installation and repair service. We handle underground lines, connections, and upgrades with precision.",
              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/male-worker-operating-machinery-factory_107420-96043.jpg?_wi=3",
                imageAlt: "Water line service",
              },
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/male-worker-operating-machinery-factory_107420-96043.jpg?_wi=4",
                imageAlt: "Water line service",
              },
            },
            {
              id: 4,
              title: "Fixture Installation",
              description: "Professional installation of sinks, faucets, and bathroom fixtures. We ensure proper connections and aesthetic finish.",
              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/high-angle-man-cleaning-sink_23-2149535089.jpg?_wi=1",
                imageAlt: "Fixture installation",
              },
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/high-angle-man-cleaning-sink_23-2149535089.jpg?_wi=2",
                imageAlt: "Fixture installation",
              },
            },
          ]}
          showStepNumbers={true}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={true}
          buttonAnimation="slide-up"
          ariaLabel="Full services section"
        />
      </div>

      {/* Service Benefits */}
      <div id="service-benefits" data-section="service-benefits">
        <MetricCardThree
          title="Why Our Service Stands Out"
          description="Professional expertise combined with customer-first values"
          metrics={[
            { id: "1", icon: Wrench, title: "Expert Technicians", value: "15+ Years" },
            { id: "2", icon: Zap, title: "Fast Response", value: "Same Day" },
            { id: "3", icon: Droplet, title: "Quality Guarantee", value: "100% Certified" },
            { id: "4", icon: Home, title: "Residential Focus", value: "Local Pride" },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="Service benefits section"
        />
      </div>

      {/* Service Request */}
      <div id="service-request" data-section="service-request">
        <ContactSplitForm
          title="Schedule Your Service Today"
          description="Request a free consultation and estimate. Our team will respond promptly to discuss your plumbing needs."
          inputs={[
            { name: "name", type: "text", placeholder: "Full Name", required: true },
            { name: "phone", type: "tel", placeholder: "Phone Number", required: true },
            { name: "service_type", type: "text", placeholder: "Service Type Needed", required: true },
            { name: "preferred_date", type: "text", placeholder: "Preferred Date/Time", required: false },
          ]}
          textarea={{
            name: "description",
            placeholder: "Describe your plumbing issue or service request...",
            rows: 4,
            required: true,
          }}
          buttonText="Request Service"
          useInvertedBackground={false}
          mediaAnimation="slide-up"
          mediaPosition="right"
          imageSrc="http://img.b2bpic.net/free-photo/male-plumber-working-with-client-fix-kitchen-problems_23-2150990690.jpg?_wi=3"
          imageAlt="Professional plumber consulting with customer"
          ariaLabel="Service request form"
          onSubmit={(data) => {
            console.log("Service request:", data);
          }}
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Dynamite Plumbing"
          leftLink={{ text: "Privacy Policy", href: "/" }}
          rightLink={{ text: "Terms of Service", href: "/" }}
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}