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";



export const metadata: Metadata = {
  title: 'Faema Cafe | Experience the Art of Coffee',
  description: 'Discover premium coffee, artisanal pastries, and a welcoming ambiance at Faema Cafe. Your local spot for exceptional brews and delightful moments.',
  keywords: ["coffee shop, cafe, Faema Cafe, espresso, latte, pastries, local coffee, artisan coffee, coffee subscriptions"],
  openGraph: {
    "title": "Faema Cafe | Experience the Art of Coffee",
    "description": "Discover premium coffee, artisanal pastries, and a welcoming ambiance at Faema Cafe. Your local spot for exceptional brews and delightful moments.",
    "url": "https://www.faemacafe.com",
    "siteName": "Faema Cafe",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/coffee-cup-table_23-2148164788.jpg",
        "alt": "Faema Cafe coffee and ambiance"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Faema Cafe | Experience the Art of Coffee",
    "description": "Discover premium coffee, artisanal pastries, and a welcoming ambiance at Faema Cafe. Your local spot for exceptional brews and delightful moments.",
    "images": [
      "http://img.b2bpic.net/free-photo/coffee-cup-table_23-2148164788.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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={`${inter.variable} antialiased`}>
          
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
