"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import FeatureCardThree from "@/components/sections/feature/featureCardThree/FeatureCardThree";
import MetricCardSeven from "@/components/sections/metrics/MetricCardSeven";
import ContactText from "@/components/sections/contact/ContactText";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Layers, Info } from "lucide-react";

export default function MaterialsPage() {
  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="materials-detail" data-section="materials-detail">
        <FeatureCardThree
          title="Stone Material Specifications"
          description="Comprehensive details on each material type, durability, maintenance, and ideal applications."
          tag="Material Options"
          tagIcon={Layers}
          tagAnimation="slide-up"
          features={[
            {
              id: "01",              title: "Granite Worktops",              description: "Natural igneous rock offering exceptional heat resistance and durability. Perfect for high-traffic kitchens. Requires periodic sealing.",              imageSrc: "http://img.b2bpic.net/free-photo/backdrop-decor-tracery-tile-texture_1253-849.jpg?_wi=2",              imageAlt: "Granite slab detail"},
            {
              id: "02",              title: "Quartz Worktops",              description: "Engineered composite material with superior stain resistance and minimal maintenance. Consistent patterns available in countless designs.",              imageSrc: "http://img.b2bpic.net/free-photo/dark-plate-juicy-whole-oranges-marble-surface_114579-57338.jpg?_wi=2",              imageAlt: "Quartz slab detail"},
            {
              id: "03",              title: "Marble Worktops",              description: "Premium natural stone with distinctive veining and elegant aesthetics. Requires regular sealing and careful maintenance for longevity.",              imageSrc: "http://img.b2bpic.net/free-photo/abstract-marble-texture-composition_23-2149016754.jpg?_wi=2",              imageAlt: "Marble slab detail"},
          ]}
          gridVariant="three-columns-all-equal-width"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="material-comparison" data-section="material-comparison">
        <MetricCardSeven
          title="Material Comparison Guide"
          description="Key properties to help you choose the right stone for your project."
          metrics={[
            {
              id: "1",              value: "Natural",              title: "Granite",              items: ["Heat resistant", "Durable", "Requires sealing", "Premium finish"],
            },
            {
              id: "2",              value: "Engineered",              title: "Quartz",              items: ["Low maintenance", "Stain resistant", "Consistent design", "Modern look"],
            },
            {
              id: "3",              value: "Natural",              title: "Marble",              items: ["Luxurious appeal", "Elegant veining", "Requires care", "Statement piece"],
            },
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          tag="Comparison"
          tagIcon={Info}
          tagAnimation="slide-up"
        />
      </div>

      <div id="cta-materials" data-section="cta-materials">
        <ContactText
          text="Ready to select the perfect stone material for your project? Contact our materials experts to discuss your options, view samples, and receive personalized recommendations."
          animationType="reveal-blur"
          buttons={[
            { text: "Book Consultation", href: "/contact" },
            { text: "Visit Showroom", href: "/showroom" },
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

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