"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Phone, Clock, MapPin, Mail } from "lucide-react";

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="large"
      background="noise"
      cardStyle="gradient-bordered"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Sky Tree Services"
          navItems={[
            { name: "Services", id: "/services" },
            { name: "About", id: "/about" },
            { name: "Reviews", id: "/testimonials" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "📞 (615) 568-9651",
            href: "tel:+16155689651"
          }}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Get in Touch"
          tagIcon={Phone}
          title="Need Tree Service Today? Contact Us Now."
          description="Call for immediate assistance or submit your information for a free estimate. Fast response guaranteed."
          buttons={[
            { text: "📞 (615) 568-9651", href: "tel:+16155689651" },
            { text: "Request Free Estimate", href: "mailto:info@skytreeservices.com" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="contact-info" data-section="contact-info">
        <MetricCardThree
          title="How to Reach Sky Tree Services"
          description="Multiple ways to get in touch for your tree service needs."
          metrics={[
            { id: "1", icon: Phone, title: "Call Anytime", value: "(615) 568-9651" },
            { id: "2", icon: Clock, title: "Availability", value: "24/7 Service" },
            { id: "3", icon: MapPin, title: "Service Area", value: "Nashville TN" }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="emergency-contact" data-section="emergency-contact">
        <ContactCTA
          tag="Emergency Service"
          tagIcon={Phone}
          title="Tree Emergency? We Respond Immediately."
          description="Storm damage, fallen trees, or dangerous situations - call now for rapid emergency response. We're available 24 hours a day, 7 days a week."
          buttons={[
            { text: "🚨 Emergency: (615) 568-9651", href: "tel:+16155689651" },
            { text: "Learn About Services", href: "/services" }
          ]}
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={false}
        />
      </div>

      <FooterSimple
        columns={[
          {
            title: "Services",
            items: [
              { label: "Tree Removal", href: "/services" },
              { label: "Emergency Services", href: "/services" },
              { label: "Tree Trimming", href: "/services" },
              { label: "Storm Cleanup", href: "/services" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Reviews", href: "/testimonials" },
              { label: "Contact", href: "/contact" },
              { label: "Service Area", href: "/services" }
            ]
          },
          {
            title: "Contact",
            items: [
              { label: "📞 (615) 568-9651", href: "tel:+16155689651" },
              { label: "📍 3037 Runabout Dr, Nashville, TN 37217", href: "https://maps.google.com/?q=3037+Runabout+Dr+Nashville+TN+37217" },
              { label: "Open 24 Hours" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy Policy" },
              { label: "Terms of Service" }
            ]
          }
        ]}
        bottomLeftText="© 2025 Sky Tree Services LLC. All rights reserved."
        bottomRightText="Professional Tree Service • Nashville, Tennessee"
      />
    </ThemeProvider>
  );
}