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



export const metadata: Metadata = {
  title: 'Theatre - Live Bakery & Cafe | Fresh Delights & Cozy Ambiance',
  description: 'Experience freshly baked delights, specialty coffee, fluffy omelettes, and handcrafted waffles served in a cozy and aesthetic atmosphere at Theatre Live Bakery & Cafe in Karachi. Visit us today!',
  keywords: ["bakery, cafe, coffee, waffles, omelettes, pastries, Karachi, fresh, aesthetic, cozy"],
  openGraph: {
    "title": "Theatre - Live Bakery & Cafe | Fresh Delights & Cozy Ambiance",
    "description": "Experience freshly baked delights, specialty coffee, fluffy omelettes, and handcrafted waffles served in a cozy and aesthetic atmosphere at Theatre Live Bakery & Cafe in Karachi. Visit us today!",
    "url": "https://www.theatrebakerycafe.com",
    "siteName": "Theatre - Live Bakery & Cafe",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/person-cafe-enjoying-book_23-2150064701.jpg",
        "alt": "Cozy cafe interior with coffee and pastries"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Theatre - Live Bakery & Cafe | Fresh Delights & Cozy Ambiance",
    "description": "Experience freshly baked delights, specialty coffee, fluffy omelettes, and handcrafted waffles served in a cozy and aesthetic atmosphere at Theatre Live Bakery & Cafe in Karachi. Visit us today!",
    "images": [
      "http://img.b2bpic.net/free-photo/person-cafe-enjoying-book_23-2150064701.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const raleway = Raleway({
  variable: "--font-raleway",
  subsets: ["latin"],
});

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