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: 'Alfredo Cafe: Coffee, Pastries & Cozy Ambiance',
  description: 'Discover Alfredo Cafe, your local spot for freshly brewed coffee, delicious pastries, and gourmet sandwiches. Enjoy a warm, inviting atmosphere and friendly service.',
  keywords: ["cafe, coffee, pastries, bakery, restaurant, espresso, latte, sandwich, brunch, local, cozy, Alfredo Cafe"],
  openGraph: {
    "title": "Alfredo Cafe: Coffee, Pastries & Cozy Ambiance",
    "description": "Discover Alfredo Cafe, your local spot for freshly brewed coffee, delicious pastries, and gourmet sandwiches. Enjoy a warm, inviting atmosphere and friendly service.",
    "url": "https://www.alfredocafe.com",
    "siteName": "Alfredo Cafe",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/woman-standing-with-cup-coffee_53876-15193.jpg",
        "alt": "Close-up of a coffee latte with art"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Alfredo Cafe: Coffee, Pastries & Cozy Ambiance",
    "description": "Discover Alfredo Cafe, your local spot for freshly brewed coffee, delicious pastries, and gourmet sandwiches. Enjoy a warm, inviting atmosphere and friendly service.",
    "images": [
      "http://img.b2bpic.net/free-photo/woman-standing-with-cup-coffee_53876-15193.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>
  );
}
