import FooterSimple from '@/components/sections/footer/FooterSimple';
import NavbarCentered from '@/components/ui/NavbarCentered';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";

export default function Layout() {
  const navItems = [
  {
    "name": "Hero",    "href": "#hero"
  },
  {
    "name": "Features",    "href": "#features"
  },
  {
    "name": "Metrics",    "href": "#metrics"
  },
  {
    "name": "Testimonial",    "href": "#testimonial"
  },
  {
    "name": "Contact",    "href": "#contact"
  }
];

  return (
    <StyleProvider buttonVariant="expand" siteBackground="noise" heroBackground="gradientBars">
      <SiteBackgroundSlot />
      <SectionErrorBoundary name="navbar">
        <NavbarCentered
      logo="Brand"
      ctaButton={{
        text: "Get Started",        href: "/"}}
     navItems={navItems} />
      </SectionErrorBoundary>
      <main className="flex-grow">
        <Outlet />
      </main>
      <SectionErrorBoundary name="footer">
        <FooterSimple
      brand="Brand"
      copyright="© 2026 Brand. All rights reserved."
      columns={[
        {
          title: "Product",          links: [
            {
              label: "Features",              href: "#features"},
            {
              label: "Pricing",              href: "#pricing"},
          ],
        },
        {
          title: "Company",          links: [
            {
              label: "About",              href: "#about"},
            {
              label: "Contact",              href: "#contact"},
          ],
        },
      ]}
      links={[
        {
          label: "Privacy",          href: "#"},
        {
          label: "Terms",          href: "#"},
      ]}
    />
      </SectionErrorBoundary>
    </StyleProvider>
  );
}
