"use client";

import Link from "next/link";
import { Phone, Mail, MapPin } from "lucide-react";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="largeSizeMediumTitles"
      background="circleGradient"
      cardStyle="solid"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen 
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "About", id: "/about" },
            { name: "Reviews", id: "/reviews" },
            { name: "Contact", id: "/contact" }
          ]}
          brandName="Trucking & Construction"
          bottomLeftText="Family Owned | Texas Based"
          bottomRightText="Ready to Move Texas Forward"
        />
      </div>

      <div id="contact-form" data-section="contact-form">
        <ContactSplit
          tag="Get Your Quote"
          title="Ready to Get Your Project Moving?"
          description="Contact our professional team for a custom quote tailored to your specific transportation and construction needs. We respond to all inquiries within 24 hours and offer emergency services 24/7."
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground={false}
          imageSrc="https://img.b2bpic.net/free-photo/financial-charts-kpi-metrics-displays-office_482257-126638.jpg"
          mediaPosition="right"
          inputPlaceholder="Enter your email for quote"
          buttonText="Request Quote"
          termsText="We'll respond within 24 business hours with a detailed quote. Emergency services available 24/7."
        />
      </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. Our team is ready to discuss your project and provide professional solutions."
          features={[
            {
              id: "1",
              title: "Call Us Direct",
              description: "Speak directly with our experienced team. Available for emergencies 24/7 with immediate response for urgent transportation needs.",
              tag: "24/7",
              imageSrc: "https://img.b2bpic.net/free-photo/blue-truck-rural-highway-with-green-line-logistics-motion_169016-69998.jpg",
              buttons: [{ text: "Call (512) 555-0000", href: "tel:+1-512-555-0000" }]
            },
            {
              id: "2", 
              title: "Email for Quotes",
              description: "Send us your project details and requirements. We'll respond with a detailed quote within 24 hours during business days.",
              tag: "Fast Response",
              imageSrc: "https://img.b2bpic.net/free-photo/financial-charts-kpi-metrics-displays-office_482257-126638.jpg",
              buttons: [{ text: "Email Us", href: "mailto:info@truckingco.tx" }]
            },
            {
              id: "3",
              title: "Service Coverage", 
              description: "We provide professional trucking and construction services throughout Texas. Contact us to confirm service availability in your area.",
              tag: "Statewide",
              imageSrc: "https://img.b2bpic.net/free-photo/crawler-bulldozer_1388-578.jpg"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="response-times" data-section="response-times">
        <MetricCardTwo
          title="Our Response Commitment"
          description="Professional communication and rapid response times you can count on."
          metrics={[
            { id: "1", value: "< 2hrs", description: "Emergency Response Time" },
            { id: "2", value: "24hrs", description: "Quote Response Guarantee" },
            { id: "3", value: "24/7", description: "Dispatch Availability" }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://img.b2bpic.net/free-photo/blue-truck-rural-highway-with-green-line-logistics-motion_169016-69998.jpg"
          imageAlt="Trucking and construction services across Texas"
          logoText="Trucking & Construction Company of Texas"
          columns={[
            {
              title: "Services",
              items: [
                { label: "Heavy Hauling", href: "/services" },
                { label: "Freight Transport", href: "/services" },
                { label: "Equipment Transport", href: "/services" },
                { label: "Construction Services", href: "/services" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "/about" },
                { label: "Our Team", href: "/about" },
                { label: "Reviews", href: "/reviews" },
                { label: "Contact", href: "/contact" }
              ]
            },
            {
              title: "Contact",
              items: [
                { label: "Call: (512) 555-0000", href: "tel:+1-512-555-0000" },
                { label: "Email: info@truckingco.tx", href: "mailto:info@truckingco.tx" },
                { label: "Service Area: All of Texas", href: "#" },
                { label: "24/7 Dispatch", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 Trucking & Construction Company of Texas. All rights reserved. Family Owned & Operated."
        />
      </div>
    </ThemeProvider>
  );
}