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



export const metadata: Metadata = {
  title: 'Dra. Sarah Lopez, DDS | Ortodoncia y Odontología General',
  description: 'Expertos en ortodoncia y odontología general en un ambiente moderno y acogedor. Ofrecemos Invisalign, brackets y cuidado dental para toda la familia. ¡Agenda tu consulta gratis!',
  keywords: ["dentista, ortodoncia, Invisalign, brackets, odontología general, clínica dental, Dr. Sarah Lopez, cuidado dental, salud bucal, sonrisas"],
  openGraph: {
    "title": "Dra. Sarah Lopez, DDS | Tu Sonrisa Perfecta",
    "description": "Expertos en ortodoncia y odontología general. Agenda tu consulta gratis hoy.",
    "url": "https://www.drasarahlopez.com",
    "siteName": "Dra. Sarah Lopez, DDS",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/stomatologist-nurse-finishing-oral-care-procedure-with-patient-dentistry-office-dentist-giving-mirror-man-look-denture-results-after-surgery-dental-examination_482257-38936.jpg",
        "alt": "Dentista sonriendo examinando dientes de paciente"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Dra. Sarah Lopez, DDS | Tu Sonrisa Perfecta",
    "description": "Expertos en ortodoncia y odontología general. Agenda tu consulta gratis hoy.",
    "images": [
      "http://img.b2bpic.net/free-photo/stomatologist-nurse-finishing-oral-care-procedure-with-patient-dentistry-office-dentist-giving-mirror-man-look-denture-results-after-surgery-dental-examination_482257-38936.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const poppins = Poppins({
  variable: "--font-poppins",
  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});

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