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: 'Dukos Barber Shop | Premium Cuts in San Mateo Atenco',
  description: 'Experience expert barbering, classic shaves, and a welcoming atmosphere at Dukos Barber Shop in San Mateo Atenco. Book your appointment today!',
  keywords: ["barber shop, San Mateo Atenco, haircut, men's grooming, shave, barber, local barber, appointment booking, premium cuts"],
  openGraph: {
    "title": "Dukos Barber Shop | Premium Cuts in San Mateo Atenco",
    "description": "Experience expert barbering, classic shaves, and a welcoming atmosphere at Dukos Barber Shop in San Mateo Atenco. Book your appointment today!",
    "url": "https://www.dukosbarber.com",
    "siteName": "Dukos Barber Shop",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/luxury-coffee-shop-table-inside-barista-bar-generated-by-ai_188544-29280.jpg",
        "alt": "Classic barber chair in a stylish shop"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Dukos Barber Shop | Premium Cuts in San Mateo Atenco",
    "description": "Experience expert barbering, classic shaves, and a welcoming atmosphere at Dukos Barber Shop in San Mateo Atenco. Book your appointment today!",
    "images": [
      "http://img.b2bpic.net/free-photo/luxury-coffee-shop-table-inside-barista-bar-generated-by-ai_188544-29280.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const publicSans = Public_Sans({
  variable: "--font-public-sans",
  subsets: ["latin"]
});
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={`${publicSans.variable} ${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
