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";



export const metadata: Metadata = {
  title: 'Pristine Laundry Solutions - Premium Industrial Laundry for Hospitality',
  description: 'High-quality industrial laundry services for restaurants, hotels, and businesses. Experience pristine cleanliness, efficiency, and tailored solutions for your hospitality textiles.',
  keywords: ["industrial laundry, restaurant linen, hotel laundry, hospitality laundry service, commercial laundry, uniform cleaning, textile care"],
  openGraph: {
    "title": "Pristine Laundry Solutions - Premium Industrial Laundry",
    "description": "High-quality industrial laundry services for restaurants, hotels, and businesses.",
    "url": "https://www.pristinelaundry.com",
    "siteName": "Pristine Laundry Solutions",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/hands-with-gloves-disinfecting-door-handle_23-2148705048.jpg",
        "alt": "Industrial laundry facility"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Pristine Laundry Solutions - Premium Industrial Laundry",
    "description": "High-quality industrial laundry services for restaurants, hotels, and businesses.",
    "images": [
      "http://img.b2bpic.net/free-photo/hands-with-gloves-disinfecting-door-handle_23-2148705048.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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={`${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
