"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBase from '@/components/sections/footer/FooterBase';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="reveal-blur"
      borderRadius="sharp"
      contentWidth="mediumLarge"
      sizing="largeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="subtle-shadow"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="Ristorante Roma"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About Us", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Experience", id: "feature" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Reserve Table", href: "contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Experience Authentic Italian Cuisine in the Heart of Rome"
          description="Discover traditional flavors and timeless recipes passed down through generations. Our restaurant celebrates the art of Italian dining with locally sourced ingredients and masterful preparation."
          background={{ variant: "radial-gradient" }}
          tag="Established 1985"
          kpis={[
            { value: "40+", label: "Years of Excellence" },
            { value: "100%", label: "Authentic Recipes" },
            { value: "5★", label: "Guest Satisfaction" }
          ]}
          enableKpiAnimation={true}
          imageSrc="https://img.b2bpic.net/free-photo/wicker-gray-table-with-glass-gray-chairs_140725-3025.jpg"
          imageAlt="Ristorante Roma - Elegant dining room with traditional Italian ambiance"
          buttons={[
            { text: "Reserve Your Table", href: "contact" },
            { text: "View Menu", href: "products" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="Our Story"
          title="A Legacy of Italian Tradition and Culinary Mastery"
          description="Since 1985, Ristorante Roma has been dedicated to bringing the authentic tastes of Italy to Rome's most discerning diners. Our head chef, trained in the Tuscany region, combines traditional techniques with the finest seasonal ingredients to create unforgettable dining experiences. Every dish tells a story of passion, heritage, and commitment to culinary excellence."
          metrics={[
            { value: "150+", title: "Dishes Perfected Over Decades" },
            { value: "300+", title: "Premium Wine Selection" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/chef-is-working-nicely-decorated-kitchen-preparing-pastry-pizza_613910-3408.jpg"
          imageAlt="Chef preparing traditional Italian dishes with expertise and passion"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          title="Featured Dishes"
          description="Handpicked selections from our signature menu, each prepared with passion and tradition"
          tag="Chef's Selection"
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          products={[
            {
              id: "pasta-carbonara",              name: "Cacio e Pepe",              price: "€18",              variant: "House specialty with guanciale and Pecorino Romano",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-large-tube-pasta-with-chicken-cherry-tomato-with-chopped-parsley_141793-1840.jpg",              imageAlt: "Traditional Cacio e Pepe pasta with creamy sauce and black pepper"
            },
            {
              id: "risotto-porcini",              name: "Risotto ai Funghi Porcini",              price: "€22",              variant: "Creamy arborio rice with wild porcini mushrooms and truffle oil",              imageSrc: "https://img.b2bpic.net/free-photo/plate-with-delicious-italian-pasta-dish_23-2149460144.jpg",              imageAlt: "Elegant risotto with porcini mushrooms and truffle finishing"
            },
            {
              id: "wine-selection",              name: "Curated Wine Pairing",              price: "€35",              variant: "Selection of premium Italian wines from Piedmont, Tuscany, and Veneto",              imageSrc: "https://img.b2bpic.net/free-photo/delicious-picnic-still-life_23-2149419739.jpg",              imageAlt: "Premium Italian wine selection with elegant glassware"
            }
          ]}
        />
      </div>

      <div id="feature" data-section="feature">
        <FeatureCardTwentyOne
          title="The Ristorante Roma Experience"
          description="Every visit is crafted to immerse you in the warmth, hospitality, and culinary artistry that defines Italian dining tradition."
          tag="Dining Culture"
          imageSrc="https://img.b2bpic.net/free-photo/royal-dining-room-with-wooden-furniture-chandeliers_114579-2222.jpg"
          imageAlt="Intimate dining experience with candlelit tables and warm ambiance"
          useInvertedBackground="invertDefault"
          mediaPosition="left"
          accordionItems={[
            {
              id: "ambiance",              title: "Intimate Ambiance",              content: "Soft candlelight, warm ochre walls, and carefully selected Italian art create an atmosphere of timeless elegance. Every corner of our restaurant invites relaxation and connection with those you care about most."
            },
            {
              id: "sourcing",              title: "Locally Sourced Ingredients",              content: "We work directly with Italian suppliers to bring the freshest ingredients to your table. From Roma tomatoes to Parmigiano-Reggiano aged 36 months, every component is selected with precision and passion."
            },
            {
              id: "service",              title: "Exceptional Service",              content: "Our sommelier and wait staff are trained to guide you through wine pairings and menu selections. Service is attentive without being intrusive, reflecting the Italian philosophy of hospitality."
            },
            {
              id: "tradition",              title: "Time-Honored Recipes",              content: "Our recipes are passed down from generations of Italian chefs. Techniques refined over centuries ensure that each dish captures the true essence of Italian regional cuisine."
            }
          ]}
        />
      </div>

      <div id="testimonial" data-section="testimonial">
        <TestimonialCardFifteen
          testimonial="Ristorante Roma transported us straight to Italy. The pasta was perfection, the wine selection impeccable, and the warmth of the service reminded us why we fell in love with Italian culture. A truly unforgettable evening."
          rating={5}
          author="Isabella Rossi, Travel Critic"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg", alt: "Guest testimonial 1" },
            { src: "https://img.b2bpic.net/free-photo/happy-professional_1098-12931.jpg", alt: "Guest testimonial 2" },
            { src: "https://img.b2bpic.net/free-photo/smiling-beautiful-middle-aged-business-woman_1262-3085.jpg", alt: "Guest testimonial 3" },
            { src: "https://img.b2bpic.net/free-photo/close-up-confident-corporate-woman-professional-entrepreneur-smiling-cross-arms-chest-smiling-enthusiastic-standing-white-background_1258-85600.jpg", alt: "Guest testimonial 4" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          title="Stay Connected with Roma's Culinary Scene"
          description="Subscribe to our newsletter for exclusive menu previews, special event invitations, and culinary tips from our kitchen. Join our community of food enthusiasts."
          imageSrc="https://img.b2bpic.net/free-photo/restaurant-hall-with-round-table-some-chairs-fireplace-plants_140725-8034.jpg"
          imageAlt="Chef preparing a signature dish in our kitchen"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime from our newsletter."
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Ristorante Roma"
          copyrightText="© 2025 Ristorante Roma | Authentic Italian Cuisine Since 1985"
          columns={[
            {
              title: "Dining",              items: [
                { label: "Reserve Table", href: "contact" },
                { label: "Menu", href: "products" },
                { label: "Private Events", href: "contact" }
              ]
            },
            {
              title: "Experience",              items: [
                { label: "Our Story", href: "about" },
                { label: "Chef's Journey", href: "about" },
                { label: "Wine Selection", href: "products" }
              ]
            },
            {
              title: "Contact",              items: [
                { label: "Via Roma 45, Rome 00100", href: "#" },
                { label: "+39 06 1234 5678", href: "#" },
                { label: "info@ristoranteroma.it", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}