"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroSplitTestimonial from "@/components/sections/hero/HeroSplitTestimonial";
import InlineImageSplitTextAbout from "@/components/sections/about/InlineImageSplitTextAbout";
import FeatureCardMedia from "@/components/sections/feature/FeatureCardMedia";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import TestimonialCardFifteen from "@/components/sections/testimonial/TestimonialCardFifteen";
import ContactCenter from "@/components/sections/contact/ContactCenter";
import FooterSimple from "@/components/sections/footer/FooterSimple";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="smallMedium"
      sizing="largeSmallSizeLargeTitles"
      background="fluid"
      cardStyle="solid"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Lil Bake"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "Our Story", id: "about" },
            { name: "Featured Items", id: "featured" },
            { name: "Contact", id: "contact" },
          ]}
          button={{ text: "Find Us", href: "#contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitTestimonial
          title="Lil Bake: Freshly Baked Daily in Putney"
          description="From our oven to your table. Experience the warmth of homemade treats in the heart of Putney. Newly opened March 2025, celebrating community and craft."
          tag="Now Open"
          imageSrc="http://img.b2bpic.net/free-photo/closeup-shot-bunch-bagels-covered-sesame-seeds_181624-58886.jpg"
          imageAlt="Fresh golden bagels and pastries"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
          background={{ variant: "plain" }}
          buttons={[
            { text: "View Menu", href: "#featured" },
            { text: "Find Us", href: "#contact" },
          ]}
          testimonials={[
            {
              name: "Sarah Mitchell",              handle: "Local, Putney",              testimonial:
                "Love the display! The pastries are absolutely gorgeous and taste even better.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-african-american-man-posing-library_74855-1619.jpg"},
            {
              name: "James Chen",              handle: "Regular Customer",              testimonial:
                "Finally, a proper bakery cafe in our neighborhood. Simply divine.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-african-american-man-posing-library_74855-1619.jpg"},
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            {
              type: "text",              content: "From our oven to your table—daily fresh bakes in Putney's heart"},
          ]}
          useInvertedBackground={false}
          buttons={[{ text: "Learn More", href: "#featured" }]}
        />
      </div>

      <div id="featured" data-section="featured">
        <FeatureCardMedia
          title="Featured Items"
          description="Discover our signature offerings, made fresh each morning by our in-house chef"
          features={[
            {
              id: "bagels",              title: "Hand-Rolled Bagels",              description:
                "Traditional boiled-and-baked bagels in classic and seasonal flavours. House-made daily.",              tag: "Signature",              imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-bunch-bagels-covered-sesame-seeds_181624-58886.jpg",              imageAlt: "Fresh bagels selection"},
            {
              id: "pastries",              title: "Artisan Pastries",              description:
                "Buttery croissants, Danish pastries, and house-made cinnamon swirls (£3.50). Pure indulgence.",              tag: "Popular",              imageSrc: "http://img.b2bpic.net/free-photo/croissant-juice-breakfast_23-2147717709.jpg",              imageAlt: "Golden butter croissant"},
            {
              id: "coffee",              title: "Specialty Coffee",              description:
                "Single-origin espresso, oat milk lattes, and seasonal blends. Perfectly paired with pastries.",              tag: "Craft",              imageSrc: "http://img.b2bpic.net/free-photo/hand-holding-hot-coffee-cup_1150-10433.jpg",              imageAlt: "Steaming specialty coffee"},
            {
              id: "desserts",              title: "Premium Desserts",              description:
                "Decadent chocolate creations, fruit tarts, and vegan-friendly options. Rated Very Good.",              tag: "Award-Winning",              imageSrc: "http://img.b2bpic.net/free-photo/chocolate-cake-slice-with-cacao-cream-topped-with-chocolate-sauce_140725-8277.jpg",              imageAlt: "Rich chocolate dessert"},
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted by Putney"
          description="Celebrated by locals and recognized by food standards authorities"
          tag="Hygiene & Quality"
          names={[
            "Food Standards Rated: Very Good (March 2025)",            "Vegan-Friendly Options Available",            "Gluten-Free Treats Offered",            "Freshly Baked Every Morning",            "Sustainable Sourcing",            "Community Owned",            "Award-Winning Pastries"]}
          textboxLayout="default"
          useInvertedBackground={false}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Lil Bake has become our favorite morning stop. The pastries are exceptional, the atmosphere is warm and welcoming, and you can see the love that goes into every bake. It's exactly what Putney needed."
          rating={5}
          author="Emma Richardson, Putney Local"
          ratingAnimation="slide-up"
          avatarsAnimation="slide-up"
          useInvertedBackground={false}
          avatars={[
            {
              src: "http://img.b2bpic.net/free-photo/smiling-african-american-man-posing-library_74855-1619.jpg",              alt: "Customer Emma"},
            {
              src: "http://img.b2bpic.net/free-photo/smiling-african-american-man-posing-library_74855-1619.jpg",              alt: "Customer James"},
            {
              src: "http://img.b2bpic.net/free-photo/smiling-african-american-man-posing-library_74855-1619.jpg",              alt: "Customer Lisa"},
            {
              src: "http://img.b2bpic.net/free-photo/smiling-african-american-man-posing-library_74855-1619.jpg",              alt: "Customer Marcus"},
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Visit Us"
          title="Fresh Bakes Await"
          description="Find us at 209 Upper Richmond Road, Putney, London SW15 6SQ. Open daily 8AM–6PM. Come experience the warmth of Lil Bake."
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="Join our newsletter for fresh bake updates, seasonal specials, and community news. We respect your privacy."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Navigate",              items: [
                { label: "Home", href: "#hero" },
                { label: "Our Story", href: "#about" },
                { label: "Featured Items", href: "#featured" },
                { label: "Contact", href: "#contact" },
              ],
            },
            {
              title: "Connect",              items: [
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Email", href: "mailto:hello@lilbake.co.uk" },
              ],
            },
            {
              title: "Visit",              items: [
                { label: "209 Upper Richmond Road", href: "#" },
                { label: "Putney, London SW15 6SQ", href: "#" },
                { label: "Mon–Sun: 8AM–6PM", href: "#" },
              ],
            },
          ]}
          bottomLeftText="© 2025 Lil Bake. All rights reserved."
          bottomRightText="Proudly Putney"
        />
      </div>
    </ThemeProvider>
  );
}
