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



export const metadata: Metadata = {
  title: 'Thirukumaran Homoeopathy | Holistic Healing in Karur',
  description: 'Thirukumaran Homoeopathy offers multispecialty homeopathic treatments for chronic conditions like allergies, skin diseases, lifestyle disorders, and mental health in Karur, Tamil Nadu. Book your consultation.',
  keywords: ["homeopathy, homeopathic clinic, Karur, Tamil Nadu, alternative medicine, chronic conditions, allergies, skin diseases, lifestyle disorders, mental health, natural healing, holistic treatment"],
  openGraph: {
    "title": "Thirukumaran Homoeopathy | Holistic Healing in Karur",
    "description": "Thirukumaran Homoeopathy offers multispecialty homeopathic treatments for chronic conditions in Karur, Tamil Nadu. Experience natural healing and book your consultation today.",
    "url": "https://www.thirukumaranhomoeopathy.com",
    "siteName": "Thirukumaran Homoeopathy",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/female-pharmacist-checking-senior-man-s-blood-pressure_23-2150359148.jpg",
        "alt": "Doctor consulting patient about homeopathic treatment"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Thirukumaran Homoeopathy | Holistic Healing in Karur",
    "description": "Thirukumaran Homoeopathy offers multispecialty homeopathic treatments for chronic conditions in Karur, Tamil Nadu. Experience natural healing and book your consultation today.",
    "images": [
      "http://img.b2bpic.net/free-photo/female-pharmacist-checking-senior-man-s-blood-pressure_23-2150359148.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const dmSans = DM_Sans({
  variable: "--font-dm-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={`${dmSans.variable} ${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
