"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import ContactText from "@/components/sections/contact/ContactText";
import FaqSplitText from "@/components/sections/faq/FaqSplitText";
import TestimonialCardFifteen from "@/components/sections/testimonial/TestimonialCardFifteen";
import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal";

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "services" },
    { name: "Products", id: "products" },
    { name: "About", id: "about" },
    { name: "Contact", id: "contact" },
  ];

  const footerColumns = [
    {
      title: "Company",      items: [
        { label: "About Us", href: "/about" },
        { label: "Services", href: "/services" },
        { label: "Products", href: "/products" },
        { label: "Contact", href: "/contact" },
      ],
    },
    {
      title: "Resources",      items: [
        { label: "Technical Specs", href: "#" },
        { label: "Case Studies", href: "#" },
        { label: "Industry News", href: "#" },
        { label: "Support", href: "#" },
      ],
    },
    {
      title: "Legal",      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
        { label: "Compliance", href: "#" },
        { label: "Careers", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="mediumSizeLargeTitles"
      background="circleGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Thermion"
          navItems={navItems}
          button={{ text: "Get Quote", href: "/contact" }}
        />
      </div>

      <div id="contact-hero" data-section="contact-hero">
        <ContactText
          text="Have questions about our thermal spray solutions? Our expert team is ready to help you find the perfect coating solution for your industrial needs. Get in touch today."
          animationType="entrance-slide"
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          buttons={[
            { text: "Contact Our Team", href: "#" },
            { text: "Request Quote", href: "#" },
          ]}
        />
      </div>

      <div id="contact-faq" data-section="contact-faq">
        <FaqSplitText
          sideTitle="Frequently Asked Questions"
          sideDescription="Everything you need to know about Thermion's thermal spray coating solutions and services."
          faqs={[
            {
              id: "1",              title: "What is thermal arc spray coating?",              content:
                "Thermal arc spray coating is an advanced process where metallic or composite materials are melted and propelled onto a substrate surface at high velocity, creating a protective layer. This process is ideal for corrosion protection, wear resistance, and thermal barriers in industrial applications."},
            {
              id: "2",              title: "How long do thermal coatings last?",              content:
                "The lifespan of thermal coatings depends on the application and environment, but typically ranges from 5-15 years or more. Many of our clients report 300% longer component life compared to uncoated alternatives, with some applications lasting 20+ years with minimal maintenance."},
            {
              id: "3",              title: "What industries benefit most from thermal spray?",              content:
                "Thermal spray coatings benefit industries including aerospace, automotive, power generation, oil & gas, marine, and heavy manufacturing. Any industry facing corrosion, wear, or thermal challenges can benefit from our solutions."},
            {
              id: "4",              title: "Can thermal coatings be applied to existing components?",              content:
                "Yes, thermal spray coatings can be applied to existing components without requiring replacement. Our process is non-destructive and can be performed on-site or at our facility, making it a cost-effective alternative to component replacement."},
            {
              id: "5",              title: "How do I request a quote?",              content:
                "Simply contact our team through our website or call us directly. We'll discuss your specific application, provide a detailed assessment, and deliver a comprehensive quote tailored to your needs."},
            {
              id: "6",              title: "What technical support do you offer?",              content:
                "We provide comprehensive technical support including application consultation, equipment training, process optimization, quality assurance, and ongoing maintenance guidance to ensure maximum performance of your coatings."},
          ]}
          faqsAnimation="slide-up"
          textPosition="left"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact-testimonial" data-section="contact-testimonial">
        <TestimonialCardFifteen
          testimonial="Working with Thermion's team was exceptional. They responded quickly to our inquiry, provided detailed technical information, and delivered a solution that exceeded expectations. Their customer service is truly outstanding."
          rating={5}
          author="Sarah Thompson, Procurement Manager - Advanced Industrial Corp"
          avatars={[
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AP1XdPm7J17R50P9CrKAiQvAjO/professional-portrait-of-a-manufacturing-1772479504878-1818f066.png",              alt: "Customer testimonial avatar"},
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AP1XdPm7J17R50P9CrKAiQvAjO/professional-portrait-of-an-engineer-or--1772479505167-3e18818d.png",              alt: "Customer testimonial avatar"},
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AP1XdPm7J17R50P9CrKAiQvAjO/professional-portrait-of-an-operations-d-1772479505310-caabf737.png",              alt: "Customer testimonial avatar"},
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AP1XdPm7J17R50P9CrKAiQvAjO/professional-portrait-of-a-procurement-o-1772479505746-d48ca0b6.png",              alt: "Customer testimonial avatar"},
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AP1XdPm7J17R50P9CrKAiQvAjO/professional-portrait-of-a-maintenance-d-1772479505838-4f85dea8.png",              alt: "Customer testimonial avatar"},
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AP1XdPm7J17R50P9CrKAiQvAjO/professional-portrait-of-a-facilities-or-1772479505193-1ecd9a9b.png",              alt: "Customer testimonial avatar"},
          ]}
          ratingAnimation="slide-up"
          avatarsAnimation="slide-up"
          useInvertedBackground={true}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={footerColumns}
          copyrightText="© 2025 Thermion Inc. All rights reserved. Advanced Thermal Arc Spray Solutions."
        />
      </div>
    </ThemeProvider>
  );
}