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



export const metadata: Metadata = {
  title: 'RAW PRESSERY | Premium Cold-Pressed Juices',
  description: 'Discover RAW PRESSERY\'s 100% natural, cold-pressed juices. Fresh, healthy, and delivered to your door. Taste the purity, live the health.',
  openGraph: {
    "title": "RAW PRESSERY | Premium Cold-Pressed Juices",
    "description": "Discover RAW PRESSERY's 100% natural, cold-pressed juices. Fresh, healthy, and delivered to your door. Taste the purity, live the health.",
    "url": "https://www.rawpressery.com",
    "siteName": "RAW PRESSERY",
    "images": [
      {
        "url": "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Evspy6Z4qhphwG7hsiwPocLN2D/uploaded-1781071950796-estvpa56.png",
        "alt": "RAW PRESSERY Pomegranate Juice"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "RAW PRESSERY | Premium Cold-Pressed Juices",
    "description": "Discover RAW PRESSERY's 100% natural, cold-pressed juices. Fresh, healthy, and delivered to your door. Taste the purity, live the health.",
    "images": [
      "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Evspy6Z4qhphwG7hsiwPocLN2D/uploaded-1781071950796-estvpa56.png"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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