// Nav and footer.
function Nav({ route, navigate, locale, setLocale }) {
const links = [
{ id: "projects", label: locale === "ar" ? "المشاريع" : "Projects" },
{ id: "sectors", label: locale === "ar" ? "القطاعات" : "Sectors" },
{ id: "how-we-build", label: locale === "ar" ? "كيف نبني" : "How we build" },
{ id: "studio", label: locale === "ar" ? "الاستوديو" : "Studio" },
{ id: "awards", label: locale === "ar" ? "الجوائز" : "Awards" },
{ id: "contact", label: locale === "ar" ? "تواصل" : "Contact" },
];
// Sectors hovers a flyout — but for prototype scope we treat as scroll target.
const isActive = (id) => {
if (id === "projects" && (route.name === "projects" || route.name === "project")) return true;
if (id === "sectors" && route.name === "sectors") return true;
if (id === "how-we-build" && route.name === "how-we-build") return true;
if (id === "studio" && route.name === "studio") return true;
if (id === "awards" && route.name === "awards") return true;
if (id === "contact" && route.name === "contact") return true;
return false;
};
return (