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



export const metadata: Metadata = {
  title: 'Preston\'s House Cleaning | Professional Residential & Commercial Services',
  description: 'Reliable residential and commercial cleaning services in Dallas, GA. Get a free quote for deep cleaning, standard cleaning, and office cleaning. Available 24/7.',
  keywords: ["House Cleaning Dallas GA, Deep Cleaning Services Dallas GA, Office Cleaning Dallas GA, Professional Cleaners Near Me, Residential Cleaning Dallas Georgia, Commercial Cleaning Dallas Georgia, Preston's House Cleaning, 24 Hour Cleaning"],
  openGraph: {
    "title": "Preston's House Cleaning | Professional Residential & Commercial Services",
    "description": "Reliable residential and commercial cleaning services in Dallas, GA. Get a free quote for deep cleaning, standard cleaning, and office cleaning. Available 24/7.",
    "url": "/",
    "siteName": "Preston's House Cleaning",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/sweet-home_1098-16153.jpg",
        "alt": "Spotless modern kitchen"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Preston's House Cleaning | Professional Residential & Commercial Services",
    "description": "Reliable residential and commercial cleaning services in Dallas, GA. Get a free quote for deep cleaning, standard cleaning, and office cleaning. Available 24/7.",
    "images": [
      "http://img.b2bpic.net/free-photo/sweet-home_1098-16153.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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