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



export const metadata: Metadata = {
  title: 'ReservaFlow: Premium Restaurant Management & Reservation Platform',
  description: 'Unlock growth with ReservaFlow\'s unified platform for restaurant reservations, online ordering, loyalty programs, and powerful admin analytics. Designed for fine dining, hotels, and cafés.',
  keywords: ["restaurant management, reservation system, online ordering, loyalty program, restaurant analytics, SaaS, hospitality software, fine dining, hotel management, cafe management"],
  openGraph: {
    "title": "ReservaFlow: Premium Restaurant Management & Reservation Platform",
    "description": "Unlock growth with ReservaFlow's unified platform for restaurant reservations, online ordering, loyalty programs, and powerful admin analytics. Designed for fine dining, hotels, and cafés.",
    "url": "https://www.reserva-flow.com",
    "siteName": "ReservaFlow",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/table-set-dinning-table_1339-3458.jpg",
        "alt": "Elegant fine dining restaurant interior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "ReservaFlow: Premium Restaurant Management & Reservation Platform",
    "description": "Unlock growth with ReservaFlow's unified platform for restaurant reservations, online ordering, loyalty programs, and powerful admin analytics. Designed for fine dining, hotels, and cafés.",
    "images": [
      "http://img.b2bpic.net/free-photo/table-set-dinning-table_1339-3458.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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