"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import HeroBillboardDashboard from "@/components/sections/hero/HeroBillboardDashboard";
import MediaAbout from "@/components/sections/about/MediaAbout";
import FeatureCardSix from "@/components/sections/feature/FeatureCardSix";
import MetricCardTwo from "@/components/sections/metrics/MetricCardTwo";
import TestimonialCardSixteen from "@/components/sections/testimonial/TestimonialCardSixteen";
import ContactCenter from "@/components/sections/contact/ContactCenter";
import FooterSimple from "@/components/sections/footer/FooterSimple";
import {
  MapPin,
  Rocket,
  CheckCircle,
  DollarSign,
  FileText,
  BarChart3,
  Building2,
  Home,
  TrendingUp,
} from "lucide-react";

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "services" },
    { name: "About", id: "about" },
    { name: "Contact", id: "contact" },
  ];

  const footerColumns = [
    {
      title: "Quick Links",
      items: [
        { label: "Home", href: "/" },
        { label: "Services", href: "/services" },
        { label: "About", href: "/about" },
        { label: "Contact", href: "/contact" },
      ],
    },
    {
      title: "Services",
      items: [
        { label: "Business Accounting", href: "/services" },
        { label: "Property Accounting", href: "/services" },
        { label: "Business Advisory", href: "/services" },
        { label: "Tax Planning", href: "/services" },
      ],
    },
    {
      title: "Contact",
      items: [
        { label: "Phone: 09 296 0472", href: "tel:0929605472" },
        { label: "Email: karaka@sba.co.nz", href: "mailto:karaka@sba.co.nz" },
        { label: "6/75 Hingaia Road, Karaka", href: "#" },
        { label: "Mon-Fri 9am-5pm", href: "#" },
      ],
    },
    {
      title: "Legal",
      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
        { label: "Disclaimer", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="mediumLarge"
      background="blurBottom"
      cardStyle="soft-shadow"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="layered"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="SBA Karaka"
          navItems={navItems}
          button={{
            text: "Book Consultation",
            href: "#contact",
          }}
          animateOnLoad={true}
          className="shadow-lg"
          navItemClassName="font-medium text-sm"
          buttonClassName="px-6 py-2.5"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardDashboard
          tag="Local Expertise"
          tagIcon={MapPin}
          tagAnimation="slide-up"
          title="Your Local Karaka Chartered Accountant"
          description="Affordable, fixed-fee accounting and advisory services for small businesses and property investors across South Auckland. Professional compliance with personalised support."
          background={{ variant: "radial-gradient" }}
          buttons={[
            { text: "Book a Consultation", href: "#contact" },
            { text: "Enquire Now", href: "#contact" },
          ]}
          buttonAnimation="slide-up"
          dashboard={{
            title: "Why Choose SBA Karaka",
            logoIcon: CheckCircle,
            imageSrc:
              "http://img.b2bpic.net/free-photo/positive-business-colleagues-watching-presentation-pc-monitor-discussing-project-sitting-workplace-pointing-display-business-communication-concept_74855-11908.jpg?_wi=1",
            imageAlt: "Professional accounting office",
            buttons: [
              { text: "Learn More", href: "/services" },
              { text: "Contact Us", href: "#contact" },
            ],
            sidebarItems: [
              { icon: DollarSign, active: true },
              { icon: FileText },
              { icon: BarChart3 },
            ],
            stats: [
              {
                title: "Fixed Fees",
                values: ["Transparent", "Predictable", "No Surprises"],
                description: "Monthly retainer model",
              },
              {
                title: "IRD Compliant",
                values: ["100%", "Reliable", "Peace of Mind"],
                valueSuffix: "",
                description: "Full tax compliance",
              },
              {
                title: "Xero Cloud",
                values: ["Real-Time", "Automated", "Accessible"],
                description: "Modern accounting systems",
              },
            ],
            chartTitle: "Service Coverage",
            chartData: [
              { value: 85 },
              { value: 72 },
              { value: 90 },
              { value: 68 },
              { value: 95 },
            ],
            listTitle: "Key Services",
            listItems: [
              {
                icon: Building2,
                title: "Business Accounting",
                status: "Core Service",
              },
              { icon: Home, title: "Rental Property", status: "Specialist" },
              {
                icon: TrendingUp,
                title: "Business Advisory",
                status: "Premium",
              },
            ],
            searchPlaceholder: "Ask about our services...",
          }}
        />
      </div>

      <div id="about-balaji" data-section="about-balaji">
        <MediaAbout
          tag="Meet Your Accountant"
          tagAnimation="slide-up"
          title="Balaji Kris - Qualified Chartered Accountant"
          description="With extensive experience in public practice accounting and deep expertise in South Auckland business community, Balaji provides personalised financial guidance backed by the national SBA Small Business Accounting network. Specialising in small business compliance, property investment tax strategies, and growth advisory."
          imageSrc="http://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg?_wi=1"
          imageAlt="Balaji Kris, Chartered Accountant"
          buttons={[{ text: "Book Consultation", href: "#contact" }]}
          useInvertedBackground={false}
        />
      </div>

      <div id="services-overview" data-section="services-overview">
        <FeatureCardSix
          tag="Our Services"
          tagAnimation="slide-up"
          title="Comprehensive Accounting Solutions"
          description="From compliance to strategic planning, we provide the full spectrum of accounting services tailored to your business needs."
          textboxLayout="default"
          useInvertedBackground={true}
          buttonAnimation="slide-up"
          features={[
            {
              id: 1,
              title: "Business Accounting",
              description:
                "Full bookkeeping, tax preparation, GST compliance, and financial reporting for small businesses and startups. We handle the numbers so you focus on growth.",
              imageSrc:
                "http://img.b2bpic.net/free-photo/start-up-business-goals-strategy_53876-124798.jpg?_wi=1",
            },
            {
              id: 2,
              title: "Rental Property Accounting",
              description:
                "Specialist services for property investors including rental income reporting, expense tracking, depreciation schedules, and property tax optimisation strategies.",
              imageSrc:
                "http://img.b2bpic.net/free-photo/house-loan-estate-sell-mortgage-concept_53876-125097.jpg?_wi=1",
            },
            {
              id: 3,
              title: "Business Advisory",
              description:
                "Strategic planning, cash flow forecasting, budgeting, tax planning, and growth strategies. We're your long-term financial partner, not just a compliance service.",
              imageSrc:
                "http://img.b2bpic.net/free-photo/financial-program-user-interface-pc-screen-home-office-desk_482257-118861.jpg?_wi=1",
            },
          ]}
        />
      </div>

      <div id="why-choose" data-section="why-choose">
        <MetricCardTwo
          tag="Why Choose SBA Karaka"
          tagAnimation="slide-up"
          title="Fixed Monthly Fees & Trust-Driven Service"
          description="No surprise bills. Professional compliance. Personalised advisory. Local expertise with national backing."
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          metrics={[
            {
              id: "1",
              value: "Fixed Fees",
              description:
                "Transparent monthly pricing with no hidden charges or surprise bills",
            },
            {
              id: "2",
              value: "IRD Compliant",
              description:
                "100% tax compliance ensuring peace of mind and regulatory adherence",
            },
            {
              id: "3",
              value: "Xero Cloud",
              description:
                "Real-time financial data accessible anywhere, anytime on cloud-based platform",
            },
            {
              id: "4",
              value: "Local + National",
              description:
                "Karaka-based accountant with nationwide SBA Small Business Accounting network support",
            },
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSixteen
          tag="Client Success"
          tagAnimation="slide-up"
          title="Trusted by South Auckland Business Owners"
          description="Real testimonials from small business owners and property investors who've transformed their financial management with SBA Karaka."
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="slide-up"
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell",
              role: "Director",
              company: "Mitchell Construction Ltd",
              rating: 5,
              imageSrc:
                "http://img.b2bpic.net/free-photo/smiling-businessman-standing-airport-terminal_107420-85070.jpg?_wi=1",
            },
            {
              id: "2",
              name: "David Chen",
              role: "Property Investor",
              company: "Property Portfolio Manager",
              rating: 5,
              imageSrc:
                "http://img.b2bpic.net/free-photo/close-up-successful-entrepreneur_1098-3855.jpg?_wi=1",
            },
            {
              id: "3",
              name: "Jennifer Williams",
              role: "Business Owner",
              company: "Williams Consulting",
              rating: 5,
              imageSrc:
                "http://img.b2bpic.net/free-photo/portrait-businessman-conference-room-thinking-about-future_482257-25788.jpg?_wi=1",
            },
            {
              id: "4",
              name: "Michael Rodriguez",
              role: "Franchise Owner",
              company: "Franchise Operations",
              rating: 5,
              imageSrc:
                "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=1",
            },
            {
              id: "5",
              name: "Rachel Thompson",
              role: "SME Owner",
              company: "Thompson Digital Services",
              rating: 5,
              imageSrc:
                "http://img.b2bpic.net/free-photo/portrait-happy-businesswoman-her-employees-background_1262-20305.jpg",
            },
            {
              id: "6",
              name: "James Lee",
              role: "Property Investor",
              company: "Investment Portfolio",
              rating: 5,
              imageSrc:
                "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=2",
            },
          ]}
          kpiItems={[
            { value: "200+", label: "Small businesses served" },
            { value: "98%", label: "Client retention rate" },
            { value: "$15M+", label: "Collective client savings" },
          ]}
        />
      </div>

      <div id="cta" data-section="cta">
        <ContactCenter
          tag="Ready to Grow"
          tagIcon={Rocket}
          tagAnimation="slide-up"
          title="Book Your Free Consultation Today"
          description="Let's discuss your accounting needs and explore how SBA Karaka can become your trusted financial partner. No obligation, just expert advice."
          background={{ variant: "downward-rays-static" }}
          useInvertedBackground={false}
          inputPlaceholder="Enter your email"
          buttonText="Get Started"
          termsText="We respect your privacy. We'll only contact you to schedule your consultation and discuss how we can help your business grow."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={footerColumns}
          bottomLeftText="© 2025 SBA Small Business Accounting Karaka. All rights reserved."
          bottomRightText="Local Chartered Accountant | South Auckland"
        />
      </div>
    </ThemeProvider>
  );
}