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



export const metadata: Metadata = {
  title: 'Take Time Home Cleaning Services | Winnipeg',
  description: 'Professional home cleaning services in Winnipeg since 2009. Trusted, highly-rated, and friendly service for deep cleaning, regular maintenance, and lifestyle support.',
  keywords: ["home cleaning Winnipeg, house cleaning services, professional cleaners, deep cleaning, regular cleaning, move-in cleaning, move-out cleaning, office cleaning, lifestyle services, Take Time Home Cleaning"],
  openGraph: {
    "title": "Take Time Home Cleaning Services | Winnipeg",
    "description": "Professional home cleaning services in Winnipeg since 2009. Trusted, highly-rated, and friendly service for deep cleaning, regular maintenance, and lifestyle support.",
    "url": "https://www.taketimecleaning.ca",
    "siteName": "Take Time Home Cleaning & Lifestyle Services",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/cleaning-woman-plaid-shirt-cap-holding-bucket-with-cleaning-tools-looking-camera-with-smile-happy-face-standing-orange-background_141793-111011.jpg",
        "alt": "Smiling cleaner in a spotless home"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Take Time Home Cleaning Services | Winnipeg",
    "description": "Professional home cleaning services in Winnipeg since 2009. Trusted, highly-rated, and friendly service for deep cleaning, regular maintenance, and lifestyle support.",
    "images": [
      "http://img.b2bpic.net/free-photo/cleaning-woman-plaid-shirt-cap-holding-bucket-with-cleaning-tools-looking-camera-with-smile-happy-face-standing-orange-background_141793-111011.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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