"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 MetricCardSeven from "@/components/sections/metrics/MetricCardSeven";
import FeatureCardThree from "@/components/sections/feature/featureCardThree/FeatureCardThree";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Mail, Phone, MapPin } from "lucide-react";

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Materials", id: "/materials" },
    { name: "Gallery", id: "/gallery" },
    { name: "About", id: "/about" },
    { name: "Reviews", id: "/testimonials" },
  ];

  const footerColumns = [
    {
      items: [
        { label: "Home", href: "/" },
        { label: "Materials", href: "/materials" },
        { label: "Gallery", href: "/gallery" },
      ],
    },
    {
      items: [
        { label: "About Us", href: "/about" },
        { label: "Visit Showroom", href: "/showroom" },
        { label: "Contact", href: "/contact" },
      ],
    },
    {
      items: [
        { label: "Call: 01772 440888", href: "tel:01772440888" },
        { label: "Email: info@granitehouse.co.uk", href: "mailto:info@granitehouse.co.uk" },
        { label: "Strand Rd, Preston PR1 8XL", href: "https://maps.google.com/?q=Granite+House+Strand+Rd+Preston" },
      ],
    },
    {
      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms & Conditions", href: "#" },
        { label: "Cookie Policy", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="small"
      sizing="mediumLargeSizeLargeTitles"
      background="circleGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          navItems={navItems}
          brandName="Granite House"
          button={{
            text: "Call Now",            href: "tel:01772440888"}}
        />
      </div>

      <div id="contact-main" data-section="contact-main">
        <ContactText
          text="Ready to transform your kitchen or bathroom? Get your free worktop quote today. Our team will discuss your project, timeline, and budget to find the perfect solution."
          animationType="reveal-blur"
          buttons={[
            { text: "Request Free Quote", href: "tel:01772440888" },
            { text: "Email Inquiry", href: "mailto:info@granitehouse.co.uk" },
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="contact-methods" data-section="contact-methods">
        <MetricCardSeven
          title="Get In Touch"
          description="Multiple ways to contact us for quotes, consultations, or general inquiries."
          metrics={[
            {
              id: "1",              value: "Phone",              title: "01772 440888",              items: ["Fast response", "Expert advice", "Immediate assistance available"],
            },
            {
              id: "2",              value: "Email",              title: "info@granitehouse.co.uk",              items: ["Detailed quotes", "Project inquiry", "Professional support"],
            },
            {
              id: "3",              value: "Visit",              title: "Strand Rd, Preston PR1 8XL",              items: ["View samples", "Meet our team", "Book consultation"],
            },
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          tag="Contact Info"
          tagIcon={Phone}
          tagAnimation="slide-up"
        />
      </div>

      <div id="contact-options" data-section="contact-options">
        <FeatureCardThree
          title="How We Can Help"
          description="Whether you need a quote, consultation, or have questions about our materials and services."
          tag="Contact Options"
          tagIcon={Mail}
          tagAnimation="slide-up"
          features={[
            {
              id: "01",              title: "Free Quote Request",              description: "Submit your project details and receive a personalized quote within 24 hours from our team.",              imageSrc: "http://img.b2bpic.net/free-photo/business-meeting-cafe_53876-15162.jpg",              imageAlt: "Quote consultation"},
            {
              id: "02",              title: "Design Consultation",              description: "Schedule a one-on-one consultation to discuss materials, colors, designs, and your vision.",              imageSrc: "http://img.b2bpic.net/free-photo/center-cooktop-blue-modules-stone-backdrop_169016-69293.jpg",              imageAlt: "Design consultation session"},
            {
              id: "03",              title: "Project Support",              description: "From measurement to installation, our team provides support and guidance throughout your project.",              imageSrc: "http://img.b2bpic.net/free-photo/point-view-young-handyman-using-power-drill-fix-door-kitchen-cabinet_662251-2704.jpg",              imageAlt: "Project support"},
          ]}
          gridVariant="three-columns-all-equal-width"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          columns={footerColumns}
          logoText="Granite House"
        />
      </div>
    </ThemeProvider>
  );
}