"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import ContactText from '@/components/sections/contact/ContactText';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Zap, MessageSquare, Calendar } from "lucide-react";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="largeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Martinez Roofing"
          navItems={[
            { name: "Metal Roofing", id: "/metal-roofing" },
            { name: "Construction", id: "/construction" },
            { name: "Projects", id: "/projects" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Premium Metal Roofing & Construction — Built With Precision"
          description="From standing seam installs to repairs and custom construction, we deliver a clean finish, clear communication, and results that last."
          tag="Standing Seam Specialists"
          tagIcon={Zap}
          tagAnimation="slide-up"
          buttons={[
            { text: "Get a Free Estimate", href: "/contact" },
            { text: "Call / Text Joseph", href: "tel:+1-555-0100" }
          ]}
          buttonAnimation="slide-up"
          imageSrc="https://img.b2bpic.net/free-photo/full-shot-man-wearing-protection-helmet_23-2149343634.jpg?_wi=1"
          imageAlt="Premium standing seam metal roofing installation"
          imagePosition="right"
          mediaAnimation="blur-reveal"
          background={{ variant: "glowing-orb" }}
        />
      </div>

      <div id="why-martinez" data-section="why-martinez">
        <FeatureCardMedia
          title="Top-Tier Craftsmanship. Even Better Communication."
          description="What customers love most about working with Martinez Metal Roofing."
          tag="Why Choose Us"
          features={[
            {
              id: "responsive",
              title: "Responsive & Professional",
              description: "Quick replies by phone/text. Straight answers, clear next steps.",
              tag: "Communication",
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-business-man-talking-phone-lounge_1262-3626.jpg?_wi=1"
            },
            {
              id: "expertise",
              title: "Standing Seam Expertise",
              description: "Metal installs done clean, tight, and built to handle harsh seasons.",
              tag: "Specialty",
              imageSrc: "https://img.b2bpic.net/free-photo/worker-cuts-steel-profiles-drywall-close-up-selective-focus-preparing-installation-ceiling-profile-system-frame-renovation-repair_166373-1903.jpg?_wi=1"
            },
            {
              id: "jobsites",
              title: "Respectful Job Sites",
              description: "Fast, organized work—no mess left behind.",
              tag: "Quality",
              imageSrc: "https://img.b2bpic.net/free-photo/full-shot-people-working-construction_23-2150772881.jpg?_wi=1"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="trust-results" data-section="trust-results">
        <MetricCardThree
          title="Built for Busy Seasons — Without the Runaround"
          description="Many homeowners expect metal roofing to take months—especially in peak season. We stay responsive, communicate clearly, and schedule realistically so your project moves forward without surprises."
          metrics={[
            {
              id: "1",
              icon: MessageSquare,
              title: "Quick Communication",
              value: "24hrs"
            },
            {
              id: "2",
              icon: Calendar,
              title: "Flexible Scheduling",
              value: "100%"
            },
            {
              id: "3",
              icon: Zap,
              title: "Efficient Installs",
              value: "Fast"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="process" data-section="process">
        <FeatureCardMedia
          title="A Simple Process That Keeps You In Control"
          description="From initial estimate through final walkthrough, transparency and communication at every step."
          features={[
            {
              id: "estimate",
              title: "Request an Estimate",
              description: "Tell us what you need. We'll respond quickly.",
              tag: "Step 1",
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-hands-business-meeting_93675-132442.jpg?_wi=1"
            },
            {
              id: "consultation",
              title: "On-Site Visit & Options",
              description: "We listen, review your goals, and walk you through the best approach.",
              tag: "Step 2",
              imageSrc: "https://img.b2bpic.net/free-photo/middle-aged-couple-meeting-with-notary_74855-2978.jpg?_wi=1"
            },
            {
              id: "execution",
              title: "Schedule & Installation",
              description: "Clear timeline, clean worksite, professional finish.",
              tag: "Step 3",
              imageSrc: "https://img.b2bpic.net/free-photo/specialist-technician-professional-engineer-with-laptop-tablet-maintenance-checking-installing-solar-roof-panel-factory-rooftop-sunlight-engineers-team-survey-check-solar-panel-roof_609648-2202.jpg"
            },
            {
              id: "walkthrough",
              title: "Final Walkthrough",
              description: "We make sure everything looks right and performs right.",
              tag: "Step 4",
              imageSrc: "https://img.b2bpic.net/free-photo/company-manager-holding-project-plans-while-talking-african-american-manual-worker-who-is-pointing-something-factory_637285-4115.jpg"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="cta-final" data-section="cta-final">
        <ContactText
          text="Ready for a Metal Roof You'll Never Stress About? If you want responsive communication, premium workmanship, and a clean finish—request an estimate today."
          animationType="reveal-blur"
          buttons={[
            { text: "Get a Free Estimate", href: "/contact" },
            { text: "Call / Text Joseph", href: "tel:+1-555-0100" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <FooterSimple
        columns={[
          {
            title: "Navigate",
            items: [
              { label: "Home", href: "/" },
              { label: "Metal Roofing", href: "/metal-roofing" },
              { label: "Construction", href: "/construction" },
              { label: "Projects", href: "/projects" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            title: "Services",
            items: [
              { label: "Standing Seam Install", href: "/metal-roofing" },
              { label: "Repairs & Replacement", href: "/metal-roofing" },
              { label: "Custom Projects", href: "/construction" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy Policy", href: "#" },
              { label: "Terms of Service", href: "#" }
            ]
          }
        ]}
        bottomLeftText="© 2025 Martinez Metal Roofing & Construction. All rights reserved."
        bottomRightText="Built for quality and precision."
      />
    </ThemeProvider>
  );
}