"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroLogo from "@/components/sections/hero/HeroLogo";
import MetricSplitMediaAbout from "@/components/sections/about/MetricSplitMediaAbout";
import FeatureCardSixteen from "@/components/sections/feature/FeatureCardSixteen";
import MetricCardFourteen from "@/components/sections/metrics/MetricCardFourteen";
import TestimonialCardTen from "@/components/sections/testimonial/TestimonialCardTen";
import FaqBase from "@/components/sections/faq/FaqBase";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="mediumLarge"
      background="grid"
      cardStyle="inset"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Caldwell Plumbing"
          navItems={[
            { name: "Services", id: "services" },
            { name: "About", id: "about" },
            { name: "Why Us", id: "metrics" },
            { name: "Testimonials", id: "testimonials" },
            { name: "FAQ", id: "faq" },
          ]}
          button={{ text: "Call Now", href: "tel:(630) 588-8900" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogo
          logoText="Caldwell Plumbing Co."
          description="Reliable. Professional. Built to Last. Serving Wheaton, IL and surrounding communities with expert plumbing services."
          buttons={[
            { text: "Call (630) 588-8900", href: "tel:(630) 588-8900" },
            { text: "Schedule Service", href: "#contact" },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/wrench-connectors-with-clear-paper_23-2147772281.jpg"
          imageAlt="Professional plumbing work"
          showDimOverlay={true}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="About Us"
          title="Expert Plumbing Services You Can Trust"
          description="At Caldwell Plumbing Co., we take pride in delivering professional, high-quality plumbing services. With a 5.0-star rating from satisfied customers, our reputation is built on reliability, craftsmanship, and attention to detail. Whether you're building a new home or remodeling your current space, we bring expertise and precision to every project."
          metrics={[
            { value: "5.0★", title: "Customer Rating" },
            { value: "20+", title: "Years Experience" },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/female-plumber-working-fix-problems-client-s-house_23-2150990725.jpg"
          imageAlt="Professional plumber at work"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardSixteen
          title="Our Services"
          description="From new construction to complete remodeling projects, we deliver comprehensive plumbing solutions tailored to your needs."
          tag="Services"
          negativeCard={{
            items: [
              "Inexperienced contractors",              "Poor attention to detail",              "Unreliable scheduling",              "Hidden costs and surprises"],
          }}
          positiveCard={{
            items: [
              "Expert, licensed plumbers",              "Meticulous craftsmanship",              "Punctual and professional",              "Transparent pricing"],
          }}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardFourteen
          title="Why Choose Caldwell Plumbing Co.?"
          tag="Our Promise"
          tagAnimation="slide-up"
          metrics={[
            {
              id: "1",              value: "100%",              description: "Customer satisfaction with on-time, professional service delivery and quality workmanship."},
            {
              id: "2",              value: "24/7",              description: "Emergency plumbing support available for urgent repairs and urgent service requests."},
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          testimonials={[
            {
              id: "1",              title: "Fantastic Plumbing Work",              quote: "Fantastic plumbing company — highly recommend. They do new construction and remodeling with exceptional quality and professionalism.",              name: "David S.",              role: "Homeowner",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-millennial-man-looking-camera-cafe-headshot-portrait_1163-5163.jpg?_wi=1",              imageAlt: "David S."},
            {
              id: "2",              title: "Very Professional Team",              quote: "Very professional service from start to finish. The team was courteous, efficient, and completed our project on time.",              name: "Kevin M.",              role: "Property Owner",              imageSrc: "http://img.b2bpic.net/free-photo/closeup-smiling-beautiful-adult-businesswoman_1262-1760.jpg",              imageAlt: "Kevin M."},
            {
              id: "3",              title: "Excellent Remodeling Work",              quote: "Had Caldwell handle our bathroom remodel. Attention to detail was outstanding and they stayed within budget.",              name: "Sarah T.",              role: "Homeowner",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-millennial-man-looking-camera-cafe-headshot-portrait_1163-5163.jpg?_wi=2",              imageAlt: "Sarah T."},
            {
              id: "4",              title: "Trusted for New Construction",              quote: "We've used Caldwell Plumbing for multiple new construction projects. Always reliable, always professional.",              name: "Michael R.",              role: "Contractor",              imageSrc: "http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageAlt: "Michael R."},
          ]}
          title="What Our Customers Say"
          description="Real feedback from satisfied customers across Wheaton and surrounding communities."
          tag="Testimonials"
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Find answers to common questions about our plumbing services."
          tag="FAQ"
          tagAnimation="slide-up"
          faqs={[
            {
              id: "1",              title: "Do you offer emergency plumbing services?",              content: "Yes! We provide 24/7 emergency plumbing support for urgent repairs and problems. Call (630) 588-8900 anytime."},
            {
              id: "2",              title: "What areas do you serve?",              content: "Based in Wheaton, Illinois, we proudly serve DuPage County and surrounding communities. Contact us to confirm your location."},
            {
              id: "3",              title: "Are your plumbers licensed and insured?",              content: "Absolutely. All our plumbers are fully licensed, insured, and trained to handle residential plumbing with expertise and care."},
            {
              id: "4",              title: "Do you provide free estimates?",              content: "Yes, we offer free estimates for most plumbing projects. Schedule a consultation to discuss your needs and budget."},
            {
              id: "5",              title: "What is your typical response time?",              content: "We aim for same-day or next-day service for non-emergency calls. Emergency requests are handled within 1-2 hours."},
            {
              id: "6",              title: "Do you warrant your work?",              content: "Yes, we stand behind our work with comprehensive warranties on labor and materials. Ask us about specific coverage details."},
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          animationType="smooth"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Get in Touch"
          description="Ready to schedule your plumbing service? Contact us today. We're here to help with all your plumbing needs."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "phone", type: "tel", placeholder: "(630) 588-8900", required: true },
            { name: "email", type: "email", placeholder: "Your Email", required: true },
            {
              name: "service",              type: "text",              placeholder: "Service Type (New Construction, Remodeling, Repair, etc.)",              required: true,
            },
          ]}
          textarea={{
            name: "message",            placeholder: "Tell us about your plumbing project or service needs...",            rows: 5,
            required: false,
          }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/steel-faucet-interior-modern-bathroom-with-window_169016-26975.jpg"
          imageAlt="Modern bathroom plumbing"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Request Service"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="Caldwell Plumbing Co."
          columns={[
            {
              items: [
                { label: "Services", href: "#services" },
                { label: "About", href: "#about" },
                { label: "Testimonials", href: "#testimonials" },
              ],
            },
            {
              items: [
                { label: "FAQ", href: "#faq" },
                { label: "Contact", href: "#contact" },
                { label: "Schedule", href: "tel:(630) 588-8900" },
              ],
            },
            {
              items: [
                { label: "821 Childs St", href: "#" },
                { label: "Wheaton, IL 60187", href: "#" },
                { label: "(630) 588-8900", href: "tel:(630) 588-8900" },
              ],
            },
            {
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "License & Insurance", href: "#" },
              ],
            },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
