import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Manrope } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";

const halant = Halant({
  variable: "--font-halant",
  subsets: ["latin"],
  weight: ["300", "400", "500", "600", "700"],
});

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

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

export const metadata: Metadata = {
  title: "Dr. Sakina Clinics | Dermatologist Wah Cantt 4.6★",
  description: "Professional dermatology clinic in Wah Cantt offering acne treatment, hair loss solutions, and skin care. Call +92 312 5458615 to book.",
  keywords: "dermatologist wah cantt, skin clinic, acne treatment, hair loss, wah cantt dermatology",
  metadataBase: new URL("https://drsakinaclinics.com"),
  alternates: {
    canonical: "https://drsakinaclinics.com",
  },
  robots: {
    index: true,
    follow: true,
  },
  openGraph: {
    title: "Dr. Sakina Clinics | Expert Dermatology Care",
    description: "Trusted dermatology clinic in Wah Cantt with 4.6★ rating. Expert treatments for acne, hair loss, and skin concerns.",
    url: "https://drsakinaclinics.com",
    siteName: "Dr. Sakina Clinics",
    type: "website",
    images: [
      {
        url: "http://img.b2bpic.net/free-vector/hospital-template-design_23-2150363212.jpg",
        alt: "Dr. Sakina Clinics professional entrance",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Dr. Sakina Clinics | Expert Dermatology",
    description: "Trusted skin and hair care clinic in Wah Cantt. 4.6★ rated. Call +92 312 5458615",
    images: ["http://img.b2bpic.net/free-vector/hospital-template-design_23-2150363212.jpg"],
  },
};

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