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



export const metadata: Metadata = {
  title: 'Stevensons Hardwood Floors | Premium Installation & Repair',
  description: 'Expert hardwood flooring installation and repair for homes & businesses. Trusted locally for 20 years with exceptional craftsmanship. Get your free consultation.',
  keywords: ["hardwood floors, flooring installation, wood flooring, residential flooring, commercial flooring, flooring repair, hardwood services, Stevensons, premium hardwood, local flooring, Virginia hardwood, flooring experts"],
  openGraph: {
    "title": "Stevensons Hardwood Floors | Premium Installation & Repair",
    "description": "Expert hardwood flooring installation and repair for homes & businesses. Trusted locally for 20 years with exceptional craftsmanship. Get your free consultation.",
    "url": "https://www.stevensonsfloors.com",
    "siteName": "Stevensons Hardwood Floors",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/bangkok-thailand-august-12-2016-beautiful-luxury-living-room_1203-2344.jpg",
        "alt": "Luxury hardwood floor installation"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Stevensons Hardwood Floors | Premium Installation & Repair",
    "description": "Expert hardwood flooring installation and repair for homes & businesses. Trusted locally for 20 years with exceptional craftsmanship. Get your free consultation.",
    "images": [
      "http://img.b2bpic.net/free-photo/bangkok-thailand-august-12-2016-beautiful-luxury-living-room_1203-2344.jpg"
    ]
  },
};

const lato = Lato({
  variable: "--font-lato",
  subsets: ["latin"],
  weight: ["100", "300", "400", "700", "900"],
});

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