"use client";
import Link from "next/link";
import { Clock } from "lucide-react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSmall"
      background="noiseDiagonalGradient"
      cardStyle="inset"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "Storm Damage", id: "/storm-damage" },
            { name: "Projects", id: "/projects" },
            { name: "Contact", id: "/contact" }
          ]}
          brandName="Viking Construction"
          bottomLeftText="Licensed & Insured"
          bottomRightText="Fast Response • Insurance Support"
        />
      </div>

      {/* Main Contact Form */}
      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get Started"
          title="Get a Same-Day Roof Check When You Need Answers Fast"
          description="If you're dealing with a leak, hail damage, or a roof you're unsure about, I'll inspect it and give you a clear plan. Submit your info and I'll respond quickly."
          tagIcon={Clock}
          tagAnimation="slide-up"
          background={{ variant: "gradient-bars" }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-vector/male-hand-holding-gadget-messages-notification_81522-4433.jpg?_wi=2"
          imageAlt="Contact and estimate form"
          mediaAnimation="slide-up"
          mediaPosition="right"
          inputPlaceholder="Enter your email address"
          buttonText="Request Estimate"
          termsText="We respect your privacy. Quick response to all inquiries."
          ariaLabel="Contact form and call-to-action section"
        />
      </div>

      {/* Response Time Information */}
      <div id="response-metrics" data-section="response-metrics">
        <MetricCardTwo
          metrics={[
            {
              id: "1",
              value: "<2 Hours",
              description: "Average response time to new inquiries"
            },
            {
              id: "2",
              value: "Same Day",
              description: "Emergency inspections for urgent needs"
            },
            {
              id: "3",
              value: "100%",
              description: "Free estimates with no obligation"
            }
          ]}
          title="Fast Response Guarantee"
          description="When you need roofing help, speed matters. Here's what you can expect from us."
          gridVariant="uniform-all-items-equal"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          ariaLabel="Response time and service guarantee metrics"
        />
      </div>

      {/* Contact Methods */}
      <div id="contact-methods" data-section="contact-methods">
        <SocialProofOne
          title="Multiple Ways to Reach Us"
          description="Choose the contact method that works best for you. All options get quick responses."
          names={[
            "Phone: 1-800-ROOFING",
            "Text Messages Welcome",
            "Email: Fast Response",
            "Online Form: 24/7",
            "Emergency Line Available",
            "Insurance Questions",
            "Free Consultation"
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          speed={40}
          showCard={true}
          ariaLabel="Available contact methods and communication options"
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          columns={[
            {
              items: [
                { label: "Home", href: "/" },
                { label: "Services", href: "/services" },
                { label: "Storm Damage", href: "/storm-damage" },
                { label: "Projects", href: "/projects" }
              ]
            },
            {
              items: [
                { label: "About Us", href: "/about" },
                { label: "Inspections", href: "/services" },
                { label: "Starlink Mounting", href: "/services" },
                { label: "Contact", href: "/contact" }
              ]
            },
            {
              items: [
                { label: "Privacy Policy", href: "/privacy" },
                { label: "Terms of Service", href: "/terms" },
                { label: "Warranty Info", href: "/warranty" },
                { label: "Insurance FAQ", href: "/faq" }
              ]
            },
            {
              items: [
                { label: "Call Us", href: "tel:1-800-ROOFING" },
                { label: "Text Us", href: "sms:1-800-ROOFING" },
                { label: "Email Support", href: "mailto:support@vikingconstruction.com" },
                { label: "24/7 Emergency", href: "tel:1-800-ROOFING" }
              ]
            }
          ]}
          logoText="Viking Construction"
          ariaLabel="Site footer with navigation and contact links"
        />
      </div>
    </ThemeProvider>
  );
}