"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import AboutMetric from "@/components/sections/about/AboutMetric";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import Link from "next/link";
import {
  Award,
  Users,
  CheckCircle,
  Zap,
  Shield,
  Mail,
} from "lucide-react";

export default function WhyUsPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "Why Us", id: "/why-us" },
    { name: "Contact", id: "/contact" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="small"
      sizing="largeSizeMediumTitles"
      background="circleGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Nottingham Premier Roofing"
          navItems={navItems.map((item) => ({
            name: item.name,
            id: item.id === "/" ? "/" : item.id,
          }))}
        />
      </div>

      <div id="why-us-metrics" data-section="why-us-metrics">
        <AboutMetric
          title="Why Nottingham Premier Roofing is Your Trusted Local Choice - Proven Experience, Certified Expertise, and Customer Commitment"
          metrics={[
            { icon: Award, label: "Years of Experience", value: "15+" },
            { icon: Users, label: "Satisfied Customers", value: "5,000+" },
            { icon: CheckCircle, label: "Licensed & Insured", value: "Certified" },
            { icon: Zap, label: "Emergency Response", value: "24/7 Available" },
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="why-us-commitment" data-section="why-us-commitment">
        <div className="mx-auto px-4 md:px-6 py-16 md:py-24">
          <div className="max-w-3xl mx-auto">
            <div className="space-y-8">
              <div className="space-y-3">
                <div className="flex items-start gap-4">
                  <div className="mt-1">
                    <CheckCircle className="w-6 h-6 text-[#627dc6] flex-shrink-0" />
                  </div>
                  <div>
                    <h3 className="text-xl font-semibold text-[#1f2027]">Licensed & Fully Insured</h3>
                    <p className="text-[#1f2027]/70 mt-1">Complete peace of mind with full certification and comprehensive insurance coverage for all projects.</p>
                  </div>
                </div>
              </div>

              <div className="space-y-3">
                <div className="flex items-start gap-4">
                  <div className="mt-1">
                    <Shield className="w-6 h-6 text-[#627dc6] flex-shrink-0" />
                  </div>
                  <div>
                    <h3 className="text-xl font-semibold text-[#1f2027]">Premium Workmanship</h3>
                    <p className="text-[#1f2027]/70 mt-1">Every project completed to the highest standards using only premium materials and proven techniques.</p>
                  </div>
                </div>
              </div>

              <div className="space-y-3">
                <div className="flex items-start gap-4">
                  <div className="mt-1">
                    <Award className="w-6 h-6 text-[#627dc6] flex-shrink-0" />
                  </div>
                  <div>
                    <h3 className="text-xl font-semibold text-[#1f2027]">Local Expertise</h3>
                    <p className="text-[#1f2027]/70 mt-1">Deep knowledge of Nottingham properties and local weather patterns ensures solutions tailored to your area.</p>
                  </div>
                </div>
              </div>

              <div className="space-y-3">
                <div className="flex items-start gap-4">
                  <div className="mt-1">
                    <Zap className="w-6 h-6 text-[#627dc6] flex-shrink-0" />
                  </div>
                  <div>
                    <h3 className="text-xl font-semibold text-[#1f2027]">24/7 Emergency Support</h3>
                    <p className="text-[#1f2027]/70 mt-1">Available around the clock for urgent roofing issues. Storm damage or leaks? We're here to help immediately.</p>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div id="why-us-cta" data-section="why-us-cta">
        <ContactCTA
          tag="Experience the Difference"
          tagIcon={Mail}
          title="Join Thousands of Satisfied Customers"
          description="Let Nottingham Premier Roofing handle your roofing needs with the professionalism and care you deserve. Get your free quote today."
          buttons={[
            { text: "Get Free Quote", href: "/contact" },
            { text: "Call: 0115 912 3456", href: "tel:+441159123456" },
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Nottingham Premier Roofing"
          leftLink={{ text: "Privacy Policy", href: "#" }}
          rightLink={{ text: "Terms & Conditions", href: "#" }}
        />
      </div>
    </ThemeProvider>
  );
}