import type { Metadata } from "next";
import GlassRailingClient from "./GlassRailingClient";

export const metadata: Metadata = {
  title: "Glass Railing Systems | Deck, Pool & Balcony | VG Fence Products — KWC Ontario",
  description: "Glass railing systems for decks, balconies, pools, and stairs. Post-mount, standoff spigot, and fascia-mount systems with tempered safety glass. Contractor supply with scheduled delivery across 250km in Ontario from Kitchener–Waterloo.",
  keywords: "glass railing Ontario, glass railing Kitchener, glass railing Waterloo, glass deck railing KWC, frameless glass railing Ontario, pool glass railing, glass railing contractor supply, tempered glass railing, glass balcony railing, glass railing Cambridge, glass railing Guelph, glass railing Hamilton, fence supply Ontario",
  alternates: {
    canonical: "/products/glass-railing",
  },
  openGraph: {
    title: "Glass Railing Systems — Post-Mount, Standoff & Fascia | VG Fence Products",
    description: "Three glass railing systems. Tempered safety glass in clear, frosted, bronze and grey. Contractor supply with scheduled delivery across 250km in Ontario.",
    type: "website",
    url: "https://vgfence.com/products/glass-railing",
    locale: "en_CA",
    siteName: "VG Fence Products",
  },
  other: {
    "geo.region": "CA-ON",
    "geo.placename": "Kitchener, Ontario",
    "geo.position": "43.4516;-80.4925",
    "ICBM": "43.4516, -80.4925",
  }
};

const productSchema = {
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Glass Railing Systems",
  "description": "Glass railing systems for decks, balconies, pools, and stairs. Post-mount, standoff spigot, and fascia-mount base shoe systems. Tempered safety glass 10mm and 12mm in clear, frosted, and tinted options.",
  "brand": { "@type": "Brand", "name": "VG Fence Products" },
  "offers": {
    "@type": "Offer",
    "availability": "https://schema.org/InStock",
    "seller": {
      "@type": "LocalBusiness",
      "name": "VG Fence Products",
      "address": { "@type": "PostalAddress", "addressLocality": "Kitchener", "addressRegion": "ON", "addressCountry": "CA" },
      "email": "info@vgfenceproducts.com",
      "url": "https://vgfence.com",
      "areaServed": "Ontario, Canada"
    }
  }
};

const businessSchema = {
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "VG Fence Products",
  "description": "B2B fence and railing supplier — glass railing, ornamental fence, chain link, composite and stain products. Serving contractors across Ontario from Kitchener–Waterloo.",
  "address": { "@type": "PostalAddress", "addressLocality": "Kitchener", "addressRegion": "ON", "addressCountry": "CA" },
  "email": "info@vgfenceproducts.com",
  "url": "https://vgfence.com",
  "areaServed": ["Kitchener","Waterloo","Cambridge","Guelph","Hamilton","Brantford","Toronto","London","Windsor","Barrie","Niagara","Milton","Oakville","Burlington","Mississauga","Brampton","Woodstock","Stratford","Sarnia"],
  "serviceType": "Fence & Railing Materials Supply"
};

export default function GlassRailingPage() {
  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(productSchema) }}
      />
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(businessSchema) }}
      />
      <GlassRailingClient />
    </>
  );
}
