"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 FooterSimple from '@/components/sections/footer/FooterSimple';

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 Get Started? Contact Martinez Metal Roofing & Construction today for your free estimate. We respond quickly and provide clear, honest assessments for every project."
          animationType="reveal-blur"
          buttons={[
            { text: "Call / Text Joseph", href: "tel:+1-555-0100" },
            { text: "Email Us", href: "mailto:info@martinezroofing.com" }
          ]}
          background={{ variant: "glowing-orb" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="contact-methods" data-section="contact-methods">
        <FeatureCardMedia
          title="Multiple Ways to Reach Us"
          description="Choose the contact method that works best for you. We're committed to quick, clear communication."
          tag="Get in Touch"
          features={[
            {
              id: "phone",
              title: "Call or Text Joseph",
              description: "Direct line for immediate response. Available during business hours and for urgent matters.",
              tag: "Phone",
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-business-man-talking-phone-lounge_1262-3626.jpg?_wi=3"
            },
            {
              id: "estimate",
              title: "Free Estimate Request",
              description: "Tell us about your project and we'll provide a detailed, no-obligation estimate.",
              tag: "Estimate",
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-hands-business-meeting_93675-132442.jpg?_wi=2"
            },
            {
              id: "consultation",
              title: "On-Site Consultation",
              description: "Schedule a visit to discuss your project in detail and explore all options.",
              tag: "Visit",
              imageSrc: "https://img.b2bpic.net/free-photo/middle-aged-couple-meeting-with-notary_74855-2978.jpg?_wi=2"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact-final" data-section="contact-final">
        <ContactText
          text="Don't wait—metal roofing seasons fill up fast. Contact us today to secure your spot and get the responsive service you deserve."
          animationType="reveal-blur"
          buttons={[
            { text: "Get Your Free Estimate", href: "tel:+1-555-0100" },
            { text: "View Our Projects", href: "/projects" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <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."
      />
    </ThemeProvider>
  );
}