import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import { getVisualEditScript } from "@/utils/visual-edit-script";
import { Public_Sans } from "next/font/google";



export const metadata: Metadata = {
  title: 'Oaxaca Cuisine Bar & Grill | Authentic Oaxacan Dining in Clinton, NC',
  description: 'Experience vibrant Oaxacan gastronomy in Clinton, NC. Handcrafted dishes, blue corn tortillas, and genuine hospitality in a welcoming setting.',
  keywords: ["Oaxaca cuisine, Clinton NC restaurants, authentic mexican food, handmade tortillas, traditional family recipes, bar and grill"],
  openGraph: {
    "title": "Oaxaca Cuisine Bar & Grill | Authentic Oaxacan Dining",
    "description": "Authentic Oaxacan flavors, traditional recipes, and live music in Clinton, NC.",
    "siteName": "Oaxaca Bar & Grill",
    "type": "website"
  },
};

const publicSans = Public_Sans({
  variable: "--font-public-sans",
  subsets: ["latin"],
});
const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${publicSans.variable} ${inter.variable} antialiased`}>
          
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
