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



export const metadata: Metadata = {
  title: 'Rock’n 50’s Cafe | Luxury Retro Diner & Family Fun',
  description: 'Step back in time at Rock’n 50’s Cafe in Bismarck, ND. Experience classic American diner nostalgia with gourmet food, amazing shakes, friendly service, and a vibrant 50s atmosphere.',
  keywords: ["Rock'n 50's Cafe, 50s diner, luxury restaurant, retro cafe, American comfort food, Bismarck restaurant, knoephla soup, milkshakes, family friendly, vintage dining"],
  openGraph: {
    "title": "Rock’n 50’s Cafe | Luxury Retro Diner & Family Fun",
    "description": "Step back in time at Rock’n 50’s Cafe in Bismarck, ND. Experience classic American diner nostalgia with gourmet food, amazing shakes, friendly service, and a vibrant 50s atmosphere.",
    "url": "https://www.rockn50scafe.com",
    "siteName": "Rock’n 50’s Cafe",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/woman-retro-vintage-50-s-cafe-pink-color-sitting-table-drinking-milk-shake-cocktail-hipster-outfit-having-fun_285396-10332.jpg",
        "alt": "Cinematic 1950s American diner interior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Rock’n 50’s Cafe | Luxury Retro Diner & Family Fun",
    "description": "Step back in time at Rock’n 50’s Cafe in Bismarck, ND. Experience classic American diner nostalgia with gourmet food, amazing shakes, friendly service, and a vibrant 50s atmosphere.",
    "images": [
      "http://img.b2bpic.net/free-photo/woman-retro-vintage-50-s-cafe-pink-color-sitting-table-drinking-milk-shake-cocktail-hipster-outfit-having-fun_285396-10332.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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