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: 'Graybeale Construction Inc | Quality General Contractors',
  description: 'Graybeale Construction Inc. offers professional general contracting services for residential and commercial projects. View our portfolio, services, and client testimonials.',
  keywords: ["general contractor, construction, residential, commercial, renovation, remodeling, building, projects, Graybeale Construction"],
  openGraph: {
    "title": "Graybeale Construction Inc | Quality General Contractors",
    "description": "Graybeale Construction Inc. offers professional general contracting services for residential and commercial projects. View our portfolio, services, and client testimonials.",
    "url": "https://www.graybealeconstruction.com",
    "siteName": "Graybeale Construction Inc",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/house-construction-petrovac-montenegro_1268-14788.jpg",
        "alt": "Modern construction site with building in progress"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Graybeale Construction Inc | Quality General Contractors",
    "description": "Graybeale Construction Inc. offers professional general contracting services for residential and commercial projects. View our portfolio, services, and client testimonials.",
    "images": [
      "http://img.b2bpic.net/free-photo/house-construction-petrovac-montenegro_1268-14788.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>
  );
}
