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 Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";
import { Montserrat } from "next/font/google";



export const metadata: Metadata = {
  title: 'Hometown BBQ & Grill | Authentic Smokehouse',
  description: 'Experience award-winning low and slow smoked meats at Hometown BBQ & Grill. Fresh ingredients, traditional techniques, and community flavor.',
  openGraph: {
    "title": "Hometown BBQ & Grill",
    "description": "The best BBQ in town.",
    "siteName": "Hometown BBQ & Grill",
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Hometown BBQ & Grill"
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const montserrat = Montserrat({
  variable: "--font-montserrat",
  subsets: ["latin"],
});

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