"use client";

import ReactLenis from "lenis/react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterBase from "@/components/sections/footer/FooterBase";

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="medium"
      sizing="medium"
      background="none"
      cardStyle="glass-elevated"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <ReactLenis root>
        <NavbarLayoutFloatingOverlay
          brandName="Grow With Social"
          navItems={[
            { name: "Domov", id: "/" },
            { name: "Práca", id: "/#work" },
            { name: "Služby", id: "/#services" },
            { name: "O nás", id: "/about" },
            { name: "Kontakt", id: "/contact" }
          ]}
        />

        <ContactSplitForm
          title="Kontaktujte nás"
          description="Radi počujeme od vás! Vyplňte formulár nižšie a my sa vám čoskoro ozveme."
          inputs={[
            { name: "name", type: "text", placeholder: "Vaše meno", required: true },
            { name: "email", type: "email", placeholder: "Váš e-mail", required: true },
            { name: "phone", type: "tel", placeholder: "Telefónne číslo (voliteľné)" }
          ]}
          textarea={{ name: "message", placeholder: "Vaša správa", rows: 5, required: true }}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/dev-1.webp?_wi=2"
          imageAlt="Contact us image"
          buttonText="Odoslať správu"
          useInvertedBackground={false}
          mediaPosition="right"
          onSubmit={(data) => console.log("Contact form submitted with data:", data)}
        />

        <FooterBase
          logoText="Grow With Social"
          copyrightText="© 2026 | Grow With Social"
          columns={[
            {
              title: "Company",              items: [
                { label: "About", href: "/about" },
                { label: "Services", href: "/#services" },
                { label: "Work", href: "/#work" },
                { label: "Contact", href: "/contact" },
              ],
            },
            {
              title: "Services",              items: [
                { label: "Web Development", href: "/#" },
                { label: "SEO", href: "/#" },
                { label: "Branding", href: "/#" },
                { label: "UI/UX Design", href: "/#" },
              ],
            },
            {
              title: "Connect",              items: [
                { label: "Twitter", href: "/#" },
                { label: "LinkedIn", href: "/#" },
                { label: "Instagram", href: "/#" },
                { label: "Dribbble", href: "/#" },
              ],
            },
          ]}
        />
      </ReactLenis>
    </ThemeProvider>
  );
}