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



export const metadata: Metadata = {
  title: 'The Violette Company | Custom Home Builders Portland, Maine',
  description: 'The Violette Company specializes in residential construction, custom home building, and renovations in the Greater Portland, Maine area. Quality craftsmanship and exceptional service.',
  keywords: ["home builder, residential construction, custom homes, home renovation, Portland Maine, construction services, Maine contractor, new construction, house builder"],
  openGraph: {
    "title": "The Violette Company | Custom Home Builders Portland, Maine",
    "description": "The Violette Company specializes in residential construction, custom home building, and renovations in the Greater Portland, Maine area. Quality craftsmanship and exceptional service.",
    "url": "https://www.theviolettecompany.com",
    "siteName": "The Violette Company",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/close-up-portrait-construction-engineer-looking-camera_23-2148233714.jpg",
        "alt": "Modern home construction site at sunset"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "The Violette Company | Custom Home Builders Portland, Maine",
    "description": "The Violette Company specializes in residential construction, custom home building, and renovations in the Greater Portland, Maine area. Quality craftsmanship and exceptional service.",
    "images": [
      "http://img.b2bpic.net/free-photo/close-up-portrait-construction-engineer-looking-camera_23-2148233714.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const publicSans = Public_Sans({
  variable: "--font-public-sans",
  subsets: ["latin"],
});

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