"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import TextAbout from '@/components/sections/about/TextAbout';
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import Link from "next/link";

export default function AboutPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="noise"
      cardStyle="gradient-mesh"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Brew Haven"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Menu", id: "/menu" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Order Now",
            href: "/menu"
          }}
        />
      </div>

      <div id="about-story" data-section="about-story">
        <TextAbout
          tag="Our Story"
          title="Brew Haven was founded on the belief that coffee is more than a beverage—it's a ritual, a moment of connection, and an expression of quality craftsmanship. We source the finest beans from sustainable farmers worldwide and roast them to perfection in small batches."
          useInvertedBackground={false}
          buttons={[
            { text: "View Menu", href: "/menu" },
            { text: "Contact Us", href: "/contact" }
          ]}
        />
      </div>

      <div id="team-values" data-section="team-values">
        <FeatureCardMedia
          title="Meet Our Team"
          description="The passionate individuals behind every perfect cup, bringing years of expertise and dedication to coffee craftsmanship."
          features={[
            {
              id: "1",
              title: "Master Roaster",
              description: "With over 15 years of experience in coffee roasting, our master roaster ensures every batch meets our exacting standards for flavor and quality.",
              tag: "Leadership",
              imageSrc: "https://img.b2bpic.net/free-photo/male-barista-serving-coffee-cardboard-cups_1303-31762.jpg",
              imageAlt: "Master roaster and owner"
            },
            {
              id: "2",
              title: "Head Barista",
              description: "A certified barista champion who trains our team in advanced brewing techniques and ensures every customer receives the perfect cup.",
              tag: "Expertise",
              imageSrc: "https://img.b2bpic.net/free-photo/male-barista-coffee-shop-holding-cup-by-counter_1303-29321.jpg",
              imageAlt: "Head barista with coffee"
            },
            {
              id: "3",
              title: "Coffee Curator",
              description: "Travels the world to source our beans directly from farmers, building relationships that ensure both quality and sustainability.",
              tag: "Sourcing",
              imageSrc: "https://img.b2bpic.net/free-photo/young-male-barista-working-coffee-house_1303-31760.jpg",
              imageAlt: "Coffee curator and sourcing specialist"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="mission-values" data-section="mission-values">
        <FeatureCardMedia
          title="Our Values & Mission"
          description="Every decision we make is guided by our core principles of quality, sustainability, and community connection."
          features={[
            {
              id: "1",
              title: "Sustainability First",
              description: "We're committed to environmental stewardship through direct trade partnerships, eco-friendly packaging, and supporting regenerative farming practices.",
              tag: "Environment",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-roasted-brown-coffee-beans_23-2148254977.jpg",
              imageAlt: "Sustainably sourced coffee beans"
            },
            {
              id: "2",
              title: "Community Connection",
              description: "Our cafe is more than a place to grab coffee—it's a community hub where relationships form over shared appreciation for great coffee.",
              tag: "Community",
              imageSrc: "https://img.b2bpic.net/free-photo/empty-wood-chair-restaurant_1339-5949.jpg",
              imageAlt: "Cozy cafe interior"
            },
            {
              id: "3",
              title: "Artisan Craftsmanship",
              description: "Every cup reflects our dedication to the craft of coffee, from bean selection to the final pour, ensuring excellence in every detail.",
              tag: "Quality",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-hands-barista-make-latte-coffee-art-paint_1150-12161.jpg",
              imageAlt: "Artisan latte art creation"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <FooterBaseReveal
        columns={[
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Mission", href: "/about" },
              { label: "Careers", href: "#" }
            ]
          },
          {
            title: "Menu",
            items: [
              { label: "Coffee", href: "/menu" },
              { label: "Tea & Alternatives", href: "/menu" },
              { label: "Pastries", href: "/menu" }
            ]
          },
          {
            title: "Connect",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Instagram", href: "https://instagram.com" },
              { label: "Privacy Policy", href: "#" }
            ]
          }
        ]}
        copyrightText="© 2025 Brew Haven | Crafted with care"
      />
    </ThemeProvider>
  );
}