"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterBase from '@/components/sections/footer/FooterBase';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import { Phone } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="text-stagger"
        defaultTextAnimation="entrance-slide"
        borderRadius="pill"
        contentWidth="compact"
        sizing="mediumLargeSizeLargeTitles"
        background="circleGradient"
        cardStyle="glass-depth"
        primaryButtonStyle="diagonal-gradient"
        secondaryButtonStyle="solid"
        headingFontWeight="bold"
    >
      <ReactLenis root>
        <div id="nav" data-section="nav">
          <NavbarLayoutFloatingOverlay
            navItems={[
              { name: "Início", id: "hero" },
              { name: "Sobre", id: "about" },
              { name: "Menu", id: "menu" },
              { name: "Contacto", id: "contact" },
            ]}
            brandName="Adega das Gravatas"
          />
        </div>

        <div id="hero" data-section="hero">
          <HeroSplit
            background={{ variant: "gradient-bars" }}
            title="A Centenary Tradition in Every Bite"
            description="Experience the timeless flavors of Portugal at Adega das Gravatas. Since 1925, we have been serving the finest traditional meat and fish dishes in the heart of Lisbon."
            buttons={[{ text: "Reserve a Table", href: "#contact" }]}
            imageSrc="http://img.b2bpic.net/free-photo/tikya-kebab-with-grilled-vegetable-salad-bread-lavash-glass-compote_140725-11021.jpg"
            imageAlt="Luxurious traditional portuguese dining table"
            mediaAnimation="blur-reveal"
          />
        </div>

        <div id="about" data-section="about">
          <MetricSplitMediaAbout
            useInvertedBackground={true}
            title="A Legacy of Culinary Excellence"
            description="Adega das Gravatas represents the soul of Portuguese gastronomy. With over 100 years of history, our restaurant is a temple for those who appreciate traditional, authentic, and high-quality ingredients."
            metrics={[
              { value: "100+", title: "Years of Heritage" },
              { value: "7896+", title: "Happy Reviews" },
              { value: "4.4", title: "Customer Rating" },
            ]}
            imageSrc="http://img.b2bpic.net/free-photo/table-full-food-indoors_23-2148941562.jpg"
            imageAlt="Traditional Portuguese kitchen and dining room"
            mediaAnimation="slide-up"
            metricsAnimation="blur-reveal"
          />
        </div>

        <div id="menu" data-section="menu">
          <ProductCardOne
            animationType="slide-up"
            textboxLayout="split"
            gridVariant="three-columns-all-equal-width"
            useInvertedBackground={false}
            products={[
              { id: "1", name: "Bife na Pedra", price: "24€", imageSrc: "http://img.b2bpic.net/free-photo/fried-steak-table_140725-44194.jpg" },
              { id: "2", name: "Polvo à Lagareiro", price: "22€", imageSrc: "http://img.b2bpic.net/free-photo/crawfish-plate_23-2150346588.jpg" },
              { id: "3", name: "Bacalhau à Lagareiro", price: "21€", imageSrc: "http://img.b2bpic.net/free-photo/prawn-top-with-cheese-underneath_1220-620.jpg" },
            ]}
            title="Signature Flavors"
            description="Discover our most celebrated dishes, prepared with respect for ancestral techniques and the freshest ingredients."
          />
        </div>

        <div id="testimonials" data-section="testimonials">
          <TestimonialCardOne
            animationType="slide-up"
            textboxLayout="split"
            gridVariant="four-items-2x2-equal-grid"
            useInvertedBackground={true}
            testimonials={[
              { id: "1", name: "Nick Patel", role: "Traveler", company: "Local Guide", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/three-senior-friends-talking-restaurant-while-cheering-with-drinks_23-2149316755.jpg?_wi=1" },
              { id: "2", name: "Gwen C", role: "Foodie", company: "Local Guide", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/outdoor-shot-delighted-happy-dark-skinned-young-female-wears-red-blouse-listens-audio-song-headphones_273609-3479.jpg" },
              { id: "3", name: "Ololobi ShotIt", role: "Gourmet", company: "Local Guide", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/young-man-women-having-dinner-together_23-2148454093.jpg" },
              { id: "4", name: "Sarah Miller", role: "Diner", company: "Visitor", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/happy-woman-using-tablet-celebrating-success-outdoor-cafe_1262-18867.jpg" },
              { id: "5", name: "João Silva", role: "Local", company: "Regular", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/three-senior-friends-talking-restaurant-while-cheering-with-drinks_23-2149316755.jpg?_wi=2" },
            ]}
            title="Voices of Our Guests"
            description="Read what our patrons from around the world have to say about their experience at Adega das Gravatas."
          />
        </div>

        <div id="contact" data-section="contact">
          <ContactFaq
            useInvertedBackground={false}
            animationType="slide-up"
            faqs={[
              { id: "q1", title: "Do I need a reservation?", content: "Yes, we highly recommend making a reservation, especially for dinner on weekends, as our space is limited and popular." },
              { id: "q2", title: "Is the restaurant wheelchair accessible?", content: "Yes, our entrance, dining areas, and restrooms are fully wheelchair accessible." },
              { id: "q3", title: "What are your opening hours?", content: "We open daily at 12:10 PM. We recommend calling us for specific holiday hours." },
            ]}
            ctaTitle="Visit Us in Lisbon"
            ctaDescription="Join us for an unforgettable dining experience. Reservations are highly recommended for dinner."
            ctaButton={{ text: "Call to Reserve", href: "tel:+351217143622" }}
            ctaIcon={Phone}
          />
        </div>

        <div id="footer" data-section="footer">
          <FooterBase
            columns={[
              {
                title: "Contact",                items: [
                  { label: "Tv. Pregoeiro 15, Lisboa", href: "#" },
                  { label: "+351 21 714 3622", href: "tel:+351217143622" },
                ],
              },
              {
                title: "Navigation",                items: [
                  { label: "Home", href: "#hero" },
                  { label: "About Us", href: "#about" },
                  { label: "Menu", href: "#menu" },
                ],
              },
            ]}
            logoText="Adega das Gravatas"
            copyrightText="© 2025 | Adega das Gravatas"
          />
        </div>
      </ReactLenis>
    </ThemeProvider>
  );
}