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



export const metadata: Metadata = {
  title: 'Dr. Aarón Rivera | Servicios Odontológicos CDMX',
  description: 'Agenda tu cita dental con el Dr. Aarón Rivera en CDMX. Limpieza, valoración y atención profesional con promociones especiales de mayo.',
  openGraph: {
    "title": "Dr. Aarón Rivera | Servicios Odontológicos CDMX",
    "description": "Tu sonrisa en manos de expertos. Agenda por WhatsApp.",
    "type": "website",
    "siteName": "Dr. Aarón Rivera"
  },
};

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

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