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 { Archivo } from "next/font/google";



export const metadata: Metadata = {
  title: 'Barnes Kitchen Cafe - Fresh Coffee & Delicious Food',
  description: 'Experience the best of Barnes Kitchen Cafe. Serving hot, fresh, made-to-order food that hits every time. View our menu and order online!',
  openGraph: {
    "title": "Barnes Kitchen Cafe - Fresh Coffee & Delicious Food",
    "description": "Experience the best of Barnes Kitchen Cafe. Serving hot, fresh, made-to-order food that hits every time. View our menu and order online!",
    "url": "https://barneskitchencafe.com",
    "siteName": "Barnes Kitchen Cafe",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/man-barista-holding-coffee-tamper-with-grind-coffee-ready-cooking-coffee-closeup_1220-5379.jpg",
        "alt": "Inviting cafe interior with coffee and pastries"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Barnes Kitchen Cafe - Fresh Coffee & Delicious Food",
    "description": "Experience the best of Barnes Kitchen Cafe. Serving hot, fresh, made-to-order food that hits every time. View our menu and order online!",
    "images": [
      "http://img.b2bpic.net/free-photo/man-barista-holding-coffee-tamper-with-grind-coffee-ready-cooking-coffee-closeup_1220-5379.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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