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: 'Pacific Seas Restaurant | Authentic Polynesian Cuisine in Salt Lake',
  description: 'Experience authentic Tongan and Polynesian comfort food in Salt Lake City. Pacific Seas offers generous portions, warm island hospitality, and 30 years of trusted family recipes.',
  keywords: ["Polynesian restaurant, Tongan food, Salt Lake City, Pacific Island cuisine, authentic, family-owned, comfort food, local favorite, best restaurant"],
  openGraph: {
    "title": "Pacific Seas Restaurant | Authentic Polynesian Cuisine in Salt Lake",
    "description": "Experience authentic Tongan and Polynesian comfort food in Salt Lake City. Pacific Seas offers generous portions, warm island hospitality, and 30 years of trusted family recipes.",
    "url": "https://www.pacificseasrestaurant.com",
    "siteName": "Pacific Seas Restaurant",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/sunset-sea_1137-158.jpg",
        "alt": "Polynesian food and island scenery"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Pacific Seas Restaurant | Authentic Polynesian Cuisine in Salt Lake",
    "description": "Experience authentic Tongan and Polynesian comfort food in Salt Lake City. Pacific Seas offers generous portions, warm island hospitality, and 30 years of trusted family recipes.",
    "images": [
      "http://img.b2bpic.net/free-photo/sunset-sea_1137-158.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>
  );
}
