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: 'Rustic Garden - Authentic Dining in Călărași',
  description: 'Experience authentic rustic dining at Rustic Garden in Călărași. Enjoy traditional cuisine, a scenic garden terrace, and warm hospitality. Reserve your table today!',
  keywords: ["rustic garden, Călărași restaurant, traditional cuisine, outdoor dining, authentic Romanian food, garden restaurant, family friendly restaurant"],
  openGraph: {
    "title": "Rustic Garden - Authentic Dining in Călărași",
    "description": "Experience authentic rustic dining at Rustic Garden in Călărași. Enjoy traditional cuisine, a scenic garden terrace, and warm hospitality. Reserve your table today!",
    "url": "https://www.rusticgarden.com",
    "siteName": "Rustic Garden",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/table-chairs-italian-garden_628469-330.jpg",
        "alt": "Outdoor dining at Rustic Garden"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Rustic Garden - Authentic Dining in Călărași",
    "description": "Experience authentic rustic dining at Rustic Garden in Călărași. Enjoy traditional cuisine, a scenic garden terrace, and warm hospitality. Reserve your table today!",
    "images": [
      "http://img.b2bpic.net/free-photo/table-chairs-italian-garden_628469-330.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>
  );
}
