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: 'Dunwoody Plumbing & Drainage Clean | Premium Plumbing Services',
  description: 'Experience top-tier plumbing, drain cleaning, and repair services in Dunwoody, GA. We offer expert solutions and unparalleled customer satisfaction.',
  keywords: ["Dunwoody plumbing, drainage clean, plumbing services, drain repair, water heater, emergency plumber, GA plumber"],
  openGraph: {
    "title": "Dunwoody Plumbing & Drainage Clean",
    "description": "Experience top-tier plumbing, drain cleaning, and repair services in Dunwoody, GA.",
    "url": "https://www.dunwoodyplumbing.com",
    "siteName": "Dunwoody Plumbing & Drainage Clean",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/dumbbell_1203-6625.jpg",
        "alt": "Plumbing tools"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Dunwoody Plumbing & Drainage Clean",
    "description": "Experience top-tier plumbing, drain cleaning, and repair services in Dunwoody, GA.",
    "images": [
      "http://img.b2bpic.net/free-photo/dumbbell_1203-6625.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>
  );
}
