"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import ContactText from "@/components/sections/contact/ContactText";
import FeatureCardMedia from "@/components/sections/feature/FeatureCardMedia";
import MetricCardThree from "@/components/sections/metrics/MetricCardThree";
import FooterSimple from "@/components/sections/footer/FooterSimple";
import { MessageSquare, Calendar, Zap } from "lucide-react";

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="largeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Martinez Roofing"
          navItems={[
            { name: "Metal Roofing", id: "/metal-roofing" },
            { name: "Construction", id: "/construction" },
            { name: "Projects", id: "/projects" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="contact-main" data-section="contact-main">
        <ContactText
          text="Ready to Start Your Metal Roofing or Construction Project? Get in touch with Martinez Roofing for responsive communication, quality craftsmanship, and results that exceed expectations."
          animationType="reveal-blur"
          buttons={[
            { text: "Call / Text Joseph", href: "tel:+1-555-0100" },
            { text: "Request Free Estimate", href: "mailto:info@martinezroofing.com" }
          ]}
          background={{ variant: "glowing-orb" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="contact-process" data-section="contact-process">
        <FeatureCardMedia
          title="How We Handle Your Inquiry"
          description="From initial contact to project completion, we maintain clear communication and professional service at every step."
          tag="Our Process"
          features={[
            {
              id: "initial-contact",
              title: "Quick Response",
              description: "We respond to calls and texts within 24 hours with straight answers and clear next steps for your project.",
              tag: "Step 1",
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-blonde-business-woman-talking-by-mobile-phone_171337-2871.jpg?_wi=3"
            },
            {
              id: "consultation",
              title: "Professional Assessment",
              description: "On-site visit to discuss your needs, review options, and provide detailed estimates with realistic timelines.",
              tag: "Step 2",
              imageSrc: "https://img.b2bpic.net/free-photo/middle-aged-couple-meeting-with-notary_74855-2978.jpg?_wi=2"
            },
            {
              id: "execution",
              title: "Quality Execution",
              description: "Professional installation or construction work with regular updates and clean, organized job sites.",
              tag: "Step 3",
              imageSrc: "https://img.b2bpic.net/free-photo/specialist-technician-professional-engineer-with-laptop-tablet-maintenance-checking-installing-solar-roof-panel-factory-rooftop-sunlight-engineers-team-survey-check-solar-panel-roof_609648-2202.jpg?_wi=2"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact-commitment" data-section="contact-commitment">
        <MetricCardThree
          title="Our Commitment to You"
          description="When you contact Martinez Roofing, you can expect responsive service, honest assessments, and professional results that stand the test of time."
          metrics={[
            {
              id: "1",
              icon: MessageSquare,
              title: "Response Time",
              value: "24hrs"
            },
            {
              id: "2",
              icon: Calendar,
              title: "Punctual Service",
              value: "On-Time"
            },
            {
              id: "3",
              icon: Zap,
              title: "Quality Work",
              value: "Guaranteed"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Navigate",
              items: [
                { label: "Home", href: "/" },
                { label: "Metal Roofing", href: "/metal-roofing" },
                { label: "Construction", href: "/construction" },
                { label: "Projects", href: "/projects" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "/about" },
                { label: "Contact", href: "/contact" }
              ]
            },
            {
              title: "Services",
              items: [
                { label: "Standing Seam Install", href: "/metal-roofing" },
                { label: "Repairs & Replacement", href: "/metal-roofing" },
                { label: "Custom Projects", href: "/construction" }
              ]
            },
            {
              title: "Legal",
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" }
              ]
            }
          ]}
          bottomLeftText="© 2025 Martinez Metal Roofing & Construction. All rights reserved."
          bottomRightText="Built for quality and precision."
        />
      </div>
    </ThemeProvider>
  );
}