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



export const metadata: Metadata = {
  title: 'Laxmi Doodh Dairy | Fresh & Pure Dairy Products',
  description: 'Laxmi Doodh Dairy offers fresh, hygienic, and affordable milk & dairy products in Chhatrapati Sambhajinagar. Trusted with a 4.7-star rating, serving families daily.',
  openGraph: {
    "title": "Laxmi Doodh Dairy | Fresh & Pure Dairy Products",
    "description": "Laxmi Doodh Dairy offers fresh, hygienic, and affordable milk & dairy products in Chhatrapati Sambhajinagar. Trusted with a 4.7-star rating, serving families daily.",
    "url": "https://yourdairysite.com",
    "siteName": "Laxmi Doodh Dairy",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/healthy-oatmeal-cookies-milks-wooden-table_123827-34006.jpg",
        "alt": "Fresh milk bottles on a dairy farm"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Laxmi Doodh Dairy | Fresh & Pure Dairy Products",
    "description": "Laxmi Doodh Dairy offers fresh, hygienic, and affordable milk & dairy products in Chhatrapati Sambhajinagar. Trusted with a 4.7-star rating, serving families daily.",
    "images": [
      "http://img.b2bpic.net/free-photo/healthy-oatmeal-cookies-milks-wooden-table_123827-34006.jpg"
    ]
  },
};

const openSans = Open_Sans({
  variable: "--font-open-sans",
  subsets: ["latin"],
});

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