"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import HeroLogo from "@/components/sections/hero/HeroLogo";
import FeatureCardNineteen from "@/components/sections/feature/FeatureCardNineteen";
import ContactText from "@/components/sections/contact/ContactText";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "About", id: "about" },
    { name: "Services", id: "services" },
    { name: "Gallery", id: "gallery" },
    { name: "Reviews", id: "reviews" },
    { name: "FAQ", id: "faq" },
  ];

  const footerColumns = [
    {
      title: "Company",
      items: [
        { label: "Home", href: "/" },
        { label: "About", href: "/about" },
        { label: "Services", href: "/services" },
        { label: "Gallery", href: "/gallery" },
      ],
    },
    {
      title: "Customer",
      items: [
        { label: "Reviews", href: "/reviews" },
        { label: "FAQ", href: "/faq" },
        { label: "Get a Quote", href: "/contact" },
        { label: "Contact", href: "/contact" },
      ],
    },
    {
      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="mediumLargeSizeLargeTitles"
      background="aurora"
      cardStyle="outline"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="TD's Lawn-Care"
          navItems={navItems}
          button={{
            text: "Get a Quote",
            href: "/contact",
          }}
        />
      </div>

      <div id="hero-contact" data-section="hero-contact">
        <HeroLogo
          logoText="Get in Touch"
          description="Have questions about our services or ready to schedule your free quote? Reach out to TD's Lawn-Care today. We're here to help and eager to show you the difference professional service makes."
          buttons={[
            {
              text: "Schedule a Free Quote",
              href: "#contact-form",
            },
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/man-cutting-grass-with-lawn-mover-back-yard-male-black-apron-guy-repairs_1157-41434.jpg?_wi=3"
          imageAlt="Professional lawn care team ready to help"
        />
      </div>

      <div id="contact-info" data-section="contact-info">
        <FeatureCardNineteen
          title="How to Reach Us"
          description="Whether you prefer phone, email, or scheduling online, we make it easy to get in touch. Choose the method that works best for you."
          textboxLayout="default"
          useInvertedBackground={false}
          features={[
            {
              id: 1,
              tag: "Quick Response",
              title: "Phone Call",
              subtitle: "Speak with our team directly",
              description: "Call us today for an immediate response. We're available Monday through Saturday, 7 AM to 6 PM. We'll discuss your needs and provide a free quote over the phone.",
              imageSrc: "http://img.b2bpic.net/free-photo/fork-harrows-grass_1339-7742.jpg?_wi=5",
              imageAlt: "Direct phone support available",
            },
            {
              id: 2,
              tag: "Email Support",
              title: "Send an Email",
              subtitle: "Detailed inquiry preferred",
              description: "Email us with photos of your yard and a description of what you need. We'll review your request and respond within 24 hours with a custom quote and availability.",
              imageSrc: "http://img.b2bpic.net/free-photo/person-doing-diy-activity-online-content-creation_23-2151515938.jpg?_wi=5",
              imageAlt: "Email us for detailed inquiries",
            },
            {
              id: 3,
              tag: "Online Booking",
              title: "Schedule Online",
              subtitle: "Book your consultation anytime",
              description: "Use our simple online form to request a free quote. Select your service type, property size, and preferred date. We'll confirm your appointment and send you all the details.",
              imageSrc: "http://img.b2bpic.net/free-photo/woman-operating-heavy-duty-leaf-blower_1153-7324.jpg?_wi=4",
              imageAlt: "Book your service appointment",
            },
          ]}
        />
      </div>

      <div id="cta-contact" data-section="cta-contact">
        <ContactText
          text="Ready to transform your yard? Get your free quote from TD's Lawn-Care today. We'll assess your property and provide a transparent, fair estimate. No obligation, no pressure—just professional service and honest pricing."
          animationType="entrance-slide"
          background={{
            variant: "radial-gradient",
          }}
          useInvertedBackground={false}
          buttons={[
            {
              text: "Get Your Free Quote Now",
              href: "#contact-form",
            },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="TD's Lawn-Care"
          copyrightText="© 2025 TD's Lawn-Care. Professional, Reliable, Always On Schedule."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}