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



export const metadata: Metadata = {
  title: 'La Nieve - Authentic Argentine Pizza & Empanadas | Mar del Plata',
  description: 'Experience award-winning authentic Argentine pizza and empanadas from La Nieve. Order online for dine-in, takeout, or delivery in Mar del Plata. Rated 4.4 stars by 11,000+ happy customers.',
  keywords: ["pizza Mar del Plata, empanadas, authentic Argentine pizza, online ordering, La Nieve, pizzeria, food delivery, Mar del Plata restaurant"],
  openGraph: {
    "title": "La Nieve - Authentic Argentine Pizza & Empanadas | Mar del Plata",
    "description": "Experience award-winning authentic Argentine pizza and empanadas from La Nieve. Order online for dine-in, takeout, or delivery in Mar del Plata. Rated 4.4 stars by 11,000+ happy customers.",
    "url": "https://www.lanievepizzeria.com",
    "siteName": "La Nieve Pizzeria",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/tasty-halloween-pizza-slices-with-cutlery-frame_23-2148276246.jpg",
        "alt": "Delicious fresh pizza from La Nieve"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "La Nieve - Authentic Argentine Pizza & Empanadas | Mar del Plata",
    "description": "Experience award-winning authentic Argentine pizza and empanadas from La Nieve. Order online for dine-in, takeout, or delivery in Mar del Plata.",
    "images": [
      "http://img.b2bpic.net/free-photo/tasty-halloween-pizza-slices-with-cutlery-frame_23-2148276246.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const roboto = Roboto({
  variable: "--font-roboto",
  subsets: ["latin"],
  weight: ["100", "300", "400", "500", "700", "900"],
});

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