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



export const metadata: Metadata = {
  title: 'Martin Kafa Coffee Shop - Novi Sad',
  description: 'Discover Martin Kafa in Novi Sad for exceptional coffee, delicious desserts, and a cozy ambiance. Your perfect spot to relax and enjoy.',
  keywords: ["coffee, cafe, Novi Sad, Serbia, espresso, latte, desserts, pastries, cozy, non-smoking, Martin Kafa"],
  openGraph: {
    "title": "Martin Kafa Coffee Shop",
    "description": "Your Cozy Corner for Exceptional Coffee & Delightful Desserts in Novi Sad.",
    "url": "https://www.martinkafa.com",
    "siteName": "Martin Kafa",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/boy-having-coffee-restaurant_23-2148172665.jpg",
        "alt": "Cozy coffee shop interior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Martin Kafa Coffee Shop",
    "description": "Your Cozy Corner for Exceptional Coffee & Delightful Desserts in Novi Sad.",
    "images": [
      "http://img.b2bpic.net/free-photo/boy-having-coffee-restaurant_23-2148172665.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const dmSans = DM_Sans({
  variable: "--font-dm-sans",
  subsets: ["latin"],
});

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