import type { Metadata } from "next";
import type { ReactNode } from "react";
import "./globals.css";

export const metadata: Metadata = {
  metadataBase: new URL(process.env.NEXT_PUBLIC_APP_URL ?? "http://localhost:3000"),
  title: {
    default: "Business Calculators Hub",
    template: "%s | Business Calculators Hub"
  },
  description: "Free and premium business calculators for margins, pricing, ROI, taxes, SaaS metrics and smarter decisions.",
  openGraph: {
    title: "Business Calculators Hub",
    description: "Calculate margins, pricing, ROI, taxes and SaaS metrics in seconds.",
    type: "website"
  }
};

export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) {
  return (
    <html lang="en">
      <body>{children}</body>
    </html>
  );
}
