"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import ContactFaq from "@/components/sections/contact/ContactFaq";
import FaqSplitMedia from "@/components/sections/faq/FaqSplitMedia";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Phone } from "lucide-react";

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Services", id: "services" },
    { name: "Portfolio", id: "portfolio" },
    { name: "Pricing", id: "pricing" },
    { name: "Contact", id: "contact" },
  ];

  const navButton = { text: "Call Now", href: "/contact" };

  const footerColumns = [
    {
      items: [
        { label: "Home", href: "/" },
        { label: "Services", href: "/services" },
        { label: "Portfolio", href: "/portfolio" },
        { label: "Pricing", href: "/pricing" },
      ],
    },
    {
      items: [
        { label: "Contact Us", href: "/contact" },
        { label: "Free Quote", href: "/contact" },
        { label: "FAQ", href: "/" },
        { label: "Blog", href: "/" },
      ],
    },
    {
      items: [
        { label: "Privacy Policy", href: "/" },
        { label: "Terms of Service", href: "/" },
        { label: "Service Agreement", href: "/" },
        { label: "Warranty Info", href: "/" },
      ],
    },
    {
      items: [
        { label: "Phone: (555) 123-4567", href: "tel:+15551234567" },
        { label: "Email: info@greenscape.com", href: "mailto:info@greenscape.com" },
        { label: "Address: 123 Lawn St, City, State 12345", href: "/" },
        { label: "Hours: Mon-Sat 8am-6pm", href: "/" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="largeSmallSizeMediumTitles"
      background="fluid"
      cardStyle="glass-depth"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={navItems}
          button={navButton}
          brandName="GreenScape Turf"
        />
      </div>

      <div id="contact-cta" data-section="contact-cta">
        <ContactFaq
          faqs={[
            {
              id: "1",
              title: "How do I get started?",
              content:
                "Simply call us or fill out our contact form for a free consultation. We'll discuss your needs, answer questions, and provide a no-obligation quote within 24 hours.",
            },
            {
              id: "2",
              title: "Can you provide a free site assessment?",
              content:
                "Yes! We offer complimentary site assessments for all new projects. We'll evaluate soil conditions, drainage, sun exposure, and your goals to create the perfect plan.",
            },
            {
              id: "3",
              title: "What payment options do you accept?",
              content:
                "We accept all major credit cards, bank transfers, and offer flexible payment plans for larger projects. Monthly maintenance packages can be set up on automatic payment for your convenience.",
            },
          ]}
          ctaTitle="Get Your Free Quote Today"
          ctaDescription="Contact us now for a complimentary consultation and personalized estimate. Our team is ready to transform your lawn."
          ctaButton={{ text: "Call Now: (555) 123-4567", href: "tel:+15551234567" }}
          ctaIcon={Phone}
          useInvertedBackground={true}
          animationType="slide-up"
          accordionAnimationType="smooth"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          faqs={[
            {
              id: "1",
              title: "What type of turf do you use?",
              content:
                "We source premium, disease-resistant turf varieties specifically selected for your climate and soil conditions. Our suppliers are certified and we guarantee the quality of every installation. We can discuss options during your free consultation to find the best fit for your property.",
            },
            {
              id: "2",
              title: "How long does turf installation take?",
              content:
                "Most residential turf installations are completed in 1-3 days depending on property size. We handle all site preparation, leveling, and installation. Your new lawn will be ready for light use within 2 weeks and fully established within 4-6 weeks with proper care.",
            },
            {
              id: "3",
              title: "Do you offer maintenance packages?",
              content:
                "Yes! We offer flexible weekly, bi-weekly, and monthly maintenance packages tailored to your needs. Our packages include mowing, edging, weed control, fertilization, and seasonal treatments. We also provide emergency services for storm damage and urgent repairs.",
            },
            {
              id: "4",
              title: "Are your products environmentally friendly?",
              content:
                "We prioritize eco-friendly solutions whenever possible. Our weed and pest control treatments are designed to be safe for families and pets. We also specialize in water-efficient irrigation systems to reduce your environmental footprint and lower water bills.",
            },
            {
              id: "5",
              title: "What areas do you service?",
              content:
                "We service a 30-mile radius from the city center, covering residential and commercial properties throughout the region. We're expanding service areas regularly. Contact us to confirm we service your location.",
            },
            {
              id: "6",
              title: "Do you offer a guarantee?",
              content:
                "Absolutely! All our installations come with a 1-year establishment guarantee. If your turf doesn't establish properly under normal conditions, we'll replace it at no cost. We also stand behind our workmanship with a satisfaction guarantee.",
            },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/gardener-with-weedwacker-cutting-grass-garden_329181-20539.jpg?_wi=2"
          imageAlt="lawn care team gardening professionals outdoor work landscape maintenance"
          mediaPosition="left"
          title="Frequently Asked Questions"
          description="Find answers to common questions about our services, pricing, and lawn care processes."
          tag="Support"
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          mediaAnimation="slide-up"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis columns={footerColumns} logoText="GreenScape Turf" />
      </div>
    </ThemeProvider>
  );
}