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



export const metadata: Metadata = {
  title: 'ACS Underground Solutions | Infrastructure Built Right',
  description: 'Trusted excavation and utility solutions for construction, municipal, and commercial projects. 20 years delivering safe, compliant underground work on time and on budget.',
  keywords: ["underground solutions, excavation, utility services, directional drilling, trenchless technology, utility locating, underground infrastructure, municipal projects, construction contractors, property developers"],
  openGraph: {
    "title": "ACS Underground Solutions | Infrastructure Built Right",
    "description": "Trusted excavation and utility solutions for construction, municipal, and commercial projects. 20 years delivering safe, compliant underground work on time and on budget.",
    "url": "https://www.acsunderground.com",
    "siteName": "ACS Underground Solutions",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/male-worker-with-bulldozer-sand-quarry_1303-28096.jpg",
        "alt": "Underground utility excavation site"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "ACS Underground Solutions | Infrastructure Built Right",
    "description": "Trusted excavation and utility solutions for construction, municipal, and commercial projects. 20 years delivering safe, compliant underground work on time and on budget.",
    "images": [
      "http://img.b2bpic.net/free-photo/male-worker-with-bulldozer-sand-quarry_1303-28096.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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