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: 'Coca-Cola: Experience the Refreshment',
  description: 'Discover the iconic taste of Coca-Cola. Explore our products, history, and commitment to joy and sustainability.',
  keywords: ["Coca-Cola, Coke, soda, soft drink, refreshment, beverages, classic taste, sustainability"],
  openGraph: {
    "title": "Coca-Cola: Experience the Refreshment",
    "description": "Discover the iconic taste of Coca-Cola. Explore our products, history, and commitment to joy and sustainability.",
    "url": "https://www.coca-cola.com",
    "siteName": "Coca-Cola",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/cherry-soda-cans_23-2151955828.jpg",
        "alt": "3D rendered Coca-Cola bottle"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Coca-Cola: Experience the Refreshment",
    "description": "Discover the iconic taste of Coca-Cola. Explore our products, history, and commitment to joy and sustainability.",
    "images": [
      "http://img.b2bpic.net/free-photo/cherry-soda-cans_23-2151955828.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const dmSans = DM_Sans({
  variable: "--font-dm-sans",
  subsets: ["latin"],
});

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