"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroBillboard from "@/components/sections/hero/HeroBillboard";
import MetricCardSeven from "@/components/sections/metrics/MetricCardSeven";
import FeatureCardThree from "@/components/sections/feature/featureCardThree/FeatureCardThree";
import BlogCardThree from "@/components/sections/blog/BlogCardThree";
import TestimonialCardSix from "@/components/sections/testimonial/TestimonialCardSix";
import ContactText from "@/components/sections/contact/ContactText";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Sparkles, CheckCircle, Layers, Image, Star, Quote } from "lucide-react";

export default function HomePage() {
  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="hero" data-section="hero">
        <HeroBillboard
          title="Luxury Granite, Quartz & Marble Worktops in Preston"
          description="Expertly fabricated stone worktops with fast turnaround and flawless installation. Trusted by homeowners and designers across Lancashire."
          background={{ variant: "sparkles-gradient" }}
          tag="Premium Stone Solutions"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "Call Now: 01772 440888", href: "tel:01772440888" },
            { text: "Get Free Quote", href: "/contact" },
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/interior-modern-kitchen-with-wooden-details_169016-20193.jpg"
          imageAlt="Luxury installed granite worktop in modern kitchen"
          mediaAnimation="slide-up"
          ariaLabel="Granite House hero section showcasing premium stone worktops"
        />
      </div>

      <div id="trust" data-section="trust">
        <MetricCardSeven
          title="Why Choose Granite House"
          description="Award-winning stone craftsmanship trusted by homeowners across Preston and Lancashire."
          metrics={[
            {
              id: "1",              value: "4.9★",              title: "Google Rating from 365+ Reviews",              items: ["Verified customer reviews", "Expert installation team", "Transparent pricing"],
            },
            {
              id: "2",              value: "Preston",              title: "Local Showroom Experience",              items: ["View extensive stone samples", "Meet our expert team", "Professional consultations"],
            },
            {
              id: "3",              value: "Expert",              title: "Master Stone Fabricators",              items: ["Precision cutting & shaping", "Professional installation", "Quality guarantee"],
            },
            {
              id: "4",              value: "Fast",              title: "Quick Project Turnaround",              items: ["Efficient fabrication", "Flexible scheduling", "Minimal disruption"],
            },
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          tag="Established Quality"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
        />
      </div>

      <div id="materials" data-section="materials">
        <FeatureCardThree
          title="Premium Stone Materials"
          description="Discover the perfect worktop material for your kitchen or bathroom renovation."
          tag="Material Options"
          tagIcon={Layers}
          tagAnimation="slide-up"
          features={[
            {
              id: "01",              title: "Granite Worktops",              description: "Classic elegance with natural stone beauty. Durable, heat-resistant, and timeless appeal for any kitchen style.",              imageSrc: "http://img.b2bpic.net/free-photo/backdrop-decor-tracery-tile-texture_1253-849.jpg",              imageAlt: "Granite slab sample"},
            {
              id: "02",              title: "Quartz Worktops",              description: "Contemporary engineered stone combining durability with low maintenance. Stunning patterns and consistent quality.",              imageSrc: "http://img.b2bpic.net/free-photo/dark-plate-juicy-whole-oranges-marble-surface_114579-57338.jpg",              imageAlt: "Quartz slab sample"},
            {
              id: "03",              title: "Marble Worktops",              description: "Luxurious and sophisticated. Perfect for statement kitchens seeking premium aesthetics and natural veining.",              imageSrc: "http://img.b2bpic.net/free-photo/abstract-marble-texture-composition_23-2149016754.jpg",              imageAlt: "Marble slab sample"},
            {
              id: "04",              title: "Porcelain Worktops",              description: "Modern and versatile with incredible durability. Scratch-resistant and available in endless design possibilities.",              imageSrc: "http://img.b2bpic.net/free-photo/fresh-waffle-slices-black-plate-top-view_114579-85317.jpg",              imageAlt: "Porcelain slab sample"},
          ]}
          gridVariant="four-items-2x2-equal-grid"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="installations" data-section="installations">
        <BlogCardThree
          title="Recent Installations"
          description="Beautiful kitchen and bathroom transformations completed by Granite House."
          tag="Portfolio"
          tagIcon={Image}
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          blogs={[
            {
              id: "1",              category: "Kitchen",              title: "Modern Granite Kitchen Transformation",              excerpt: "Sleek black granite worktop with white cabinetry creates stunning contemporary kitchen design.",              imageSrc: "http://img.b2bpic.net/free-photo/center-cooktop-blue-modules-stone-backdrop_169016-69293.jpg",              imageAlt: "Modern kitchen with black granite worktop",              authorName: "Granite House",              authorAvatar: "http://img.b2bpic.net/free-photo/composition-with-stationery-elements-gray_23-2148851549.jpg",              date: "2024"},
            {
              id: "2",              category: "Bathroom",              title: "Marble Bathroom Vanity Installation",              excerpt: "Elegant white marble creates a spa-like bathroom experience with natural stone beauty.",              imageSrc: "http://img.b2bpic.net/free-photo/sink_74190-3600.jpg",              imageAlt: "Marble bathroom vanity with modern fixtures",              authorName: "Granite House",              authorAvatar: "http://img.b2bpic.net/free-photo/composition-with-stationery-elements-gray_23-2148851549.jpg",              date: "2024"},
            {
              id: "3",              category: "Kitchen",              title: "Quartz Island Worktop Project",              excerpt: "Large engineered quartz island becomes the centerpiece of this family kitchen.",              imageSrc: "http://img.b2bpic.net/free-photo/man-servant-cooking-kitchen_23-2149530823.jpg",              imageAlt: "Large quartz island worktop in spacious kitchen",              authorName: "Granite House",              authorAvatar: "http://img.b2bpic.net/free-photo/composition-with-stationery-elements-gray_23-2148851549.jpg",              date: "2024"},
            {
              id: "4",              category: "Bar",              title: "Granite Home Bar Counter",              excerpt: "Premium granite bar counter adds luxury to home entertaining spaces.",              imageSrc: "http://img.b2bpic.net/free-photo/futuristic-kitchen-interior-design_23-2151821350.jpg",              imageAlt: "Granite bar counter with premium finishes",              authorName: "Granite House",              authorAvatar: "http://img.b2bpic.net/free-photo/composition-with-stationery-elements-gray_23-2148851549.jpg",              date: "2024"},
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Customer Testimonials"
          description="Hear from satisfied homeowners and designers who've transformed their spaces with Granite House."
          tag="Trusted by Many"
          tagIcon={Star}
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          speed={40}
          topMarqueeDirection="left"
          testimonials={[
            {
              id: "1",              name: "Sarah Johnson",              handle: "Kitchen Renovation",              testimonial: "Excellent service from start to finish. The granite worktop completely transformed my kitchen. Highly recommended!",              imageSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",              imageAlt: "Sarah Johnson"},
            {
              id: "2",              name: "Michael Chen",              handle: "Interior Designer",              testimonial: "Quick turnaround and installed impeccably. Granite House is my go-to supplier for client projects.",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Michael Chen"},
            {
              id: "3",              name: "Emma Watson",              handle: "Bathroom Renovation",              testimonial: "The marble vanity is absolutely stunning. Professional team and beautiful results exceeded my expectations.",              imageSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",              imageAlt: "Emma Watson"},
            {
              id: "4",              name: "David Smith",              handle: "Property Developer",              testimonial: "Reliable partner for multiple projects. Quality workmanship and competitive pricing make them stand out.",              imageSrc: "http://img.b2bpic.net/free-photo/portrait-businessman-conference-room-thinking-about-future_482257-25787.jpg",              imageAlt: "David Smith"},
            {
              id: "5",              name: "Lisa Brown",              handle: "Homeowner",              testimonial: "Outstanding attention to detail. The quartz island is the focal point of our new kitchen. Worth every penny!",              imageSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",              imageAlt: "Lisa Brown"},
            {
              id: "6",              name: "James Wilson",              handle: "Kitchen Designer",              testimonial: "Best stone supplier in Preston. Consistent quality, professional installation, and excellent customer service.",              imageSrc: "http://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg",              imageAlt: "James Wilson"},
          ]}
        />
      </div>

      <div id="showroom-cta" data-section="showroom-cta">
        <ContactText
          text="Visit our Preston showroom and explore our extensive range of premium stone slabs. Our expert team is ready to help you find the perfect worktop for your home."
          animationType="reveal-blur"
          buttons={[
            { text: "Get Directions", href: "/showroom" },
            { text: "Book Visit", href: "/contact" },
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

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