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";



export const metadata: Metadata = {
  title: '五橋キッチン - Premium Kitchen Design & Renovation',
  description: 'Discover bespoke kitchen designs and expert renovations by 五橋キッチン. We craft luxurious, high-converting culinary spaces tailored for discerning clients.',
  keywords: ["五橋キッチン, kitchen design, kitchen renovation, luxury kitchens, custom kitchens, kitchen remodelling, premium kitchens, bespoke kitchens, Japan kitchen"],
  openGraph: {
    "title": "五橋キッチン - Premium Kitchen Design & Renovation",
    "description": "Discover bespoke kitchen designs and expert renovations by 五橋キッチン. We craft luxurious, high-converting culinary spaces tailored for discerning clients.",
    "url": "https://www.gokyokitchen.com",
    "siteName": "五橋キッチン",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/steel-faucet-kitchen-interior_169016-19740.jpg",
        "alt": "Modern luxury kitchen interior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "五橋キッチン - Premium Kitchen Design & Renovation",
    "description": "Discover bespoke kitchen designs and expert renovations by 五橋キッチン. We craft luxurious, high-converting culinary spaces tailored for discerning clients.",
    "images": [
      "http://img.b2bpic.net/free-photo/steel-faucet-kitchen-interior_169016-19740.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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