"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FeatureCardSixteen from '@/components/sections/feature/FeatureCardSixteen';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import PricingCardThree from '@/components/sections/pricing/PricingCardThree';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import TextAbout from '@/components/sections/about/TextAbout';
import { Award, Book, Gift, Home, Leaf, Sparkles, Wheat } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="expand-hover"
        defaultTextAnimation="background-highlight"
        borderRadius="pill"
        contentWidth="smallMedium"
        sizing="largeSmallSizeMediumTitles"
        background="fluid"
        cardStyle="solid"
        primaryButtonStyle="shadow"
        secondaryButtonStyle="solid"
        headingFontWeight="semibold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleFullscreen
      navItems={[
        {
          name: "Home",
          id: "#hero",
        },
        {
          name: "About",
          id: "#about",
        },
        {
          name: "Products",
          id: "#products",
        },
        {
          name: "Testimonials",
          id: "#testimonials",
        },
        {
          name: "Contact",
          id: "#contact",
        },
      ]}
      logoSrc="http://img.b2bpic.net/free-photo/christmas-fireplace-with-wreath-stockings_23-2152020660.jpg"
      logoAlt="Horno Miralles Logo"
      brandName="Horno Miralles"
      button={{
        text: "Order Now",
        href: "#contact",
      }}
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroSplitKpi
      background={{
        variant: "plain",
      }}
      imagePosition="right"
      title="Authentic Valencian Pastries, Handmade Daily"
      description="Horno Miralles has perfected traditional baking for generations. From ensaimadas to coca de llanda, every bite celebrates real ingredients and time-honored craft."
      kpis={[
        {
          value: "4.8★",
          label: "Average Rating",
        },
        {
          value: "284+",
          label: "Customer Reviews",
        },
        {
          value: "3 Gens",
          label: "of Tradition",
        },
      ]}
      enableKpiAnimation={true}
      buttons={[
        {
          text: "Order Now",
          href: "#products",
        },
        {
          text: "Reserve Today",
          href: "#contact",
        },
      ]}
      avatars={[
        {
          src: "http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-posing_23-2149557007.jpg",
          alt: "Sarah Johnson",
        },
        {
          src: "http://img.b2bpic.net/free-photo/positive-shaved-head-male-dressed-grey-suit-dark-grey-background_613910-11352.jpg",
          alt: "Carlos Ramirez",
        },
        {
          src: "http://img.b2bpic.net/free-photo/woman-spending-time-nature_23-2149453355.jpg",
          alt: "Maria Garcia",
        },
        {
          src: "http://img.b2bpic.net/free-photo/woman-baking-delicious-bread_23-2148550739.jpg",
          alt: "Javier Lopez",
        },
        {
          src: "http://img.b2bpic.net/free-photo/pretty-smiling-asian-woman-cover-her-eye-with-sushi-roll-make-selfie-her-phone_231208-3074.jpg",
          alt: "Pretty smiling asian woman cover her eye with sushi roll and make selfie on her phone",
        },
      ]}
      avatarText="Loved by the Valencian Community"
      imageSrc="http://img.b2bpic.net/free-photo/3d-challah-dish-hanukkah_23-2151129264.jpg"
      imageAlt="Display of traditional Valencian pastries"
      mediaAnimation="slide-up"
      marqueeItems={[
        {
          type: "text-icon",
          text: "Freshly Baked Daily",
          icon: Wheat,
        },
        {
          type: "text-icon",
          text: "Traditional Recipes",
          icon: Book,
        },
        {
          type: "text-icon",
          text: "Local Ingredients",
          icon: Leaf,
        },
        {
          type: "text-icon",
          text: "Handcrafted Perfection",
          icon: Award,
        },
        {
          type: "text-icon",
          text: "Generations of Taste",
          icon: Home,
        },
      ]}
    />
  </div>

  <div id="about" data-section="about">
      <TextAbout
      useInvertedBackground={true}
      tag="Our Story"
      title="Generations of Passion and Authentic Flavor"
      description="For over three generations, Horno Pastelería Miralles has been a cornerstone of Valencian baking. We meticulously follow time-honored recipes, using only the finest local ingredients to create pastries and breads that evoke tradition and delight the palate. Our commitment to authenticity ensures every bite tells a story of heritage and handcrafted quality."
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardSixteen
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      negativeCard={{
        items: [
          "Mass-produced ingredients",
          "Artificial flavors & preservatives",
          "Rushed baking processes",
          "Generic recipes",
        ],
      }}
      positiveCard={{
        items: [
          "Finest local ingredients",
          "Authentic family recipes",
          "Slow, traditional methods",
          "Handcrafted daily freshness",
        ],
      }}
      title="The Art of Valencian Baking"
      description="Discover what makes our traditional pastries and breads truly special, from the careful selection of ingredients to our cherished family recipes."
      tag="Our Craft"
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardOne
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="two-columns-alternating-heights"
      useInvertedBackground={true}
      products={[
        {
          id: "ensaimada",
          name: "Ensaimada",
          price: "€2.50",
          imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-jelly-pancakes-with-raisins-fruit-jelly-white-background-jelly-biscuit-dessert-jam-sweet_140725-96512.jpg",
          imageAlt: "Traditional Ensaimada",
        },
        {
          id: "coca-de-llanda",
          name: "Coca de Llanda",
          price: "€18.00 / cake",
          imageSrc: "http://img.b2bpic.net/free-photo/front-close-view-slice-cake-baked-sweet-with-raspberries-bright-pink-desk-bake-sweet-cake-pie-fruit_140725-39584.jpg",
          imageAlt: "Slice of Coca de Llanda cake",
        },
        {
          id: "farton",
          name: "Fartons",
          price: "€0.80 / piece",
          imageSrc: "http://img.b2bpic.net/free-photo/side-view-pouring-cake-mixture-into-baking-tin_140725-10289.jpg",
          imageAlt: "Fartons with sugar glaze",
        },
        {
          id: "bunyols",
          name: "Bunyols de Carabassa",
          price: "€1.50 / piece",
          imageSrc: "http://img.b2bpic.net/free-photo/baked-apples-foil-plate_23-2147930966.jpg",
          imageAlt: "Pumpkin fritters (Bunyols de Carabassa)",
        },
        {
          id: "rosquilletas",
          name: "Rosquilletas",
          price: "€3.00 / pack",
          imageSrc: "http://img.b2bpic.net/free-photo/crackers-with-smoked-fish-cheese-cubes_114579-8775.jpg",
          imageAlt: "Crunchy Rosquilletas breadsticks",
        },
        {
          id: "pan-quemado",
          name: "Pan Quemado",
          price: "€10.00 / loaf",
          imageSrc: "http://img.b2bpic.net/free-photo/slies-bread_1063-109.jpg",
          imageAlt: "Traditional Pan Quemado sweet bread",
        },
      ]}
      title="Our Signature Valencian Delights"
      description="Explore a selection of our most beloved pastries, from the iconic Ensaimada to the traditional Coca de Llanda."
    />
  </div>

  <div id="pricing" data-section="pricing">
      <PricingCardThree
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      plans={[
        {
          id: "family-pack",
          badge: "Value",
          badgeIcon: Sparkles,
          price: "€25",
          name: "Family Celebration Pack",
          buttons: [
            {
              text: "Order Pack",
              href: "#contact",
            },
          ],
          features: [
            "Assorted pastries for 6-8 people",
            "Customizable selection available",
            "Perfect for weekend treats",
            "Local delivery options",
          ],
        },
        {
          id: "event-catering",
          badge: "Popular",
          badgeIcon: Award,
          price: "Contact for Quote",
          name: "Event Catering Package",
          buttons: [
            {
              text: "Request Quote",
              href: "#contact",
            },
          ],
          features: [
            "Custom menu for any event size",
            "Includes breads, pastries & desserts",
            "Professional consultation & delivery",
            "Ideal for weddings, parties, corporate",
          ],
        },
        {
          id: "sweet-subscription",
          badge: "New",
          badgeIcon: Gift,
          price: "€35/month",
          name: "Weekly Sweet Treats Subscription",
          buttons: [
            {
              text: "Subscribe Now",
              href: "#contact",
            },
          ],
          features: [
            "New selection of treats every week",
            "Delivered fresh to your door",
            "Perfect for busy professionals",
            "Cancel anytime flexibility",
          ],
        },
      ]}
      title="Special Orders & Catering"
      description="Perfect for family gatherings, office events, or a weekly treat. Choose a plan that fits your needs."
      tag="Our Offerings"
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardFive
      textboxLayout="default"
      useInvertedBackground={true}
      testimonials={[
        {
          id: "1",
          name: "Ana Rodriguez",
          date: "March 2024",
          title: "A True Valencian Gem!",
          quote: "Horno Miralles is a treasure. Every pastry tastes like my grandmother made it. The ensaimadas are simply divine, and the staff are always so welcoming. A must-visit!",
          tag: "Local Family",
          avatarSrc: "http://img.b2bpic.net/free-photo/young-gardener-man-wearing-jumpsuit-hat-holding-halves-green-chili-pepper_141793-47071.jpg",
          avatarAlt: "Ana Rodriguez avatar",
          imageSrc: "http://img.b2bpic.net/free-photo/christmas-fireplace-with-wreath-stockings_23-2152020660.jpg",
          imageAlt: "smiling woman bakery customer",
        },
        {
          id: "2",
          name: "Pablo Sánchez",
          date: "February 2024",
          title: "Best Coca de Llanda in Valencia",
          quote: "As a busy professional, I rely on Horno Miralles for my morning coffee and a fresh pastry. Their coca de llanda is unparalleled. Quick service and consistent quality!",
          tag: "Busy Professional",
          avatarSrc: "http://img.b2bpic.net/free-photo/man-baker-with-fresh-bread-baker-house_1303-32281.jpg",
          avatarAlt: "Pablo Sánchez avatar",
          imageSrc: "http://img.b2bpic.net/free-photo/3d-challah-dish-hanukkah_23-2151129264.jpg",
          imageAlt: "smiling woman bakery customer",
        },
        {
          id: "3",
          name: "Elena Torres",
          date: "January 2024",
          title: "Taste of Authentic Tradition",
          quote: "Visiting Valencia, I stumbled upon Horno Miralles and it was the highlight of my culinary tour. The flavors are so genuine, it feels like stepping back in time. Highly recommend!",
          tag: "Tourist",
          avatarSrc: "http://img.b2bpic.net/free-photo/pretty-young-female-model-feels-pleasure-touches-cheeks-with-both-palms-wears-winter-warm-white-hat-casual-green-turtleneck-has-broad-shining-smile-poses-pink-wall_273609-33487.jpg",
          avatarAlt: "Elena Torres avatar",
          imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-posing_23-2149557007.jpg",
          imageAlt: "smiling woman bakery customer",
        },
        {
          id: "4",
          name: "Miguel García",
          date: "December 2023",
          title: "Always Fresh, Always Delicious",
          quote: "My family has been coming here for decades. The quality never wavers. Their fartons are perfect with horchata, and the seasonal specials are always a treat.",
          tag: "Food Enthusiast",
          avatarSrc: "http://img.b2bpic.net/free-photo/female-baker-taking-notes-while-pastry-shop_23-2150379560.jpg",
          avatarAlt: "Miguel García avatar",
          imageSrc: "http://img.b2bpic.net/free-photo/positive-shaved-head-male-dressed-grey-suit-dark-grey-background_613910-11352.jpg",
          imageAlt: "smiling woman bakery customer",
        },
        {
          id: "5",
          name: "Sofia Navarro",
          date: "November 2023",
          title: "Exceptional Quality and Service",
          quote: "I frequently order from Horno Miralles for our office events. The pastries are always a hit, fresh and delicious. Their customer service is top-notch and reliable.",
          tag: "Event Planner",
          avatarSrc: "http://img.b2bpic.net/free-photo/young-woman-shopping-clothes_23-2149187302.jpg",
          avatarAlt: "Sofia Navarro avatar",
          imageSrc: "http://img.b2bpic.net/free-photo/woman-spending-time-nature_23-2149453355.jpg",
          imageAlt: "smiling woman bakery customer",
        },
      ]}
      title="What Our Customers Say"
      description="Our community cherishes the authentic taste and warmth of Horno Miralles. Read why locals and visitors keep coming back."
      tag="Reviews"
    />
  </div>

  <div id="social-proof" data-section="social-proof">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={false}
      names={[
        "Valencia Food Awards",
        "Artisan Bakers Guild",
        "Local Gastronomy Critics",
        "Taste of Valencia Festival",
        "Regional Culinary Institute",
        "Valencian Heritage Society",
        "Community Favorite Polls",
      ]}
      title="Trusted by the Community & Culinary Experts"
      description="Our commitment to quality and tradition has earned us recognition from local institutions and food critics."
      tag="Recognition"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactCenter
      useInvertedBackground={true}
      background={{
        variant: "plain",
      }}
      tag="Get In Touch"
      title="Place Your Order or Visit Us"
      description="We'd love to hear from you! Contact us for special orders, catering inquiries, or simply stop by our bakery for a delightful experience."
      inputPlaceholder="Enter your email for updates"
      buttonText="Subscribe"
      termsText="By subscribing, you agree to receive promotional emails from Horno Miralles."
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseReveal
      logoSrc="http://img.b2bpic.net/free-photo/christmas-fireplace-with-wreath-stockings_23-2152020660.jpg"
      logoAlt="Horno Miralles Logo"
      logoText="Horno Pastelería Miralles"
      columns={[
        {
          title: "Products",
          items: [
            {
              label: "Traditional Pastries",
              href: "#products",
            },
            {
              label: "Artisan Breads",
              href: "#products",
            },
            {
              label: "Cakes & Desserts",
              href: "#products",
            },
            {
              label: "Seasonal Specials",
              href: "#products",
            },
          ],
        },
        {
          title: "About Us",
          items: [
            {
              label: "Our Story",
              href: "#about",
            },
            {
              label: "Our Craft",
              href: "#features",
            },
            {
              label: "Customer Reviews",
              href: "#testimonials",
            },
            {
              label: "Contact Us",
              href: "#contact",
            },
          ],
        },
        {
          title: "Support",
          items: [
            {
              label: "FAQ",
              href: "#",
            },
            {
              label: "Delivery Info",
              href: "#",
            },
            {
              label: "Order Tracking",
              href: "#",
            },
          ],
        },
      ]}
      copyrightText="© 2024 Horno Pastelería Miralles. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
