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



export const metadata: Metadata = {
  title: 'CUTLAB: Precision Grooming Elevated to an Art',
  description: 'Experience the future of premium barbering through seamless technology and world-class craftsmanship. Book your appointment in seconds—where luxury meets convenience.',
  keywords: ["CUTLAB, luxury grooming, barber booking, beauty platform, premium salon, tech-driven, appointment scheduling, modern barber, high-end stylist, SaaS for salons"],
  openGraph: {
    "title": "CUTLAB: Precision Grooming Elevated to an Art",
    "description": "Experience the future of premium barbering through seamless technology and world-class craftsmanship. Book your appointment in seconds—where luxury meets convenience.",
    "url": "https://www.cutlab.com",
    "siteName": "CUTLAB",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/from-hands-shaving-neck_23-2147778916.jpg",
        "alt": "Luxurious barber shop interior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "CUTLAB: Precision Grooming Elevated to an Art",
    "description": "Experience the future of premium barbering through seamless technology and world-class craftsmanship. Book your appointment in seconds—where luxury meets convenience.",
    "images": [
      "http://img.b2bpic.net/free-photo/from-hands-shaving-neck_23-2147778916.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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