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



export const metadata: Metadata = {
  title: 'Leeds Building & Tiling Ltd - Trusted Builders for Home Renovations',
  description: 'High-quality home renovations, extensions, bathrooms, and kitchens by trusted local builders in Leeds. Get a free quote today for your project.',
  keywords: ["builders leeds, bathroom renovation leeds, kitchen remodel leeds, leeds building company, home extensions leeds, repointing leeds, general building leeds"],
  openGraph: {
    "title": "Leeds Building & Tiling Ltd - Trusted Builders for Home Renovations",
    "description": "High-quality home renovations, extensions, bathrooms, and kitchens by trusted local builders in Leeds. Get a free quote today for your project.",
    "url": "https://leedsbuildingtiling.co.uk",
    "siteName": "Leeds Building & Tiling Ltd",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/open-drawers-kitchen-ergonomics-functional-space_169016-68869.jpg",
        "alt": "Modern kitchen renovation"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Leeds Building & Tiling Ltd - Trusted Builders for Home Renovations",
    "description": "High-quality home renovations, extensions, bathrooms, and kitchens by trusted local builders in Leeds. Get a free quote today for your project.",
    "images": [
      "http://img.b2bpic.net/free-photo/open-drawers-kitchen-ergonomics-functional-space_169016-68869.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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