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



export const metadata: Metadata = {
  title: 'Moz Coffee - Your Perfect Brew & Delicious Desserts',
  description: 'Experience premium coffee, delectable desserts, and a cozy atmosphere at Moz Coffee. Committed to quality and hygiene, we offer the best Turkish coffee, espresso, tarts, and cookies.',
  openGraph: {
    "title": "Moz Coffee - Premium Coffee & Desserts",
    "description": "Discover exceptional coffee, artisan desserts, and a welcoming ambiance at Moz Coffee. Quality, hygiene, and taste in every visit.",
    "url": "https://www.mozcoffee.com",
    "siteName": "Moz Coffee",
    "images": [
      {
        "url": "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3EwuPDEpVeZ5gsPhruNSIgl4cpQ/uploaded-1781102237780-lgm3e6sa.png",
        "alt": "Cozy Moz Coffee interior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Moz Coffee - Premium Coffee & Desserts",
    "description": "Discover exceptional coffee, artisan desserts, and a welcoming ambiance at Moz Coffee. Quality, hygiene, and taste in every visit.",
    "images": [
      "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3EwuPDEpVeZ5gsPhruNSIgl4cpQ/uploaded-1781102237780-lgm3e6sa.png"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const mulish = Mulish({
  variable: "--font-mulish",
  subsets: ["latin"],
});
const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});

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