"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import FaqDouble from '@/components/sections/faq/FaqDouble';
import FeatureCardTwentyFive from '@/components/sections/feature/FeatureCardTwentyFive';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import { Building, Droplet, Home, MessageCircle, Wrench } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="directional-hover"
        defaultTextAnimation="reveal-blur"
        borderRadius="pill"
        contentWidth="mediumLarge"
        sizing="medium"
        background="circleGradient"
        cardStyle="gradient-bordered"
        primaryButtonStyle="shadow"
        secondaryButtonStyle="glass"
        headingFontWeight="medium"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleApple
      navItems={[
        {
          name: "Home",          id: "/"},
        {
          name: "Services",          id: "/services"},
        {
          name: "Projects",          id: "/projects"},
        {
          name: "Reviews",          id: "/reviews"},
        {
          name: "About",          id: "/about"},
        {
          name: "FAQs",          id: "/faq"},
        {
          name: "Get a Quote",          id: "/contact"},
      ]}
      brandName="GC Roofing"
    />
  </div>

  <div id="services-list" data-section="services-list">
      <FeatureCardTwentyFive
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      features={[
        {
          title: "New Slate & Tile Roofs",          description: "Full roof replacements, breathable membranes, insulation, leadwork, and ridge systems for lasting quality.",          icon: Home,
          mediaItems: [
            {
              imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-men-working-roof-together_23-2149343670.jpg",              imageAlt: "Slate roof repair"},
            {
              imageSrc: "http://img.b2bpic.net/free-photo/long-shot-roofer-working-with-helmet_23-2149343709.jpg",              imageAlt: "New slate roof construction"},
          ]
        },
        {
          title: "Flat Roof Replacement",          description: "Warm roof systems with GRP or high-grade felt for leak-free, energy-efficient, and neatly finished roofs.",          icon: Home,
          mediaItems: [
            {
              imageSrc: "http://img.b2bpic.net/free-photo/construction-worker-using-hammer-job-site_23-2150530736.jpg",              imageAlt: "Flat roof repair"},
            {
              imageSrc: "http://img.b2bpic.net/free-photo/aerial-view-solar-panels-rooftops-coonabarabran-australia_1308-189364.jpg",              imageAlt: "Flat roof replacement"},
          ]
        },
        {
          title: "Chimney Removal & Rebuild",          description: "Safe structural removals, lead flashings, capping, and brickwork to resolve damp issues and ensure watertight integrity.",          icon: Building,
          mediaItems: [
            {
              imageSrc: "http://img.b2bpic.net/free-photo/combination-gravel-old-brick-wall_23-2148206761.jpg",              imageAlt: "Chimney repair"},
            {
              imageSrc: "http://img.b2bpic.net/free-photo/windmill-witch-rooftop-with-blue-sky_1428-577.jpg",              imageAlt: "Chimney rebuild"},
          ]
        },
        {
          title: "Fascia, Soffits & Guttering",          description: "Installation of new fascia, soffits, gutters, and downpipes for improved drainage and a clean, modern aesthetic.",          icon: Droplet,
          mediaItems: [
            {
              imageSrc: "http://img.b2bpic.net/free-photo/old-houses_53876-33815.jpg",              imageAlt: "Gutter cleaning"},
            {
              imageSrc: "http://img.b2bpic.net/free-photo/side-view-building-with-blue-sky_23-2148252799.jpg",              imageAlt: "Fascia and guttering"},
          ]
        },
        {
          title: "Storm Damage & Emergency",          description: "Rapid response and same-day attendance where possible to make your roof safe and provide permanent repairs.",          icon: Wrench,
          mediaItems: [
            {
              imageSrc: "http://img.b2bpic.net/free-photo/construction-worker-doing-his-job-with-belt_23-2149343658.jpg",              imageAlt: "Storm damaged roof"},
            {
              imageSrc: "http://img.b2bpic.net/free-photo/cracked-table-paint_1122-425.jpg",              imageAlt: "Roofer fixing storm damage"},
          ]
        },
        {
          title: "Skylights & Roof Ventilation",          description: "Expert Velux installation, vent tiles, and condensation solutions to enhance attic comfort and natural light.",          icon: MessageCircle,
          mediaItems: [
            {
              imageSrc: "http://img.b2bpic.net/free-photo/electrician-is-mounting-electric-sockets-white-wall-indoors_169016-17798.jpg",              imageAlt: "Skylight installation"},
            {
              imageSrc: "http://img.b2bpic.net/free-photo/man-working-with-protection-helmet-full-shot_23-2149343641.jpg",              imageAlt: "Velux window"},
          ]
        },
      ]}
      title="Our Full Range of Expert Roofing Solutions"
      description="GC Roofing offers comprehensive services from new installations to emergency repairs, delivered with professionalism and transparency."
    />
  </div>

  <div id="service-faqs" data-section="service-faqs">
      <FaqDouble
      textboxLayout="default"
      useInvertedBackground={true}
      faqs={[
        {
          id: "faq-s1",          title: "What kind of roofs do you work on?",          content: "We specialize in both new slate and tiled roof installations, as well as flat roof replacements using modern warm roof systems, GRP, or high-grade felt."},
        {
          id: "faq-s2",          title: "How do you handle storm damage?",          content: "We offer same or next-day attendance for storm damage where possible. Our priority is to make your roof safe and watertight, followed by permanent repairs."},
        {
          id: "faq-s3",          title: "Do you provide guarantees on your work?",          content: "Yes, we provide a 10-year workmanship guarantee on all full roof replacements, and we honor manufacturer warranties on materials used."},
      ]}
      title="Frequently Asked Service Questions"
      description="Find answers to common questions about our roofing services and processes."
      faqsAnimation="slide-up"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseCard
      logoText="GC Roofing"
      columns={[
        {
          title: "Services",          items: [
            {
              label: "New Slates & Tiled Roofs",              href: "/services#slate-tile"},
            {
              label: "Flat Roof Replacement",              href: "/services#flat-roof"},
            {
              label: "Chimney Removal/Rebuild",              href: "/services#chimney"},
            {
              label: "Fascia, Soffits & Guttering",              href: "/services#fascia-gutter"},
            {
              label: "Storm Damage & Emergency",              href: "/services#storm-damage"},
            {
              label: "Skylights & Ventilation",              href: "/services#skylights"},
          ],
        },
        {
          title: "Company",          items: [
            {
              label: "About Us",              href: "/about"},
            {
              label: "Projects",              href: "/projects"},
            {
              label: "Reviews",              href: "/reviews"},
            {
              label: "FAQs",              href: "/faq"},
            {
              label: "Contact",              href: "/contact"},
          ],
        },
        {
          title: "Legal",          items: [
            {
              label: "Privacy Policy",              href: "#"},
            {
              label: "Terms of Service",              href: "#"},
          ],
        },
      ]}
      copyrightText="© 2024 GC Roofing. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
